Home
last modified time | relevance | path

Searched refs:SSL_CTX (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/freebsd/crypto/openssl/include/openssl/
H A Dssl.h623 uint64_t SSL_CTX_get_options(const SSL_CTX *ctx);
625 uint64_t SSL_CTX_clear_options(SSL_CTX *ctx, uint64_t op);
627 uint64_t SSL_CTX_set_options(SSL_CTX *ctx, uint64_t op);
661 void SSL_CTX_set_msg_callback(SSL_CTX *ctx,
679 OSSL_DEPRECATEDIN_3_0 __owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);
681 OSSL_DEPRECATEDIN_3_0 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);
720 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
746 void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,
749 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(struct ssl_st *ssl,
751 void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,
[all …]
H A Dssl.h.in232 * function parameters used to prototype callbacks in SSL_CTX.
600 uint64_t SSL_CTX_get_options(const SSL_CTX *ctx);
602 uint64_t SSL_CTX_clear_options(SSL_CTX *ctx, uint64_t op);
604 uint64_t SSL_CTX_set_options(SSL_CTX *ctx, uint64_t op);
638 void SSL_CTX_set_msg_callback(SSL_CTX *ctx,
656 OSSL_DEPRECATEDIN_3_0 __owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);
658 OSSL_DEPRECATEDIN_3_0 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);
671 * This callback type is used inside SSL_CTX, SSL, and in the functions that
697 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);
723 void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,
[all …]
/freebsd/crypto/openssl/test/helpers/
H A Dhandshake.h86 HANDSHAKE_RESULT *do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
87 SSL_CTX *client_ctx, SSL_CTX *resume_server_ctx,
88 SSL_CTX *resume_client_ctx,
91 int configure_handshake_ctx_for_srp(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
92 SSL_CTX *client_ctx,
H A Dssltestlib.h25 int max_proto_version, SSL_CTX **sctx, SSL_CTX **cctx,
27 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
33 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
88 int ssl_ctx_add_large_cert_chain(OSSL_LIB_CTX *libctx, SSL_CTX *sctx,
/freebsd/crypto/openssl/apps/include/
H A Ds_apps.h30 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
31 int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key,
70 void ssl_ctx_set_excert(SSL_CTX *ctx, SSL_EXCERT *exc);
76 int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str, SSL_CTX *ctx);
77 int ssl_ctx_add_crls(SSL_CTX *ctx, STACK_OF(X509_CRL) *crls,
79 int ssl_load_stores(SSL_CTX *ctx, const char *vfyCApath,
84 void ssl_ctx_security_debug(SSL_CTX *ctx, int verbose);
85 int set_keylog_file(SSL_CTX *ctx, const char *keylog_file);
100 int set_up_srp_arg(SSL_CTX *ctx, SRP_ARG *srp_arg, int srp_lateuser, int c_msg,
102 void set_up_dummy_srp(SSL_CTX *ctx);
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DSSL_CTX_sess_number.pod11 long SSL_CTX_sess_number(SSL_CTX *ctx);
12 long SSL_CTX_sess_connect(SSL_CTX *ctx);
13 long SSL_CTX_sess_connect_good(SSL_CTX *ctx);
14 long SSL_CTX_sess_connect_renegotiate(SSL_CTX *ctx);
15 long SSL_CTX_sess_accept(SSL_CTX *ctx);
16 long SSL_CTX_sess_accept_good(SSL_CTX *ctx);
17 long SSL_CTX_sess_accept_renegotiate(SSL_CTX *ctx);
18 long SSL_CTX_sess_hits(SSL_CTX *ctx);
19 long SSL_CTX_sess_cb_hits(SSL_CTX *ctx);
20 long SSL_CTX_sess_misses(SSL_CTX *ctx);
[all …]
H A DSSL_CTX_set1_verify_cert_store.pod17 int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx, X509_STORE *st);
18 int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx, X509_STORE *st);
19 int SSL_CTX_set0_chain_cert_store(SSL_CTX *ctx, X509_STORE *st);
20 int SSL_CTX_set1_chain_cert_store(SSL_CTX *ctx, X509_STORE *st);
21 int SSL_CTX_get0_verify_cert_store(SSL_CTX *ctx, X509_STORE **st);
22 int SSL_CTX_get0_chain_cert_store(SSL_CTX *ctx, X509_STORE **st);
56 The stores pointers associated with an SSL_CTX structure are copied to any SSL
58 affected if the parent SSL_CTX store pointer is set to a new value.
80 with the parent SSL_CTX is used instead to retain compatibility with previous
H A DSSL_CTX_new.pod14 - create a new SSL_CTX object as framework for TLS/SSL or DTLS enabled
21 SSL_CTX *SSL_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq,
23 SSL_CTX *SSL_CTX_new(const SSL_METHOD *method);
24 int SSL_CTX_up_ref(SSL_CTX *ctx);
76 SSL_CTX_new_ex() creates a new B<SSL_CTX> object, which holds various
83 that are used by any B<SSL> objects created from this B<SSL_CTX> will be fetched
91 An B<SSL_CTX> object is reference counted. Creating an B<SSL_CTX> object for the
92 first time increments the reference count. Freeing the B<SSL_CTX> (using
94 or resources allocated to the B<SSL_CTX> object are freed. SSL_CTX_up_ref()
95 increments the reference count for an existing B<SSL_CTX> structure.
[all …]
H A DSSL_CTX_add_extra_chain_cert.pod15 long SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509);
16 long SSL_CTX_get_extra_chain_certs(SSL_CTX *ctx, STACK_OF(X509) **sk);
17 long SSL_CTX_get_extra_chain_certs_only(SSL_CTX *ctx, STACK_OF(X509) **sk);
18 long SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx);
50 freed by the library when the B<SSL_CTX> is destroyed. An application
55 Only one set of extra chain certificates can be specified per SSL_CTX
58 structures with the same parent SSL_CTX cannot be specified using this
H A DSSL_CTX_set_ssl_version.pod12 int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *method);
13 const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);
22 SSL_CTX object is retained, with the exception of the configured TLS ciphers,
24 SSL_CTX with L<SSL_new(3)> are not affected, except when L<SSL_clear(3)> is
28 SSL_CTX.
43 set in the corresponding SSL_CTX object.
46 it would usually be preferable to create a new SSL_CTX object than to
H A DSSL_get_SSL_CTX.pod5 SSL_get_SSL_CTX - get the SSL_CTX from which an SSL is created
11 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
15 SSL_get_SSL_CTX() returns a pointer to the SSL_CTX object, from which
20 The pointer to the SSL_CTX object is returned.
H A DSSL_CTX_add1_chain_cert.pod17 int SSL_CTX_set0_chain(SSL_CTX *ctx, STACK_OF(X509) *sk);
18 int SSL_CTX_set1_chain(SSL_CTX *ctx, STACK_OF(X509) *sk);
19 int SSL_CTX_add0_chain_cert(SSL_CTX *ctx, X509 *x509);
20 int SSL_CTX_add1_chain_cert(SSL_CTX *ctx, X509 *x509);
21 int SSL_CTX_get0_chain_certs(SSL_CTX *ctx, STACK_OF(X509) **sk);
22 int SSL_CTX_clear_chain_certs(SSL_CTX *ctx);
31 int SSL_CTX_build_cert_chain(SSL_CTX *ctx, flags);
34 int SSL_CTX_select_current_cert(SSL_CTX *ctx, X509 *x509);
36 int SSL_CTX_set_current_cert(SSL_CTX *ctx, long op);
87 used to iterate over all certificates in an B<SSL_CTX> structure.
[all …]
H A DSSL_CTX_set1_cert_comp_preference.pod18 int SSL_CTX_set1_cert_comp_preference(SSL_CTX *ctx, int *algs, size_t len);
21 int SSL_CTX_compress_certs(SSL_CTX *ctx, int alg);
24 size_t SSL_CTX_get1_compressed_cert(SSL_CTX *ctx, int alg, unsigned char **data,
29 int SSL_CTX_set1_compressed_cert(SSL_CTX *ctx, int alg,
67 the configured certificates on an SSL_CTX/SSL object with algorithm B<alg>. If
69 in the preference list. Calling these functions on a client SSL_CTX/SSL object
74 use. Calling these functions on a client SSL_CTX/SSL object will result in an
95 on a client SSL_CTX/SSL object will return an error. Client certificates are
103 SSL_get1_compressed_cert() is the last certificate set on the SSL_CTX/SSL object.
108 SSL_set1_compressed_cert() is copied into the SSL_CTX/SSL object.
H A DSSL_CTX_set_cert_store.pod11 void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store);
12 void SSL_CTX_set1_cert_store(SSL_CTX *ctx, X509_STORE *store);
13 X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx);
54 by another SSL_CTX.
57 to get the X509_STORE from the first SSL_CTX, and then use
58 SSL_CTX_set1_cert_store() to assign to the second SSL_CTX and
63 The X509_STORE structure used by an SSL_CTX is used for verifying peer
H A DSSL_CTX_set_srp_password.pod28 int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);
29 int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);
30 int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);
31 int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);
32 int SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,
34 int SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,
36 int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,
125 the underlying SSL_CTX if it is NULL.
128 the underlying SSL_CTX if it is NULL.
131 the underlying SSL_CTX if it is NULL.
[all …]
H A DSSL_CTX_ctrl.pod5 …allback_ctrl, SSL_ctrl, SSL_callback_ctrl - internal handling functions for SSL_CTX and SSL objects
11 long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
12 long SSL_CTX_callback_ctrl(SSL_CTX *, int cmd, void (*fp)());
20 the SSL_CTX and SSL objects. Depending on the command B<cmd> the arguments
/freebsd/crypto/openssl/include/internal/
H A Dquic_ssl.h23 __owur SSL *ossl_quic_new(SSL_CTX *ctx);
24 __owur SSL *ossl_quic_new_listener(SSL_CTX *ctx, uint64_t flags);
27 __owur SSL *ossl_quic_new_domain(SSL_CTX *ctx, uint64_t flags);
42 SSL_TOKEN_STORE *ossl_quic_get0_token_store(SSL_CTX *ctx);
43 int ossl_quic_set1_token_store(SSL_CTX *ctx, SSL_TOKEN_STORE *hdl);
44 int ossl_quic_set_peer_token(SSL_CTX *ctx, BIO_ADDR *peer,
46 int ossl_quic_get_peer_token(SSL_CTX *ctx, BIO_ADDR *peer,
63 __owur long ossl_quic_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
65 __owur long ossl_quic_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void));
174 int ossl_quic_set_diag_title(SSL_CTX *ctx, const char *title);
/freebsd/crypto/openssl/ssl/
H A Dssl_sess.c24 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s);
25 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s);
26 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
723 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_add_session()
810 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_remove_session()
815 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock()
1129 long SSL_CTX_set_timeout(SSL_CTX *s, long t) in SSL_CTX_set_timeout()
1140 long SSL_CTX_get_timeout(const SSL_CTX *s) in SSL_CTX_get_timeout()
1204 void SSL_CTX_flush_sessions(SSL_CTX *s, long t) in SSL_CTX_flush_sessions()
1210 void SSL_CTX_flush_sessions_ex(SSL_CTX *s, time_t t) in SSL_CTX_flush_sessions_ex()
[all …]
H A Dtls_srp.c33 int ssl_ctx_srp_ctx_free_intern(SSL_CTX *ctx) in ssl_ctx_srp_ctx_free_intern()
52 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx) in SSL_CTX_SRP_CTX_free()
94 SSL_CTX *ctx; in ssl_srp_ctx_init_intern()
153 int ssl_ctx_srp_ctx_init_intern(SSL_CTX *ctx) in ssl_ctx_srp_ctx_init_intern()
164 int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx) in SSL_CTX_SRP_CTX_init()
178 SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s); in ssl_srp_server_param_with_username_intern()
306 SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s); in srp_generate_server_master_secret()
340 SSL_CTX *sctx = SSL_CONNECTION_GET_CTX(s); in srp_generate_client_master_secret()
505 int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name) in SSL_CTX_set_srp_username()
510 int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password) in SSL_CTX_set_srp_password()
[all …]
H A Dssl_lib.c662 int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth) in SSL_CTX_set_ssl_version()
690 SSL *SSL_new(SSL_CTX *ctx) in SSL_new()
703 int ossl_ssl_init(SSL *ssl, SSL_CTX *ctx, const SSL_METHOD *method, int type) in ossl_ssl_init()
731 SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, SSL *user_ssl, in ossl_ssl_connection_new_int()
972 SSL *ossl_ssl_connection_new(SSL_CTX *ctx) in ossl_ssl_connection_new()
1012 int SSL_CTX_is_quic(const SSL_CTX *c) in SSL_CTX_is_quic()
1029 int SSL_CTX_set_session_id_context(SSL_CTX *ctx, const unsigned char *sid_ctx, in SSL_CTX_set_session_id_context()
1060 int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb) in SSL_CTX_set_generate_session_id()
1107 int SSL_CTX_set_purpose(SSL_CTX *s, int purpose) in SSL_CTX_set_purpose()
1122 int SSL_CTX_set_trust(SSL_CTX *s, int trust) in SSL_CTX_set_trust()
[all …]
H A Dssl_local.h409 SSL *(*ssl_new)(SSL_CTX *ctx);
430 long (*ssl_ctx_ctrl)(SSL_CTX *ctx, int cmd, long larg, void *parg);
441 long (*ssl_ctx_callback_ctrl)(SSL_CTX *s, int cb_id, void (*fp)(void));
556 SSL_CTX *owner;
721 SSL_HMAC *ssl_hmac_new(const SSL_CTX *ctx);
1233 SSL_CTX *ctx;
1768 SSL_CTX *session_ctx; /* initial ctx, used to store sessions */
2134 int (*sec_cb)(const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid,
2526 __owur int ossl_ssl_init(SSL *ssl, SSL_CTX *ctx, const SSL_METHOD *method,
2528 __owur SSL *ossl_ssl_connection_new_int(SSL_CTX *ctx, SSL *user_ssl,
[all …]
H A Dssl_rsa.c21 static int ssl_set_cert(CERT *c, X509 *x509, SSL_CTX *ctx);
22 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey, SSL_CTX *ctx);
133 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey, SSL_CTX *ctx) in ssl_set_pkey()
242 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x) in SSL_CTX_use_certificate()
258 static int ssl_set_cert(CERT *c, X509 *x, SSL_CTX *ctx) in ssl_set_cert()
311 int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_certificate_file()
362 int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d) in SSL_CTX_use_certificate_ASN1()
384 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) in SSL_CTX_use_PrivateKey()
393 int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_PrivateKey_file()
438 int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, in SSL_CTX_use_PrivateKey_ASN1()
[all …]
/freebsd/crypto/openssl/doc/designs/ddd/
H A Dddd-01-conn-blocking.c19 SSL_CTX *create_ssl_ctx(void) in create_ssl_ctx()
21 SSL_CTX *ctx; in create_ssl_ctx()
49 BIO *new_conn(SSL_CTX *ctx, const char *hostname) in new_conn()
128 void teardown_ctx(SSL_CTX *ctx) in teardown_ctx()
141 SSL_CTX *ctx = NULL; in main()
H A Dddd-03-fd-blocking.c20 SSL_CTX *create_ssl_ctx(void) in create_ssl_ctx()
22 SSL_CTX *ctx; in create_ssl_ctx()
50 SSL *new_conn(SSL_CTX *ctx, int fd, const char *bare_hostname) in new_conn()
121 void teardown_ctx(SSL_CTX *ctx) in teardown_ctx()
143 SSL_CTX *ctx = NULL; in main()
/freebsd/crypto/openssl/test/
H A Dquicapitest.c52 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_quic_write_read()
53 SSL_CTX *sctx = NULL; in test_quic_write_read()
214 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_fin_only_blocking()
215 SSL_CTX *sctx = NULL; in test_fin_only_blocking()
287 SSL_CTX *ctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_ciphersuites()
345 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_cipher_find()
398 SSL_CTX *cctx = SSL_CTX_new_ex(libctx, NULL, OSSL_QUIC_client_method()); in test_version()
435 SSL_CTX *cctx = NULL; in test_ssl_trace()
556 SSL_CTX *cctx = NULL; in test_new_token()
650 SSL_CTX *ctx = NULL; in test_quic_forbidden_apis_ctx()
[all …]

12345678910>>...12