Lines Matching refs:SSL
135 static bool add_record_to_flight(SSL *ssl, uint8_t type, in add_record_to_flight()
152 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW); in add_record_to_flight()
169 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
174 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_init_message()
182 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in ssl3_finish_message()
186 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg) { in ssl3_add_message()
242 bool tls_flush_pending_hs_data(SSL *ssl) { in tls_flush_pending_hs_data()
254 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in tls_flush_pending_hs_data()
263 bool ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
281 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
288 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_flush_flight()
293 OPENSSL_PUT_ERROR(SSL, SSL_R_QUIC_INTERNAL_ERROR); in ssl3_flush_flight()
303 OPENSSL_PUT_ERROR(SSL, SSL_R_PROTOCOL_IS_SHUTDOWN); in ssl3_flush_flight()
309 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl3_flush_flight()
347 static ssl_open_record_t read_v2_client_hello(SSL *ssl, size_t *out_consumed, in read_v2_client_hello()
354 OPENSSL_PUT_ERROR(SSL, SSL_R_RECORD_TOO_LARGE); in read_v2_client_hello()
361 OPENSSL_PUT_ERROR(SSL, SSL_R_RECORD_LENGTH_MISMATCH); in read_v2_client_hello()
394 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in read_v2_client_hello()
434 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in read_v2_client_hello()
442 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in read_v2_client_hello()
451 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in read_v2_client_hello()
460 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in read_v2_client_hello()
469 static bool parse_message(const SSL *ssl, SSLMessage *out, in parse_message()
497 bool ssl3_get_message(SSL *ssl, SSLMessage *out) { in ssl3_get_message()
511 bool tls_can_accept_handshake_data(const SSL *ssl, uint8_t *out_alert) { in tls_can_accept_handshake_data()
516 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in tls_can_accept_handshake_data()
523 OPENSSL_PUT_ERROR(SSL, SSL_R_EXCESSIVE_MESSAGE_SIZE); in tls_can_accept_handshake_data()
531 bool tls_has_unprocessed_handshake_data(const SSL *ssl) { in tls_has_unprocessed_handshake_data()
544 bool tls_append_handshake_data(SSL *ssl, Span<const uint8_t> data) { in tls_append_handshake_data()
553 ssl_open_record_t ssl3_open_handshake(SSL *ssl, size_t *out_consumed, in ssl3_open_handshake()
574 OPENSSL_PUT_ERROR(SSL, SSL_R_HTTP_REQUEST); in ssl3_open_handshake()
579 OPENSSL_PUT_ERROR(SSL, SSL_R_HTTPS_PROXY_REQUEST); in ssl3_open_handshake()
612 OPENSSL_PUT_ERROR(SSL, SSL_R_APPLICATION_DATA_INSTEAD_OF_HANDSHAKE); in ssl3_open_handshake()
618 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_RECORD); in ssl3_open_handshake()
632 void ssl3_next_message(SSL *ssl) { in ssl3_next_message()