I had this issue with CentOS 7.3 and chalked it up to the openssl 1.0.1e bug mentioned on the list https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html
However I just updated to CentOS 7.4 with openssl 1.0.2k-8 and the issue still exists with Kamailio 4.4.6-2.2. I've tried moving the loadmodule "tls.so" to the top as well.
ERROR: tls [tls_init.c:526]: tls_pre_init(): Unable to set the memory allocation functions ERROR: tls [tls_init.c:528]: tls_pre_init(): libssl current mem functions - m: 0x7fc56d19c0c0 r: 0x7fc56d19c5a0 f: 0x7fc56d19c4c0 ERROR: tls [tls_init.c:530]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)
Does anybody have TLS working with RHEL 7 or CentOS 7?
Thanks, Ryan
Hello,
have you tried to compile and run that small test program listed in https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html and see if you get the issue? If yes, then you need to use another libssl version.
Cheers, Daniel
On 27.09.17 20:32, Ryan Wagoner wrote:
I had this issue with CentOS 7.3 and chalked it up to the openssl 1.0.1e bug mentioned on the list https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html
However I just updated to CentOS 7.4 with openssl 1.0.2k-8 and the issue still exists with Kamailio 4.4.6-2.2. I've tried moving the loadmodule "tls.so" to the top as well.
ERROR: tls [tls_init.c:526]: tls_pre_init(): Unable to set the memory allocation functions ERROR: tls [tls_init.c:528]: tls_pre_init(): libssl current mem functions - m: 0x7fc56d19c0c0 r: 0x7fc56d19c5a0 f: 0x7fc56d19c4c0 ERROR: tls [tls_init.c:530]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)
Does anybody have TLS working with RHEL 7 or CentOS 7?
Thanks, Ryan
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Thu, Sep 28, 2017 at 2:37 AM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
have you tried to compile and run that small test program listed in https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html and see if you get the issue? If yes, then you need to use another libssl version.
Cheers, Daniel
Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - www.kamailioworld.com
Yes the test program gives me the same "Unable to set the memory allocation functions" on both CentOS 7.3 and 7.4. Is there no way to workaround this issue in Kamailio code? How do other TLS programs work apache, haproxy, etc? What do I need to do to compile against a different libssl version? I'm assuming it would need to be statically linked. Right now I'm running the below to compile the test program.
gcc -o testssl testssl.c -lssl -lcrypto
Thanks, Ryan