aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-28 08:37:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-28 08:37:54 +0000
commit3c52c53dddd3193d20bcb6fb335b1813eb1c07dd (patch)
treea5af9e9145b928cc538478de4cc8fafad1706ebd /lib/urldata.h
parent321ba15a82df0dba12b8f21fa60025c02e3bb998 (diff)
Added SSL session ID caching, moved some SSL code from url.c to ssluse.c
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 342e143df..d0e54c7ba 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -125,6 +125,13 @@ struct ssl_connect_data {
#endif /* USE_SSLEAY */
};
+/* information about one single SSL session */
+struct curl_ssl_session {
+ char *name; /* host name for which this ID was used */
+ void *sessionid; /* as returned from the SSL layer */
+ long age; /* just a number, the higher the more recent */
+};
+
struct ssl_config_data {
long version; /* what version the client wants to use */
long certverifyresult; /* result from the certificate verification */
@@ -134,6 +141,10 @@ struct ssl_config_data {
char *CAfile; /* cerficate to verify peer against */
char *random_file; /* path to file containing "random" data */
char *egdsocket; /* path to file containing the EGD daemon socket */
+
+ struct curl_ssl_session *session; /* array of 'numsessions' size */
+ long numsessions; /* SSL session id cache size */
+ long sessionage; /* number of the most recent session */
};
/****************************************************************************