openssl-ibmca/openssl-ibmca-1.3.0-libica-soname.patch
2017-03-08 15:58:49 +01:00

22 lines
870 B
Diff

diff -up openssl-ibmca-1.3.0/src/e_ibmca.c.libica-soname openssl-ibmca-1.3.0/src/e_ibmca.c
--- openssl-ibmca-1.3.0/src/e_ibmca.c.libica-soname 2015-12-01 03:33:52.000000000 +0000
+++ openssl-ibmca-1.3.0/src/e_ibmca.c 2017-02-13 20:25:03.122555936 +0000
@@ -127,7 +127,7 @@ typedef struct ibmca_sha512_ctx {
} IBMCA_SHA512_CTX;
#endif
-static const char *LIBICA_NAME = "ica";
+static const char *LIBICA_NAME = "libica.so.3";
#if defined(NID_aes_128_cfb128) && ! defined (NID_aes_128_cfb)
#define NID_aes_128_cfb NID_aes_128_cfb128
@@ -1281,7 +1281,7 @@ static int ibmca_init(ENGINE * e)
/* WJH XXX check name translation */
ibmca_dso = DSO_load(NULL, LIBICA_NAME, NULL,
- /* DSO_FLAG_NAME_TRANSLATION */ 0);
+ /* DSO_FLAG_NO_NAME_TRANSLATION */ 1);
if (ibmca_dso == NULL) {
IBMCAerr(IBMCA_F_IBMCA_INIT, IBMCA_R_DSO_FAILURE);
goto err;