aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* curl-shim: clean up varargsDaniel Kahn Gillmor2015-02-231-0/+2
| | | | | | | | | | | | | | | | | | * keyserver/curl-shim.c (curl_easy_setopt) : ensure that va_end is called. -- stdarg(3) says: Each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function. Observed by Joshua Rogers <[email protected]> Debian-Bug-Id: #773475 [dkg: rebased to STABLE-BRANCH-1-4] Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* Emulate curl_easy_getinfo and CURLINFO_RESPONSE_CODE in curl-shim.David Shaw2013-03-031-1/+23
| | | | | * keyserver/curl-shim.h, keyserver/curl-shim.c (curl_easy_getinfo): New. Return the HTTP status code for the last transfer.
* Fix issue 1446: honor ports given in SRV responses.David Shaw2012-12-191-3/+23
| | | | | | | | | | | | | | * common/http.c (send_request, connect_server, http_open): Use a struct srv instead of a single srvtag so we can pass the chosen host and port back to the caller. (connect_server): Use the proper port in the HAVE_GETADDRINFO case. * keyserver/curl-shim.c (curl_easy_perform): Use struct srv and log chosen host and port. * keyserver/gpgkeys_hkp.c (main): Properly take the port given by SRV. Backported from ba9e974f1fd85b3dbbfb5e26d7a14f71d07c7cf2
* Restructured the compat functions and changed its license.Werner Koch2009-08-251-1/+1
| | | | | New fucntion xstrconcat for future use.
* Avoid caches to get the most recent copy of the key. This is bugDavid Shaw2009-05-261-2/+30
| | | | | #1061
* * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): AddDavid Shaw2009-04-031-3/+8
| | | | | | | | | | a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine). * http.h: Allow passing srvtag to http_open and http_open_document. * http.c (http_open, http_open_document): Allow passing srvtag to http_open and http_open_document.
* * gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurlDavid Shaw2008-04-141-1/+1
| | | | | number options are passed as long.
* * curl-shim.c (curl_easy_setopt): Minor tweak to match the real curlDavid Shaw2008-04-141-3/+3
| | | | | better - libcurl uses 'long', not 'unsigned int'.
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* * gpgkeys_curl.c (main): Use curl_version_info to verify that theDavid Shaw2007-03-131-3/+8
| | | | | | | | | protocol we're about to use is actually available. * curl-shim.h, curl-shim.c (curl_free): Make into a macro. (curl_version_info): New. Only advertises "http" for our shim, of course.
* * gpgkeys_ldap.c (send_key): Missing a free().David Shaw2007-02-111-1/+8
| | | | | | * curl-shim.c (curl_easy_perform): Some debugging items that may be handy.
* * curl-shim.h, curl-shim.c, gpgkeys_hkp.c: Rename curl_escape() toDavid Shaw2007-01-161-2/+2
| | | | | curl_easy_escape() to match cURL.
* * curl-shim.c (curl_easy_perform): Minor cleanup of proxy code.David Shaw2006-07-211-5/+3
|
* * gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix badDavid Shaw2006-07-121-1/+1
| | | | | encoding of characters > 127. Noted by Nalin Dahyabhai.
* * curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,David Shaw2006-02-221-3/+3
| | | | | curl_easy_perform): Mingw has 'stderr' as a macro?
* * curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,David Shaw2006-02-211-2/+17
| | | | | | curl_easy_perform): Add CURLOPT_VERBOSE and CURLOPT_STDERR for easier debugging.
* * curl-shim.c (curl_easy_perform): Fix build warning (code beforeDavid Shaw2005-12-061-1/+2
| | | | | declaration).
* Converted all m_free to xfree etc.Werner Koch2005-07-271-1/+1
|
* * gpgkeys_curl.c (get_key, main): Don't try and be smart about whatDavid Shaw2005-07-201-6/+20
| | | | | | | | | | | protocols we handle. Directly pass them to curl or fake-curl and see if an error comes back. * curl-shim.h, curl-shim.c (handle_error), ksutil.c (curl_err_to_gpg_err): Add support for CURLE_UNSUPPORTED_PROTOCOL in fake curl. * Makefile.am: Don't need -DFAKE_CURL any longer since it's in config.h.
* * gpgkeys_mailto.in, gpgkeys_test.in: Use @VERSION@ so version stringDavid Shaw2005-06-231-2/+17
| | | | | | | | | | | | | | stays up to date. * gpgkeys_http.c: Don't need to define HTTP_PROXY_ENV here since it's in ksutil.h. * gpgkeys_curl.c (get_key, main), gpgkeys_hkp.c (main): Pass AUTH values to curl or curl-shim. * curl-shim.c (curl_easy_perform), gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Use curl-style proxy semantics.
* * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): AddDavid Shaw2005-06-231-2/+5
| | | | | CURLOPT_USERPWD option for HTTP auth.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * gpgkeys_hkp.c: New hkp handler that uses curl or curl-shim.David Shaw2005-04-171-67/+54
| | | | | | | * Makefile.am: Build new gpgkeys_hkp. * curl-shim.c (curl_easy_perform): Cleanup.
* * curl-shim.h, curl-shim.c (handle_error, curl_easy_setopt,David Shaw2005-04-171-18/+92
| | | | | curl_easy_perform): Add POST functionality to the curl shim.
* * curl-shim.h, curl-shim.c (curl_escape, curl_free): EmulateDavid Shaw2005-04-161-0/+61
| | | | | curl_escape and curl_free.
* * curl-shim.c (curl_easy_perform): Fix compile warning.David Shaw2005-02-121-1/+1
| | | | | | * curl-shim.h, gpgkeys_curl.c (main), gpgkeys_ldap.c (main): Add ca-cert-file option, to pass in the SSL cert.
* * curl-shim.h, curl-shim.c: New. This is code to fake the curl API inDavid Shaw2005-02-111-0/+153
terms of the current HTTP iobuf API. * gpgkeys_curl.c [FAKE_CURL], Makefile.am: If FAKE_CURL is set, link with the iobuf code rather than libcurl.