diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-10-20 23:07:48 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-10-20 23:07:48 +0000 |
commit | 035a2e5479c312df64f7db0e98089e1f89f5f78e (patch) | |
tree | f2b06cfeb26328954c486d5948351f499c8f4c07 | |
parent | 6983ba3225305da0fa3b38691b34799ff3f68837 (diff) |
A few prototypes shouldn't be defined if SSL is disabled.
-rw-r--r-- | lib/sslgen.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/sslgen.h b/lib/sslgen.h index a32dfb82f..aa3c802e0 100644 --- a/lib/sslgen.h +++ b/lib/sslgen.h @@ -60,6 +60,20 @@ 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); + +/* Functions to be used by SSL library adaptation functions */ + +/* extract a session ID */ +int Curl_ssl_getsessionid(struct connectdata *conn, + void **ssl_sessionid, + size_t *idsize) /* set 0 if unknown */; +/* add a new session ID */ +CURLcode Curl_ssl_addsessionid(struct connectdata *conn, + void *ssl_sessionid, + size_t idsize); + +#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */ + #else /* When SSL support is not present, just define away these function calls */ #define Curl_ssl_init() 1 @@ -82,15 +96,4 @@ void Curl_ssl_free_certinfo(struct SessionHandle *data); #endif -/* extract a session ID */ -int Curl_ssl_getsessionid(struct connectdata *conn, - void **ssl_sessionid, - size_t *idsize) /* set 0 if unknown */; -/* add a new session ID */ -CURLcode Curl_ssl_addsessionid(struct connectdata *conn, - void *ssl_sessionid, - size_t idsize); - -#define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */ - -#endif +#endif /* USE_SSL */ |