Zypp must obey user provided openssl.cnf and load builtin-engines, faster, hardware...
authorCristian Rodríguez <yo@cristianrodriguez.net>
Mon, 5 Sep 2011 16:57:07 +0000 (13:57 -0300)
committerCristian Rodríguez <yo@cristianrodriguez.net>
Mon, 5 Sep 2011 16:57:07 +0000 (13:57 -0300)
zypp/Digest.cc

index 380d08c..0b41b4b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <cstdio> // snprintf
 #include <openssl/evp.h>
+#include <openssl/engine.h>
 #include <string>
 #include <string.h>
 
@@ -93,6 +94,9 @@ namespace zypp {
     {
       if(!openssl_digests_added)
       {
+       OPENSSL_config(NULL);
+       ENGINE_load_builtin_engines();
+       ENGINE_register_all_complete();
        OpenSSL_add_all_digests();
        openssl_digests_added = true;
       }