<p>So there is a problem with the function "cvt_bin"</p>
<pre><code>static inline void cvt_bin(HASHHEX hex, HASH bin)
{
        unsigned short i;
        unsigned char j;
        for (i = 0; i<HASHLEN; i++) {
                if(hex[2*i]>='0' && hex[2*i]<='9')
                        j = (hex[2*i]-'0') << 4;
                else if(hex[2*i]>='a'&&hex[2*i]<='f')
                        j = (hex[2*i]-'a'+10) << 4;
                else if(hex[2*i]>='A'&&hex[2*i]<='F')
                        j = (hex[2*i]-'A'+10) << 4;
                else j = 0;

                if(hex[2*i+1]>='0'&&hex[2*i+1]<='9')
                        j += hex[2*i+1]-'0';
                else if(hex[2*i+1]>='a'&&hex[2*i+1]<='f')
                        j += hex[2*i+1]-'a'+10;
                else if(hex[2*i+1]>='A'&&hex[2*i+1]<='F')
                        j += hex[2*i+1]-'A'+10;

                bin[i] = j;
        }
}
</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/2108?email_source=notifications&email_token=ABO7UZKCMQ3ZN7SU2FOZVMLQP4II7A5CNFSM4JDO6QQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6BWOA#issuecomment-545004344">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPUTMXEDIVUCYJCIM3QP4II7ANCNFSM4JDO6QQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPCGUV2KAXAYV5B4ETQP4II7A5CNFSM4JDO6QQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6BWOA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2108?email_source=notifications\u0026email_token=ABO7UZKCMQ3ZN7SU2FOZVMLQP4II7A5CNFSM4JDO6QQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6BWOA#issuecomment-545004344",
"url": "https://github.com/kamailio/kamailio/issues/2108?email_source=notifications\u0026email_token=ABO7UZKCMQ3ZN7SU2FOZVMLQP4II7A5CNFSM4JDO6QQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6BWOA#issuecomment-545004344",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>