Remainder of SSL purpose and trust code: trust and purpose setting in

SSL_CTX and SSL, functions to set them and defaults if no values set.
This commit is contained in:
Dr. Stephen Henson
1999-11-29 22:35:00 +00:00
parent 13938aceca
commit bb7cd4e3eb
11 changed files with 132 additions and 45 deletions

View File

@@ -740,6 +740,7 @@ end:
if (ctx != NULL) SSL_CTX_free(ctx);
if (cbuf != NULL) { memset(cbuf,0,BUFSIZZ); Free(cbuf); }
if (sbuf != NULL) { memset(sbuf,0,BUFSIZZ); Free(sbuf); }
X509_cleanup();
if (bio_c_out != NULL)
{
BIO_free(bio_c_out);

View File

@@ -718,6 +718,7 @@ bad:
ret=0;
end:
if (ctx != NULL) SSL_CTX_free(ctx);
X509_cleanup();
if (bio_s_out != NULL)
{
BIO_free(bio_s_out);