1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add

a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).

* http.h: Allow passing srvtag to http_open and http_open_document.

 * http.c (http_open, http_open_document): Allow passing srvtag to
http_open and http_open_document.
This commit is contained in:
David Shaw 2009-04-03 03:59:07 +00:00
parent a5b708ba9c
commit a929f4c78e
7 changed files with 39 additions and 17 deletions

View file

@ -1,6 +1,6 @@
/* http.h - HTTP protocol handler
* Copyright (C) 1999, 2000, 2001, 2003, 2004,
* 2005 Free Software Foundation, Inc.
* Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005,
* 2009 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -54,8 +54,7 @@ typedef enum {
/* put flag values into an enum, so that gdb can display them */
enum
{
HTTP_FLAG_NO_SHUTDOWN = 1,
HTTP_FLAG_TRY_SRV = 2
HTTP_FLAG_NO_SHUTDOWN = 1
};
struct http_context {
@ -75,11 +74,13 @@ struct http_context {
typedef struct http_context *HTTP_HD;
int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
char *auth, unsigned int flags, const char *proxy );
char *auth, unsigned int flags, const char *proxy,
const char *srvtag );
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, char *auth,
unsigned int flags, const char *proxy );
unsigned int flags, const char *proxy,
const char *srvtag );
#endif /*G10_HTTP_H*/