From 2f0bc9d1f74236bec433d0681f9893db6f22694e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 19 Jul 2003 23:55:15 +0000 Subject: [PATCH] No longer stores user+password in the sessionhandle, now doing that in the connectdata struct instead. Each being an allocated pointer. The passwdgiven field was turned into a local variable in the only function it was being used. --- lib/urldata.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/urldata.h b/lib/urldata.h index 04f999f03..fa2a316a8 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -413,6 +413,9 @@ struct connectdata { char *proxyhost; /* name of the http proxy host */ + char *user; /* user name string, allocated */ + char *passwd; /* password string, allocated */ + struct timeval now; /* "current" time */ struct timeval created; /* creation time */ int firstsocket; /* the main socket to use */ @@ -615,14 +618,8 @@ struct UrlState { } used_interface; /* buffers to store authentication data in, as parsed from input options */ - char user[MAX_CURL_USER_LENGTH]; - char passwd[MAX_CURL_PASSWORD_LENGTH]; char proxyuser[MAX_CURL_USER_LENGTH]; char proxypasswd[MAX_CURL_PASSWORD_LENGTH]; - - bool passwdgiven; /* set TRUE if an application-provided password has been - set */ - struct timeval keeps_speed; /* for the progress meter really */ /* 'connects' will be an allocated array with pointers. If the pointer is