<p>Kamailio's <strong>srutils</strong> SHA functions have names that collide with OpenSSL's <strong>libcrypto</strong> SHA functions.<br>
In practice, OpenSSL fails to validate a server cert if <strong>srutils</strong> is loaded before <strong>libcrypto</strong>, because their SHA functions are not 100% equivalent.</p>

<p>On my Debian, <strong>http_async_client</strong> was unable to issue any HTTPS request unless server certificate verification was disabled.</p>

<p>This patch solves the issue by renaming the SHA functions in <strong>srutils</strong> to non-colliding names. I think this has no side effect because they are only used internally.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/513'>https://github.com/kamailio/kamailio/pull/513</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>srutils: change names colliding with libcrypto</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/513/files#diff-0">lib/srutils/sha256.c</a>
    (56)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/513/files#diff-1">lib/srutils/sha256.h</a>
    (98)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/513/files#diff-2">lib/srutils/shautils.c</a>
    (18)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/513.patch'>https://github.com/kamailio/kamailio/pull/513.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/513.diff'>https://github.com/kamailio/kamailio/pull/513.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/513">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUSpcdixQSZZu46kNFzfoWkdo9XNks5plZNrgaJpZM4Hc7ja.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/pull/513"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>