mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
* ksutil.h, ksutil.c: #ifdef so we can build without libcurl or
fake-curl.
This commit is contained in:
parent
049195f9e0
commit
d9d902dffb
3 changed files with 19 additions and 4 deletions
|
@ -21,10 +21,12 @@
|
|||
#ifndef _KSUTIL_H_
|
||||
#define _KSUTIL_H_
|
||||
|
||||
#ifdef HAVE_LIBCURL
|
||||
#include <curl/curl.h>
|
||||
#else
|
||||
#ifdef FAKE_CURL
|
||||
#include "curl-shim.h"
|
||||
#else
|
||||
#include <curl/curl.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* MAX_LINE must be at least 1 larger than the largest item we expect
|
||||
|
@ -98,6 +100,8 @@ void free_ks_options(struct ks_options *opt);
|
|||
int parse_ks_options(char *line,struct ks_options *opt);
|
||||
const char *ks_action_to_string(enum ks_action action);
|
||||
void print_nocr(FILE *stream,const char *str);
|
||||
|
||||
#if defined (HAVE_LIBCURL) || defined (FAKE_CURL)
|
||||
int curl_err_to_gpg_err(CURLcode error);
|
||||
|
||||
struct curl_writer_ctx
|
||||
|
@ -108,5 +112,6 @@ struct curl_writer_ctx
|
|||
};
|
||||
|
||||
size_t curl_writer(const void *ptr,size_t size,size_t nmemb,void *cw_ctx);
|
||||
#endif
|
||||
|
||||
#endif /* !_KSUTIL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue