aboutsummaryrefslogtreecommitdiff
path: root/lib/sslgen.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-09-05 14:29:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-09-05 14:29:21 +0000
commit4c9768565ec3a9baf26ac8a547bca6e42cc64fa5 (patch)
tree9713affdba06e0ff43abe1f1bdb01bdc3b4cf5a7 /lib/sslgen.h
parent873e734c3971fd620c09bdc31c2e7e4cfc4a0a67 (diff)
- Introducing CURLOPT_CERTINFO and the corresponding CURLINFO_CERTINFO. By
enabling this feature with CURLOPT_CERTINFO for a request using SSL (HTTPS or FTPS), libcurl will gather lots of server certificate info and that info can then get extracted by a client after the request has completed with curl_easy_getinfo()'s CURLINFO_CERTINFO option. Linus Nielsen Feltzing helped me test and smoothen out this feature. Unfortunately, this feature currently only works with libcurl built to use OpenSSL. This feature was sponsored by networking4all.com - thanks!
Diffstat (limited to 'lib/sslgen.h')
-rw-r--r--lib/sslgen.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/sslgen.h b/lib/sslgen.h
index f6eff057a..a32dfb82f 100644
--- a/lib/sslgen.h
+++ b/lib/sslgen.h
@@ -59,7 +59,7 @@ size_t Curl_ssl_version(char *buffer, size_t size);
bool Curl_ssl_data_pending(const struct connectdata *conn,
int connindex);
int Curl_ssl_check_cxn(struct connectdata *conn);
-
+void Curl_ssl_free_certinfo(struct SessionHandle *data);
#else
/* When SSL support is not present, just define away these function calls */
#define Curl_ssl_init() 1
@@ -78,6 +78,7 @@ int Curl_ssl_check_cxn(struct connectdata *conn);
#define Curl_ssl_version(x,y) 0
#define Curl_ssl_data_pending(x,y) 0
#define Curl_ssl_check_cxn(x) 0
+#define Curl_ssl_free_certinfo(x)
#endif
@@ -90,11 +91,6 @@ CURLcode Curl_ssl_addsessionid(struct connectdata *conn,
void *ssl_sessionid,
size_t idsize);
-#if !defined(USE_SSL) && !defined(SSLGEN_C)
-/* set up blank macros for none-SSL builds */
-#define Curl_ssl_close_all(x)
-#endif
-
#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */
#endif