Lines Matching refs:SSL
137 static bool add_record_to_flight(SSL *ssl, uint8_t type, in add_record_to_flight()
154 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in add_record_to_flight()
171 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
176 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_init_message()
184 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in ssl3_finish_message()
188 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg) { in ssl3_add_message()
244 bool tls_flush_pending_hs_data(SSL *ssl) { in tls_flush_pending_hs_data()
256 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in tls_flush_pending_hs_data()
265 bool ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
283 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
290 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_flush_flight()
295 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in ssl3_flush_flight()
305 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_flush_flight()
311 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_flush_flight()
349 static ssl_open_record_t read_v2_client_hello(SSL *ssl, size_t *out_consumed, in read_v2_client_hello()
356 OPENSSL_PUT_ERROR(SSL, SSL_R_RECORD_TOO_LARGE); in read_v2_client_hello()
363 OPENSSL_PUT_ERROR(SSL, SSL_R_RECORD_LENGTH_MISMATCH); in read_v2_client_hello()
396 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in read_v2_client_hello()
436 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in read_v2_client_hello()
444 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in read_v2_client_hello()
453 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in read_v2_client_hello()
462 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in read_v2_client_hello()
471 static bool parse_message(const SSL *ssl, SSLMessage *out, in parse_message()
499 bool ssl3_get_message(const SSL *ssl, SSLMessage *out) { in ssl3_get_message()
513 bool tls_can_accept_handshake_data(const SSL *ssl, uint8_t *out_alert) { in tls_can_accept_handshake_data()
518 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in tls_can_accept_handshake_data()
525 OPENSSL_PUT_ERROR(SSL, SSL_R_EXCESSIVE_MESSAGE_SIZE); in tls_can_accept_handshake_data()
533 bool tls_has_unprocessed_handshake_data(const SSL *ssl) { in tls_has_unprocessed_handshake_data()
546 bool tls_append_handshake_data(SSL *ssl, Span<const uint8_t> data) { in tls_append_handshake_data()
555 ssl_open_record_t ssl3_open_handshake(SSL *ssl, size_t *out_consumed, in ssl3_open_handshake()
576 OPENSSL_PUT_ERROR(SSL, SSL_R_HTTP_REQUEST); in ssl3_open_handshake()
581 OPENSSL_PUT_ERROR(SSL, SSL_R_HTTPS_PROXY_REQUEST); in ssl3_open_handshake()
614 OPENSSL_PUT_ERROR(SSL, SSL_R_APPLICATION_DATA_INSTEAD_OF_HANDSHAKE); in ssl3_open_handshake()
620 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in ssl3_open_handshake()
634 void ssl3_next_message(SSL *ssl) { in ssl3_next_message()