]> granicus.if.org Git - curl/commitdiff
A few prototypes shouldn't be defined if SSL is disabled.
authorDan Fandrich <dan@coneharvesters.com>
Mon, 20 Oct 2008 23:07:48 +0000 (23:07 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 20 Oct 2008 23:07:48 +0000 (23:07 +0000)
lib/sslgen.h

index a32dfb82f1c00654ce78cc9d3fa8e99c7d8e9b18..aa3c802e0c5f72d8c6b12bb82fc75af0346d04ed 100644 (file)
@@ -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 */