Lines Matching full:ssl_ctx
265 /* SSL_CTX_new returns a newly-allocated |SSL_CTX| with default settings or NULL
266 * on error. An |SSL_CTX| manages shared state and configuration between
268 OPENSSL_EXPORT SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
271 OPENSSL_EXPORT void SSL_CTX_free(SSL_CTX *ctx);
283 OPENSSL_EXPORT SSL *SSL_new(SSL_CTX *ctx);
309 OPENSSL_EXPORT void SSL_CTX_set_min_version(SSL_CTX *ctx, uint16_t version);
313 OPENSSL_EXPORT void SSL_CTX_set_max_version(SSL_CTX *ctx, uint16_t version);
387 OPENSSL_EXPORT uint32_t SSL_CTX_set_options(SSL_CTX *ctx, uint32_t options);
392 OPENSSL_EXPORT uint32_t SSL_CTX_clear_options(SSL_CTX *ctx, uint32_t options);
396 OPENSSL_EXPORT uint32_t SSL_CTX_get_options(const SSL_CTX *ctx);
472 OPENSSL_EXPORT uint32_t SSL_CTX_set_mode(SSL_CTX *ctx, uint32_t mode);
477 OPENSSL_EXPORT uint32_t SSL_CTX_clear_mode(SSL_CTX *ctx, uint32_t mode);
481 OPENSSL_EXPORT uint32_t SSL_CTX_get_mode(const SSL_CTX *ctx);
741 SSL_CTX *ctx, void (*cb)(int write_p, int version, int content_type,
746 OPENSSL_EXPORT void SSL_CTX_set_msg_callback_arg(SSL_CTX *ctx, void *arg);
763 OPENSSL_EXPORT void SSL_CTX_set_keylog_bio(SSL_CTX *ctx, BIO *keylog_bio);
775 /* This callback type is used inside SSL_CTX, SSL, and in the functions that
917 void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *sess);
1097 OPENSSL_EXPORT LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
1101 OPENSSL_EXPORT size_t SSL_CTX_sess_number(const SSL_CTX *ctx);
1104 SSL_CTX *ctx, int (*new_session_cb)(SSL *ssl, SSL_SESSION *sess));
1105 OPENSSL_EXPORT int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl,
1108 SSL_CTX *ctx,
1109 void (*remove_session_cb)(SSL_CTX *ctx, SSL_SESSION *sess));
1110 OPENSSL_EXPORT void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(
1111 SSL_CTX *ctx, SSL_SESSION *sess);
1113 SSL_CTX *ctx,
1116 OPENSSL_EXPORT SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(
1123 OPENSSL_EXPORT void SSL_CTX_set_info_callback(SSL_CTX *ctx,
1126 OPENSSL_EXPORT void (*SSL_CTX_get_info_callback(SSL_CTX *ctx))(const SSL *ssl,
1130 SSL_CTX *ctx,
1132 OPENSSL_EXPORT int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx))(SSL *ssl,
1136 SSL_CTX *ctx, void (*channel_id_cb)(SSL *ssl, EVP_PKEY **pkey));
1137 OPENSSL_EXPORT void (*SSL_CTX_get_channel_id_cb(SSL_CTX *ctx))(SSL *ssl,
1147 OPENSSL_EXPORT void SSL_CTX_enable_signed_cert_timestamps(SSL_CTX *ctx);
1156 OPENSSL_EXPORT void SSL_CTX_enable_ocsp_stapling(SSL_CTX *ctx);
1179 SSL_CTX *s,
1183 SSL_CTX *s, int (*cb)(SSL *ssl, uint8_t **out, uint8_t *outlen,
1205 OPENSSL_EXPORT int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const uint8_t *protos,
1218 SSL_CTX *ctx, int (*cb)(SSL *ssl, const uint8_t **out, uint8_t *outlen,
1240 SSL_CTX *ctx,
1251 SSL_CTX *ctx,
1260 OPENSSL_EXPORT int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx,
1407 SSL_CTX *ctx;
1433 SSL_CTX *initial_ctx; /* initial ctx, used to store sessions */
1452 /* Copied from the SSL_CTX. For a server, means that we'll accept Channel IDs
1704 OPENSSL_EXPORT int SSL_CTX_set_tmp_dh(SSL_CTX *ctx, const DH *dh);
1716 OPENSSL_EXPORT int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key);
1728 OPENSSL_EXPORT int SSL_CTX_enable_tls_channel_id(SSL_CTX *ctx);
1738 OPENSSL_EXPORT int SSL_CTX_set1_tls_channel_id(SSL_CTX *ctx,
1853 OPENSSL_EXPORT int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);
1854 OPENSSL_EXPORT int SSL_CTX_set_cipher_list_tls11(SSL_CTX *, const char *str);
1855 OPENSSL_EXPORT long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);
1856 OPENSSL_EXPORT long SSL_CTX_get_timeout(const SSL_CTX *ctx);
1857 OPENSSL_EXPORT X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);
1858 OPENSSL_EXPORT void SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);
1861 OPENSSL_EXPORT void SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);
1904 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx,
1906 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
1908 OPENSSL_EXPORT int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
1911 SSL_CTX *ctx, const char *file); /* PEM type */
1951 OPENSSL_EXPORT int SSL_CTX_add_session(SSL_CTX *s, SSL_SESSION *c);
1952 OPENSSL_EXPORT int SSL_CTX_remove_session(SSL_CTX *, SSL_SESSION *c);
1953 OPENSSL_EXPORT int SSL_CTX_set_generate_session_id(SSL_CTX *, GEN_SESSION_CB);
1998 OPENSSL_EXPORT int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
1999 OPENSSL_EXPORT int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
2000 OPENSSL_EXPORT int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(
2002 OPENSSL_EXPORT void SSL_CTX_set_verify(SSL_CTX *ctx, int mode,
2004 OPENSSL_EXPORT void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);
2006 SSL_CTX *ctx, int (*cb)(X509_STORE_CTX *, void *), void *arg);
2007 OPENSSL_EXPORT void SSL_CTX_set_cert_cb(SSL_CTX *c,
2010 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
2011 OPENSSL_EXPORT int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx,
2013 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
2014 OPENSSL_EXPORT int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,
2016 OPENSSL_EXPORT int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
2017 OPENSSL_EXPORT int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,
2020 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx,
2022 OPENSSL_EXPORT void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx,
2025 OPENSSL_EXPORT int SSL_CTX_check_private_key(const SSL_CTX *ctx);
2028 OPENSSL_EXPORT int SSL_CTX_set_session_id_context(SSL_CTX *ctx,
2035 OPENSSL_EXPORT int SSL_CTX_set_purpose(SSL_CTX *s, int purpose);
2037 OPENSSL_EXPORT int SSL_CTX_set_trust(SSL_CTX *s, int trust);
2040 OPENSSL_EXPORT int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);
2043 OPENSSL_EXPORT X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);
2053 OPENSSL_EXPORT long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
2080 OPENSSL_EXPORT void SSL_CTX_set_client_CA_list(SSL_CTX *ctx,
2084 SSL_CTX_get_client_CA_list(const SSL_CTX *s);
2086 OPENSSL_EXPORT int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);
2095 OPENSSL_EXPORT X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);
2096 OPENSSL_EXPORT EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);
2098 OPENSSL_EXPORT void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);
2099 OPENSSL_EXPORT int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);
2105 OPENSSL_EXPORT int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);
2106 OPENSSL_EXPORT int SSL_CTX_load_verify_locations(SSL_CTX *ctx,
2113 OPENSSL_EXPORT SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
2114 OPENSSL_EXPORT SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2140 OPENSSL_EXPORT int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);
2141 OPENSSL_EXPORT void *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);
2151 OPENSSL_EXPORT unsigned long SSL_CTX_sess_set_cache_size(SSL_CTX *ctx,
2156 OPENSSL_EXPORT unsigned long SSL_CTX_sess_get_cache_size(const SSL_CTX *ctx);
2172 OPENSSL_EXPORT int SSL_CTX_set_session_cache_mode(SSL_CTX *ctx, int mode);
2176 OPENSSL_EXPORT int SSL_CTX_get_session_cache_mode(const SSL_CTX *ctx);
2180 OPENSSL_EXPORT size_t SSL_CTX_get_max_cert_list(const SSL_CTX *ctx);
2185 SSL_CTX *ctx,
2200 OPENSSL_EXPORT void SSL_CTX_set_max_send_fragment(SSL_CTX *ctx,
2217 SSL_CTX *ctx, DH *(*callback)(SSL *ssl, int is_export, int keylength));
2242 SSL_CTX *ctx, EC_KEY *(*callback)(SSL *ssl, int is_export, int keylength));
2268 SSL_CTX *ctx, int (*cb)(const struct ssl_early_callback_ctx *));
2270 /* SSL_get_structure_sizes returns the sizes of the SSL, SSL_CTX and
2352 SSL_CTX *ctx, RSA *(*cb)(SSL *ssl, int is_export, int keylength));
2360 OPENSSL_EXPORT int SSL_CTX_sess_connect(const SSL_CTX *ctx);
2363 OPENSSL_EXPORT int SSL_CTX_sess_connect_good(const SSL_CTX *ctx);
2366 OPENSSL_EXPORT int SSL_CTX_sess_connect_renegotiate(const SSL_CTX *ctx);
2369 OPENSSL_EXPORT int SSL_CTX_sess_accept(const SSL_CTX *ctx);
2372 OPENSSL_EXPORT int SSL_CTX_sess_accept_renegotiate(const SSL_CTX *ctx);
2375 OPENSSL_EXPORT int SSL_CTX_sess_accept_good(const SSL_CTX *ctx);
2378 OPENSSL_EXPORT int SSL_CTX_sess_hits(const SSL_CTX *ctx);
2381 OPENSSL_EXPORT int SSL_CTX_sess_cb_hits(const SSL_CTX *ctx);
2384 OPENSSL_EXPORT int SSL_CTX_sess_misses(const SSL_CTX *ctx);
2387 OPENSSL_EXPORT int SSL_CTX_sess_timeouts(const SSL_CTX *ctx);
2390 OPENSSL_EXPORT int SSL_CTX_sess_cache_full(const SSL_CTX *ctx);
2399 OPENSSL_EXPORT int SSL_CTX_need_tmp_RSA(const SSL_CTX *ctx);
2405 OPENSSL_EXPORT int SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, const RSA *rsa);
2411 OPENSSL_EXPORT int SSL_CTX_get_read_ahead(const SSL_CTX *ctx);
2414 OPENSSL_EXPORT void SSL_CTX_set_read_ahead(SSL_CTX *ctx, int yes);