John Denney <jdenney@ca.mdis.com> reports that we forgot to convert

Free to OPENSSL_free in the SSL demos.
This commit is contained in:
Richard Levitte 2000-10-18 19:36:27 +00:00
parent bf55ece1c1
commit ef0ab7f94f
3 changed files with 6 additions and 6 deletions

View file

@ -79,12 +79,12 @@ void main ()
str = X509_NAME_oneline (X509_get_subject_name (server_cert),0,0); str = X509_NAME_oneline (X509_get_subject_name (server_cert),0,0);
CHK_NULL(str); CHK_NULL(str);
printf ("\t subject: %s\n", str); printf ("\t subject: %s\n", str);
Free (str); OPENSSL_free (str);
str = X509_NAME_oneline (X509_get_issuer_name (server_cert),0,0); str = X509_NAME_oneline (X509_get_issuer_name (server_cert),0,0);
CHK_NULL(str); CHK_NULL(str);
printf ("\t issuer: %s\n", str); printf ("\t issuer: %s\n", str);
Free (str); OPENSSL_free (str);
/* We could do all sorts of certificate verification stuff here before /* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */ deallocating the certificate. */

View file

@ -65,12 +65,12 @@ void main ()
str = X509_NAME_oneline (X509_get_subject_name (client_cert)); str = X509_NAME_oneline (X509_get_subject_name (client_cert));
CHK_NULL(str); CHK_NULL(str);
fprintf (log, "\t subject: %s\n", str); fprintf (log, "\t subject: %s\n", str);
Free (str); OPENSSL_free (str);
str = X509_NAME_oneline (X509_get_issuer_name (client_cert)); str = X509_NAME_oneline (X509_get_issuer_name (client_cert));
CHK_NULL(str); CHK_NULL(str);
fprintf (log, "\t issuer: %s\n", str); fprintf (log, "\t issuer: %s\n", str);
Free (str); OPENSSL_free (str);
/* We could do all sorts of certificate verification stuff here before /* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */ deallocating the certificate. */

View file

@ -121,12 +121,12 @@ void main ()
str = X509_NAME_oneline (X509_get_subject_name (client_cert), 0, 0); str = X509_NAME_oneline (X509_get_subject_name (client_cert), 0, 0);
CHK_NULL(str); CHK_NULL(str);
printf ("\t subject: %s\n", str); printf ("\t subject: %s\n", str);
Free (str); OPENSSL_free (str);
str = X509_NAME_oneline (X509_get_issuer_name (client_cert), 0, 0); str = X509_NAME_oneline (X509_get_issuer_name (client_cert), 0, 0);
CHK_NULL(str); CHK_NULL(str);
printf ("\t issuer: %s\n", str); printf ("\t issuer: %s\n", str);
Free (str); OPENSSL_free (str);
/* We could do all sorts of certificate verification stuff here before /* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */ deallocating the certificate. */