diff --git a/include/ChangeLog b/include/ChangeLog index e17b96df1..f2fdbd0e2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2005-06-21 David Shaw + + * http.h: Fix prototypes for http_open_document and http_open to + pass in auth and proxyauth. + 2005-05-19 Werner Koch * util.h: Add definitions for membuf functions. 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*/