Re: openssl/crypto cleanup

2012-04-12 Thread jeremy hunt
ailto:jere...@optimation.com.au] Sent: April 10, 2012 6:11 PM To: openssl-users@openssl.org Cc: Nou Dadoun Subject: Re: openssl/crypto cleanup On a disconnect check the state of the SSL data structure and call SSL_free if it is not null. if (*sslptr != NULL) { SSL_free (*sslptr); *sslptr = NULL

RE: openssl/crypto cleanup

2012-04-11 Thread Nou Dadoun
e useful ... N --- Nou Dadoun ndad...@teradici.com 604-628-1215 -Original Message- From: jeremy hunt [mailto:jere...@optimation.com.au] Sent: April 10, 2012 6:11 PM To: openssl-users@openssl.org Cc: Nou Dadoun Subject: Re: openssl/crypto cleanup On a disconnect check the state of the

Re: openssl/crypto cleanup

2012-04-11 Thread jeremy hunt
On a disconnect check the state of the SSL data structure and call SSL_free if it is not null. if (*sslptr != NULL) { SSL_free (*sslptr); *sslptr = NULL; } Though as you say it is a certificate issue, then perhaps you need to look at SSL_CTX_free(*sslctxptr) Look at the man page for this

openssl/crypto cleanup

2012-04-10 Thread Nou Dadoun
Hi, I've looked at the archives and didn't see any apropos discussions so I thought I'd go straight to the list: We use the openssl & crypto libraries in several places in our product both in fips and non-fips modes. We have a set of unit tests to exercise various portions of our code to ensure