Lines Matching refs:SSL
194 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE); in New()
317 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW);
322 OPENSSL_PUT_ERROR(SSL, ERR_R_MALLOC_FAILURE);
423 OPENSSL_PUT_ERROR(SSL, ERR_R_OVERFLOW);
498 uint16_t ssl_protocol_version(const SSL *ssl);
914 size_t ssl_record_prefix_len(const SSL *ssl);
947 enum ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type,
954 enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type,
969 size_t ssl_seal_align_prefix_len(const SSL *ssl);
982 bool tls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out,
992 size_t dtls_max_seal_overhead(const SSL *ssl, enum dtls1_use_epoch_t use_epoch);
996 size_t dtls_seal_prefix_len(const SSL *ssl, enum dtls1_use_epoch_t use_epoch);
1002 bool dtls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out,
1010 enum ssl_open_record_t ssl_process_alert(SSL *ssl, uint8_t *out_alert,
1042 bool ssl_public_key_verify(SSL *ssl, Span<const uint8_t> signature,
1141 size_t ssl_max_handshake_message_len(const SSL *ssl);
1145 bool tls_can_accept_handshake_data(const SSL *ssl, uint8_t *out_alert);
1149 bool tls_has_unprocessed_handshake_data(const SSL *ssl);
1153 bool tls_append_handshake_data(SSL *ssl, Span<const uint8_t> data);
1157 bool dtls_has_unprocessed_handshake_data(const SSL *ssl);
1160 bool tls_flush_pending_hs_data(SSL *ssl);
1177 void dtls_clear_outgoing_messages(SSL *ssl);
1183 void ssl_do_info_callback(const SSL *ssl, int type, int value);
1186 void ssl_do_msg_callback(const SSL *ssl, int is_write, int content_type,
1251 int ssl_read_buffer_extend_to(SSL *ssl, size_t len);
1257 int ssl_handle_open_record(SSL *ssl, bool *out_retry, ssl_open_record_t ret,
1263 int ssl_write_buffer_flush(SSL *ssl);
1313 UniquePtr<STACK_OF(CRYPTO_BUFFER)> ssl_parse_client_CA_list(SSL *ssl,
1355 bool tls13_set_traffic_key(SSL *ssl, enum ssl_encryption_level_t level,
1377 bool tls13_rotate_traffic_key(SSL *ssl, enum evp_aead_direction_t direction);
1389 bool tls13_export_keying_material(SSL *ssl, Span<uint8_t> out,
1524 explicit SSL_HANDSHAKE(SSL *ssl);
1529 SSL *ssl;
1796 UniquePtr<SSL_HANDSHAKE> ssl_handshake_new(SSL *ssl);
1800 bool ssl_check_message_type(SSL *ssl, const SSLMessage &msg, int type);
1824 bool tls13_add_key_update(SSL *ssl, int update_requested);
1828 bool tls13_post_handshake(SSL *ssl, const SSLMessage &msg);
1848 bool tls13_process_new_session_ticket(SSL *ssl, const SSLMessage &msg);
1927 bool ssl_log_secret(const SSL *ssl, const char *label,
1933 bool ssl_client_hello_init(const SSL *ssl, SSL_CLIENT_HELLO *out,
1982 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs);
1987 bool tls12_check_peer_sigalg(const SSL *ssl, uint8_t *out_alert,
1993 bool tls12_has_different_verify_sigalgs_for_certs(const SSL *ssl);
2054 int (*cert_cb)(SSL *ssl, void *arg) = nullptr;
2089 bool (*ssl_new)(SSL *ssl);
2090 void (*ssl_free)(SSL *ssl);
2093 bool (*get_message)(const SSL *ssl, SSLMessage *out);
2095 void (*next_message)(SSL *ssl);
2097 ssl_open_record_t (*open_handshake)(SSL *ssl, size_t *out_consumed,
2100 ssl_open_record_t (*open_change_cipher_spec)(SSL *ssl, size_t *out_consumed,
2104 ssl_open_record_t (*open_app_data)(SSL *ssl, Span<uint8_t> *out,
2107 int (*write_app_data)(SSL *ssl, bool *out_needs_handshake, const uint8_t *buf,
2109 int (*dispatch_alert)(SSL *ssl);
2113 bool (*init_message)(SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
2116 bool (*finish_message)(SSL *ssl, CBB *cbb, bssl::Array<uint8_t> *out_msg);
2119 bool (*add_message)(SSL *ssl, bssl::Array<uint8_t> msg);
2122 bool (*add_change_cipher_spec)(SSL *ssl);
2125 int (*flush_flight)(SSL *ssl);
2127 void (*on_handshake_complete)(SSL *ssl);
2131 bool (*set_read_state)(SSL *ssl, UniquePtr<SSLAEADContext> aead_ctx);
2135 bool (*set_write_state)(SSL *ssl, UniquePtr<SSLAEADContext> aead_ctx);
2142 ssl_open_record_t ssl_open_handshake(SSL *ssl, size_t *out_consumed,
2147 ssl_open_record_t ssl_open_change_cipher_spec(SSL *ssl, size_t *out_consumed,
2156 ssl_open_record_t ssl_open_app_data(SSL *ssl, Span<uint8_t> *out,
2605 explicit SSL_CONFIG(SSL *ssl_arg);
2609 SSL *const ssl = nullptr;
2635 SSL *ssl, uint8_t *out_alert) = nullptr;
2640 unsigned (*psk_client_callback)(SSL *ssl, const char *hint, char *identity,
2643 unsigned (*psk_server_callback)(SSL *ssl, const char *identity, uint8_t *psk,
2767 int ssl_session_is_time_valid(const SSL *ssl, const SSL_SESSION *session);
2782 void ssl_set_session(SSL *ssl, SSL_SESSION *session);
2811 void ssl_session_rebase_time(SSL *ssl, SSL_SESSION *session);
2816 void ssl_session_renew_timeout(SSL *ssl, SSL_SESSION *session,
2821 void ssl_send_alert(SSL *ssl, int level, int desc);
2822 int ssl_send_alert_impl(SSL *ssl, int level, int desc);
2823 bool ssl3_get_message(const SSL *ssl, SSLMessage *out);
2824 ssl_open_record_t ssl3_open_handshake(SSL *ssl, size_t *out_consumed,
2826 void ssl3_next_message(SSL *ssl);
2828 int ssl3_dispatch_alert(SSL *ssl);
2829 ssl_open_record_t ssl3_open_app_data(SSL *ssl, Span<uint8_t> *out,
2832 ssl_open_record_t ssl3_open_change_cipher_spec(SSL *ssl, size_t *out_consumed,
2835 int ssl3_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *buf,
2838 bool ssl3_new(SSL *ssl);
2839 void ssl3_free(SSL *ssl);
2841 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
2842 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg);
2843 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg);
2844 bool ssl3_add_change_cipher_spec(SSL *ssl);
2845 int ssl3_flush_flight(SSL *ssl);
2847 bool dtls1_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
2848 bool dtls1_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg);
2849 bool dtls1_add_message(SSL *ssl, Array<uint8_t> msg);
2850 bool dtls1_add_change_cipher_spec(SSL *ssl);
2851 int dtls1_flush_flight(SSL *ssl);
2855 bool ssl_add_message_cbb(SSL *ssl, CBB *cbb);
2861 ssl_open_record_t dtls1_open_app_data(SSL *ssl, Span<uint8_t> *out,
2864 ssl_open_record_t dtls1_open_change_cipher_spec(SSL *ssl, size_t *out_consumed,
2868 int dtls1_write_app_data(SSL *ssl, bool *out_needs_handshake,
2873 int dtls1_write_record(SSL *ssl, int type, const uint8_t *buf, size_t len,
2876 int dtls1_retransmit_outgoing_messages(SSL *ssl);
2879 bool dtls1_check_timeout_num(SSL *ssl);
2881 void dtls1_start_timer(SSL *ssl);
2882 void dtls1_stop_timer(SSL *ssl);
2883 bool dtls1_is_timer_expired(SSL *ssl);
2886 bool dtls1_new(SSL *ssl);
2887 void dtls1_free(SSL *ssl);
2889 bool dtls1_get_message(const SSL *ssl, SSLMessage *out);
2890 ssl_open_record_t dtls1_open_handshake(SSL *ssl, size_t *out_consumed,
2892 void dtls1_next_message(SSL *ssl);
2893 int dtls1_dispatch_alert(SSL *ssl);
2900 int tls1_configure_aead(SSL *ssl, evp_aead_direction_t direction,
2986 bool ssl_can_write(const SSL *ssl);
2989 bool ssl_can_read(const SSL *ssl);
2991 void ssl_get_current_time(const SSL *ssl, struct OPENSSL_timeval *out_clock);
2996 void ssl_reset_error_state(SSL *ssl);
3000 void ssl_set_read_error(SSL *ssl);
3084 int (*new_session_cb)(SSL *ssl, SSL_SESSION *sess) = nullptr;
3086 SSL_SESSION *(*get_session_cb)(SSL *ssl, const uint8_t *data, int len,
3095 ssl_verify_result_t (*custom_verify_callback)(SSL *ssl,
3105 int (*client_cert_cb)(SSL *ssl, X509 **out_x509,
3109 void (*channel_id_cb)(SSL *ssl, EVP_PKEY **out_pkey) = nullptr;
3115 void (*info_callback)(const SSL *ssl, int type, int value) = nullptr;
3138 const void *buf, size_t len, SSL *ssl,
3169 int (*servername_callback)(SSL *, int *, void *) = nullptr;
3180 int (*ticket_key_cb)(SSL *ssl, uint8_t *name, uint8_t *iv,
3187 unsigned (*psk_client_callback)(SSL *ssl, const char *hint, char *identity,
3190 unsigned (*psk_server_callback)(SSL *ssl, const char *identity, uint8_t *psk,
3199 int (*next_protos_advertised_cb)(SSL *ssl, const uint8_t **out,
3204 int (*next_proto_select_cb)(SSL *ssl, uint8_t **out, uint8_t *out_len,
3220 int (*alpn_select_cb)(SSL *ssl, const uint8_t **out, uint8_t *out_len,
3243 void (*keylog_callback)(const SSL *ssl, const char *line) = nullptr;
3248 void (*current_time_cb)(const SSL *ssl, struct timeval *out_clock) = nullptr;
3260 int (*legacy_ocsp_callback)(SSL *ssl, void *arg) = nullptr;
3365 const void *buf, size_t len, SSL *ssl,
3382 void (*info_callback)(const SSL *ssl, int type, int value) = nullptr;