1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-05 23:07:49 +02:00

* http.h: Fix prototypes for http_open_document and http_open again,

to handle the new different auth for regular files and proxies.
This commit is contained in:
David Shaw 2005-06-23 04:24:28 +00:00
parent c5a94d29ce
commit b7a7551085
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2005-06-23 David Shaw <dshaw@jabberwocky.com>
* http.h: Fix prototypes for http_open_document and http_open
again, to handle the new different auth for regular files and
proxies.
2005-06-21 David Shaw <dshaw@jabberwocky.com>
* http.h: Fix prototypes for http_open_document and http_open to

View File

@ -1,5 +1,6 @@
/* http.h - HTTP protocol handler
* Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
* Copyright (C) 1999, 2000, 2001, 2003, 2004,
* 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -36,7 +37,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) */
const char *auth; /* username/password for basic auth */
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,13 +77,11 @@ struct http_context {
typedef struct http_context *HTTP_HD;
int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
const char *auth, unsigned int flags, const char *proxy,
const char *proxyauth );
char *auth, unsigned int flags, const char *proxy );
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, const char *auth,
unsigned int flags, const char *proxy,
const char *proxyauth );
int http_open_document( HTTP_HD hd, const char *document, char *auth,
unsigned int flags, const char *proxy );
#endif /*G10_HTTP_H*/