Lines Matching refs:SSL_CTX
207 * function parameters used to prototype callbacks in SSL_CTX.
583 unsigned long SSL_CTX_get_options(const SSL_CTX *ctx);
585 unsigned long SSL_CTX_clear_options(SSL_CTX *ctx, unsigned long op);
587 unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);
626 void SSL_CTX_set_msg_callback(SSL_CTX *ctx,
644 __owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);
646 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);
658 * This callback type is used inside SSL_CTX, SSL, and in the functions that
683 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
709 void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,
712 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
714 void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,
718 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx,
720 void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
726 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,
729 void SSL_CTX_set_info_callback(SSL_CTX *ctx,
731 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,
733 void SSL_CTX_set_client_cert_cb(SSL_CTX *ctx,
736 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,
739 __owur int SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e);
741 void SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,
747 void SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,
755 SSL_CTX *ctx,
760 SSL_CTX *ctx,
770 void SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s,
781 void SSL_CTX_set_next_proto_select_cb(SSL_CTX *s,
800 __owur int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,
810 void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,
829 void SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);
836 void SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, SSL_psk_server_cb_func cb);
839 __owur int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint);
855 void SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx,
858 void SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,
863 __owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx,
866 __owur int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx,
874 __owur int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx,
882 __owur int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type,
923 void SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);
929 SSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);
931 int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);
932 uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);
935 int SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data);
936 uint32_t SSL_CTX_get_recv_max_early_data(const SSL_CTX *ctx);
1506 __owur BIO *BIO_new_ssl(SSL_CTX *ctx, int client);
1507 __owur BIO *BIO_new_ssl_connect(SSL_CTX *ctx);
1508 __owur BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);
1512 __owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
1513 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
1514 int SSL_CTX_up_ref(SSL_CTX *ctx);
1515 void SSL_CTX_free(SSL_CTX *);
1516 __owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);
1517 __owur long SSL_CTX_get_timeout(const SSL_CTX *ctx);
1518 __owur X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);
1519 void SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);
1520 void SSL_CTX_set1_cert_store(SSL_CTX *, X509_STORE *);
1524 void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
1559 __owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);
1587 __owur int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo,
1589 __owur int SSL_CTX_use_serverinfo_ex(SSL_CTX *ctx, unsigned int version,
1592 __owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);
1602 __owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,
1605 __owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
1607 __owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
1610 __owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);
1677 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);
1678 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);
1679 __owur int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);
1693 __owur int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
1694 __owur int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
1695 __owur SSL_verify_cb SSL_CTX_get_verify_callback(const SSL_CTX *ctx);
1696 void SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb callback);
1697 void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
1698 void SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx,
1701 void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),
1704 __owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
1705 __owur int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d,
1708 __owur int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
1709 __owur int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,
1711 __owur int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
1712 __owur int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,
1714 __owur int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,
1717 void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);
1718 void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
1719 pem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx);
1720 void *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx);
1726 __owur int SSL_CTX_check_private_key(const SSL_CTX *ctx);
1729 __owur int SSL_CTX_set_session_id_context(SSL_CTX *ctx,
1733 SSL *SSL_new(SSL_CTX *ctx);
1739 __owur int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);
1741 __owur int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);
1749 __owur int SSL_CTX_dane_enable(SSL_CTX *ctx);
1750 __owur int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md,
1767 unsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags);
1768 unsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags);
1772 __owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);
1775 __owur X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
1779 int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);
1780 int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);
1781 int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);
1782 int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,
1784 int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,
1786 int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,
1788 int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);
1811 void SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,
1856 long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
1857 long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));
1869 __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);
1924 __owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);
1936 void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);
1939 __owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);
1948 void SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);
1950 __owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx);
1952 __owur int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x);
1956 void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);
1958 __owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s);
1960 __owur int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);
1982 __owur X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);
1983 __owur EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);
1985 void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);
1986 __owur int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);
1993 __owur int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
1994 __owur int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx);
1995 __owur int SSL_CTX_set_default_verify_file(SSL_CTX *ctx);
1996 __owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
2001 __owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
2002 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
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);
2075 void SSL_CTX_set_default_read_buffer_len(SSL_CTX *ctx, size_t len);
2080 void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
2120 void SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx,
2129 void SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,
2132 void SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);
2133 void *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);
2134 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);
2145 int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);
2146 size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);
2164 void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);
2172 int SSL_CTX_config(SSL_CTX *ctx, const char *name);
2208 int SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,
2235 int SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode);
2241 int SSL_CTX_ct_is_enabled(const SSL_CTX *ctx);
2253 int SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx);
2262 int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path);
2265 * Sets the CT log list used by all SSL connections created from this SSL_CTX.
2266 * Ownership of the CTLOG_STORE is transferred to the SSL_CTX.
2268 void SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs);
2271 * Gets the CT log list used by all SSL connections created from this SSL_CTX.
2277 const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx);
2342 int (*cb) (const SSL *s, const SSL_CTX *ctx,
2346 const SSL_CTX *ctx, int op,
2352 void SSL_CTX_set_security_level(SSL_CTX *ctx, int level);
2353 __owur int SSL_CTX_get_security_level(const SSL_CTX *ctx);
2354 void SSL_CTX_set_security_callback(SSL_CTX *ctx,
2355 int (*cb) (const SSL *s, const SSL_CTX *ctx,
2358 int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,
2359 const SSL_CTX *ctx,
2364 void SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex);
2365 __owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);
2423 int SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,
2438 void SSL_CTX_set_allow_early_data_cb(SSL_CTX *ctx,