1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Fixed compile using OpenSSL versions < 0.9.4a

This commit is contained in:
Darshan Mody 2011-01-20 12:11:22 -08:00 committed by Dan Fandrich
parent b77a3b9a35
commit 03be2c99ba

View File

@ -325,9 +325,9 @@ int cert_stuff(struct connectdata *conn,
* If password has been given, we store that in the global
* area (*shudder*) for a while:
*/
size_t len = strlen(data->set.key_passwd);
size_t len = strlen(data->set.str[STRING_KEY_PASSWD]);
if(len < sizeof(global_passwd))
memcpy(global_passwd, data->set.key_passwd, len+1);
memcpy(global_passwd, data->set.str[STRING_KEY_PASSWD], len+1);
#else
/*
* We set the password in the callback userdata