1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

https_getsock() should be static all over (and did some fixed indenting)

This commit is contained in:
Daniel Stenberg 2008-02-18 19:53:31 +00:00
parent e829d5643f
commit 0d722204c3

View File

@ -112,8 +112,8 @@
static CURLcode https_connecting(struct connectdata *conn, bool *done); static CURLcode https_connecting(struct connectdata *conn, bool *done);
#ifdef USE_SSL #ifdef USE_SSL
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);
#endif #endif
/* /*
@ -146,9 +146,9 @@ const struct Curl_handler Curl_handler_https = {
Curl_http_done, /* done */ Curl_http_done, /* done */
ZERO_NULL, /* do_more */ ZERO_NULL, /* do_more */
Curl_http_connect, /* connect_it */ Curl_http_connect, /* connect_it */
https_connecting, /* connecting */ https_connecting, /* connecting */
ZERO_NULL, /* doing */ ZERO_NULL, /* doing */
https_getsock, /* proto_getsock */ https_getsock, /* proto_getsock */
ZERO_NULL, /* doing_getsock */ ZERO_NULL, /* doing_getsock */
ZERO_NULL, /* disconnect */ ZERO_NULL, /* disconnect */
PORT_HTTPS, /* defport */ PORT_HTTPS, /* defport */
@ -1727,8 +1727,8 @@ static CURLcode https_connecting(struct connectdata *conn, bool *done)
/* This function is OpenSSL-specific. It should be made to query the generic /* This function is OpenSSL-specific. It should be made to query the generic
SSL layer instead. */ SSL layer instead. */
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)
{ {
if(conn->protocol & PROT_HTTPS) { if(conn->protocol & PROT_HTTPS) {
struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET]; struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET];
@ -1751,9 +1751,9 @@ static int https_getsock(struct connectdata *conn,
} }
#else #else
#ifdef USE_GNUTLS #ifdef USE_GNUTLS
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)
{ {
(void)conn; (void)conn;
(void)socks; (void)socks;
@ -1762,9 +1762,9 @@ int https_getsock(struct connectdata *conn,
} }
#else #else
#ifdef USE_NSS #ifdef USE_NSS
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)
{ {
(void)conn; (void)conn;
(void)socks; (void)socks;
@ -1773,9 +1773,9 @@ int https_getsock(struct connectdata *conn,
} }
#else #else
#ifdef USE_QSOSSL #ifdef USE_QSOSSL
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)
{ {
(void)conn; (void)conn;
(void)socks; (void)socks;
@ -2759,9 +2759,9 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
else else
/* HTTP GET/HEAD download: */ /* HTTP GET/HEAD download: */
result = Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, result = Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE,
&http->readbytecount, &http->readbytecount,
http->postdata?FIRSTSOCKET:-1, http->postdata?FIRSTSOCKET:-1,
http->postdata?&http->writebytecount:NULL); http->postdata?&http->writebytecount:NULL);
} }
if(result) if(result)
return result; return result;