This change adds cipher and digest support into ENGINE using the
[openssl.git] / crypto / engine / eng_fat.c
index e99b52e03461016085d8b86b2823b9243cc845e1..3fb379f37c6e6f20595bf3ae1b2840dbd8b7c396 100644 (file)
 
 int ENGINE_set_default(ENGINE *e, unsigned int flags)
        {
+       if((flags & ENGINE_METHOD_CIPHERS) && !ENGINE_set_default_ciphers(e))
+               return 0;
+       if((flags & ENGINE_METHOD_DIGESTS) && !ENGINE_set_default_digests(e))
+               return 0;
 #ifndef OPENSSL_NO_RSA
        if((flags & ENGINE_METHOD_RSA) & !ENGINE_set_default_RSA(e))
                return 0;
@@ -79,6 +83,8 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
 
 int ENGINE_register_complete(ENGINE *e)
        {
+       ENGINE_register_ciphers(e);
+       ENGINE_register_digests(e);
 #ifndef OPENSSL_NO_RSA
        ENGINE_register_RSA(e);
 #endif