<div dir="ltr">Hi Todd, <div><br></div><div>Thanks for the information. </div><div>I've looked at compiling. I'm assuming this is the file you're referring to?</div><div>/usr/local/src/openssl-1.1.1m/<a href="http://configdata.pm">configdata.pm</a><br></div><div><br></div><div>What am I looking for in that file? There is no mention of malloc? <br>Do I alter this file before running</div><div><p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)">make
clean</p>

<p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)">make</p>

<p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)">make
install</p><p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)"><br></p><p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">Thanks, </span><br></p><p style="margin:0in;font-family:"Courier New";font-size:11pt;color:rgb(0,176,240)"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">Chris</span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 30 Mar 2022 at 16:32, Todd Short <<a href="mailto:todd.short@me.com">todd.short@me.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Each OS distribution may choose to enable/disable features as they see fit. And they may also patch the code.<div><br></div><div>It's likely RHEL disabled the functionality.</div><div><br></div><div>You would need to download the RPM source, build it, and see what is enabled (via <a href="http://configdata.pm" target="_blank">configdata.pm</a>) and what patches may have been applied.</div><div><br></div><div><div>
<div dir="auto" style="overflow-wrap: break-word;"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">--</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">-Todd Short</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">// <a href="mailto:todd.short@me.com" target="_blank">todd.short@me.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">// “One if by land, two if by sea, three if by the Internet."</div></div>
</div>

<div><br><blockquote type="cite"><div>On Mar 30, 2022, at 4:45 AM, Chris <<a href="mailto:sadfe523123@gmail.com" target="_blank">sadfe523123@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Hi All, </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Experienced an issue with Kamailio which presented with the
below error</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">      tls_pre_init(): Unable to set the
memory allocation functions</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">I have two servers CentOS8 and RHEL8. CentOS8 runs as expected,
RHEL8 shows the errors</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">This forum suggested this was related to an OpenSSL issue <a href="https://urldefense.com/v3/__https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html__;!!GjvTz_vk!AfL-J9AyplACFBlZMGroviNViIr_q6cV1xsicFVnuZ6r6VYVHs6K5HmWKLb-$" style="color:blue" target="_blank"><span style="color:rgb(5,99,193)">https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html</span></a></span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">The below script was compiled and run as suggested in order
confirm the OpenSSL was present </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">#include <stdio.h></span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">#include <openssl/ssl.h></span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New""> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">static void *myMalloc( size_t s ) {
return NULL; }   </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">static void *myRealloc( void *p, size_t
s ) { return NULL; }</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">static void myFree( void *p ) {}</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New""> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">int main()</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">{</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">  if ( !CRYPTO_set_mem_functions(
myMalloc, myRealloc, myFree) )</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">  {</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">    fprintf( stderr,
"Unable to set the memory allocation functions\n");</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">    return -1;</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">  }</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New""> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">  return 0;</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt 36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:10pt;font-family:"Courier New"">}</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">The output on each system was different</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="text-indent:36pt;margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">CentOS – nothing outputted</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">RHEL – “Unable
to set the memory allocation functions”</span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Though versions of OpenSSL installed appeared the same</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="text-indent:36pt;margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)">yum info openssl-libs openssl | grep
'Packages\|Name\|Version'</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">      CentOS:</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">     
      Installed Packages</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Name        
: openssl</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Version     
: 1.1.1k</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Name        
: openssl-libs</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Version     
: 1.1.1k</span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">      RHEL: </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">     
      Installed Packages</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Name        
: openssl</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Version     
: 1.1.1k</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Name        
: openssl-libs</span></div><div style="margin:0cm 0cm 0.0001pt 36pt;text-indent:36pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Version     
: 1.1.1k</span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)">      strings /usr/lib64/libcrypto.so |
grep "^OpenSSL"</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">      Both systems have the same output</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Would someone be able to confirm what is going on here?</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Does the above script suggest a problem with the OpenSSL-Libs? </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Am I looking in the right places to confirm a difference between
the two VMs? </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(0,176,240)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></p><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Thanks, </span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div><div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:"Courier New";color:rgb(31,73,125)">Chris</span><span style="font-size:11pt;font-family:Calibri,sans-serif"></span></div></div>
</div></blockquote></div><br></div></div></blockquote></div>