"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/vtls/vtls.c" between
curl-7.65.3.tar.xz and curl-7.66.0.tar.xz

About: cURL is a powerful commandline tool to transfer data from or to a server, using one of the supported protocols HTTP(S), FTP(S), SCP, SFTP, TFTP, DICT, TELNET, LDAP(S) or FILE.

vtls.c  (curl-7.65.3.tar.xz):vtls.c  (curl-7.66.0.tar.xz)
skipping to change at line 516 skipping to change at line 516
/* free the cache data */ /* free the cache data */
Curl_safefree(data->state.session); Curl_safefree(data->state.session);
} }
Curl_ssl->close_all(data); Curl_ssl->close_all(data);
} }
#if defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_SCHANNEL) || \ #if defined(USE_OPENSSL) || defined(USE_GNUTLS) || defined(USE_SCHANNEL) || \
defined(USE_SECTRANSP) || defined(USE_POLARSSL) || defined(USE_NSS) || \ defined(USE_SECTRANSP) || defined(USE_POLARSSL) || defined(USE_NSS) || \
defined(USE_MBEDTLS) || defined(USE_WOLFSSL) defined(USE_MBEDTLS) || defined(USE_WOLFSSL)
int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks, int Curl_ssl_getsock(struct connectdata *conn, curl_socket_t *socks)
int numsocks)
{ {
struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET]; struct ssl_connect_data *connssl = &conn->ssl[FIRSTSOCKET];
if(!numsocks)
return GETSOCK_BLANK;
if(connssl->connecting_state == ssl_connect_2_writing) { if(connssl->connecting_state == ssl_connect_2_writing) {
/* write mode */ /* write mode */
socks[0] = conn->sock[FIRSTSOCKET]; socks[0] = conn->sock[FIRSTSOCKET];
return GETSOCK_WRITESOCK(0); return GETSOCK_WRITESOCK(0);
} }
if(connssl->connecting_state == ssl_connect_2_reading) { if(connssl->connecting_state == ssl_connect_2_reading) {
/* read mode */ /* read mode */
socks[0] = conn->sock[FIRSTSOCKET]; socks[0] = conn->sock[FIRSTSOCKET];
return GETSOCK_READSOCK(0); return GETSOCK_READSOCK(0);
} }
return GETSOCK_BLANK; return GETSOCK_BLANK;
} }
#else #else
int Curl_ssl_getsock(struct connectdata *conn, int Curl_ssl_getsock(struct connectdata *conn,
curl_socket_t *socks, curl_socket_t *socks)
int numsocks)
{ {
(void)conn; (void)conn;
(void)socks; (void)socks;
(void)numsocks;
return GETSOCK_BLANK; return GETSOCK_BLANK;
} }
/* USE_OPENSSL || USE_GNUTLS || USE_SCHANNEL || USE_SECTRANSP || USE_NSS */ /* USE_OPENSSL || USE_GNUTLS || USE_SCHANNEL || USE_SECTRANSP || USE_NSS */
#endif #endif
void Curl_ssl_close(struct connectdata *conn, int sockindex) void Curl_ssl_close(struct connectdata *conn, int sockindex)
{ {
DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); DEBUGASSERT((sockindex <= 1) && (sockindex >= -1));
Curl_ssl->close_one(conn, sockindex); Curl_ssl->close_one(conn, sockindex);
} }
 End of changes. 4 change blocks. 
8 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)