Lines Matching refs:SSL
202 bool ssl_client_hello_init(SSL *ssl, SSL_CLIENT_HELLO *out, in ssl_client_hello_init()
303 SSL *const ssl = hs->ssl; in tls1_get_shared_group()
502 static SSLSignatureAlgorithmList tls12_get_verify_sigalgs(const SSL *ssl, in tls12_get_verify_sigalgs()
517 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs) { in tls12_add_verify_sigalgs()
528 bool tls12_check_peer_sigalg(const SSL *ssl, uint8_t *out_alert, in tls12_check_peer_sigalg()
538 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_SIGNATURE_TYPE); in tls12_check_peer_sigalg()
543 bool tls12_has_different_verify_sigalgs_for_certs(const SSL *ssl) { in tls12_has_different_verify_sigalgs_for_certs()
581 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in forbid_parse_serverhello()
603 SSL *const ssl = hs->ssl; in ext_sni_add_clienthello()
632 SSL *const ssl = hs->ssl; in ext_sni_parse_clienthello()
694 SSL *const ssl = hs->ssl; in ext_ri_add_clienthello()
718 SSL *const ssl = hs->ssl; in ext_ri_parse_serverhello()
729 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_MISMATCH); in ext_ri_parse_serverhello()
759 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_ENCODING_ERR); in ext_ri_parse_serverhello()
766 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_MISMATCH); in ext_ri_parse_serverhello()
778 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_MISMATCH); in ext_ri_parse_serverhello()
790 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_MISMATCH); in ext_ri_parse_serverhello()
801 SSL *const ssl = hs->ssl; in ext_ri_parse_clienthello()
817 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_ENCODING_ERR); in ext_ri_parse_clienthello()
824 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_MISMATCH); in ext_ri_parse_clienthello()
835 SSL *const ssl = hs->ssl; in ext_ri_add_serverhello()
874 SSL *const ssl = hs->ssl; in ext_ems_parse_serverhello()
889 OPENSSL_PUT_ERROR(SSL, SSL_R_RENEGOTIATION_EMS_MISMATCH); in ext_ems_parse_serverhello()
934 SSL *const ssl = hs->ssl; in ext_ticket_add_clienthello()
968 SSL *const ssl = hs->ssl; in ext_ticket_parse_serverhello()
1012 SSL *const ssl = hs->ssl; in ext_sigalgs_add_clienthello()
1064 SSL *const ssl = hs->ssl; in ext_sigalgs_cert_add_clienthello()
1112 SSL *const ssl = hs->ssl; in ext_ocsp_parse_serverhello()
1155 SSL *const ssl = hs->ssl; in ext_ocsp_add_serverhello()
1175 SSL *const ssl = hs->ssl; in ext_npn_add_clienthello()
1192 SSL *const ssl = hs->ssl; in ext_npn_parse_serverhello()
1211 OPENSSL_PUT_ERROR(SSL, SSL_R_NEGOTIATED_BOTH_NPN_AND_ALPN); in ext_npn_parse_serverhello()
1243 SSL *const ssl = hs->ssl; in ext_npn_parse_clienthello()
1264 SSL *const ssl = hs->ssl; in ext_npn_add_serverhello()
1312 SSL *const ssl = hs->ssl; in ext_sct_parse_serverhello()
1364 SSL *const ssl = hs->ssl; in ext_sct_add_serverhello()
1389 SSL *const ssl = hs->ssl; in ext_alpn_add_clienthello()
1410 SSL *const ssl = hs->ssl; in ext_alpn_parse_serverhello()
1421 OPENSSL_PUT_ERROR(SSL, SSL_R_NEGOTIATED_BOTH_NPN_AND_ALPN); in ext_alpn_parse_serverhello()
1438 OPENSSL_PUT_ERROR(SSL, SSL_R_INVALID_ALPN_PROTOCOL); in ext_alpn_parse_serverhello()
1481 SSL *const ssl = hs->ssl; in ssl_negotiate_alpn()
1498 OPENSSL_PUT_ERROR(SSL, SSL_R_PARSE_TLSEXT); in ssl_negotiate_alpn()
1511 OPENSSL_PUT_ERROR(SSL, SSL_R_PARSE_TLSEXT); in ssl_negotiate_alpn()
1524 OPENSSL_PUT_ERROR(SSL, SSL_R_INVALID_ALPN_PROTOCOL); in ssl_negotiate_alpn()
1539 SSL *const ssl = hs->ssl; in ext_alpn_add_serverhello()
1568 SSL *const ssl = hs->ssl; in ext_channel_id_add_clienthello()
1584 SSL *const ssl = hs->ssl; in ext_channel_id_parse_serverhello()
1603 SSL *const ssl = hs->ssl; in ext_channel_id_parse_clienthello()
1617 SSL *const ssl = hs->ssl; in ext_channel_id_add_serverhello()
1641 SSL *const ssl = hs->ssl; in ext_srtp_add_clienthello()
1671 SSL *const ssl = hs->ssl; in ext_srtp_parse_serverhello()
1687 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST); in ext_srtp_parse_serverhello()
1693 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SRTP_MKI_VALUE); in ext_srtp_parse_serverhello()
1709 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST); in ext_srtp_parse_serverhello()
1716 SSL *const ssl = hs->ssl; in ext_srtp_parse_clienthello()
1726 OPENSSL_PUT_ERROR(SSL, SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST); in ext_srtp_parse_clienthello()
1756 SSL *const ssl = hs->ssl; in ext_srtp_add_serverhello()
1839 SSL *const ssl = hs->ssl; in ext_ec_point_add_serverhello()
1861 SSL *const ssl = hs->ssl; in ext_pre_shared_key_clienthello_length()
1872 SSL *const ssl = hs->ssl; in ext_pre_shared_key_add_clienthello()
1921 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_pre_shared_key_parse_serverhello()
1928 OPENSSL_PUT_ERROR(SSL, SSL_R_PSK_IDENTITY_NOT_FOUND); in ssl_ext_pre_shared_key_parse_serverhello()
1947 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_pre_shared_key_parse_clienthello()
1961 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_pre_shared_key_parse_clienthello()
1975 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_pre_shared_key_parse_clienthello()
1984 OPENSSL_PUT_ERROR(SSL, SSL_R_PSK_IDENTITY_BINDER_COUNT_MISMATCH); in ssl_ext_pre_shared_key_parse_clienthello()
2059 SSL *const ssl = hs->ssl; in ext_early_data_add_clienthello()
2087 SSL *const ssl = hs->ssl; in ext_early_data_parse_serverhello()
2099 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in ext_early_data_parse_serverhello()
2109 SSL *const ssl = hs->ssl; in ext_early_data_parse_clienthello()
2144 SSL *const ssl = hs->ssl; in ext_key_share_add_clienthello()
2183 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_GROUPS_SPECIFIED); in ext_key_share_add_clienthello()
2237 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_key_share_parse_serverhello()
2246 OPENSSL_PUT_ERROR(SSL, SSL_R_WRONG_CURVE); in ssl_ext_key_share_parse_serverhello()
2269 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_SHARED_GROUP); in ssl_ext_key_share_parse_clienthello()
2276 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_key_share_parse_clienthello()
2289 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in ssl_ext_key_share_parse_clienthello()
2295 OPENSSL_PUT_ERROR(SSL, SSL_R_DUPLICATE_KEY_SHARE); in ssl_ext_key_share_parse_clienthello()
2354 SSL *const ssl = hs->ssl; in ext_supported_versions_add_clienthello()
2411 SSL *const ssl = hs->ssl; in ext_supported_groups_add_clienthello()
2450 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in parse_u16_array()
2460 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in parse_u16_array()
2500 SSL *const ssl = hs->ssl; in ext_token_binding_add_clienthello()
2522 SSL *const ssl = hs->ssl; in ext_token_binding_parse_serverhello()
2583 SSL *const ssl = hs->ssl; in ext_token_binding_parse_clienthello()
2617 SSL *const ssl = hs->ssl; in ext_token_binding_add_serverhello()
2659 SSL *const ssl = hs->ssl; in ext_quic_transport_params_parse_serverhello()
2675 SSL *const ssl = hs->ssl; in ext_quic_transport_params_parse_clienthello()
3057 SSL *const ssl = hs->ssl; in ssl_add_clienthello_tlsext()
3060 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_clienthello_tlsext()
3078 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_clienthello_tlsext()
3087 OPENSSL_PUT_ERROR(SSL, SSL_R_ERROR_ADDING_EXTENSION); in ssl_add_clienthello_tlsext()
3115 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_clienthello_tlsext()
3163 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_clienthello_tlsext()
3173 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_clienthello_tlsext()
3186 SSL *const ssl = hs->ssl; in ssl_add_serverhello_tlsext()
3199 OPENSSL_PUT_ERROR(SSL, SSL_R_ERROR_ADDING_EXTENSION); in ssl_add_serverhello_tlsext()
3214 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in ssl_add_serverhello_tlsext()
3252 OPENSSL_PUT_ERROR(SSL, SSL_R_ERROR_PARSING_EXTENSION); in ssl_scan_clienthello_tlsext()
3280 OPENSSL_PUT_ERROR(SSL, SSL_R_MISSING_EXTENSION); in ssl_scan_clienthello_tlsext()
3292 SSL *const ssl = hs->ssl; in ssl_parse_clienthello_tlsext()
3300 OPENSSL_PUT_ERROR(SSL, SSL_R_CLIENTHELLO_TLSEXT); in ssl_parse_clienthello_tlsext()
3309 SSL *const ssl = hs->ssl; in ssl_scan_serverhello_tlsext()
3340 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in ssl_scan_serverhello_tlsext()
3351 OPENSSL_PUT_ERROR(SSL, SSL_R_UNEXPECTED_EXTENSION); in ssl_scan_serverhello_tlsext()
3361 OPENSSL_PUT_ERROR(SSL, SSL_R_ERROR_PARSING_EXTENSION); in ssl_scan_serverhello_tlsext()
3374 OPENSSL_PUT_ERROR(SSL, SSL_R_MISSING_EXTENSION); in ssl_scan_serverhello_tlsext()
3386 SSL *const ssl = hs->ssl; in ssl_check_clienthello_tlsext()
3391 OPENSSL_PUT_ERROR(SSL, SSL_R_NEGOTIATED_TB_WITHOUT_EMS_OR_RI); in ssl_check_clienthello_tlsext()
3421 SSL *const ssl = hs->ssl; in ssl_parse_serverhello_tlsext()
3557 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in ssl_decrypt_ticket_with_method()
3655 SSL *const ssl = hs->ssl; in tls1_choose_signature_algorithm()
3663 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_COMMON_SIGNATURE_ALGORITHMS); in tls1_choose_signature_algorithm()
3694 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_COMMON_SIGNATURE_ALGORITHMS); in tls1_choose_signature_algorithm()
3712 SSL *const ssl = hs->ssl; in tls1_verify_channel_id()
3722 OPENSSL_PUT_ERROR(SSL, SSL_R_DECODE_ERROR); in tls1_verify_channel_id()
3729 OPENSSL_PUT_ERROR(SSL, SSL_R_NO_P256_SUPPORT); in tls1_verify_channel_id()
3769 OPENSSL_PUT_ERROR(SSL, SSL_R_CHANNEL_ID_SIGNATURE_INVALID); in tls1_verify_channel_id()
3788 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in tls1_write_channel_id()
3820 SSL *const ssl = hs->ssl; in tls1_channel_id_hash()
3842 OPENSSL_PUT_ERROR(SSL, ERR_R_INTERNAL_ERROR); in tls1_channel_id_hash()
3861 SSL *const ssl = hs->ssl; in tls1_record_handshake_hashes_for_channel_id()