~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-security

« back to all changes in this revision

Viewing changes to keyserver/curl-shim.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-08-04 12:27:49 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090804122749-q0j52zp6xmzvyall
Tags: 2.0.12-0ubuntu1
* New upstream release.
* Add 01-scd-pw2.patch, 03-opgp-writekey.patch, and 06-opgp-sign3072.patch
  from https://bugs.g10code.com/gnupg/issue1094 to make OpenPGP 2.0
  smartcards work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* curl-shim.h
2
 
 * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
 
2
 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3
3
 *
4
4
 * This file is part of GNUPG.
5
5
 *
20
20
#ifndef _CURL_SHIM_H_
21
21
#define _CURL_SHIM_H_
22
22
 
 
23
#include "util.h"
23
24
#include "http.h"
24
25
 
25
26
typedef enum
48
49
    CURLOPT_CAINFO,
49
50
    CURLOPT_POST,
50
51
    CURLOPT_POSTFIELDS,
51
 
    CURLOPT_FAILONERROR
 
52
    CURLOPT_FAILONERROR,
 
53
    CURLOPT_HTTPHEADER,
 
54
    CURLOPT_SRVTAG_GPG_HACK
52
55
  } CURLoption;
53
56
 
54
57
typedef size_t (*write_func)(char *buffer,size_t size,
63
66
  write_func writer;
64
67
  void *file;
65
68
  char *postfields;
 
69
  char *srvtag;
66
70
  unsigned int status;
67
71
  FILE *errors;
 
72
  struct curl_slist *headers;
68
73
  struct
69
74
  {
70
75
    unsigned int post:1;
91
96
void curl_easy_cleanup(CURL *curl);
92
97
char *curl_escape(char *str,int len);
93
98
#define curl_free(x) free(x)
94
 
#define curl_version() "GnuPG curl-shim "VERSION
 
99
#define curl_version() "GnuPG curl-shim"
95
100
curl_version_info_data *curl_version_info(int type);
96
101
 
 
102
struct curl_slist
 
103
{
 
104
  strlist_t list;
 
105
};
 
106
 
 
107
struct curl_slist *curl_slist_append(struct curl_slist *list,
 
108
                                     const char *string);
 
109
void curl_slist_free_all(struct curl_slist *list);
 
110
 
97
111
#endif /* !_CURL_SHIM_H_ */