<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote">Hi,<br>
<br>
I am using openssl for ARM based target and I have cross compiled<br>
OpenSSLv1.0.2l from sources with FIPS.<br>
I have implemented the DTLSv1.2 based Server using OpenSSL APIs and able to<br>
run it on my target.<br>
<br>
Issue I am facing is when there is network failure I try to clean up the<br>
current DTLS session but I always get segmentation fault during SSL_free. <br>
If I remove SSL_free the segmentation fault goes away but I need to call it<br>
in order to free up the ssl session memory. <br>
<br>
While further debugging using GDB I found <br>
<br>
(gdb) bt<br>
#0  0xb6e3cc10 in dtls1_get_record () from /usr/lib/libssl.so.1.0.0<br>
#1  0xb6e3d928 in dtls1_read_bytes () from /usr/lib/libssl.so.1.0.0<br>
#2  0xb6e28264 in ssl3_read () from /usr/lib/libssl.so.1.0.0<br>
#3  0x000a7180 in ?? ()<br>
<br>
<br>
Code snippet: <br>
<br>
     SSL_set_shutdown(p_cinfo->m_pssl, SSL_SENT_SHUTDOWN |<br>
SSL_RECEIVED_SHUTDOWN);<br>
     stat = SSL_shutdown(p_cinfo->m_pssl);<br>
     switch(stat)<br>
     {<br>
           case 1: <br>
               printf("Shutdown successfull\n");<br>
               break;        <br>
            case 0:<br>
            case -1:<br>
            default:<br>
               printf("Error Shutting down \n");<br>
               print_ssl_err(p_cinfo->m_pssl, stat);<br>
        }<br>
    *    SSL_free(p_cinfo->m_pssl); <br>
*<br>
<br>
Any clues for above issue will be very helpful.<br>
<br>
Also I would like to know how to identify the long term release for 1.0.2<br>
series with most of the bug fixes which I could use for my project.<br>
<br>
Thanks <br>
NJ<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html" rel="noreferrer" target="_blank">http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html</a><br>
</div></div>
</div></div>