diff options
author | Darshan Mody <darshan.mody@wipro.com> | 2011-01-20 12:11:22 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-01-20 12:11:22 -0800 |
commit | 03be2c99ba7ce0b00988667061087e3bfc2cd62b (patch) | |
tree | 20e2472ce30fcfd9f9f145bf5efe32e49b41b3a0 /lib | |
parent | b77a3b9a35ec9a13f832899b6af5db80bdb2341e (diff) |
Fixed compile using OpenSSL versions < 0.9.4a
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 2e4343597..ef60e5e34 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -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 |