mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
* http.h: Pass the http proxy from outside rather than pulling it from the
evironment.
This commit is contained in:
parent
eea75c0234
commit
a847d49133
@ -1,3 +1,8 @@
|
|||||||
|
2003-12-28 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* http.h: Pass the http proxy from outside rather than pulling it
|
||||||
|
from the evironment.
|
||||||
|
|
||||||
2003-12-28 Stefan Bellon <sbellon@sbellon.de>
|
2003-12-28 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* util.h [__riscos__]: Removal of unnecessary RISC OS stuff.
|
* util.h [__riscos__]: Removal of unnecessary RISC OS stuff.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* http.h - HTTP protocol handler
|
/* http.h - HTTP protocol handler
|
||||||
* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
* Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -17,6 +17,7 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef G10_HTTP_H
|
#ifndef G10_HTTP_H
|
||||||
#define G10_HTTP_H 1
|
#define G10_HTTP_H 1
|
||||||
|
|
||||||
@ -49,11 +50,12 @@ typedef enum {
|
|||||||
HTTP_REQ_POST = 3
|
HTTP_REQ_POST = 3
|
||||||
} HTTP_REQ_TYPE;
|
} HTTP_REQ_TYPE;
|
||||||
|
|
||||||
enum { /* put flag values into an enum, so that gdb can display them */
|
/* put flag values into an enum, so that gdb can display them */
|
||||||
HTTP_FLAG_TRY_PROXY = 1,
|
enum
|
||||||
HTTP_FLAG_NO_SHUTDOWN = 2,
|
{
|
||||||
HTTP_FLAG_TRY_SRV = 3
|
HTTP_FLAG_NO_SHUTDOWN = 1,
|
||||||
};
|
HTTP_FLAG_TRY_SRV = 2
|
||||||
|
};
|
||||||
|
|
||||||
struct http_context {
|
struct http_context {
|
||||||
int initialized;
|
int initialized;
|
||||||
@ -72,11 +74,11 @@ struct http_context {
|
|||||||
typedef struct http_context *HTTP_HD;
|
typedef struct http_context *HTTP_HD;
|
||||||
|
|
||||||
int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
|
int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
|
||||||
unsigned int flags );
|
unsigned int flags, const char *proxy );
|
||||||
void http_start_data( HTTP_HD hd );
|
void http_start_data( HTTP_HD hd );
|
||||||
int http_wait_response( HTTP_HD hd, unsigned int *ret_status );
|
int http_wait_response( HTTP_HD hd, unsigned int *ret_status );
|
||||||
void http_close( HTTP_HD hd );
|
void http_close( HTTP_HD hd );
|
||||||
|
int http_open_document( HTTP_HD hd, const char *document,
|
||||||
int http_open_document( HTTP_HD hd, const char *document, unsigned int flags );
|
unsigned int flags, const char *proxy );
|
||||||
|
|
||||||
#endif /*G10_HTTP_H*/
|
#endif /*G10_HTTP_H*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user