aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-30 17:01:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-30 17:01:00 +0000
commit836aaa1647eb075f0d0e47e5e1c09653f86ce61b (patch)
treeb42d09c9e1df5180a560f86a84228667535f5e18
parentbf2b3dbf3e4ceb0da016c0628af3d37e59c77377 (diff)
changes need for the new ftp path treatment and the new cookie code
-rw-r--r--lib/urldata.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 85911280a..04a057013 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -93,6 +93,9 @@
of need. */
#define HEADERSIZE 256
+/* Maximum number of dirs supported by libcurl in a FTP dir hierarchy */
+#define CURL_MAX_FTP_DIRDEPTH 100
+
/* Just a convenience macro to get the larger value out of two given */
#ifndef MAX
#define MAX(x,y) ((x)>(y)?(x):(y))
@@ -193,7 +196,7 @@ struct FTP {
char *user; /* user name string */
char *passwd; /* password string */
char *urlpath; /* the originally given path part of the URL */
- char *dir; /* decoded directory */
+ char *dirs[CURL_MAX_FTP_DIRDEPTH]; /* path components */
char *file; /* decoded file */
char *entrypath; /* the PWD reply when we logged on */
@@ -435,6 +438,7 @@ struct connectdata {
char *ref; /* free later if not NULL! */
char *cookie; /* free later if not NULL! */
char *host; /* free later if not NULL */
+ char *cookiehost; /* free later if not NULL */
} allocptr;
char *newurl; /* This can only be set if a Location: was in the