/freebsd/crypto/openssl/include/openssl/ |
H A D | ssl.h | 601 uint64_t SSL_CTX_get_options(const SSL_CTX *ctx); 603 uint64_t SSL_CTX_clear_options(SSL_CTX *ctx, uint64_t op); 605 uint64_t SSL_CTX_set_options(SSL_CTX *ctx, uint64_t op); 639 void SSL_CTX_set_msg_callback(SSL_CTX *ctx, 657 OSSL_DEPRECATEDIN_3_0 __owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx); 659 OSSL_DEPRECATEDIN_3_0 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx); 698 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx); 724 void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, 727 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl, 729 void SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx, [all …]
|
H A D | ssl.h.in | 226 * function parameters used to prototype callbacks in SSL_CTX. 578 uint64_t SSL_CTX_get_options(const SSL_CTX *ctx); 580 uint64_t SSL_CTX_clear_options(SSL_CTX *ctx, uint64_t op); 582 uint64_t SSL_CTX_set_options(SSL_CTX *ctx, uint64_t op); 616 void SSL_CTX_set_msg_callback(SSL_CTX *ctx, 634 OSSL_DEPRECATEDIN_3_0 __owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx); 636 OSSL_DEPRECATEDIN_3_0 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx); 649 * This callback type is used inside SSL_CTX, SSL, and in the functions that 675 LHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx); 701 void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, [all …]
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | handshake.h | 86 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 D | ssltestlib.h | 17 int max_proto_version, SSL_CTX **sctx, SSL_CTX **cctx, 19 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 23 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
|
/freebsd/crypto/openssl/apps/include/ |
H A D | s_apps.h | 26 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file); 27 int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key, 65 void ssl_ctx_set_excert(SSL_CTX *ctx, SSL_EXCERT *exc); 71 int config_ctx(SSL_CONF_CTX *cctx, STACK_OF(OPENSSL_STRING) *str, SSL_CTX *ctx); 72 int ssl_ctx_add_crls(SSL_CTX *ctx, STACK_OF(X509_CRL) *crls, 74 int ssl_load_stores(SSL_CTX *ctx, const char *vfyCApath, 79 void ssl_ctx_security_debug(SSL_CTX *ctx, int verbose); 80 int set_keylog_file(SSL_CTX *ctx, const char *keylog_file); 94 int set_up_srp_arg(SSL_CTX *ctx, SRP_ARG *srp_arg, int srp_lateuser, int c_msg, 96 void set_up_dummy_srp(SSL_CTX *ctx); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | SSL_CTX_sess_number.pod | 11 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 D | SSL_CTX_set1_verify_cert_store.pod | 17 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 D | SSL_CTX_set_ssl_version.pod | 12 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 D | SSL_CTX_new.pod | 14 - 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 D | SSL_CTX_add_extra_chain_cert.pod | 15 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 D | SSL_get_SSL_CTX.pod | 5 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 D | SSL_CTX_set_cert_store.pod | 11 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 D | SSL_CTX_add1_chain_cert.pod | 17 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 D | SSL_CTX_set_srp_password.pod | 28 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 D | SSL_CTX_use_certificate.pod | 22 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x); 23 int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d); 24 int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type); 29 int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file); 32 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey); 33 int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, const unsigned char *d, 35 int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type); 36 int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa); 37 int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len); 38 int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ct [all...] |
H A D | SSL_CTX_ctrl.pod | 5 …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
|
H A D | SSL_CTX_set_security_level.pod | 11 void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); 14 int SSL_CTX_get_security_level(const SSL_CTX *ctx); 17 void SSL_CTX_set_security_callback(SSL_CTX *ctx, 18 int (*cb)(SSL *s, SSL_CTX *ctx, int op, 22 void SSL_set_security_callback(SSL *s, int (*cb)(SSL *s, SSL_CTX *ctx, int op, 26 int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx))(SSL *s, SSL_CTX *ctx, int op, 29 int (*SSL_get_security_callback(const SSL *s))(SSL *s, SSL_CTX *ctx, int op, 33 void SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex); 36 void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx); 163 represents the security level with B<SSL_CTX> or B<SSL>, respectively.
|
H A D | SSL_CTX_get0_param.pod | 13 X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx); 15 int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm); 18 int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose); 21 int SSL_CTX_set_trust(SSL_CTX *ctx, int trust); 43 Typically parameters are retrieved from an B<SSL_CTX> or B<SSL> structure
|
H A D | SSL_CTX_set0_CA_list.pod | 24 void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *list); 27 STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *ctx); 28 int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *cacert); 31 void SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list); 33 const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx); 35 int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x); 71 setting valid for B<ssl>'s SSL_CTX object. Ownership of B<list> is transferred 79 set for B<ssl> using SSL_set_client_CA_list() or B<ssl>'s SSL_CTX object with 90 the chosen B<ssl>, overriding the setting valid for B<ssl>'s SSL_CTX object. 111 overriding any list set in the parent B<SSL_CTX> of B<s>. Ownership of [all …]
|
H A D | SSL_CONF_CTX_set_ssl_ctx.pod | 12 void SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx); 19 B<SSL_CTX> structure B<ctx>. Any previous B<SSL> or B<SSL_CTX> associated with 24 B<SSL> structure B<ssl>. Any previous B<SSL> or B<SSL_CTX> associated with
|
/freebsd/crypto/openssl/ssl/ |
H A D | ssl_lib.c | 664 int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth) in SSL_CTX_set_ssl_version() 687 SSL *SSL_new(SSL_CTX *ctx) in SSL_new() 889 int SSL_CTX_set_session_id_context(SSL_CTX *ctx, const unsigned char *sid_ctx, in SSL_CTX_set_session_id_context() 915 int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb) in SSL_CTX_set_generate_session_id() 959 int SSL_CTX_set_purpose(SSL_CTX *s, int purpose) in SSL_CTX_set_purpose() 969 int SSL_CTX_set_trust(SSL_CTX *s, int trust) in SSL_CTX_set_trust() 1028 int SSL_CTX_dane_enable(SSL_CTX *ctx) in SSL_CTX_dane_enable() 1033 unsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags) in SSL_CTX_dane_set_flags() 1041 unsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags) in SSL_CTX_dane_clear_flags() 1156 int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md, uint8_t mtype, in SSL_CTX_dane_mtype_set() [all …]
|
H A D | ssl_sess.c | 23 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s); 24 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s); 25 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck); 740 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_add_session() 827 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_remove_session() 832 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock() 1116 long SSL_CTX_set_timeout(SSL_CTX *s, long t) in SSL_CTX_set_timeout() 1126 long SSL_CTX_get_timeout(const SSL_CTX *s) in SSL_CTX_get_timeout() 1181 void SSL_CTX_flush_sessions(SSL_CTX *s, long t) in SSL_CTX_flush_sessions() 1241 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s) in SSL_SESSION_list_remove() [all …]
|
H A D | tls_srp.c | 32 int ssl_ctx_srp_ctx_free_intern(SSL_CTX *ctx) in ssl_ctx_srp_ctx_free_intern() 51 int SSL_CTX_SRP_CTX_free(SSL_CTX *ctx) in SSL_CTX_SRP_CTX_free() 90 SSL_CTX *ctx; in ssl_srp_ctx_init_intern() 166 int ssl_ctx_srp_ctx_init_intern(SSL_CTX *ctx) in ssl_ctx_srp_ctx_init_intern() 177 int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx) in SSL_CTX_SRP_CTX_init() 470 int SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name) in SSL_CTX_set_srp_username() 475 int SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password) in SSL_CTX_set_srp_password() 480 int SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength) in SSL_CTX_set_srp_strength() 486 int SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx, in SSL_CTX_set_srp_verify_param_callback() 493 int SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg) in SSL_CTX_set_srp_cb_arg() [all …]
|
H A D | ssl_local.h | 508 long (*ssl_ctx_ctrl) (SSL_CTX *ctx, int cmd, long larg, void *parg); 519 long (*ssl_ctx_callback_ctrl) (SSL_CTX *s, int cb_id, void (*fp) (void)); 639 SSL_CTX *owner; 801 SSL_HMAC *ssl_hmac_new(const SSL_CTX *ctx); 1538 SSL_CTX *ctx; 1714 SSL_CTX *session_ctx; /* initial ctx, used to store sessions */ 2058 int (*sec_cb) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid, 2396 __owur STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(SSL_CTX *ctx, 2408 __owur int ssl_cipher_get_evp_cipher(SSL_CTX *ctx, const SSL_CIPHER *sslc, 2410 __owur int ssl_cipher_get_evp(SSL_CTX *ctxc, const SSL_SESSION *s, [all …]
|
H A D | ssl_rsa.c | 211 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x) in SSL_CTX_use_certificate() 277 int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_certificate_file() 323 int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d) in SSL_CTX_use_certificate_ASN1() 345 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) in SSL_CTX_use_PrivateKey() 354 int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) in SSL_CTX_use_PrivateKey_file() 394 int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, in SSL_CTX_use_PrivateKey_ASN1() 418 static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file) in use_certificate_chain_file() 425 SSL_CTX *real_ctx = (ssl == NULL) ? ctx : ssl->ctx; in use_certificate_chain_file() 532 int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) in SSL_CTX_use_certificate_chain_file() 649 size_t serverinfo_length, SSL_CTX *ctx) in serverinfo_process_buffer() [all …]
|