Home | History | Annotate | Download | only in engine

Lines Matching refs:engine

15 #include <openssl/engine.h>
32 ENGINE *ENGINE_new(void) {
33 ENGINE *engine = OPENSSL_malloc(sizeof(ENGINE));
34 if (engine == NULL) {
38 memset(engine, 0, sizeof(ENGINE));
39 return engine;
42 void ENGINE_free(ENGINE *engine) {
43 if (engine->dh_method != NULL) {
44 METHOD_unref(engine->dh_method);
47 OPENSSL_free(engine);
73 int ENGINE_set_DH_method(ENGINE *engine, const DH_METHOD *method,
75 return set_method((void **)&engine->dh_method, method, method_size,
79 DH_METHOD *ENGINE_get_DH_method(const ENGINE *engine) {
80 return engine->dh_method;
83 int ENGINE_set_DSA_method(ENGINE *engine, const DSA_METHOD *method,
85 return set_method((void **)&engine->dsa_method, method, method_size,
89 DSA_METHOD *ENGINE_get_DSA_method(const ENGINE *engine) {
90 return engine->dsa_method;
93 int ENGINE_set_RSA_method(ENGINE *engine, const RSA_METHOD *method,
95 return set_method((void **)&engine->rsa_method, method, method_size,
99 RSA_METHOD *ENGINE_get_RSA_method(const ENGINE *engine) {
100 return engine->rsa_method;
103 int ENGINE_set_ECDSA_method(ENGINE *engine, const ECDSA_METHOD *method,
105 return set_method((void **)&engine->ecdsa_method, method, method_size,
109 ECDSA_METHOD *ENGINE_get_ECDSA_method(const ENGINE *engine) {
110 return engine->ecdsa_method;