Patrick Monnerat's cleanup fix after my alloc-strings commit
This commit is contained in:
@@ -242,7 +242,7 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||||||
int in6 = -1;
|
int in6 = -1;
|
||||||
|
|
||||||
/* First check if the given name is an IP address */
|
/* First check if the given name is an IP address */
|
||||||
in=inet_addr(dev);
|
in=inet_addr((char *) dev);
|
||||||
|
|
||||||
if((in == CURL_INADDR_NONE) &&
|
if((in == CURL_INADDR_NONE) &&
|
||||||
Curl_if2ip(dev, myhost, sizeof(myhost))) {
|
Curl_if2ip(dev, myhost, sizeof(myhost))) {
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ static CURLcode Curl_qsossl_init_session(struct SessionHandle * data)
|
|||||||
* We first try to SSL_Init_Application(), then SSL_Init() if it failed.
|
* We first try to SSL_Init_Application(), then SSL_Init() if it failed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
certname = data->set.cert;
|
certname = data->set.str[STRING_CERT];
|
||||||
|
|
||||||
if (!certname) {
|
if (!certname) {
|
||||||
certname = data->set.ssl.CAfile;
|
certname = data->set.str[STRING_SSL_CAFILE];
|
||||||
|
|
||||||
if (!certname)
|
if (!certname)
|
||||||
return CURLE_OK; /* Use previous setup. */
|
return CURLE_OK; /* Use previous setup. */
|
||||||
@@ -96,7 +96,7 @@ static CURLcode Curl_qsossl_init_session(struct SessionHandle * data)
|
|||||||
|
|
||||||
if (rc == SSL_ERROR_NOT_REGISTERED) {
|
if (rc == SSL_ERROR_NOT_REGISTERED) {
|
||||||
initstr.keyringFileName = certname;
|
initstr.keyringFileName = certname;
|
||||||
initstr.keyringPassword = data->set.key;
|
initstr.keyringPassword = data->set.str[STRING_KEY];
|
||||||
initstr.cipherSuiteList = NULL; /* Use default. */
|
initstr.cipherSuiteList = NULL; /* Use default. */
|
||||||
initstr.cipherSuiteListLen = 0;
|
initstr.cipherSuiteListLen = 0;
|
||||||
rc = SSL_Init(&initstr);
|
rc = SSL_Init(&initstr);
|
||||||
@@ -190,7 +190,7 @@ static CURLcode Curl_qsossl_handshake(struct connectdata * conn, int sockindex)
|
|||||||
|
|
||||||
/* Set-up protocol. */
|
/* Set-up protocol. */
|
||||||
|
|
||||||
switch(data->set.ssl.version) {
|
switch (data->set.ssl.version) {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case CURL_SSLVERSION_DEFAULT:
|
case CURL_SSLVERSION_DEFAULT:
|
||||||
|
|||||||
Reference in New Issue
Block a user