Patch load-engines for OpenSSL related Bug #54473
Patch version 2011-04-05 21:39 UTC
Return to Bug #54473 |
Download this patch
Patch Revisions:
Developer: crrodriguez@opensuse.org
--- ext/openssl/openssl.c.orig
+++ ext/openssl/openssl.c
@@ -47,6 +47,7 @@
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <openssl/pkcs12.h>
+#include <openssl/engine.h>
/* Common */
#include <time.h>
@@ -984,6 +985,11 @@ PHP_MINIT_FUNCTION(openssl)
OpenSSL_add_all_digests();
OpenSSL_add_all_algorithms();
+ /* Load all bundled ENGINEs into memory and make them visible */
+ ENGINE_load_builtin_engines();
+ /* Register all of them for every algorithm they collectively implement */
+ ENGINE_register_all_complete();
+
ERR_load_ERR_strings();
ERR_load_crypto_strings();
ERR_load_EVP_strings();
|