diff options
author | David Shaw <[email protected]> | 2005-06-22 04:13:41 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-06-22 04:13:41 +0000 |
commit | 1684bda54e6c4e14cbfd8fe691314d9298ae0cfa (patch) | |
tree | 2d32c41c6ddcd9262203ca74b7ae203c852c6b15 /include/http.h | |
parent | * http.c (send_request, http_open, http_open_document): Pass in auth (diff) | |
download | gnupg-1684bda54e6c4e14cbfd8fe691314d9298ae0cfa.tar.gz gnupg-1684bda54e6c4e14cbfd8fe691314d9298ae0cfa.zip |
* http.h: Fix prototypes for http_open_document and http_open to pass
in auth and proxyauth.
Diffstat (limited to '')
-rw-r--r-- | include/http.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/http.h b/include/http.h index 3437bcde3..265552532 100644 --- a/include/http.h +++ b/include/http.h @@ -36,7 +36,7 @@ typedef struct uri_tuple *URI_TUPLE; struct parsed_uri { /* all these pointers point into buffer; most stuff is not escaped */ char *scheme; /* pointer to the scheme string (lowercase) */ - char *auth; /* username/password for basic auth */ + const char *auth; /* username/password for basic auth */ char *host; /* host (converted to lowercase) */ ushort port; /* port (always set if the host is set) */ char *path; /* the path */ @@ -76,11 +76,13 @@ struct http_context { typedef struct http_context *HTTP_HD; int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url, - unsigned int flags, const char *proxy ); + const char *auth, unsigned int flags, const char *proxy, + const char *proxyauth ); void http_start_data( HTTP_HD hd ); int http_wait_response( HTTP_HD hd, unsigned int *ret_status ); void http_close( HTTP_HD hd ); -int http_open_document( HTTP_HD hd, const char *document, - unsigned int flags, const char *proxy ); +int http_open_document( HTTP_HD hd, const char *document, const char *auth, + unsigned int flags, const char *proxy, + const char *proxyauth ); #endif /*G10_HTTP_H*/ |