aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-07-19 23:55:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-07-19 23:55:15 +0000
commit2f0bc9d1f74236bec433d0681f9893db6f22694e (patch)
treebdc95e4406966a2e29d207ecaf81166bdbf1c6f0 /lib
parent5ef6520d4ed043e40876b309feb5a83808f0dc28 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/urldata.h9
1 files 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