<p>Old <a href="https://lists.kamailio.org/pipermail/sr-users/2013-August/079407.html" rel="nofollow">mail thread</a> from 2013 with a test program:</p>
<pre><code>#include <stdio.h>
#include <openssl/ssl.h>

static void *myMalloc( size_t s ) { return NULL; }
static void *myRealloc( void *p, size_t s ) { return NULL; }
static void myFree( void *p ) {}

int main()
{
  if ( !CRYPTO_set_mem_functions( myMalloc, myRealloc, myFree) )
  {
    fprintf( stderr, "Unable to set the memory allocation functions\n");
    return -1;
  }
  return 0;  
}

</code></pre>
<p>Compile with: <code>gcc -o testssl testssl.c -lssl -lcrypto</code></p>
<p>On the opensuse 42.3:<br>
$ ./testssl<br>
Unable to set the memory allocation functions</p>

<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/1797#issuecomment-453290603">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZS244H0ddAWI_r7Al49P8jq2tHylks5vB8ZLgaJpZM4Z2AmM">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZbW0ZRpku_6cc3IapsueUX_7Wz0Xks5vB8ZLgaJpZM4Z2AmM.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@henningw in #1797: Old [mail thread](https://lists.kamailio.org/pipermail/sr-users/2013-August/079407.html) from 2013 with a test program:\r\n\r\n```\r\n#include \u003cstdio.h\u003e\r\n#include \u003copenssl/ssl.h\u003e\r\n\r\nstatic void *myMalloc( size_t s ) { return NULL; }\r\nstatic void *myRealloc( void *p, size_t s ) { return NULL; }\r\nstatic void myFree( void *p ) {}\r\n\r\nint main()\r\n{\r\n  if ( !CRYPTO_set_mem_functions( myMalloc, myRealloc, myFree) )\r\n  {\r\n    fprintf( stderr, \"Unable to set the memory allocation functions\\n\");\r\n    return -1;\r\n  }\r\n  return 0;  \r\n}\r\n\r\n```\r\nCompile with: `gcc -o testssl testssl.c -lssl -lcrypto`\r\n\r\nOn the opensuse 42.3:\r\n$ ./testssl \r\nUnable to set the memory allocation functions\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1797#issuecomment-453290603"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1797#issuecomment-453290603",
"url": "https://github.com/kamailio/kamailio/issues/1797#issuecomment-453290603",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>