[SR-Users] tls.so: mod_register failed on fedora 18 x86_64
Daniel-Constantin Mierla
miconda at gmail.com
Thu Aug 22 15:37:54 CEST 2013
On 8/22/13 10:28 AM, Roberto Fichera wrote:
> [...]
>>> Unfortunately not! I haven't found yet a solution to workaround the
>>> openssl patch!
>>> I guess we cannot easily workaround inside the kamailio tls module
>>> since the
>>> problem is strictly related to openssl.
>> Can you share the openssl patch? Maybe we find a solution together
>> here...
>
> Sure! See below
>
> diff -urN openssl-1.0.1e/crypto/mem.c openssl-1.0.1e/crypto/mem.c
> --- openssl-1.0.1e/crypto/mem.c 2013-02-11 16:26:04.000000000 +0100
> +++ openssl-1.0.1e/crypto/mem.c 2013-08-20 12:44:01.375906737 +0200
> @@ -125,7 +125,7 @@
> void (*f)(void *))
> {
> /* Dummy call just to ensure OPENSSL_init() gets linked in */
> - OPENSSL_init();
> + static void *ptr = (void*)OPENSSL_init;
> if (!allow_customize)
> return 0;
> if ((m == 0) || (r == 0) || (f == 0))
Indeed, this one is not possible to fix in our module, because the
function sets some static variables, so it has to be in that file.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130822/48e06226/attachment.html>
More information about the sr-users
mailing list