aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sslgen.h27
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 */