mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
polarssl: indented code, removed unused variables
This commit is contained in:
parent
8748d4787f
commit
88753c1e89
@ -147,14 +147,7 @@ polarssl_connect_step1(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
struct Curl_easy *data = conn->data;
|
struct Curl_easy *data = conn->data;
|
||||||
struct ssl_connect_data* connssl = &conn->ssl[sockindex];
|
struct ssl_connect_data* connssl = &conn->ssl[sockindex];
|
||||||
|
|
||||||
bool sni = TRUE; /* default is SNI enabled */
|
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
#ifdef ENABLE_IPV6
|
|
||||||
struct in6_addr addr;
|
|
||||||
#else
|
|
||||||
struct in_addr addr;
|
|
||||||
#endif
|
|
||||||
char errorbuf[128];
|
char errorbuf[128];
|
||||||
errorbuf[0]=0;
|
errorbuf[0]=0;
|
||||||
|
|
||||||
@ -163,8 +156,6 @@ polarssl_connect_step1(struct connectdata *conn,
|
|||||||
failf(data, "PolarSSL does not support SSLv2");
|
failf(data, "PolarSSL does not support SSLv2");
|
||||||
return CURLE_SSL_CONNECT_ERROR;
|
return CURLE_SSL_CONNECT_ERROR;
|
||||||
}
|
}
|
||||||
else if(data->set.ssl.version == CURL_SSLVERSION_SSLv3)
|
|
||||||
sni = FALSE; /* SSLv3 has no SNI */
|
|
||||||
|
|
||||||
#ifdef THREADING_SUPPORT
|
#ifdef THREADING_SUPPORT
|
||||||
entropy_init_mutex(&entropy);
|
entropy_init_mutex(&entropy);
|
||||||
|
Loading…
Reference in New Issue
Block a user