Lines Matching refs:OPENSSL_EXPORT
185 OPENSSL_EXPORT const SSL_METHOD *TLS_method(void);
188 OPENSSL_EXPORT const SSL_METHOD *DTLS_method(void);
192 OPENSSL_EXPORT const SSL_METHOD *TLS_with_buffers_method(void);
196 OPENSSL_EXPORT SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
199 OPENSSL_EXPORT int SSL_CTX_up_ref(SSL_CTX *ctx);
202 OPENSSL_EXPORT void SSL_CTX_free(SSL_CTX *ctx);
217 OPENSSL_EXPORT SSL *SSL_new(SSL_CTX *ctx);
220 OPENSSL_EXPORT void SSL_free(SSL *ssl);
225 OPENSSL_EXPORT SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
228 OPENSSL_EXPORT void SSL_set_connect_state(SSL *ssl);
231 OPENSSL_EXPORT void SSL_set_accept_state(SSL *ssl);
235 OPENSSL_EXPORT int SSL_is_server(const SSL *ssl);
238 OPENSSL_EXPORT int SSL_is_dtls(const SSL *ssl);
258 OPENSSL_EXPORT void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
265 OPENSSL_EXPORT void SSL_set0_rbio(SSL *ssl, BIO *rbio);
272 OPENSSL_EXPORT void SSL_set0_wbio(SSL *ssl, BIO *wbio);
275 OPENSSL_EXPORT BIO *SSL_get_rbio(const SSL *ssl);
278 OPENSSL_EXPORT BIO *SSL_get_wbio(const SSL *ssl);
281 OPENSSL_EXPORT int SSL_get_fd(const SSL *ssl);
290 OPENSSL_EXPORT int SSL_get_rfd(const SSL *ssl);
299 OPENSSL_EXPORT int SSL_get_wfd(const SSL *ssl);
306 OPENSSL_EXPORT int SSL_set_fd(SSL *ssl, int fd);
312 OPENSSL_EXPORT int SSL_set_rfd(SSL *ssl, int fd);
318 OPENSSL_EXPORT int SSL_set_wfd(SSL *ssl, int fd);
333 OPENSSL_EXPORT int SSL_do_handshake(SSL *ssl);
337 OPENSSL_EXPORT int SSL_connect(SSL *ssl);
341 OPENSSL_EXPORT int SSL_accept(SSL *ssl);
350 OPENSSL_EXPORT int SSL_read(SSL *ssl, void *buf, int num);
353 OPENSSL_EXPORT int SSL_peek(SSL *ssl, void *buf, int num);
357 OPENSSL_EXPORT int SSL_pending(const SSL *ssl);
385 OPENSSL_EXPORT int SSL_write(SSL *ssl, const void *buf, int num);
401 OPENSSL_EXPORT int SSL_shutdown(SSL *ssl);
406 OPENSSL_EXPORT void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);
410 OPENSSL_EXPORT int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);
415 OPENSSL_EXPORT void SSL_set_quiet_shutdown(SSL *ssl, int mode);
419 OPENSSL_EXPORT int SSL_get_quiet_shutdown(const SSL *ssl);
424 OPENSSL_EXPORT int SSL_get_error(const SSL *ssl, int ret_code);
517 OPENSSL_EXPORT int SSL_set_mtu(SSL *ssl, unsigned mtu);
526 OPENSSL_EXPORT void DTLSv1_set_initial_timeout_duration(SSL *ssl,
538 OPENSSL_EXPORT int DTLSv1_get_timeout(const SSL *ssl, struct timeval *out);
557 OPENSSL_EXPORT int DTLSv1_handle_timeout(SSL *ssl);
579 OPENSSL_EXPORT int SSL_CTX_set_min_proto_version(SSL_CTX *ctx,
585 OPENSSL_EXPORT int SSL_CTX_set_max_proto_version(SSL_CTX *ctx,
591 OPENSSL_EXPORT int SSL_set_min_proto_version(SSL *ssl, uint16_t version);
596 OPENSSL_EXPORT int SSL_set_max_proto_version(SSL *ssl, uint16_t version);
601 OPENSSL_EXPORT int SSL_version(const SSL *ssl);
634 OPENSSL_EXPORT uint32_t SSL_CTX_set_options(SSL_CTX *ctx, uint32_t options);
639 OPENSSL_EXPORT uint32_t SSL_CTX_clear_options(SSL_CTX *ctx, uint32_t options);
643 OPENSSL_EXPORT uint32_t SSL_CTX_get_options(const SSL_CTX *ctx);
648 OPENSSL_EXPORT uint32_t SSL_set_options(SSL *ssl, uint32_t options);
653 OPENSSL_EXPORT uint32_t SSL_clear_options(SSL *ssl, uint32_t options);
657 OPENSSL_EXPORT uint32_t SSL_get_options(const SSL *ssl);
716 OPENSSL_EXPORT uint32_t SSL_CTX_set_mode(SSL_CTX *ctx, uint32_t mode);
721 OPENSSL_EXPORT uint32_t SSL_CTX_clear_mode(SSL_CTX *ctx, uint32_t mode);
725 OPENSSL_EXPORT uint32_t SSL_CTX_get_mode(const SSL_CTX *ctx);
730 OPENSSL_EXPORT uint32_t SSL_set_mode(SSL *ssl, uint32_t mode);
735 OPENSSL_EXPORT uint32_t SSL_clear_mode(SSL *ssl, uint32_t mode);
739 OPENSSL_EXPORT uint32_t SSL_get_mode(const SSL *ssl);
748 OPENSSL_EXPORT void SSL_CTX_set0_buffer_pool(SSL_CTX *ctx,
764 OPENSSL_EXPORT int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x509);
768 OPENSSL_EXPORT int SSL_use_certificate(SSL *ssl, X509 *x509);
772 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
776 OPENSSL_EXPORT int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
781 OPENSSL_EXPORT int SSL_CTX_set0_chain(SSL_CTX *ctx, STACK_OF(X509) *chain);
786 OPENSSL_EXPORT int SSL_CTX_set1_chain(SSL_CTX *ctx, STACK_OF(X509) *chain);
791 OPENSSL_EXPORT int SSL_set0_chain(SSL *ssl, STACK_OF(X509) *chain);
796 OPENSSL_EXPORT int SSL_set1_chain(SSL *ssl, STACK_OF(X509) *chain);
801 OPENSSL_EXPORT int SSL_CTX_add0_chain_cert(SSL_CTX *ctx, X509 *x509);
806 OPENSSL_EXPORT int SSL_CTX_add1_chain_cert(SSL_CTX *ctx, X509 *x509);
810 OPENSSL_EXPORT int SSL_add0_chain_cert(SSL *ssl, X509 *x509);
813 OPENSSL_EXPORT int SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509);
818 OPENSSL_EXPORT int SSL_add1_chain_cert(SSL *ssl, X509 *x509);
822 OPENSSL_EXPORT int SSL_CTX_clear_chain_certs(SSL_CTX *ctx);
825 OPENSSL_EXPORT int SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx);
828 OPENSSL_EXPORT int SSL_clear_chain_certs(SSL *ssl);
841 OPENSSL_EXPORT void SSL_CTX_set_cert_cb(SSL_CTX *ctx,
853 OPENSSL_EXPORT void SSL_set_cert_cb(SSL *ssl, int (*cb)(SSL *ssl, void *arg),
863 OPENSSL_EXPORT size_t SSL_get0_certificate_types(SSL *ssl,
868 OPENSSL_EXPORT void SSL_certs_clear(SSL *ssl);
872 OPENSSL_EXPORT int SSL_CTX_check_private_key(const SSL_CTX *ctx);
876 OPENSSL_EXPORT int SSL_check_private_key(const SSL *ssl);
879 OPENSSL_EXPORT X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);
882 OPENSSL_EXPORT X509 *SSL_get_certificate(const SSL *ssl);
885 OPENSSL_EXPORT EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);
888 OPENSSL_EXPORT EVP_PKEY *SSL_get_privatekey(const SSL *ssl);
892 OPENSSL_EXPORT int SSL_CTX_get0_chain_certs(const SSL_CTX *ctx,
896 OPENSSL_EXPORT int SSL_CTX_get_extra_chain_certs(const SSL_CTX *ctx,
901 OPENSSL_EXPORT int SSL_get0_chain_certs(const SSL *ssl,
912 OPENSSL_EXPORT int SSL_CTX_set_signed_cert_timestamp_list(SSL_CTX *ctx,
920 OPENSSL_EXPORT int SSL_set_signed_cert_timestamp_list(SSL *ctx,
927 OPENSSL_EXPORT int SSL_CTX_set_ocsp_response(SSL_CTX *ctx,
934 OPENSSL_EXPORT int SSL_set_ocsp_response(SSL *ssl,
960 OPENSSL_EXPORT int SSL_CTX_set_signing_algorithm_prefs(SSL_CTX *ctx,
968 OPENSSL_EXPORT int SSL_set_signing_algorithm_prefs(SSL *ssl,
979 OPENSSL_EXPORT int SSL_CTX_set_chain_and_key(
987 OPENSSL_EXPORT int SSL_set_chain_and_key(
993 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
997 OPENSSL_EXPORT int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
1003 OPENSSL_EXPORT int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, size_t der_len,
1005 OPENSSL_EXPORT int SSL_use_certificate_ASN1(SSL *ssl, const uint8_t *der,
1008 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,
1011 OPENSSL_EXPORT int SSL_use_PrivateKey_ASN1(int type, SSL *ssl,
1014 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx,
1017 OPENSSL_EXPORT int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const uint8_t *der,
1028 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx,
1031 OPENSSL_EXPORT int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file,
1034 OPENSSL_EXPORT int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
1036 OPENSSL_EXPORT int SSL_use_certificate_file(SSL *ssl, const char *file,
1039 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
1041 OPENSSL_EXPORT int SSL_use_PrivateKey_file(SSL *ssl, const char *file,
1048 OPENSSL_EXPORT int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx,
1053 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx,
1058 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx,
1158 OPENSSL_EXPORT void SSL_set_private_key_method(
1163 OPENSSL_EXPORT void SSL_CTX_set_private_key_method(
1176 OPENSSL_EXPORT const SSL_CIPHER *SSL_get_cipher_by_value(uint16_t value);
1180 OPENSSL_EXPORT uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *cipher);
1184 OPENSSL_EXPORT int SSL_CIPHER_is_AES(const SSL_CIPHER *cipher);
1187 OPENSSL_EXPORT int SSL_CIPHER_has_SHA1_HMAC(const SSL_CIPHER *cipher);
1190 OPENSSL_EXPORT int SSL_CIPHER_has_SHA256_HMAC(const SSL_CIPHER *cipher);
1193 OPENSSL_EXPORT int SSL_CIPHER_is_AEAD(const SSL_CIPHER *cipher);
1196 OPENSSL_EXPORT int SSL_CIPHER_is_AESGCM(const SSL_CIPHER *cipher);
1199 OPENSSL_EXPORT int SSL_CIPHER_is_AES128GCM(const SSL_CIPHER *cipher);
1203 OPENSSL_EXPORT int SSL_CIPHER_is_AES128CBC(const SSL_CIPHER *cipher);
1207 OPENSSL_EXPORT int SSL_CIPHER_is_AES256CBC(const SSL_CIPHER *cipher);
1212 OPENSSL_EXPORT int SSL_CIPHER_is_CHACHA20POLY1305(const SSL_CIPHER *cipher);
1215 OPENSSL_EXPORT int SSL_CIPHER_is_NULL(const SSL_CIPHER *cipher);
1218 OPENSSL_EXPORT int SSL_CIPHER_is_block_cipher(const SSL_CIPHER *cipher);
1221 OPENSSL_EXPORT int SSL_CIPHER_is_ECDSA(const SSL_CIPHER *cipher);
1224 OPENSSL_EXPORT int SSL_CIPHER_is_DHE(const SSL_CIPHER *cipher);
1227 OPENSSL_EXPORT int SSL_CIPHER_is_ECDHE(const SSL_CIPHER *cipher);
1231 OPENSSL_EXPORT int SSL_CIPHER_is_static_RSA(const SSL_CIPHER *cipher);
1235 OPENSSL_EXPORT uint16_t SSL_CIPHER_get_min_version(const SSL_CIPHER *cipher);
1239 OPENSSL_EXPORT uint16_t SSL_CIPHER_get_max_version(const SSL_CIPHER *cipher);
1242 OPENSSL_EXPORT const char *SSL_CIPHER_get_name(const SSL_CIPHER *cipher);
1247 OPENSSL_EXPORT const char *SSL_CIPHER_get_kx_name(const SSL_CIPHER *cipher);
1253 OPENSSL_EXPORT char *SSL_CIPHER_get_rfc_name(const SSL_CIPHER *cipher);
1258 OPENSSL_EXPORT int SSL_CIPHER_get_bits(const SSL_CIPHER *cipher,
1370 OPENSSL_EXPORT int SSL_CTX_set_strict_cipher_list(SSL_CTX *ctx,
1378 OPENSSL_EXPORT int SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str);
1383 OPENSSL_EXPORT int SSL_set_strict_cipher_list(SSL *ssl, const char *str);
1390 OPENSSL_EXPORT int SSL_set_cipher_list(SSL *ssl, const char *str);
1394 OPENSSL_EXPORT STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);
1397 OPENSSL_EXPORT STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
1404 OPENSSL_EXPORT int SSL_is_init_finished(const SSL *ssl);
1408 OPENSSL_EXPORT int SSL_in_init(const SSL *ssl);
1416 OPENSSL_EXPORT int SSL_in_false_start(const SSL *ssl);
1421 OPENSSL_EXPORT X509 *SSL_get_peer_certificate(const SSL *ssl);
1431 OPENSSL_EXPORT STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *ssl);
1443 OPENSSL_EXPORT STACK_OF(X509) *SSL_get_peer_full_cert_chain(const SSL *ssl);
1451 OPENSSL_EXPORT STACK_OF(CRYPTO_BUFFER) *
1462 OPENSSL_EXPORT void SSL_get0_signed_cert_timestamp_list(const SSL *ssl,
1471 OPENSSL_EXPORT void SSL_get0_ocsp_response(const SSL *ssl, const uint8_t **out,
1491 OPENSSL_EXPORT int SSL_get_tls_unique(const SSL *ssl, uint8_t *out,
1496 OPENSSL_EXPORT int SSL_get_extms_support(const SSL *ssl);
1500 OPENSSL_EXPORT const SSL_CIPHER *SSL_get_current_cipher(const SSL *ssl);
1507 OPENSSL_EXPORT int SSL_session_reused(const SSL *ssl);
1511 OPENSSL_EXPORT int SSL_get_secure_renegotiation_support(const SSL *ssl);
1519 OPENSSL_EXPORT int SSL_export_keying_material(
1577 OPENSSL_EXPORT int SSL_extension_supported(unsigned extension_value);
1593 OPENSSL_EXPORT int SSL_CTX_add_client_custom_ext(
1604 OPENSSL_EXPORT int SSL_CTX_add_server_custom_ext(
1623 OPENSSL_EXPORT SSL_SESSION *SSL_SESSION_new(const SSL_CTX *ctx);
1627 OPENSSL_EXPORT int SSL_SESSION_up_ref(SSL_SESSION *session);
1631 OPENSSL_EXPORT void SSL_SESSION_free(SSL_SESSION *session);
1637 OPENSSL_EXPORT int SSL_SESSION_to_bytes(const SSL_SESSION *in,
1642 OPENSSL_EXPORT int SSL_SESSION_to_bytes_for_ticket(const SSL_SESSION *in,
1648 OPENSSL_EXPORT SSL_SESSION *SSL_SESSION_from_bytes(
1653 OPENSSL_EXPORT const char *SSL_SESSION_get_version(const SSL_SESSION *session);
1657 OPENSSL_EXPORT const uint8_t *SSL_SESSION_get_id(const SSL_SESSION *session,
1662 OPENSSL_EXPORT uint64_t SSL_SESSION_get_time(const SSL_SESSION *session);
1665 OPENSSL_EXPORT uint32_t SSL_SESSION_get_timeout(const SSL_SESSION *session);
1671 OPENSSL_EXPORT X509 *SSL_SESSION_get0_peer(const SSL_SESSION *session);
1676 OPENSSL_EXPORT size_t SSL_SESSION_get_master_key(const SSL_SESSION *session,
1682 OPENSSL_EXPORT uint64_t SSL_SESSION_set_time(SSL_SESSION *session,
1688 OPENSSL_EXPORT uint32_t SSL_SESSION_set_timeout(SSL_SESSION *session,
1695 OPENSSL_EXPORT int SSL_SESSION_set1_id_context(SSL_SESSION *session,
1754 OPENSSL_EXPORT int SSL_CTX_set_session_cache_mode(SSL_CTX *ctx, int mode);
1758 OPENSSL_EXPORT int SSL_CTX_get_session_cache_mode(const SSL_CTX *ctx);
1765 OPENSSL_EXPORT int SSL_set_session(SSL *ssl, SSL_SESSION *session);
1777 OPENSSL_EXPORT SSL_SESSION *SSL_get_session(const SSL *ssl);
1784 OPENSSL_EXPORT SSL_SESSION *SSL_get1_session(SSL *ssl);
1803 OPENSSL_EXPORT uint32_t SSL_CTX_set_timeout(SSL_CTX *ctx, uint32_t timeout);
1807 OPENSSL_EXPORT void SSL_CTX_set_session_psk_dhe_timeout(SSL_CTX *ctx,
1812 OPENSSL_EXPORT uint32_t SSL_CTX_get_timeout(const SSL_CTX *ctx);
1825 OPENSSL_EXPORT int SSL_CTX_set_session_id_context(SSL_CTX *ctx,
1832 OPENSSL_EXPORT int SSL_set_session_id_context(SSL *ssl, const uint8_t *sid_ctx,
1837 OPENSSL_EXPORT const uint8_t *SSL_get0_session_id_context(const SSL *ssl,
1846 OPENSSL_EXPORT unsigned long SSL_CTX_sess_set_cache_size(SSL_CTX *ctx,
1851 OPENSSL_EXPORT unsigned long SSL_CTX_sess_get_cache_size(const SSL_CTX *ctx);
1854 OPENSSL_EXPORT LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
1858 OPENSSL_EXPORT size_t SSL_CTX_sess_number(const SSL_CTX *ctx);
1863 OPENSSL_EXPORT int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);
1867 OPENSSL_EXPORT int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);
1871 OPENSSL_EXPORT void SSL_CTX_flush_sessions(SSL_CTX *ctx, uint64_t time);
1891 OPENSSL_EXPORT void SSL_CTX_sess_set_new_cb(
1896 OPENSSL_EXPORT int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(
1904 OPENSSL_EXPORT void SSL_CTX_sess_set_remove_cb(
1910 OPENSSL_EXPORT void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(
1935 OPENSSL_EXPORT void SSL_CTX_sess_set_get_cb(
1942 OPENSSL_EXPORT SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(
1949 OPENSSL_EXPORT SSL_SESSION *SSL_magic_pending_session_ptr(void);
1976 OPENSSL_EXPORT int SSL_CTX_get_tlsext_ticket_keys(SSL_CTX *ctx, void *out,
1982 OPENSSL_EXPORT int SSL_CTX_set_tlsext_ticket_keys(SSL_CTX *ctx, const void *in,
2012 OPENSSL_EXPORT int SSL_CTX_set_tlsext_ticket_key_cb(
2063 OPENSSL_EXPORT void SSL_CTX_set_ticket_aead_method(
2083 OPENSSL_EXPORT int SSL_CTX_set1_curves(SSL_CTX *ctx, const int *curves,
2092 OPENSSL_EXPORT int SSL_set1_curves(SSL *ssl, const int *curves,
2099 OPENSSL_EXPORT int SSL_CTX_set1_curves_list(SSL_CTX *ctx, const char *curves);
2105 OPENSSL_EXPORT int SSL_set1_curves_list(SSL *ssl, const char *curves);
2118 OPENSSL_EXPORT uint16_t SSL_get_curve_id(const SSL *ssl);
2122 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
2134 OPENSSL_EXPORT int SSL_CTX_set_tmp_dh(SSL_CTX *ctx, const DH *dh);
2139 OPENSSL_EXPORT int SSL_set_tmp_dh(SSL *ssl, const DH *dh);
2148 OPENSSL_EXPORT void SSL_CTX_set_tmp_dh_callback(
2158 OPENSSL_EXPORT void SSL_set_tmp_dh_callback(SSL *ssl,
2215 OPENSSL_EXPORT void SSL_CTX_set_verify(
2225 OPENSSL_EXPORT void SSL_set_verify(SSL *ssl, int mode,
2231 OPENSSL_EXPORT int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
2235 OPENSSL_EXPORT int SSL_get_verify_mode(const SSL *ssl);
2239 OPENSSL_EXPORT int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(
2244 OPENSSL_EXPORT int (*SSL_get_verify_callback(const SSL *ssl))(
2250 OPENSSL_EXPORT void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
2255 OPENSSL_EXPORT void SSL_set_verify_depth(SSL *ssl, int depth);
2259 OPENSSL_EXPORT int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
2263 OPENSSL_EXPORT int SSL_get_verify_depth(const SSL *ssl);
2267 OPENSSL_EXPORT int SSL_CTX_set1_param(SSL_CTX *ctx,
2272 OPENSSL_EXPORT int SSL_set1_param(SSL *ssl,
2278 OPENSSL_EXPORT X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
2283 OPENSSL_EXPORT X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
2287 OPENSSL_EXPORT int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);
2291 OPENSSL_EXPORT int SSL_set_purpose(SSL *ssl, int purpose);
2295 OPENSSL_EXPORT int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);
2299 OPENSSL_EXPORT int SSL_set_trust(SSL *ssl, int trust);
2306 OPENSSL_EXPORT void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store);
2309 OPENSSL_EXPORT X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx);
2313 OPENSSL_EXPORT int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
2324 OPENSSL_EXPORT int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
2330 OPENSSL_EXPORT long SSL_get_verify_result(const SSL *ssl);
2334 OPENSSL_EXPORT int SSL_get_ex_data_X509_STORE_CTX_idx(void);
2344 OPENSSL_EXPORT void SSL_CTX_set_cert_verify_callback(
2352 OPENSSL_EXPORT void SSL_CTX_i_promise_to_verify_certs_after_the_handshake(
2361 OPENSSL_EXPORT void SSL_enable_signed_cert_timestamps(SSL *ssl);
2368 OPENSSL_EXPORT void SSL_CTX_enable_signed_cert_timestamps(SSL_CTX *ctx);
2375 OPENSSL_EXPORT void SSL_enable_ocsp_stapling(SSL *ssl);
2382 OPENSSL_EXPORT void SSL_CTX_enable_ocsp_stapling(SSL_CTX *ctx);
2387 OPENSSL_EXPORT int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx,
2393 OPENSSL_EXPORT int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx,
2399 OPENSSL_EXPORT int SSL_set0_verify_cert_store(SSL *ssl, X509_STORE *store);
2404 OPENSSL_EXPORT int SSL_set1_verify_cert_store(SSL *ssl, X509_STORE *store);
2415 OPENSSL_EXPORT void SSL_set_client_CA_list(SSL *ssl,
2420 OPENSSL_EXPORT void SSL_CTX_set_client_CA_list(SSL_CTX *ctx,
2431 OPENSSL_EXPORT STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *ssl);
2440 OPENSSL_EXPORT STACK_OF(CRYPTO_BUFFER) *SSL_get0_server_requested_CAs(
2444 OPENSSL_EXPORT STACK_OF(X509_NAME) *
2450 OPENSSL_EXPORT int SSL_add_client_CA(SSL *ssl, X509 *x509);
2455 OPENSSL_EXPORT int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x509);
2460 OPENSSL_EXPORT STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);
2464 OPENSSL_EXPORT STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *list);
2469 OPENSSL_EXPORT int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *out,
2484 OPENSSL_EXPORT int SSL_set_tlsext_host_name(SSL *ssl, const char *name);
2489 OPENSSL_EXPORT const char *SSL_get_servername(const SSL *ssl, const int type);
2493 OPENSSL_EXPORT int SSL_get_servername_type(const SSL *ssl);
2506 OPENSSL_EXPORT int SSL_CTX_set_tlsext_servername_callback(
2511 OPENSSL_EXPORT int SSL_CTX_set_tlsext_servername_arg(SSL_CTX *ctx, void *arg);
2532 OPENSSL_EXPORT SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2548 OPENSSL_EXPORT int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const uint8_t *protos,
2558 OPENSSL_EXPORT int SSL_set_alpn_protos(SSL *ssl, const uint8_t *protos,
2575 OPENSSL_EXPORT void SSL_CTX_set_alpn_select_cb(
2584 OPENSSL_EXPORT void SSL_get0_alpn_selected(const SSL *ssl,
2603 OPENSSL_EXPORT void SSL_CTX_set_next_protos_advertised_cb(
2619 OPENSSL_EXPORT void SSL_CTX_set_next_proto_select_cb(
2631 OPENSSL_EXPORT void SSL_get0_next_proto_negotiated(const SSL *ssl,
2663 OPENSSL_EXPORT int SSL_select_next_proto(uint8_t **out, uint8_t *out_len,
2680 OPENSSL_EXPORT void SSL_CTX_set_tls_channel_id_enabled(SSL_CTX *ctx,
2685 OPENSSL_EXPORT void SSL_set_tls_channel_id_enabled(SSL *ssl, int enabled);
2690 OPENSSL_EXPORT int SSL_CTX_set1_tls_channel_id(SSL_CTX *ctx,
2696 OPENSSL_EXPORT int SSL_set1_tls_channel_id(SSL *ssl, EVP_PKEY *private_key);
2703 OPENSSL_EXPORT size_t SSL_get_tls_channel_id(SSL *ssl, uint8_t *out,
2712 OPENSSL_EXPORT void SSL_CTX_set_channel_id_cb(
2717 OPENSSL_EXPORT void (*SSL_CTX_get_channel_id_cb(SSL_CTX *ctx))(
2747 OPENSSL_EXPORT int SSL_CTX_set_srtp_profiles(SSL_CTX *ctx,
2753 OPENSSL_EXPORT int SSL_set_srtp_profiles(SSL *ssl, const char *profiles);
2756 OPENSSL_EXPORT STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(
2761 OPENSSL_EXPORT const SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(
2793 OPENSSL_EXPORT void SSL_CTX_set_psk_client_callback(
2802 OPENSSL_EXPORT void SSL_set_psk_client_callback(
2816 OPENSSL_EXPORT void SSL_CTX_set_psk_server_callback(
2825 OPENSSL_EXPORT void SSL_set_psk_server_callback(
2834 OPENSSL_EXPORT int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx,
2840 OPENSSL_EXPORT int SSL_use_psk_identity_hint(SSL *ssl,
2845 OPENSSL_EXPORT const char *SSL_get_psk_identity_hint(const SSL *ssl);
2849 OPENSSL_EXPORT const char *SSL_get_psk_identity(const SSL *ssl);
2907 OPENSSL_EXPORT const char *SSL_alert_type_string_long(int value);
2911 OPENSSL_EXPORT const char *SSL_alert_desc_string_long(int value);
2921 OPENSSL_EXPORT int SSL_send_fatal_alert(SSL *ssl, uint8_t alert);
2928 OPENSSL_EXPORT int SSL_set_ex_data(SSL *ssl, int idx, void *data);
2929 OPENSSL_EXPORT void *SSL_get_ex_data(const SSL *ssl, int idx);
2930 OPENSSL_EXPORT int SSL_get_ex_new_index(long argl, void *argp,
2935 OPENSSL_EXPORT int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx,
2937 OPENSSL_EXPORT void *SSL_SESSION_get_ex_data(const SSL_SESSION *session,
2939 OPENSSL_EXPORT int SSL_SESSION_get_ex_new_index(long argl, void *argp,
2944 OPENSSL_EXPORT int SSL_CTX_set_ex_data(SSL_CTX *ctx, int idx, void *data);
2945 OPENSSL_EXPORT void *SSL_CTX_get_ex_data(const SSL_CTX *ctx, int idx);
2946 OPENSSL_EXPORT int SSL_CTX_get_ex_new_index(long argl, void *argp,
2960 OPENSSL_EXPORT int SSL_get_ivs(const SSL *ssl, const uint8_t **out_read_iv,
2965 OPENSSL_EXPORT size_t SSL_get_key_block_len(const SSL *ssl);
2969 OPENSSL_EXPORT int SSL_generate_key_block(const SSL *ssl, uint8_t *out,
2976 OPENSSL_EXPORT uint64_t SSL_get_read_sequence(const SSL *ssl);
2981 OPENSSL_EXPORT uint64_t SSL_get_write_sequence(const SSL *ssl);
2989 OPENSSL_EXPORT void SSL_get_structure_sizes(size_t *ssl_size,
3010 OPENSSL_EXPORT void SSL_CTX_set_msg_callback(
3016 OPENSSL_EXPORT void SSL_CTX_set_msg_callback_arg(SSL_CTX *ctx, void *arg);
3020 OPENSSL_EXPORT void SSL_set_msg_callback(
3025 OPENSSL_EXPORT void SSL_set_msg_callback_arg(SSL *ssl, void *arg);
3034 OPENSSL_EXPORT void SSL_CTX_set_keylog_callback(
3039 OPENSSL_EXPORT void (*SSL_CTX_get_keylog_callback(const SSL_CTX *ctx))(
3046 OPENSSL_EXPORT void SSL_CTX_set_current_time_cb(
3069 OPENSSL_EXPORT void SSL_set_renegotiate_mode(SSL *ssl,
3074 OPENSSL_EXPORT int SSL_renegotiate_pending(SSL *ssl);
3078 OPENSSL_EXPORT int SSL_total_renegotiations(const SSL *ssl);
3095 OPENSSL_EXPORT void SSL_CTX_set_early_data_enabled(SSL_CTX *ctx, int enabled);
3099 OPENSSL_EXPORT int SSL_early_data_accepted(const SSL *ssl);
3107 OPENSSL_EXPORT size_t SSL_CTX_get_max_cert_list(const SSL_CTX *ctx);
3112 OPENSSL_EXPORT void SSL_CTX_set_max_cert_list(SSL_CTX *ctx,
3117 OPENSSL_EXPORT size_t SSL_get_max_cert_list(const SSL *ssl);
3122 OPENSSL_EXPORT void SSL_set_max_cert_list(SSL *ssl, size_t max_cert_list);
3128 OPENSSL_EXPORT int SSL_CTX_set_max_send_fragment(SSL_CTX *ctx,
3135 OPENSSL_EXPORT int SSL_set_max_send_fragment(SSL *ssl,
3140 OPENSSL_EXPORT uint64_t SSL_get_v2clienthello_count(void);
3182 OPENSSL_EXPORT int SSL_early_callback_ctx_extension_get(
3198 OPENSSL_EXPORT void SSL_CTX_set_select_certificate_cb(
3205 OPENSSL_EXPORT void SSL_CTX_set_dos_protection_cb(
3265 OPENSSL_EXPORT void SSL_CTX_set_info_callback(
3270 OPENSSL_EXPORT void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,
3276 OPENSSL_EXPORT void SSL_set_info_callback(
3280 OPENSSL_EXPORT void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,
3286 OPENSSL_EXPORT const char *SSL_state_string_long(const SSL *ssl);
3294 OPENSSL_EXPORT int SSL_get_shutdown(const SSL *ssl);
3298 OPENSSL_EXPORT uint16_t SSL_get_peer_signature_algorithm(const SSL *ssl);
3303 OPENSSL_EXPORT size_t SSL_get_client_random(const SSL *ssl, uint8_t *out,
3309 OPENSSL_EXPORT size_t SSL_get_server_random(const SSL *ssl, uint8_t *out,
3314 OPENSSL_EXPORT const SSL_CIPHER *SSL_get_pending_cipher(const SSL *ssl);
3321 OPENSSL_EXPORT void SSL_set_retain_only_sha256_of_client_certs(SSL *ssl,
3329 OPENSSL_EXPORT void SSL_CTX_set_retain_only_sha256_of_client_certs(SSL_CTX *ctx,
3334 OPENSSL_EXPORT void SSL_CTX_set_grease_enabled(SSL_CTX *ctx, int enabled);
3338 OPENSSL_EXPORT size_t SSL_max_seal_overhead(const SSL *ssl);
3343 OPENSSL_EXPORT int32_t SSL_get_ticket_age_skew(const SSL *ssl);
3349 OPENSSL_EXPORT int SSL_library_init(void);
3359 OPENSSL_EXPORT const char *SSL_CIPHER_description(const SSL_CIPHER *cipher,
3363 OPENSSL_EXPORT const char *SSL_CIPHER_get_version(const SSL_CIPHER *cipher);
3368 OPENSSL_EXPORT COMP_METHOD *SSL_COMP_get_compression_methods(void);
3371 OPENSSL_EXPORT int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);
3374 OPENSSL_EXPORT const char *SSL_COMP_get_name(const COMP_METHOD *comp);
3377 OPENSSL_EXPORT void SSL_COMP_free_compression_methods(void);
3380 OPENSSL_EXPORT const SSL_METHOD *SSLv23_method(void);
3386 OPENSSL_EXPORT const SSL_METHOD *SSLv3_method(void);
3387 OPENSSL_EXPORT const SSL_METHOD *TLSv1_method(void);
3388 OPENSSL_EXPORT const SSL_METHOD *TLSv1_1_method(void);
3389 OPENSSL_EXPORT const SSL_METHOD *TLSv1_2_method(void);
3390 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_method(void);
3391 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_2_method(void);
3395 OPENSSL_EXPORT const SSL_METHOD *TLS_server_method(void);
3396 OPENSSL_EXPORT const SSL_METHOD *TLS_client_method(void);
3397 OPENSSL_EXPORT const SSL_METHOD *SSLv23_server_method(void);
3398 OPENSSL_EXPORT const SSL_METHOD *SSLv23_client_method(void);
3399 OPENSSL_EXPORT const SSL_METHOD *SSLv3_server_method(void);
3400 OPENSSL_EXPORT const SSL_METHOD *SSLv3_client_method(void);
3401 OPENSSL_EXPORT const SSL_METHOD *TLSv1_server_method(void);
3402 OPENSSL_EXPORT const SSL_METHOD *TLSv1_client_method(void);
3403 OPENSSL_EXPORT const SSL_METHOD *TLSv1_1_server_method(void);
3404 OPENSSL_EXPORT const SSL_METHOD *TLSv1_1_client_method(void);
3405 OPENSSL_EXPORT const SSL_METHOD *TLSv1_2_server_method(void);
3406 OPENSSL_EXPORT const SSL_METHOD *TLSv1_2_client_method(void);
3407 OPENSSL_EXPORT const SSL_METHOD *DTLS_server_method(void);
3408 OPENSSL_EXPORT const SSL_METHOD *DTLS_client_method(void);
3409 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_server_method(void);
3410 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_client_method(void);
3411 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_2_server_method(void);
3412 OPENSSL_EXPORT const SSL_METHOD *DTLSv1_2_client_method(void);
3419 OPENSSL_EXPORT int SSL_clear(SSL *ssl);
3422 OPENSSL_EXPORT void SSL_CTX_set_tmp_rsa_callback(
3426 OPENSSL_EXPORT void SSL_set_tmp_rsa_callback(SSL *ssl,
3431 OPENSSL_EXPORT int SSL_CTX_sess_connect(const SSL_CTX *ctx);
3434 OPENSSL_EXPORT int SSL_CTX_sess_connect_good(const SSL_CTX *ctx);
3437 OPENSSL_EXPORT int SSL_CTX_sess_connect_renegotiate(const SSL_CTX *ctx);
3440 OPENSSL_EXPORT int SSL_CTX_sess_accept(const SSL_CTX *ctx);
3443 OPENSSL_EXPORT int SSL_CTX_sess_accept_renegotiate(const SSL_CTX *ctx);
3446 OPENSSL_EXPORT int SSL_CTX_sess_accept_good(const SSL_CTX *ctx);
3449 OPENSSL_EXPORT int SSL_CTX_sess_hits(const SSL_CTX *ctx);
3452 OPENSSL_EXPORT int SSL_CTX_sess_cb_hits(const SSL_CTX *ctx);
3455 OPENSSL_EXPORT int SSL_CTX_sess_misses(const SSL_CTX *ctx);
3458 OPENSSL_EXPORT int SSL_CTX_sess_timeouts(const SSL_CTX *ctx);
3461 OPENSSL_EXPORT int SSL_CTX_sess_cache_full(const SSL_CTX *ctx);
3464 OPENSSL_EXPORT int SSL_cutthrough_complete(const SSL *s);
3467 OPENSSL_EXPORT int SSL_num_renegotiations(const SSL *ssl);
3470 OPENSSL_EXPORT int SSL_CTX_need_tmp_RSA(const SSL_CTX *ctx);
3473 OPENSSL_EXPORT int SSL_need_tmp_RSA(const SSL *ssl);
3476 OPENSSL_EXPORT int SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, const RSA *rsa);
3479 OPENSSL_EXPORT int SSL_set_tmp_rsa(SSL *ssl, const RSA *rsa);
3482 OPENSSL_EXPORT int SSL_CTX_get_read_ahead(const SSL_CTX *ctx);
3485 OPENSSL_EXPORT void SSL_CTX_set_read_ahead(SSL_CTX *ctx, int yes);
3488 OPENSSL_EXPORT int SSL_get_read_ahead(const SSL *s);
3491 OPENSSL_EXPORT void SSL_set_read_ahead(SSL *s, int yes);
3494 OPENSSL_EXPORT int SSL_renegotiate(SSL *ssl);
3497 OPENSSL_EXPORT void SSL_set_state(SSL *ssl, int state);
3501 OPENSSL_EXPORT char *SSL_get_shared_ciphers(const SSL *ssl, char *buf, int len);
3512 OPENSSL_EXPORT int i2d_SSL_SESSION(SSL_SESSION *in, uint8_t **pp);
3522 OPENSSL_EXPORT SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const uint8_t **pp,
3527 OPENSSL_EXPORT int i2d_SSL_SESSION_bio(BIO *bio, const SSL_SESSION *session);
3532 OPENSSL_EXPORT SSL_SESSION *d2i_SSL_SESSION_bio(BIO *bio, SSL_SESSION **out);
3535 OPENSSL_EXPORT void ERR_load_SSL_strings(void);
3538 OPENSSL_EXPORT void SSL_load_error_strings(void);
3545 OPENSSL_EXPORT int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx,
3553 OPENSSL_EXPORT int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);
3556 OPENSSL_EXPORT const COMP_METHOD *SSL_get_current_compression(SSL *s);
3559 OPENSSL_EXPORT const COMP_METHOD *SSL_get_current_expansion(SSL *s);
3562 OPENSSL_EXPORT int *SSL_get_server_tmp_key(SSL *ssl, EVP_PKEY **out_key);
3632 OPENSSL_EXPORT int SSL_cache_hit(SSL *ssl);
3635 OPENSSL_EXPORT long SSL_get_default_timeout(const SSL *ssl);
3639 OPENSSL_EXPORT const char *SSL_get_version(const SSL *ssl);
3643 OPENSSL_EXPORT const char *SSL_get_cipher_list(const SSL *ssl, int n);
3659 OPENSSL_EXPORT void SSL_CTX_set_client_cert_cb(
3675 OPENSSL_EXPORT int SSL_want(const SSL *ssl);
3685 OPENSSL_EXPORT size_t SSL_get_finished(const SSL *ssl, void *buf, size_t count);
3693 OPENSSL_EXPORT size_t SSL_get_peer_finished(const SSL *ssl, void *buf,
3698 OPENSSL_EXPORT const char *SSL_alert_type_string(int value);
3702 OPENSSL_EXPORT const char *SSL_alert_desc_string(int value);
3752 OPENSSL_EXPORT int SSL_state(const SSL *ssl);
3759 OPENSSL_EXPORT const char *SSL_state_string(const SSL *ssl);
3771 OPENSSL_EXPORT void SSL_set_shutdown(SSL *ssl, int mode);
3775 OPENSSL_EXPORT int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key);
3779 OPENSSL_EXPORT int SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ec_key);
3785 OPENSSL_EXPORT int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *out,
3796 OPENSSL_EXPORT int SSL_set_private_key_digest_prefs(SSL *ssl,
3804 OPENSSL_EXPORT void SSL_set_verify_result(SSL *ssl, long result);
3807 OPENSSL_EXPORT int SSL_CTX_set_min_version(SSL_CTX *ctx, uint16_t version);
3810 OPENSSL_EXPORT int SSL_CTX_set_max_version(SSL_CTX *ctx, uint16_t version);
3813 OPENSSL_EXPORT int SSL_set_min_version(SSL *ssl, uint16_t version);
3816 OPENSSL_EXPORT int SSL_set_max_version(SSL *ssl, uint16_t version);
3819 OPENSSL_EXPORT int SSL_CTX_enable_tls_channel_id(SSL_CTX *ctx);
3822 OPENSSL_EXPORT int SSL_enable_tls_channel_id(SSL *ssl);
3829 OPENSSL_EXPORT const BIO_METHOD *BIO_f_ssl(void);
3835 OPENSSL_EXPORT long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership);