aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-09-25 22:04:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-09-25 22:04:51 +0000
commite40f0be7e318472f16ea7abfee734d675a40047a (patch)
treeb5531a1a38ea7e95f99c08eadfb8bb0810fb38b6 /lib/ssluse.c
parentf353258ff62a91263b2cac9eda45dfae553bc0dc (diff)
No longer uses Free() as that was removed from OpenSSL with 0.9.6
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 37374101a..a519332df 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -265,28 +265,25 @@ UrgSSLConnect (struct UrlData *data)
failf(data, "SSL: couldn't get X509-subject!");
return 4;
}
- infof (data, "\t subject: %s\n", str);
- Free (str);
+ infof(data, "\t subject: %s\n", str);
+ OPENSSL_free(str);
str = X509_NAME_oneline (X509_get_issuer_name (data->server_cert), NULL, 0);
if(!str) {
failf(data, "SSL: couldn't get X509-issuer name!");
return 5;
}
- infof (data, "\t issuer: %s\n", str);
- Free (str);
+ infof(data, "\t issuer: %s\n", str);
+ OPENSSL_free(str);
/* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */
-
#if SSL_VERIFY_CERT
infof(data, "Verify result: %d\n", SSL_get_verify_result(data->ssl));
#endif
-
-
- X509_free (data->server_cert);
+ X509_free(data->server_cert);
#else /* USE_SSLEAY */
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
(void) data;