SHA256
1
0
forked from pool/neon

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
This commit is contained in:
2011-09-06 06:46:28 +00:00
committed by Git OBS Bridge
parent 35c7e0dc5a
commit 56c2df221e
3 changed files with 42 additions and 2 deletions

26
neon-aes-ni.patch Normal file
View File

@@ -0,0 +1,26 @@
--- 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