1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

* ksutil.h, ksutil.c (curl_writer), gpgkeys_curl.c (get_key): Pass a

context to curl_writer so we can support multiple fetches in a single
session.
This commit is contained in:
David Shaw 2005-04-17 01:52:04 +00:00
parent f50e99ed7b
commit 5609f5eafd
4 changed files with 39 additions and 18 deletions

View file

@ -101,6 +101,14 @@ 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);
int curl_err_to_gpg_err(CURLcode error);
size_t curl_writer(const void *ptr,size_t size,size_t nmemb,void *stream);
struct curl_writer_ctx
{
int initialized,markeridx,begun,done;
const char *marker;
FILE *stream;
};
size_t curl_writer(const void *ptr,size_t size,size_t nmemb,void *cw_ctx);
#endif /* !_KSUTIL_H_ */