Home | History | Annotate | Download | only in engine

Lines Matching refs:engine

15 #include <openssl/engine.h>
34 ENGINE *ENGINE_new(void) {
35 ENGINE *engine = OPENSSL_malloc(sizeof(ENGINE));
36 if (engine == NULL) {
40 OPENSSL_memset(engine, 0, sizeof(ENGINE));
41 return engine;
44 void ENGINE_free(ENGINE *engine) {
46 OPENSSL_free(engine);
65 int ENGINE_set_RSA_method(ENGINE *engine, const RSA_METHOD *method,
67 return set_method((void **)&engine->rsa_method, method, method_size,
71 RSA_METHOD *ENGINE_get_RSA_method(const ENGINE *engine) {
72 return engine->rsa_method;
75 int ENGINE_set_ECDSA_method(ENGINE *engine, const ECDSA_METHOD *method,
77 return set_method((void **)&engine->ecdsa_method, method, method_size,
81 ECDSA_METHOD *ENGINE_get_ECDSA_method(const ENGINE *engine) {
82 return engine->ecdsa_method;
98 OPENSSL_DECLARE_ERROR_REASON(ENGINE, OPERATION_NOT_SUPPORTED)