Mercurial > gftp.yaz
diff lib/gftp.h @ 553:b2b4f5fa8fc7
2004-9-14 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/bookmark.c lib/local.c lib/rfc2068.c lib/rfc959.c
lib/sshv2.c src/gtk/transfer.c src/uicommon/gftpui.c - removed
need_userpass from the gftp_request structure. Added need_username and
need_password in it's place
* autogen.sh - updated CFLAGS variable that is passed to configure
author | masneyb |
---|---|
date | Tue, 14 Sep 2004 10:16:52 +0000 |
parents | 73ff02592d35 |
children | 7f54d0c0edbc |
line wrap: on
line diff
--- a/lib/gftp.h Mon Sep 13 17:42:33 2004 +0000 +++ b/lib/gftp.h Tue Sep 14 10:16:52 2004 +0000 @@ -354,6 +354,9 @@ gftp_request * request, const char *string, ... ); +#define gftp_need_username(request) ((request)->need_username && ((request)->username == NULL || *(request)->username == '\0') +#define gftp_need_password(request) ((request)->need_password && (request)->username != NULL && *(request)->username != '\0' && strcmp ((request)->username, "anonymous") != 0 && ((request)->password == NULL || *(request)->password == '\0')) + struct gftp_request_tag { int protonum; /* Current number of the protocol this is @@ -391,7 +394,8 @@ use_proxy : 1, always_connected : 1, need_hostport : 1, - need_userpass : 1, + need_username : 1, + need_password : 1, use_cache : 1, /* Enable or disable the cache */ cached : 1, /* Is this directory listing cached? */ cancel : 1, /* If a signal is received, should