php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54473
Patch OPENSSL_config revision 2011-04-26 18:20 UTC by andrew at ei-grad dot ru
Patch load-engines revision 2011-04-05 21:39 UTC by crrodriguez at opensuse dot org

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();
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 07:01:34 2019 UTC