Lines Matching refs:SSL_CTX
195 OPENSSL_EXPORT SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
198 OPENSSL_EXPORT void SSL_CTX_free(SSL_CTX *ctx);
213 OPENSSL_EXPORT SSL *SSL_new(SSL_CTX *ctx);
221 OPENSSL_EXPORT SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
369 OPENSSL_EXPORT void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);
373 OPENSSL_EXPORT int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);
521 OPENSSL_EXPORT void SSL_CTX_set_min_version(SSL_CTX *ctx, uint16_t version);
525 OPENSSL_EXPORT void SSL_CTX_set_max_version(SSL_CTX *ctx, uint16_t version);
565 OPENSSL_EXPORT uint32_t SSL_CTX_set_options(SSL_CTX *ctx, uint32_t options);
570 OPENSSL_EXPORT uint32_t SSL_CTX_clear_options(SSL_CTX *ctx, uint32_t options);
574 OPENSSL_EXPORT uint32_t SSL_CTX_get_options(const SSL_CTX *ctx);
646 OPENSSL_EXPORT uint32_t SSL_CTX_set_mode(SSL_CTX *ctx, uint32_t mode);
651 OPENSSL_EXPORT uint32_t SSL_CTX_clear_mode(SSL_CTX *ctx, uint32_t mode);
655 OPENSSL_EXPORT uint32_t SSL_CTX_get_mode(const SSL_CTX *ctx);
684 OPENSSL_EXPORT int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x509);
692 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
701 OPENSSL_EXPORT int SSL_CTX_set0_chain(SSL_CTX *ctx, STACK_OF(X509) *chain);
706 OPENSSL_EXPORT int SSL_CTX_set1_chain(SSL_CTX *ctx, STACK_OF(X509) *chain);
721 OPENSSL_EXPORT int SSL_CTX_add0_chain_cert(SSL_CTX *ctx, X509 *x509);
726 OPENSSL_EXPORT int SSL_CTX_add1_chain_cert(SSL_CTX *ctx, X509 *x509);
733 OPENSSL_EXPORT int SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509);
742 OPENSSL_EXPORT int SSL_CTX_clear_chain_certs(SSL_CTX *ctx);
745 OPENSSL_EXPORT int SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx);
758 OPENSSL_EXPORT void SSL_CTX_set_cert_cb(SSL_CTX *ctx,
789 OPENSSL_EXPORT int SSL_CTX_check_private_key(const SSL_CTX *ctx);
796 OPENSSL_EXPORT X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);
802 OPENSSL_EXPORT EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);
809 OPENSSL_EXPORT int SSL_CTX_get0_chain_certs(const SSL_CTX *ctx,
813 OPENSSL_EXPORT int SSL_CTX_get_extra_chain_certs(const SSL_CTX *ctx,
829 OPENSSL_EXPORT int SSL_CTX_set_signed_cert_timestamp_list(SSL_CTX *ctx,
836 OPENSSL_EXPORT int SSL_CTX_set_ocsp_response(SSL_CTX *ctx,
853 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
863 OPENSSL_EXPORT int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, size_t der_len,
868 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,
874 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx,
888 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx,
894 OPENSSL_EXPORT int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
899 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
908 OPENSSL_EXPORT int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx,
913 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx,
918 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx,
1191 OPENSSL_EXPORT int SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str);
1197 OPENSSL_EXPORT int SSL_CTX_set_cipher_list_tls10(SSL_CTX *ctx, const char *str);
1203 OPENSSL_EXPORT int SSL_CTX_set_cipher_list_tls11(SSL_CTX *ctx, const char *str);
1390 SSL_CTX *ctx, unsigned extension_value, SSL_custom_ext_add_cb add_cb,
1401 SSL_CTX *ctx, unsigned extension_value, SSL_custom_ext_add_cb add_cb,
1549 OPENSSL_EXPORT int SSL_CTX_set_session_cache_mode(SSL_CTX *ctx, int mode);
1553 OPENSSL_EXPORT int SSL_CTX_get_session_cache_mode(const SSL_CTX *ctx);
1579 OPENSSL_EXPORT long SSL_CTX_set_timeout(SSL_CTX *ctx, long timeout);
1583 OPENSSL_EXPORT long SSL_CTX_get_timeout(const SSL_CTX *ctx);
1596 OPENSSL_EXPORT int SSL_CTX_set_session_id_context(SSL_CTX *ctx,
1612 OPENSSL_EXPORT unsigned long SSL_CTX_sess_set_cache_size(SSL_CTX *ctx,
1617 OPENSSL_EXPORT unsigned long SSL_CTX_sess_get_cache_size(const SSL_CTX *ctx);
1620 OPENSSL_EXPORT LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
1624 OPENSSL_EXPORT size_t SSL_CTX_sess_number(const SSL_CTX *ctx);
1629 OPENSSL_EXPORT int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);
1633 OPENSSL_EXPORT int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);
1637 OPENSSL_EXPORT void SSL_CTX_flush_sessions(SSL_CTX *ctx, long time);
1658 SSL_CTX *ctx, int (*new_session_cb)(SSL *ssl, SSL_SESSION *session));
1662 OPENSSL_EXPORT int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(
1671 SSL_CTX *ctx,
1672 void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *session));
1676 OPENSSL_EXPORT void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(
1677 SSL_CTX *ctx, SSL_SESSION *session);
1702 SSL_CTX *ctx,
1708 OPENSSL_EXPORT SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(
1735 OPENSSL_EXPORT int SSL_CTX_get_tlsext_ticket_keys(SSL_CTX *ctx, void *out,
1741 OPENSSL_EXPORT int SSL_CTX_set_tlsext_ticket_keys(SSL_CTX *ctx, const void *in,
1772 SSL_CTX *ctx, int (*callback)(SSL *ssl, uint8_t *key_name, uint8_t *iv,
1790 OPENSSL_EXPORT int SSL_CTX_set1_curves(SSL_CTX *ctx, const int *curves,
1817 OPENSSL_EXPORT int SSL_CTX_set_tmp_dh(SSL_CTX *ctx, const DH *dh);
1832 SSL_CTX *ctx, DH *(*callback)(SSL *ssl, int is_export, int keylength));
1899 SSL_CTX *ctx, int mode, int (*callback)(int ok, X509_STORE_CTX *store_ctx));
1914 OPENSSL_EXPORT int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
1922 OPENSSL_EXPORT int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(
1933 OPENSSL_EXPORT void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
1942 OPENSSL_EXPORT int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
1950 OPENSSL_EXPORT int SSL_CTX_set1_param(SSL_CTX *ctx,
1961 OPENSSL_EXPORT X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
1970 OPENSSL_EXPORT int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);
1978 OPENSSL_EXPORT int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);
1989 OPENSSL_EXPORT void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store);
1992 OPENSSL_EXPORT X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx);
1996 OPENSSL_EXPORT int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
2007 OPENSSL_EXPORT int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
2032 SSL_CTX *ctx, int (*callback)(X509_STORE_CTX *store_ctx, void *arg),
2048 OPENSSL_EXPORT void SSL_CTX_enable_signed_cert_timestamps(SSL_CTX *ctx);
2063 OPENSSL_EXPORT void SSL_CTX_enable_ocsp_stapling(SSL_CTX *ctx);
2079 OPENSSL_EXPORT void SSL_CTX_set_client_CA_list(SSL_CTX *ctx,
2094 SSL_CTX_get_client_CA_list(const SSL_CTX *ctx);
2104 OPENSSL_EXPORT int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x509);
2161 SSL_CTX *ctx, int (*callback)(SSL *ssl, int *out_alert, void *arg));
2165 OPENSSL_EXPORT int SSL_CTX_set_tlsext_servername_arg(SSL_CTX *ctx, void *arg);
2187 OPENSSL_EXPORT int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const uint8_t *protos,
2212 SSL_CTX *ctx, int (*cb)(SSL *ssl, const uint8_t **out, uint8_t *out_len,
2240 SSL_CTX *ctx,
2256 SSL_CTX *ctx, int (*cb)(SSL *ssl, uint8_t **out, uint8_t *out_len,
2317 OPENSSL_EXPORT int SSL_CTX_enable_tls_channel_id(SSL_CTX *ctx);
2327 OPENSSL_EXPORT int SSL_CTX_set1_tls_channel_id(SSL_CTX *ctx,
2350 SSL_CTX *ctx, void (*channel_id_cb)(SSL *ssl, EVP_PKEY **out_pkey));
2354 OPENSSL_EXPORT void (*SSL_CTX_get_channel_id_cb(SSL_CTX *ctx))(
2384 OPENSSL_EXPORT int SSL_CTX_set_srtp_profiles(SSL_CTX *ctx,
2431 SSL_CTX *ctx,
2454 SSL_CTX *ctx,
2471 OPENSSL_EXPORT int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx,
2569 OPENSSL_EXPORT int SSL_CTX_set_ex_data(SSL_CTX *ctx, int idx, void *data);
2570 OPENSSL_EXPORT void *SSL_CTX_get_ex_data(const SSL_CTX *ctx, int idx);
2617 SSL_CTX *ctx, void (*cb)(int write_p, int version, int content_type,
2622 OPENSSL_EXPORT void SSL_CTX_set_msg_callback_arg(SSL_CTX *ctx, void *arg);
2641 SSL_CTX *ctx, void (*cb)(const SSL *ssl, const char *line));
2680 OPENSSL_EXPORT size_t SSL_CTX_get_max_cert_list(const SSL_CTX *ctx);
2685 OPENSSL_EXPORT void SSL_CTX_set_max_cert_list(SSL_CTX *ctx,
2700 OPENSSL_EXPORT void SSL_CTX_set_max_send_fragment(SSL_CTX *ctx,
2748 SSL_CTX *ctx, int (*cb)(const struct ssl_early_callback_ctx *));
2754 SSL_CTX *ctx, int (*cb)(const struct ssl_early_callback_ctx *));
2814 SSL_CTX *ctx, void (*cb)(const SSL *ssl, int type, int value));
2818 OPENSSL_EXPORT void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,
2848 OPENSSL_EXPORT SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2940 SSL_CTX *ctx, RSA *(*cb)(SSL *ssl, int is_export, int keylength));
2948 OPENSSL_EXPORT int SSL_CTX_sess_connect(const SSL_CTX *ctx);
2951 OPENSSL_EXPORT int SSL_CTX_sess_connect_good(const SSL_CTX *ctx);
2954 OPENSSL_EXPORT int SSL_CTX_sess_connect_renegotiate(const SSL_CTX *ctx);
2957 OPENSSL_EXPORT int SSL_CTX_sess_accept(const SSL_CTX *ctx);
2960 OPENSSL_EXPORT int SSL_CTX_sess_accept_renegotiate(const SSL_CTX *ctx);
2963 OPENSSL_EXPORT int SSL_CTX_sess_accept_good(const SSL_CTX *ctx);
2966 OPENSSL_EXPORT int SSL_CTX_sess_hits(const SSL_CTX *ctx);
2969 OPENSSL_EXPORT int SSL_CTX_sess_cb_hits(const SSL_CTX *ctx);
2972 OPENSSL_EXPORT int SSL_CTX_sess_misses(const SSL_CTX *ctx);
2975 OPENSSL_EXPORT int SSL_CTX_sess_timeouts(const SSL_CTX *ctx);
2978 OPENSSL_EXPORT int SSL_CTX_sess_cache_full(const SSL_CTX *ctx);
2987 OPENSSL_EXPORT int SSL_CTX_need_tmp_RSA(const SSL_CTX *ctx);
2993 OPENSSL_EXPORT int SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, const RSA *rsa);
2999 OPENSSL_EXPORT int SSL_CTX_get_read_ahead(const SSL_CTX *ctx);
3002 OPENSSL_EXPORT void SSL_CTX_set_read_ahead(SSL_CTX *ctx, int yes);
3058 OPENSSL_EXPORT int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx,
3178 SSL_CTX *ctx,
3183 OPENSSL_EXPORT int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx))(
3300 OPENSSL_EXPORT int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key);
3530 void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *sess);
3816 SSL_CTX *ctx;
3837 SSL_CTX *initial_ctx; /* initial ctx, used to store sessions */