Lines Matching refs:SSL
184 * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always
229 typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,
231 typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,
262 typedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type,
266 typedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type,
269 typedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type,
274 typedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type,
281 typedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type,
286 typedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type,
320 * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in
322 * workaround is not needed. Unfortunately some broken SSL/TLS
579 * Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they
584 unsigned long SSL_get_options(const SSL *s);
586 unsigned long SSL_clear_options(SSL *s, unsigned long op);
588 unsigned long SSL_set_options(SSL *s, unsigned long op);
596 # define SSL_clear_mode(ssl,op) \
597 SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)
598 # define SSL_set_mode(ssl,op) \
599 SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
600 # define SSL_get_mode(ssl) \
601 SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
602 # define SSL_set_mtu(ssl, mtu) \
603 SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)
604 # define DTLS_set_link_mtu(ssl, mtu) \
605 SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)
606 # define DTLS_get_link_min_mtu(ssl) \
607 SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL)
609 # define SSL_get_secure_renegotiation_support(ssl) \
610 SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)
613 # define SSL_heartbeat(ssl) \
614 SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL)
629 size_t len, SSL *ssl, void *arg));
630 void SSL_set_msg_callback(SSL *ssl,
633 size_t len, SSL *ssl, void *arg));
635 # define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))
643 __owur int SSL_SRP_CTX_init(SSL *s);
645 int SSL_SRP_CTX_free(SSL *ctx);
647 __owur int SSL_srp_server_param_with_username(SSL *s, int *ad);
648 __owur int SRP_Calc_A_param(SSL *s);
658 * This callback type is used inside SSL_CTX, SSL, and in the functions that
659 * set them. It is used to override the generation of SSL/TLS session IDs in
662 * otherwise the SSL handshake will fail with an error - callbacks can do
663 * this using the 'ssl' value they're passed by;
664 * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in
669 typedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id,
710 int (*new_session_cb) (struct ssl_st *ssl,
712 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
722 *ssl,
726 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
730 void (*cb) (const SSL *ssl, int type, int val));
731 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,
734 int (*client_cert_cb) (SSL *ssl, X509 **x509,
736 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,
742 int (*app_gen_cookie_cb) (SSL *ssl,
748 int (*app_verify_cookie_cb) (SSL *ssl,
756 int (*gen_stateless_cookie_cb) (SSL *ssl,
761 int (*verify_stateless_cookie_cb) (SSL *ssl,
766 typedef int (*SSL_CTX_npn_advertised_cb_func)(SSL *ssl,
775 typedef int (*SSL_CTX_npn_select_cb_func)(SSL *s,
786 void SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
802 __owur int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,
804 typedef int (*SSL_CTX_alpn_select_cb_func)(SSL *ssl,
813 void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,
823 typedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,
830 void SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);
832 typedef unsigned int (*SSL_psk_server_cb_func)(SSL *ssl,
837 void SSL_set_psk_server_callback(SSL *ssl, SSL_psk_server_cb_func cb);
840 __owur int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);
841 const char *SSL_get_psk_identity_hint(const SSL *s);
842 const char *SSL_get_psk_identity(const SSL *s);
845 typedef int (*SSL_psk_find_session_cb_func)(SSL *ssl,
849 typedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,
854 void SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb);
857 void SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);
916 typedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);
933 int SSL_set_max_early_data(SSL *s, uint32_t max_early_data);
934 uint32_t SSL_get_max_early_data(const SSL *s);
937 int SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data);
938 uint32_t SSL_get_recv_max_early_data(const SSL *s);
970 DEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))
1074 int SSL_in_init(const SSL *s);
1075 int SSL_in_before(const SSL *s);
1076 int SSL_is_init_finished(const SSL *s);
1079 * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you
1092 size_t SSL_get_finished(const SSL *s, void *buf, size_t count);
1093 size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);
1313 # define DTLSv1_get_timeout(ssl, arg) \
1314 SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg))
1315 # define DTLSv1_handle_timeout(ssl) \
1316 SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)
1317 # define SSL_num_renegotiations(ssl) \
1318 SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)
1319 # define SSL_clear_num_renegotiations(ssl) \
1320 SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)
1321 # define SSL_total_renegotiations(ssl) \
1322 SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)
1331 # define SSL_set_tmp_dh(ssl,dh) \
1332 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))
1333 # define SSL_set_tmp_ecdh(ssl,ecdh) \
1334 SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))
1494 # define SSL_need_tmp_RSA(ssl) 0
1495 # define SSL_set_tmp_rsa(ssl,rsa) 1
1503 # define SSL_set_tmp_rsa_callback(ssl, cb) while(0) (cb)(NULL, 0, 0)
1521 __owur int SSL_want(const SSL *s);
1522 __owur int SSL_clear(SSL *s);
1526 __owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
1527 __owur const SSL_CIPHER *SSL_get_pending_cipher(const SSL *s);
1540 __owur int SSL_get_fd(const SSL *s);
1541 __owur int SSL_get_rfd(const SSL *s);
1542 __owur int SSL_get_wfd(const SSL *s);
1543 __owur const char *SSL_get_cipher_list(const SSL *s, int n);
1544 __owur char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size);
1545 __owur int SSL_get_read_ahead(const SSL *s);
1546 __owur int SSL_pending(const SSL *s);
1547 __owur int SSL_has_pending(const SSL *s);
1549 __owur int SSL_set_fd(SSL *s, int fd);
1550 __owur int SSL_set_rfd(SSL *s, int fd);
1551 __owur int SSL_set_wfd(SSL *s, int fd);
1553 void SSL_set0_rbio(SSL *s, BIO *rbio);
1554 void SSL_set0_wbio(SSL *s, BIO *wbio);
1555 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
1556 __owur BIO *SSL_get_rbio(const SSL *s);
1557 __owur BIO *SSL_get_wbio(const SSL *s);
1558 __owur int SSL_set_cipher_list(SSL *s, const char *str);
1560 __owur int SSL_set_ciphersuites(SSL *s, const char *str);
1561 void SSL_set_read_ahead(SSL *s, int yes);
1562 __owur int SSL_get_verify_mode(const SSL *s);
1563 __owur int SSL_get_verify_depth(const SSL *s);
1564 __owur SSL_verify_cb SSL_get_verify_callback(const SSL *s);
1565 void SSL_set_verify(SSL *s, int mode, SSL_verify_cb callback);
1566 void SSL_set_verify_depth(SSL *s, int depth);
1567 void SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);
1569 __owur int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
1570 __owur int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d,
1573 __owur int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
1574 __owur int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,
1576 __owur int SSL_use_certificate(SSL *ssl, X509 *x);
1577 __owur int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
1578 __owur int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,
1595 __owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
1598 __owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
1599 __owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
1611 __owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);
1624 __owur const char *SSL_state_string(const SSL *s);
1625 __owur const char *SSL_rstate_string(const SSL *s);
1626 __owur const char *SSL_state_string_long(const SSL *s);
1627 __owur const char *SSL_rstate_string_long(const SSL *s);
1652 __owur int SSL_copy_session_id(SSL *to, const SSL *from);
1676 __owur int SSL_set_session(SSL *to, SSL_SESSION *session);
1680 __owur int SSL_set_generate_session_id(SSL *s, GEN_SESSION_CB cb);
1681 __owur int SSL_has_matching_session_id(const SSL *s,
1688 __owur X509 *SSL_get_peer_certificate(const SSL *s);
1691 __owur STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
1701 void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),
1721 void SSL_set_default_passwd_cb(SSL *s, pem_password_cb *cb);
1722 void SSL_set_default_passwd_cb_userdata(SSL *s, void *u);
1723 pem_password_cb *SSL_get_default_passwd_cb(SSL *s);
1724 void *SSL_get_default_passwd_cb_userdata(SSL *s);
1727 __owur int SSL_check_private_key(const SSL *ctx);
1733 SSL *SSL_new(SSL_CTX *ctx);
1734 int SSL_up_ref(SSL *s);
1735 int SSL_is_dtls(const SSL *s);
1736 __owur int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
1740 __owur int SSL_set_purpose(SSL *ssl, int purpose);
1742 __owur int SSL_set_trust(SSL *ssl, int trust);
1744 __owur int SSL_set1_host(SSL *s, const char *hostname);
1745 __owur int SSL_add1_host(SSL *s, const char *hostname);
1746 __owur const char *SSL_get0_peername(SSL *s);
1747 void SSL_set_hostflags(SSL *s, unsigned int flags);
1752 __owur int SSL_dane_enable(SSL *s, const char *basedomain);
1753 __owur int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,
1755 __owur int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki);
1756 __owur int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,
1763 SSL_DANE *SSL_get0_dane(SSL *ssl);
1769 unsigned long SSL_dane_set_flags(SSL *ssl, unsigned long flags);
1770 unsigned long SSL_dane_clear_flags(SSL *ssl, unsigned long flags);
1773 __owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);
1776 __owur X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
1783 SSL *, void *));
1785 int (*cb) (SSL *, void *));
1787 int (*cb) (SSL *, int *, void *));
1790 int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,
1792 int SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,
1795 __owur BIGNUM *SSL_get_srp_g(SSL *s);
1796 __owur BIGNUM *SSL_get_srp_N(SSL *s);
1798 __owur char *SSL_get_srp_username(SSL *s);
1799 __owur char *SSL_get_srp_userinfo(SSL *s);
1810 typedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg);
1813 int SSL_client_hello_isv2(SSL *s);
1814 unsigned int SSL_client_hello_get0_legacy_version(SSL *s);
1815 size_t SSL_client_hello_get0_random(SSL *s, const unsigned char **out);
1816 size_t SSL_client_hello_get0_session_id(SSL *s, const unsigned char **out);
1817 size_t SSL_client_hello_get0_ciphers(SSL *s, const unsigned char **out);
1818 size_t SSL_client_hello_get0_compression_methods(SSL *s,
1820 int SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen);
1821 int SSL_client_hello_get0_ext(SSL *s, unsigned int type,
1824 void SSL_certs_clear(SSL *s);
1825 void SSL_free(SSL *ssl);
1830 __owur int SSL_waiting_for_async(SSL *s);
1831 __owur int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds);
1832 __owur int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd,
1836 __owur int SSL_accept(SSL *ssl);
1837 __owur int SSL_stateless(SSL *s);
1838 __owur int SSL_connect(SSL *ssl);
1839 __owur int SSL_read(SSL *ssl, void *buf, int num);
1840 __owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
1846 __owur int SSL_read_early_data(SSL *s, void *buf, size_t num,
1848 __owur int SSL_peek(SSL *ssl, void *buf, int num);
1849 __owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);
1850 __owur int SSL_write(SSL *ssl, const void *buf, int num);
1851 __owur int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written);
1852 __owur int SSL_write_early_data(SSL *s, const void *buf, size_t num,
1854 long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);
1855 long SSL_callback_ctrl(SSL *, int, void (*)(void));
1863 __owur int SSL_get_early_data_status(const SSL *s);
1865 __owur int SSL_get_error(const SSL *s, int ret_code);
1866 __owur const char *SSL_get_version(const SSL *s);
1868 /* This sets the 'default' SSL version that SSL_new() will create */
1881 /* Negotiate highest available SSL/TLS version */
1921 __owur size_t DTLS_get_data_mtu(const SSL *s);
1923 __owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);
1925 __owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const SSL *s);
1926 __owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);
1928 __owur int SSL_do_handshake(SSL *s);
1929 int SSL_key_update(SSL *s, int updatetype);
1930 int SSL_get_key_update_type(const SSL *s);
1931 int SSL_renegotiate(SSL *s);
1932 int SSL_renegotiate_abbreviated(SSL *s);
1933 __owur int SSL_renegotiate_pending(const SSL *s);
1934 int SSL_shutdown(SSL *s);
1935 __owur int SSL_verify_client_post_handshake(SSL *s);
1937 void SSL_set_post_handshake_auth(SSL *s, int val);
1940 __owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);
1941 __owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
1947 void SSL_set0_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
1949 __owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const SSL *s);
1951 __owur int SSL_add1_to_CA_list(SSL *ssl, const X509 *x);
1953 __owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const SSL *s);
1955 void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
1957 __owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
1959 __owur int SSL_add_client_CA(SSL *ssl, X509 *x);
1962 void SSL_set_connect_state(SSL *s);
1963 void SSL_set_accept_state(SSL *s);
1965 __owur long SSL_get_default_timeout(const SSL *s);
1974 __owur SSL *SSL_dup(SSL *ssl);
1976 __owur X509 *SSL_get_certificate(const SSL *ssl);
1980 struct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);
1987 void SSL_set_quiet_shutdown(SSL *ssl, int mode);
1988 __owur int SSL_get_quiet_shutdown(const SSL *ssl);
1989 void SSL_set_shutdown(SSL *ssl, int mode);
1990 __owur int SSL_get_shutdown(const SSL *ssl);
1991 __owur int SSL_version(const SSL *ssl);
1992 __owur int SSL_client_version(const SSL *s);
1999 __owur SSL_SESSION *SSL_get_session(const SSL *ssl);
2000 __owur SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
2001 __owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
2002 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2003 void SSL_set_info_callback(SSL *ssl,
2004 void (*cb) (const SSL *ssl, int type, int val));
2005 void (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,
2007 __owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);
2009 void SSL_set_verify_result(SSL *ssl, long v);
2010 __owur long SSL_get_verify_result(const SSL *ssl);
2011 __owur STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s);
2013 __owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,
2015 __owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,
2025 __owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);
2026 void *SSL_get_ex_data(const SSL *ssl, int idx);
2033 __owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);
2034 void *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);
2057 # define SSL_get_max_cert_list(ssl) \
2058 SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)
2059 # define SSL_set_max_cert_list(ssl,m) \
2060 SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)
2064 # define SSL_set_max_send_fragment(ssl,m) \
2065 SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)
2068 # define SSL_set_split_send_fragment(ssl,m) \
2069 SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)
2072 # define SSL_set_max_pipelines(ssl,m) \
2073 SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)
2076 void SSL_set_default_read_buffer_len(SSL *s, size_t len);
2081 DH *(*dh) (SSL *ssl, int is_export,
2083 void SSL_set_tmp_dh_callback(SSL *ssl,
2084 DH *(*dh) (SSL *ssl, int is_export,
2088 __owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);
2089 __owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);
2101 const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);
2104 int SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,
2109 __owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);
2111 __owur int SSL_set_session_ticket_ext_cb(SSL *s,
2116 __owur int SSL_set_session_secret_cb(SSL *s,
2121 int (*cb) (SSL *ssl,
2125 void SSL_set_not_resumable_session_callback(SSL *ssl,
2126 int (*cb) (SSL *ssl,
2130 size_t (*cb) (SSL *ssl, int type,
2136 SSL *ssl,
2137 size_t (*cb) (SSL *ssl, int type,
2139 void SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);
2140 void *SSL_get_record_padding_callback_arg(const SSL *ssl);
2141 int SSL_set_block_padding(SSL *ssl, size_t block_size);
2143 int SSL_set_num_tickets(SSL *s, size_t num_tickets);
2144 size_t SSL_get_num_tickets(const SSL *s);
2152 __owur int SSL_session_reused(const SSL *s);
2153 __owur int SSL_is_server(const SSL *s);
2163 void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
2171 int SSL_config(SSL *s, const char *name);
2176 const void *buf, size_t len, SSL *ssl, void *arg);
2180 int DTLSv1_listen(SSL *s, BIO_ADDR *client);
2206 int SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,
2217 * The validation type enumerates the available behaviours of the built-in SSL
2234 int SSL_enable_ct(SSL *s, int validation_mode);
2240 int SSL_ct_is_enabled(const SSL *s);
2244 const STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);
2265 * Sets the CT log list used by all SSL connections created from this SSL_CTX.
2271 * Gets the CT log list used by all SSL connections created from this SSL_CTX.
2312 /* SSL/TLS version */
2339 void SSL_set_security_level(SSL *s, int level);
2340 __owur int SSL_get_security_level(const SSL *s);
2341 void SSL_set_security_callback(SSL *s,
2342 int (*cb) (const SSL *s, const SSL_CTX *ctx,
2345 int (*SSL_get_security_callback(const SSL *s)) (const SSL *s,
2349 void SSL_set0_security_ex_data(SSL *s, void *ex);
2350 __owur void *SSL_get0_security_ex_data(const SSL *s);
2355 int (*cb) (const SSL *s, const SSL_CTX *ctx,
2358 int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,
2380 __owur int SSL_free_buffers(SSL *ssl);
2381 __owur int SSL_alloc_buffers(SSL *ssl);
2417 typedef int (*SSL_CTX_generate_session_ticket_fn)(SSL *s, void *arg);
2418 typedef SSL_TICKET_RETURN (*SSL_CTX_decrypt_session_ticket_fn)(SSL *s, SSL_SESSION *ss,
2432 typedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);
2434 void DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);
2437 typedef int (*SSL_allow_early_data_cb_fn)(SSL *s, void *arg);
2441 void SSL_set_allow_early_data_cb(SSL *s,