diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-02-25 20:35:16 -0800 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-02-25 20:50:26 -0800 |
commit | d7846237a441985feb8214d0ffa5bb49590855d2 (patch) | |
tree | cf60085370680bc4084dcd3627ad85cc0f62ad8e | |
parent | 386afdf60762d1510313f8cadb203ed4936cdc98 (diff) |
http: removed code duplication for stubbed https_getsock function.
-rw-r--r-- | lib/http.c | 41 |
1 files changed, 3 insertions, 38 deletions
diff --git a/lib/http.c b/lib/http.c index b2fb7cb28..78f6ef1f8 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1849,7 +1849,8 @@ static int https_getsock(struct connectdata *conn, return CURLE_OK; } #else -#ifdef USE_NSS +#if defined(USE_NSS) || defined(USE_QSOSSL) || \ + defined(USE_POLARSSL) || defined(USE_AXTLS) static int https_getsock(struct connectdata *conn, curl_socket_t *socks, int numsocks) @@ -1859,43 +1860,7 @@ static int https_getsock(struct connectdata *conn, (void)numsocks; return GETSOCK_BLANK; } -#else -#ifdef USE_QSOSSL -static int https_getsock(struct connectdata *conn, - curl_socket_t *socks, - int numsocks) -{ - (void)conn; - (void)socks; - (void)numsocks; - return GETSOCK_BLANK; -} -#else -#ifdef USE_POLARSSL -static int https_getsock(struct connectdata *conn, - curl_socket_t *socks, - int numsocks) -{ - (void)conn; - (void)socks; - (void)numsocks; - return GETSOCK_BLANK; -} -#else -#ifdef USE_AXTLS -static int https_getsock(struct connectdata *conn, - curl_socket_t *socks, - int numsocks) -{ - (void)conn; - (void)socks; - (void)numsocks; - return GETSOCK_BLANK; -} -#endif /* USE_AXTLS */ -#endif /* USE_POLARSSL */ -#endif /* USE_QSOSSL */ -#endif /* USE_NSS */ +#endif /* USE_AXTLS || USE_POLARSSL || USE_QSOSSL || USE_NSS */ #endif /* USE_SSLEAY || USE_GNUTLS */ /* |