<pre><code>Jun 6 14:38:43 spce lb[27903]: : tls [tls_init.c:557]: init_tls_h(): ERROR: tls: init_tls_h: installed openssl library version is too different from the library the Kamailio tls module was compiled with: installed "OpenSSL 1.0.1t 3 May 2016" (0x1000114f), compiled "OpenSSL 1.0.1k 8 Jan 2015" (0x100010bf).#012 Please make sure a compatible version is used (tls_force_run in kamailio.cfg will override this check)
Jun 6 14:38:43 spce lb[27903]: CRITICAL: <core> [main.c:2577]: main(): could not initialize tls, exiting...
</code></pre>

<p>openssl was upgraded from  1.0.1k-3+deb8u5 to 1.0.1t-1+deb8u2</p>

<p>This seems not to work properly<br>
<a href="https://github.com/kamailio/kamailio/blob/master/modules/tls/tls_init.c#L543-L563">https://github.com/kamailio/kamailio/blob/master/modules/tls/tls_init.c#L543-L563</a></p>

<pre><code>#if OPENSSL_VERSION_NUMBER < 0x00907000L
    WARN("You are using an old version of OpenSSL (< 0.9.7). Upgrade!\n");
#endif
    ssl_version=SSLeay();
    /* check if version have the same major minor and fix level
     * (e.g. 0.9.8a & 0.9.8c are ok, but 0.9.8 and 0.9.9x are not) */
    if ((ssl_version>>8)!=(OPENSSL_VERSION_NUMBER>>8)){
        LOG(L_CRIT, "ERROR: tls: init_tls_h: installed openssl library "
                "version is too different from the library the Kamailio tls module "
                "was compiled with: installed \"%s\" (0x%08lx), compiled "
                "\"%s\" (0x%08lx).\n"
                " Please make sure a compatible version is used"
                " (tls_force_run in kamailio.cfg will override this check)\n",
                SSLeay_version(SSLEAY_VERSION), ssl_version,
                OPENSSL_VERSION_TEXT, (long)OPENSSL_VERSION_NUMBER);
        if (cfg_get(tls, tls_cfg, force_run))
            LOG(L_WARN, "tls: init_tls_h: tls_force_run turned on, ignoring "
                        " openssl version mismatch\n");
        else
            return -1; /* safer to exit */
    }
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/662">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZXK1IEMvwsmLEaXuxHFsvYFfmS3fks5qJWgngaJpZM4Iv4dK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zczs6Jpa43MmajNqmmqVS98EcMpjks5qJWgngaJpZM4Iv4dK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/662"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>