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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user