summaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_curl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * ksutil.h, ksutil.c (curl_armor_writer, curl_writer,David Shaw2005-12-191-5/+10
| | | | | | | | curl_writer_finalize): New functionality to handle binary format keys by armoring them for input to GPG. * gpgkeys_curl.c (get_key), gpgkeys_hkp.c (get_key): Call it here.
* * gpgkeys_finger.c (get_key), gpgkeys_curl.c (get_key): Better languageDavid Shaw2005-12-081-8/+5
| | | | | for the key-not-found error.
* * ksutil.c (curl_err_to_gpg_err): Add CURLE_OK and CURLE_COULDNT_CONNECT.David Shaw2005-12-071-4/+12
| | | | | | * gpgkeys_curl.c (get_key): Give key-not-found error if no data is found (or file itself is not found) during a fetch.
* * gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: ShowDavid Shaw2005-08-041-0/+1
| | | | | version of curl (or curl-shim) when debug is set.
* * gpgkeys_curl.c (get_key, main): Don't try and be smart about whatDavid Shaw2005-07-201-23/+2
| | | | | | | | | | | 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-241-16/+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.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * ksutil.h, ksutil.c (curl_writer), gpgkeys_curl.c (get_key): Pass aDavid Shaw2005-04-171-1/+5
| | | | | | context to curl_writer so we can support multiple fetches in a single session.
* * gpgkeys_curl.c (main): If the http-proxy option is given without anyDavid Shaw2005-04-161-63/+11
| | | | | | | | | | arguments, try to get the proxy from the environment. * ksutil.h, ksutil.c (curl_err_to_gpg_err, curl_writer): Copy from gpgkeys_curl.c. * gpgkeys_oldhkp.c: Copy from gpgkeys_hkp.c.
* * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start usingDavid Shaw2005-03-171-145/+53
| | | | | | | | parse_ks_options and remove a lot of common code. * ksutil.h, ksutil.c (parse_ks_options): Parse OPAQUE, and default debug with no arguments to 1.
* * curl-shim.c (curl_easy_perform): Fix compile warning.David Shaw2005-02-121-0/+24
| | | | | | * 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/+4
| | | | | | | | 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.
* * gpgkeys_finger.c (main), gpgkeys_hkp.c (main): Fix --version output.David Shaw2005-02-051-2/+3
| | | | | | * gpgkeys_curl.c (main): Make sure the curl handle is cleaned up on failure.
* * gpgkeys_ldap.c (print_nocr): New. (get_key): Call it here toDavid Shaw2005-01-241-5/+52
| | | | | | | | | canonicalize line endings. * gpgkeys_curl.c (writer): Discard everything outside the BEGIN and END lines when retrieving keys. Canonicalize line endings. (main): Accept FTPS.
* * gpgkeys_ldap.c (main): Add "check-cert" option to disable SSLDavid Shaw2005-01-221-7/+25
| | | | | | | | | certificate checking (which is on by default). * gpgkeys_curl.c (main): Add "debug" option to match the LDAP helper. Add "check-cert" option to disable SSL certificate checking (which is on by default).
* * gpgkeys_curl.c: Fix typo.David Shaw2005-01-181-1/+1
|
* * gpgkeys_curl.c: s/MAX_PATH/URLMAX_PATH/g to avoid a clash withWerner Koch2005-01-181-5/+10
| | | | | | | | the W32 defined macro. Removed unneeded initialization of static variables. * gpgkeys_http.c: Ditto. * ksutil.h: s/MAX_PATH/URLMAX_PATH/.
* * gpgkeys_curl.c (main): Only allow specified protocols to use theDavid Shaw2005-01-181-7/+10
| | | | | | | curl handler. * Makefile.am: Use LIBCURL_CPPFLAGS instead of LIBCURL_INCLUDES.
* * ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,David Shaw2005-01-141-25/+11
| | | | | | gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the various defines to ksutil.h.
* * gpgkeys_curl.c (get_key): Newer versions of libcurl don't define TRUE.David Shaw2005-01-101-1/+1
|
* * gpgkeys_curl.c (main): Use new defines for opting out of certainDavid Shaw2004-12-241-13/+27
| | | | | | | | | | transfer protocols. Allow setting HTTP proxy via "http-proxy=foo" option (there is natural support in libcurl for the http_proxy environment variable). * Makefile.am: Remove the conditional since this is all handled in autoconf now.
* * gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optionalDavid Shaw2004-12-221-1/+21
| | | | | | | | | | numeric value for the maximum number of redirects to allow. Defaults to 5. * gpgkeys_curl.c (main), gpgkeys_finger.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main), gpgkeys_ldap.c (main): Make sure that a "timeout" option passed with no arguments is properly handled.
* * gpgkeys_curl.c (get_key, writer): New function to wrap around fwrite toDavid Shaw2004-12-221-1/+9
| | | | | | | | avoid DLL access problem on win32. * gpgkeys_http.c (main, get_key): Properly pass authentication info through to the http library.
* * Makefile.am: Build gpgkeys_http or gpgkeys_curl as needed.David Shaw2004-12-221-0/+387
* gpgkeys_curl.c (main, get_key): Minor tweaks to work with either FTP or HTTP. * gpgkeys_ftp.c: renamed to gpgkeys_curl.c.