1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: Show

version of curl (or curl-shim) when debug is set.
This commit is contained in:
David Shaw 2005-08-04 03:59:16 +00:00
parent 3244978721
commit 1990aacce0
4 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-08-03 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: Show
version of curl (or curl-shim) when debug is set.
2005-07-20 David Shaw <dshaw@jabberwocky.com> 2005-07-20 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_curl.c (get_key, main): Don't try and be smart about * gpgkeys_curl.c (get_key, main): Don't try and be smart about

View File

@ -85,5 +85,6 @@ CURLcode curl_easy_perform(CURL *curl);
void curl_easy_cleanup(CURL *curl); void curl_easy_cleanup(CURL *curl);
char *curl_escape(char *str,int len); char *curl_escape(char *str,int len);
void curl_free(char *ptr); void curl_free(char *ptr);
#define curl_version() "GnuPG curl-shim "VERSION
#endif /* !_CURL_SHIM_H_ */ #endif /* !_CURL_SHIM_H_ */

View File

@ -260,6 +260,7 @@ main(int argc,char *argv[])
if(opt->debug) if(opt->debug)
{ {
fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
curl_easy_setopt(curl,CURLOPT_STDERR,console); curl_easy_setopt(curl,CURLOPT_STDERR,console);
curl_easy_setopt(curl,CURLOPT_VERBOSE,1); curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
} }

View File

@ -533,6 +533,7 @@ main(int argc,char *argv[])
if(opt->debug) if(opt->debug)
{ {
fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
curl_easy_setopt(curl,CURLOPT_STDERR,console); curl_easy_setopt(curl,CURLOPT_STDERR,console);
curl_easy_setopt(curl,CURLOPT_VERBOSE,1); curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
} }