neon/neon-aes-ni.patch
Dirk Mueller 56c2df221e Accepting request 81042 from home:elvigia:branches:devel:libraries:c_c++
- test suite hangs or fails in the OBS, but works locally 
  disable it.

- Load openssl engines as well, needed to support 
  AES-NI, fast/hardware provided hash functions and Ivy bridge's
  RDRAND instruction.

OBS-URL: https://build.opensuse.org/request/show/81042
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/neon?expand=0&rev=17
2011-09-06 06:46:28 +00:00

27 lines
719 B
Diff

--- src/ne_openssl.c.orig
+++ src/ne_openssl.c
@@ -35,6 +35,7 @@
#include <openssl/x509v3.h>
#include <openssl/rand.h>
#include <openssl/opensslv.h>
+#include <openssl/engine.h>
#ifdef NE_HAVE_TS_SSL
#include <stdlib.h> /* for abort() */
@@ -1132,11 +1133,15 @@ static void thread_lock_neon(int mode, i
int ne__ssl_init(void)
{
+ OPENSSL_config(NULL);
CRYPTO_malloc_init();
SSL_load_error_strings();
SSL_library_init();
+ ENGINE_load_builtin_engines();
+ ENGINE_register_all_complete();
OpenSSL_add_all_algorithms();
+
#ifdef NE_HAVE_TS_SSL
/* If some other library has already come along and set up the
* thread-safety callbacks, then it must be presumed that the