aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-05 22:14:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-05 22:14:40 +0000
commitb62c230ca26b8080b3b5be8f42b48a6fa733d716 (patch)
tree10c06cd08cd149c24e37f43d701ebb770eda03b0 /lib
parent800193da9bf666d48847d27d8af28a755c9aa0d8 (diff)
Curl_https_getsock() was OpenSSL-specific and really should not be present
like this in this source file. The quickfix for now is to provide a simple version for GnuTLS builds. The GnuTLS version of libcurl doesn't yet allow fully non-blocking connects anyway so this function doesn't get used.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index 3b6d57977..b1995e61e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1415,6 +1415,8 @@ CURLcode Curl_https_connecting(struct connectdata *conn, bool *done)
}
#ifdef USE_SSLEAY
+/* This function is OpenSSL-specific. It should be made to query the generic
+ SSL layer instead. */
int Curl_https_getsock(struct connectdata *conn,
curl_socket_t *socks,
int numsocks)
@@ -1438,6 +1440,18 @@ int Curl_https_getsock(struct connectdata *conn,
}
return CURLE_OK;
}
+#else
+#ifdef USE_GNUTLS
+int Curl_https_getsock(struct connectdata *conn,
+ curl_socket_t *socks,
+ int numsocks)
+{
+ (void)conn;
+ (void)socks;
+ (void)numsocks;
+ return GETSOCK_BLANK;
+}
+#endif
#endif
/*