http: removed code duplication for stubbed https_getsock function.

This commit is contained in:
Julien Chaffraix 2011-02-25 20:35:16 -08:00
Родитель 386afdf607
Коммит d7846237a4
1 изменённых файлов: 3 добавлений и 38 удалений

Просмотреть файл

@ -1849,7 +1849,8 @@ static int https_getsock(struct connectdata *conn,
return CURLE_OK; return CURLE_OK;
} }
#else #else
#ifdef USE_NSS #if defined(USE_NSS) || defined(USE_QSOSSL) || \
defined(USE_POLARSSL) || defined(USE_AXTLS)
static int https_getsock(struct connectdata *conn, static int https_getsock(struct connectdata *conn,
curl_socket_t *socks, curl_socket_t *socks,
int numsocks) int numsocks)
@ -1859,43 +1860,7 @@ static int https_getsock(struct connectdata *conn,
(void)numsocks; (void)numsocks;
return GETSOCK_BLANK; return GETSOCK_BLANK;
} }
#else #endif /* USE_AXTLS || USE_POLARSSL || USE_QSOSSL || USE_NSS */
#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_SSLEAY || USE_GNUTLS */ #endif /* USE_SSLEAY || USE_GNUTLS */
/* /*