2 * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
4 * This file is part of GNUPG.
6 * GNUPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * GNUPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
28 CURLE_UNSUPPORTED_PROTOCOL
=1,
29 CURLE_COULDNT_CONNECT
=7,
30 CURLE_FTP_COULDNT_RETR_FILE
=19,
31 CURLE_HTTP_RETURNED_ERROR
=22,
39 CURLOPT_WRITEFUNCTION
,
42 CURLOPT_FOLLOWLOCATION
,
46 CURLOPT_SSL_VERIFYPEER
,
54 typedef size_t (*write_func
)(char *buffer
,size_t size
,
55 size_t nitems
,void *outstream
);
71 unsigned int failonerror
:1;
72 unsigned int verbose
:1;
79 const char **protocols
;
80 } curl_version_info_data
;
82 #define CURL_ERROR_SIZE 256
83 #define CURL_GLOBAL_DEFAULT 0
84 #define CURLVERSION_NOW 0
86 CURLcode
curl_global_init(long flags
);
87 void curl_global_cleanup(void);
88 CURL
*curl_easy_init(void);
89 CURLcode
curl_easy_setopt(CURL
*curl
,CURLoption option
,...);
90 CURLcode
curl_easy_perform(CURL
*curl
);
91 void curl_easy_cleanup(CURL
*curl
);
92 char *curl_escape(char *str
,int len
);
93 #define curl_free(x) free(x)
94 #define curl_version() "GnuPG curl-shim "VERSION
95 curl_version_info_data
*curl_version_info(int type
);
97 #endif /* !_CURL_SHIM_H_ */