/freebsd/crypto/openssl/include/openssl/ |
H A D | engine.h | 267 typedef int (*ENGINE_GEN_INT_FUNC_PTR) (ENGINE *); 269 typedef int (*ENGINE_CTRL_FUNC_PTR) (ENGINE *, int, long, void *, 272 typedef EVP_PKEY *(*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *, 275 typedef int (*ENGINE_SSL_CLIENT_CERT_PTR) (ENGINE *, SSL *ssl, 296 typedef int (*ENGINE_CIPHERS_PTR) (ENGINE *, const EVP_CIPHER **, 298 typedef int (*ENGINE_DIGESTS_PTR) (ENGINE *, const EVP_MD **, const int **, 300 typedef int (*ENGINE_PKEY_METHS_PTR) (ENGINE *, EVP_PKEY_METHOD **, 302 typedef int (*ENGINE_PKEY_ASN1_METHS_PTR) (ENGINE *, EVP_PKEY_ASN1_METHOD **, 318 OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_get_first(void); 319 OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_get_last(void); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | ENGINE_add.pod | 43 - ENGINE cryptographic module support 53 ENGINE *ENGINE_get_first(void); 54 ENGINE *ENGINE_get_last(void); 55 ENGINE *ENGINE_get_next(ENGINE *e); 56 ENGINE *ENGINE_get_prev(ENGINE *e); 58 int ENGINE_add(ENGINE *e); 59 int ENGINE_remove(ENGINE *e); 61 ENGINE *ENGINE_by_id(const char *id); 63 int ENGINE_init(ENGINE *e); 64 int ENGINE_finish(ENGINE *e); [all …]
|
H A D | DH_set_method.pod | 22 DH *DH_new_method(ENGINE *engine); 35 of B<ENGINE> API calls. 42 B<NB>: This is true only whilst no ENGINE has been set 48 However, the meaningfulness of this result is dependent on whether the ENGINE 53 was supplied by an ENGINE, the handle to that ENGINE will be released during the 55 implementations (e.g. from an ENGINE module that supports embedded 60 be used for the DH operations. If B<engine> is NULL, the default ENGINE for DH 61 operations is used, and if no default ENGINE is set, the DH_METHOD controlled by 75 the method for B<dh> (including unloading the ENGINE handle if the previous 76 method was supplied by an ENGINE).
|
H A D | DSA_set_method.pod | 22 DSA *DSA_new_method(ENGINE *engine); 35 of B<ENGINE> API calls. 42 B<NB>: This is true only whilst no ENGINE has 49 whether the ENGINE API is being used, so this function is no longer 54 previous method was supplied by an ENGINE, the handle to that ENGINE will 56 work with certain DSA_METHOD implementations (e.g. from an ENGINE module 64 for DSA operations is used, and if no default ENGINE is set, the DSA_METHOD 75 the method for B<dsa> (including unloading the ENGINE handle if the previous 76 method was supplied by an ENGINE).
|
/freebsd/crypto/openssl/crypto/engine/ |
H A D | eng_lib.c | 27 ENGINE *ENGINE_new(void) in ENGINE_new() 29 ENGINE *ret; in ENGINE_new() 50 void engine_set_all_null(ENGINE *e) in engine_set_all_null() 71 int engine_free_util(ENGINE *e, int not_locked) in engine_free_util() 100 int ENGINE_free(ENGINE *e) in ENGINE_free() 186 int ENGINE_set_ex_data(ENGINE *e, int idx, void *arg) in ENGINE_set_ex_data() 191 void *ENGINE_get_ex_data(const ENGINE *e, int idx) in ENGINE_get_ex_data() 201 int ENGINE_set_id(ENGINE *e, const char *id) in ENGINE_set_id() 211 int ENGINE_set_name(ENGINE *e, const char *name) in ENGINE_set_name() 221 int ENGINE_set_destroy_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR destroy_f) in ENGINE_set_destroy_function() [all …]
|
H A D | eng_list.c | 27 static ENGINE *engine_list_head = NULL; 28 static ENGINE *engine_list_tail = NULL; 33 static ENGINE *engine_dyn_list_head = NULL; 34 static ENGINE *engine_dyn_list_tail = NULL; 44 ENGINE *iterator = engine_list_head; in engine_list_cleanup() 57 static int engine_list_add(ENGINE *e) in engine_list_add() 60 ENGINE *iterator = NULL; in engine_list_add() 110 static int engine_list_remove(ENGINE *e) in engine_list_remove() 112 ENGINE *iterator; in engine_list_remove() 141 int engine_add_dynamic_id(ENGINE *e, ENGINE_DYNAMIC_ID dynamic_id, in engine_add_dynamic_id() [all …]
|
H A D | eng_local.h | 53 DEFINE_STACK_OF(ENGINE) 61 ENGINE *e, const int *nids, int num_nids, 63 void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e); 65 ENGINE *ossl_engine_table_select(ENGINE_TABLE **table, int nid, 67 typedef void (engine_table_doall_cb) (int nid, STACK_OF(ENGINE) *sk, 68 ENGINE *def, void *arg); 77 int engine_unlocked_init(ENGINE *e); 78 int engine_unlocked_finish(ENGINE *e, int unlock_for_handlers); 79 int engine_free_util(ENGINE *e, int not_locked); 86 void engine_set_all_null(ENGINE *e); [all …]
|
H A D | tb_asnmth.c | 28 void ENGINE_unregister_pkey_asn1_meths(ENGINE *e) in ENGINE_unregister_pkey_asn1_meths() 38 int ENGINE_register_pkey_asn1_meths(ENGINE *e) in ENGINE_register_pkey_asn1_meths() 53 ENGINE *e; in ENGINE_register_all_pkey_asn1_meths() 59 int ENGINE_set_default_pkey_asn1_meths(ENGINE *e) in ENGINE_set_default_pkey_asn1_meths() 77 ENGINE *ENGINE_get_pkey_asn1_meth_engine(int nid) in ENGINE_get_pkey_asn1_meth_engine() 87 const EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth(ENGINE *e, int nid) in ENGINE_get_pkey_asn1_meth() 99 ENGINE_PKEY_ASN1_METHS_PTR ENGINE_get_pkey_asn1_meths(const ENGINE *e) in ENGINE_get_pkey_asn1_meths() 105 int ENGINE_set_pkey_asn1_meths(ENGINE *e, ENGINE_PKEY_ASN1_METHS_PTR f) in ENGINE_set_pkey_asn1_meths() 116 void engine_pkey_asn1_meths_free(ENGINE *e) in engine_pkey_asn1_meths_free() 139 const EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth_str(ENGINE *e, in ENGINE_get_pkey_asn1_meth_str() [all …]
|
H A D | README.md | 7 the "ENGINE" code. So it serves a double purpose of being a "ENGINE internals 49 into ENGINE is storage - the OBJ_NAME-based storage used by EVP to register 53 solution is necessarily that ENGINE-provided ciphers simply are not registered, 55 especially necessary considering the fact ENGINE uses reference counts to allow 59 Another sticking point for integrating cipher support into ENGINE is linkage. 60 Already there is a problem with the way ENGINE supports RSA, DSA, etc whereby 61 they are available *because* they're part of a giant ENGINE called "openssl". 62 Ie. all implementations *have* to come from an ENGINE, but we get round that by 63 having a giant ENGINE with all the software support encapsulated. This creates 66 ENGINE code being linked in *and* because of that DSA, DH, and RAND also. If we [all …]
|
H A D | tb_pkmeth.c | 18 void ENGINE_unregister_pkey_meths(ENGINE *e) in ENGINE_unregister_pkey_meths() 28 int ENGINE_register_pkey_meths(ENGINE *e) in ENGINE_register_pkey_meths() 43 ENGINE *e; in ENGINE_register_all_pkey_meths() 49 int ENGINE_set_default_pkey_meths(ENGINE *e) in ENGINE_set_default_pkey_meths() 67 ENGINE *ENGINE_get_pkey_meth_engine(int nid) in ENGINE_get_pkey_meth_engine() 74 const EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid) in ENGINE_get_pkey_meth() 86 ENGINE_PKEY_METHS_PTR ENGINE_get_pkey_meths(const ENGINE *e) in ENGINE_get_pkey_meths() 92 int ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f) in ENGINE_set_pkey_meths() 103 void engine_pkey_meths_free(ENGINE *e) in engine_pkey_meths_free()
|
H A D | tb_cipher.c | 17 void ENGINE_unregister_ciphers(ENGINE *e) in ENGINE_unregister_ciphers() 27 int ENGINE_register_ciphers(ENGINE *e) in ENGINE_register_ciphers() 42 ENGINE *e; in ENGINE_register_all_ciphers() 48 int ENGINE_set_default_ciphers(ENGINE *e) in ENGINE_set_default_ciphers() 66 ENGINE *ENGINE_get_cipher_engine(int nid) in ENGINE_get_cipher_engine() 73 const EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid) in ENGINE_get_cipher() 85 ENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e) in ENGINE_get_ciphers() 91 int ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f) in ENGINE_set_ciphers()
|
H A D | tb_digest.c | 17 void ENGINE_unregister_digests(ENGINE *e) in ENGINE_unregister_digests() 27 int ENGINE_register_digests(ENGINE *e) in ENGINE_register_digests() 42 ENGINE *e; in ENGINE_register_all_digests() 48 int ENGINE_set_default_digests(ENGINE *e) in ENGINE_set_default_digests() 66 ENGINE *ENGINE_get_digest_engine(int nid) in ENGINE_get_digest_engine() 73 const EVP_MD *ENGINE_get_digest(ENGINE *e, int nid) in ENGINE_get_digest() 85 ENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e) in ENGINE_get_digests() 91 int ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f) in ENGINE_set_digests()
|
H A D | tb_dh.c | 18 void ENGINE_unregister_DH(ENGINE *e) in ENGINE_unregister_DH() 28 int ENGINE_register_DH(ENGINE *e) in ENGINE_register_DH() 39 ENGINE *e; in ENGINE_register_all_DH() 45 int ENGINE_set_default_DH(ENGINE *e) in ENGINE_set_default_DH() 59 ENGINE *ENGINE_get_default_DH(void) in ENGINE_get_default_DH() 66 const DH_METHOD *ENGINE_get_DH(const ENGINE *e) in ENGINE_get_DH() 72 int ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth) in ENGINE_set_DH()
|
H A D | tb_dsa.c | 18 void ENGINE_unregister_DSA(ENGINE *e) in ENGINE_unregister_DSA() 28 int ENGINE_register_DSA(ENGINE *e) in ENGINE_register_DSA() 39 ENGINE *e; in ENGINE_register_all_DSA() 45 int ENGINE_set_default_DSA(ENGINE *e) in ENGINE_set_default_DSA() 59 ENGINE *ENGINE_get_default_DSA(void) in ENGINE_get_default_DSA() 66 const DSA_METHOD *ENGINE_get_DSA(const ENGINE *e) in ENGINE_get_DSA() 72 int ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth) in ENGINE_set_DSA()
|
H A D | tb_rand.c | 18 void ENGINE_unregister_RAND(ENGINE *e) in ENGINE_unregister_RAND() 28 int ENGINE_register_RAND(ENGINE *e) in ENGINE_register_RAND() 39 ENGINE *e; in ENGINE_register_all_RAND() 45 int ENGINE_set_default_RAND(ENGINE *e) in ENGINE_set_default_RAND() 59 ENGINE *ENGINE_get_default_RAND(void) in ENGINE_get_default_RAND() 66 const RAND_METHOD *ENGINE_get_RAND(const ENGINE *e) in ENGINE_get_RAND() 72 int ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth) in ENGINE_set_RAND()
|
H A D | tb_rsa.c | 18 void ENGINE_unregister_RSA(ENGINE *e) in ENGINE_unregister_RSA() 28 int ENGINE_register_RSA(ENGINE *e) in ENGINE_register_RSA() 39 ENGINE *e; in ENGINE_register_all_RSA() 45 int ENGINE_set_default_RSA(ENGINE *e) in ENGINE_set_default_RSA() 59 ENGINE *ENGINE_get_default_RSA(void) in ENGINE_get_default_RSA() 66 const RSA_METHOD *ENGINE_get_RSA(const ENGINE *e) in ENGINE_get_RSA() 72 int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth) in ENGINE_set_RSA()
|
H A D | tb_eckey.c | 18 void ENGINE_unregister_EC(ENGINE *e) in ENGINE_unregister_EC() 28 int ENGINE_register_EC(ENGINE *e) in ENGINE_register_EC() 39 ENGINE *e; in ENGINE_register_all_EC() 45 int ENGINE_set_default_EC(ENGINE *e) in ENGINE_set_default_EC() 59 ENGINE *ENGINE_get_default_EC(void) in ENGINE_get_default_EC() 66 const EC_KEY_METHOD *ENGINE_get_EC(const ENGINE *e) in ENGINE_get_EC() 72 int ENGINE_set_EC(ENGINE *e, const EC_KEY_METHOD *ec_meth) in ENGINE_set_EC()
|
H A D | eng_dyn.c | 24 static int dynamic_init(ENGINE *e); 25 static int dynamic_finish(ENGINE *e); 26 static int dynamic_ctrl(ENGINE *e, int cmd, long i, void *p, 31 static int dynamic_load(ENGINE *e, dynamic_data_ctx *ctx); 157 static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx) in dynamic_set_data_ctx() 203 static dynamic_data_ctx *dynamic_get_data_ctx(ENGINE *e) in dynamic_get_data_ctx() 240 static ENGINE *engine_dynamic(void) in engine_dynamic() 242 ENGINE *ret = ENGINE_new(); in engine_dynamic() 260 ENGINE *toadd = engine_dynamic(); in engine_load_dynamic_int() 279 static int dynamic_init(ENGINE *e) in dynamic_init() [all …]
|
H A D | eng_pkey.c | 17 int ENGINE_set_load_privkey_function(ENGINE *e, in ENGINE_set_load_privkey_function() 24 int ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f) in ENGINE_set_load_pubkey_function() 30 int ENGINE_set_load_ssl_client_cert_function(ENGINE *e, in ENGINE_set_load_ssl_client_cert_function() 38 ENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e) in ENGINE_get_load_privkey_function() 43 ENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e) in ENGINE_get_load_pubkey_function() 48 ENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE in ENGINE_get_ssl_client_cert_function() 56 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() 85 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() 114 int ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s, in ENGINE_load_private_key()
|
H A D | eng_rdrand.c | 52 static int rdrand_init(ENGINE *e) in rdrand_init() 60 static int bind_helper(ENGINE *e) in bind_helper() 72 static ENGINE *ENGINE_rdrand(void) in ENGINE_rdrand() 74 ENGINE *ret = ENGINE_new(); in ENGINE_rdrand() 87 ENGINE *toadd = ENGINE_rdrand(); in engine_load_rdrand_int()
|
H A D | eng_openssl.c | 64 static int openssl_destroy(ENGINE *e); 67 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, 71 static int openssl_digests(ENGINE *e, const EVP_MD **digest, 76 static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id, 83 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, 95 static int bind_helper(ENGINE *e) in bind_helper() 136 static ENGINE *engine_openssl(void) in engine_openssl() 138 ENGINE *ret = ENGINE_new(); in engine_openssl() 150 ENGINE *toadd = engine_openssl(); in engine_load_openssl_int() 174 static int bind_fn(ENGINE *e, const char *id) in bind_fn() [all …]
|
H A D | eng_table.c | 21 STACK_OF(ENGINE) *sk; 23 ENGINE *funct; 84 ENGINE *e, const int *nids, int num_nids, in engine_table_register() 151 static void int_unregister_cb(ENGINE_PILE *pile, ENGINE *e) in int_unregister_cb() 165 IMPLEMENT_LHASH_DOALL_ARG(ENGINE_PILE, ENGINE); 167 void engine_table_unregister(ENGINE_TABLE **table, ENGINE *e) in engine_table_unregister() 200 ENGINE *ossl_engine_table_select(ENGINE_TABLE **table, int nid, in ossl_engine_table_select() 203 ENGINE *ret = NULL; in ossl_engine_table_select()
|
/freebsd/crypto/openssl/ |
H A D | README-ENGINES.md | 7 The ENGINE API was introduced in OpenSSL version 0.9.6 as a low level 11 The ENGINE interface has its limitations and it has been superseeded 14 users who need to maintain or support existing ENGINE implementations. 19 Built-in ENGINE implementations 22 There are currently built-in ENGINE implementations for the following 29 In addition, dynamic binding to external ENGINE implementations is now 30 provided by a special ENGINE called "dynamic". See the "DYNAMIC ENGINE" 43 the ENGINE model so that alternative implementations of existing 45 ENGINE implementations. 50 Configuration support currently exists in the ENGINE API itself, in the [all …]
|
/freebsd/crypto/openssl/apps/lib/ |
H A D | engine.c | 28 static ENGINE *try_load_engine(const char *engine) in try_load_engine() 30 ENGINE *e = NULL; in try_load_engine() 43 ENGINE *setup_engine_methods(const char *id, unsigned int methods, int debug) in setup_engine_methods() 45 ENGINE *e = NULL; in setup_engine_methods() 77 void release_engine(ENGINE *e) in release_engine() 85 int init_engine(ENGINE *e) in init_engine() 95 int finish_engine(ENGINE *e) in finish_engine() 105 char *make_engine_uri(ENGINE *e, const char *key_id, const char *desc) in make_engine_uri() 138 int get_legacy_pkey_id(OSSL_LIB_CTX *libctx, const char *algname, ENGINE *e) in get_legacy_pkey_id() 141 ENGINE *tmpeng = NULL; in get_legacy_pkey_id() [all …]
|
/freebsd/crypto/openssl/engines/ |
H A D | e_ossltest.c | 51 static int ossltest_destroy(ENGINE *e); 52 static int ossltest_init(ENGINE *e); 53 static int ossltest_finish(ENGINE *e); 58 static int ossltest_digests(ENGINE *e, const EVP_MD **digest, 243 static int ossltest_ciphers(ENGINE *, const EVP_CIPHER **, 376 static EVP_PKEY *load_key(ENGINE *eng, const char *key_id, int pub, in load_key() 399 static EVP_PKEY *ossltest_load_privkey(ENGINE *eng, const char *key_id, in ossltest_load_privkey() 405 static EVP_PKEY *ossltest_load_pubkey(ENGINE *eng, const char *key_id, in ossltest_load_pubkey() 412 static int bind_ossltest(ENGINE *e) in bind_ossltest() 435 static int bind_helper(ENGINE *e, const char *id) in bind_helper() [all …]
|