]> granicus.if.org Git - curl/commitdiff
Fixed compile using OpenSSL versions < 0.9.4a
authorDarshan Mody <darshan.mody@wipro.com>
Thu, 20 Jan 2011 20:11:22 +0000 (12:11 -0800)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 20 Jan 2011 20:11:22 +0000 (12:11 -0800)
lib/ssluse.c

index 2e434359750171d4e1fe0747a9f8429665744ccb..ef60e5e34580469b5f0b3f95d59394a25a57855a 100644 (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