~ubuntu-branches/ubuntu/natty/gnupg/natty-security

« back to all changes in this revision

Viewing changes to include/http.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2010-01-04 20:06:01 UTC
  • mfrom: (1.1.11 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100104200601-0rble341i2xns9xw
Tags: 1.4.10-2ubuntu1
* Merge from Debian testing (lp: #503064, #477818). Remaining changes:
  - Add 'debian/patches/50_disable_mlock_test.dpatch': Disable mlock() test
    since it fails with ulimit 0 (on buildds).
  - Add 'debian/patches/61_use_agent_default.dpatch': Patch to set gpg
    (or gpg2) and gpgsm to use a passphrase agent by default (lp: 15485)
  - Fix udeb build failure on powerpc, building with -O2 instead of -Os.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* http.h  -  HTTP protocol handler
2
 
 * Copyright (C) 1999, 2000, 2001, 2003, 2004,
3
 
 *               2005 Free Software Foundation, Inc.
 
2
 * Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005,
 
3
 *               2009 Free Software Foundation, Inc.
4
4
 *
5
5
 * This file is part of GnuPG.
6
6
 *
54
54
/* put flag values into an enum, so that gdb can display them */
55
55
enum
56
56
  { 
57
 
    HTTP_FLAG_NO_SHUTDOWN = 1,
58
 
    HTTP_FLAG_TRY_SRV = 2
 
57
    HTTP_FLAG_NO_SHUTDOWN = 1
59
58
  };
60
59
 
61
60
struct http_context {
75
74
typedef struct http_context *HTTP_HD;
76
75
 
77
76
int http_open( HTTP_HD hd, HTTP_REQ_TYPE reqtype, const char *url,
78
 
               char *auth, unsigned int flags, const char *proxy );
 
77
               char *auth, unsigned int flags, const char *proxy,
 
78
               const char *srvtag, STRLIST headers );
79
79
void http_start_data( HTTP_HD hd );
80
80
int  http_wait_response( HTTP_HD hd, unsigned int *ret_status );
81
81
void http_close( HTTP_HD hd );
82
82
int http_open_document( HTTP_HD hd, const char *document, char *auth,
83
 
                        unsigned int flags, const char *proxy );
 
83
                        unsigned int flags, const char *proxy,
 
84
                        const char *srvtag, STRLIST headers );
84
85
 
85
86
#endif /*G10_HTTP_H*/