[SR-Users] tls.so: mod_register failed on fedora 18 x86_64

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 21 22:23:58 CEST 2013


Hello,

On 8/20/13 4:24 PM, Roberto Fichera wrote:
> [...]
>> Mmmhhh!!! Looks like this particular version has problem, see:
>>
>> http://bugs.python.org/msg191610
>
> I can confirm that the bug is present in both Fedora 18 & 19. The 
> openssl has a bug
> which prevent the tls module to work due to allow_customize = 0 set in 
> one of the
> functions called by OPENSSL_init() within CRYPTO_set_mem_functions().
>
> You can check easily with this small code:
>
> #include <stdio.h>
> #include <openssl/ssl.h>
>
> static void *myMalloc( size_t s ) { return NULL; }
> static void *myRealloc( void *p, size_t s ) { return NULL; }
> static void myFree( void *p ) {}
>
> int main()
> {
>   if ( !CRYPTO_set_mem_functions( myMalloc, myRealloc, myFree) )
>   {
>     fprintf( stderr, "Unable to set the memory allocation functions\n");
>     return -1;
>   }
>
>   return 0;
> }
>
> compile with "gcc -o testssl testssl.c -lssl -lcrypto"
>
> I've done a small patch in order to workaround the problem in case 
> someone need it.
Thanks for investigating further and providing proper references.

Is the patch for kamailio? If yes, you can attach it here or on our 
tracker, so others can use it. Eventually we can integrate it in the 
module, there are couple of other workarounds for openssl bugs there.

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/20130821/45d59e86/attachment.html>


More information about the sr-users mailing list