aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_curl.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-20Remove the obsolete keyserver directory from the repo.Werner Koch1-419/+0
-- We also merge dirmngr/ChangeLog.1 into dirmngr/ChangeLog-2011 and rename keyserver/ChangeLog-2011 to dirmngr/ChangeLog-2011-ks.
2013-11-18Make use of the *_NAME etc macros.Werner Koch1-2/+2
Replace hardwired strings at many places with new macros from config.h and use the new strusage macro replacement feature. * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn sentinels. * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-3/+3
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2009-05-28Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw1-0/+23
2009-05-11From 1.4:David Shaw1-4/+6
* curl-shim.h (curl_version): No need to provide a version for curl-shim as it always matches the GnuPG version. * gpgkeys_curl.c, gpgkeys_hkp.c (main): Show which version of curl we're using as part of --version. * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_ldap.c (show_help): Document --version.
2008-04-14* gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurlDavid Shaw1-4/+4
number options are passed as long. * curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl better - libcurl uses 'long', not 'unsigned int'.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-03-14From STABLE-BRANCH-1-4David Shaw1-2/+18
* gpgkeys_curl.c (main): Use curl_version_info to verify that the 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.
2006-09-22Clarified cURL and OpenLDAP license issues.Werner Koch1-0/+11
Made readline support work.
2006-06-30Added keyserver directory from trunkWerner Koch1-0/+369
2006-04-26* Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer asDavid Shaw1-4/+4
this is done via curl or fake-curl. * ksutil.h, ksutil.c, gpgkeys_hkp.c, gpgkeys_curl.c: Minor #include tweaks as FAKE_CURL is no longer meaningful.
2005-12-19* ksutil.h, ksutil.c (curl_armor_writer, curl_writer,David Shaw1-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.
2005-12-07* gpgkeys_finger.c (get_key), gpgkeys_curl.c (get_key): Better languageDavid Shaw1-8/+5
for the key-not-found error.
2005-12-07* ksutil.c (curl_err_to_gpg_err): Add CURLE_OK and CURLE_COULDNT_CONNECT.David Shaw1-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.
2005-08-04* gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: ShowDavid Shaw1-0/+1
version of curl (or curl-shim) when debug is set.
2005-07-20* gpgkeys_curl.c (get_key, main): Don't try and be smart about whatDavid Shaw1-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.
2005-06-23* gpgkeys_mailto.in, gpgkeys_test.in: Use @VERSION@ so version stringDavid Shaw1-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.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-04-17* ksutil.h, ksutil.c (curl_writer), gpgkeys_curl.c (get_key): Pass aDavid Shaw1-1/+5
context to curl_writer so we can support multiple fetches in a single session.
2005-04-16* gpgkeys_curl.c (main): If the http-proxy option is given without anyDavid Shaw1-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.
2005-03-17* gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start usingDavid Shaw1-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.
2005-02-12* curl-shim.c (curl_easy_perform): Fix compile warning.David Shaw1-0/+24
* curl-shim.h, gpgkeys_curl.c (main), gpgkeys_ldap.c (main): Add ca-cert-file option, to pass in the SSL cert.
2005-02-11* curl-shim.h, curl-shim.c: New. This is code to fake the curl API inDavid Shaw1-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.
2005-02-05* gpgkeys_finger.c (main), gpgkeys_hkp.c (main): Fix --version output.David Shaw1-2/+3
* gpgkeys_curl.c (main): Make sure the curl handle is cleaned up on failure.
2005-01-24* gpgkeys_ldap.c (print_nocr): New. (get_key): Call it here toDavid Shaw1-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.
2005-01-22* gpgkeys_ldap.c (main): Add "check-cert" option to disable SSLDavid Shaw1-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).
2005-01-18* gpgkeys_curl.c: Fix typo.David Shaw1-1/+1
2005-01-18* gpgkeys_curl.c: s/MAX_PATH/URLMAX_PATH/g to avoid a clash withWerner Koch1-5/+10
the W32 defined macro. Removed unneeded initialization of static variables. * gpgkeys_http.c: Ditto. * ksutil.h: s/MAX_PATH/URLMAX_PATH/.
2005-01-18* gpgkeys_curl.c (main): Only allow specified protocols to use theDavid Shaw1-7/+10
curl handler. * Makefile.am: Use LIBCURL_CPPFLAGS instead of LIBCURL_INCLUDES.
2005-01-13* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,David Shaw1-25/+11
gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the various defines to ksutil.h.
2005-01-10* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define TRUE.David Shaw1-1/+1
2004-12-24* gpgkeys_curl.c (main): Use new defines for opting out of certainDavid Shaw1-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.
2004-12-22* gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optionalDavid Shaw1-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.
2004-12-22* gpgkeys_curl.c (get_key, writer): New function to wrap around fwrite toDavid Shaw1-1/+9
avoid DLL access problem on win32. * gpgkeys_http.c (main, get_key): Properly pass authentication info through to the http library.
2004-12-22* Makefile.am: Build gpgkeys_http or gpgkeys_curl as needed.David Shaw1-12/+49
* gpgkeys_curl.c (main, get_key): Minor tweaks to work with either FTP or HTTP. * gpgkeys_ftp.c: renamed to gpgkeys_curl.c.
2004-12-22* gpgkeys_ftp.c (main, get_key): Use auth data as passed by gpg. UseDavid Shaw1-6/+13
CURLOPT_FILE instead of CURLOPT_WRITEDATA (same option, but backwards compatible).
2004-12-21FTP keyserver support via gpgkeys_ftp. This is currently off by default.David Shaw1-111/+52
2004-10-15* gpgkeys_ldap.c (main, show_help): Kludge to implement standardWerner Koch1-3/+21
GNU options. Factored help printing out. * gpgkeys_finger.c (main, show_help): Ditto. * gpgkeys_hkp.c (main, show_help): Ditto. * gpgkeys_http.c (main, show_help): Ditto. * gpgkeys_test.in, gpgkeys_mailto.in: Implement --version and --help.
2004-10-13* gpgkeys_ldap.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main),David Shaw1-4/+21
gpgkeys_finger.c (main): Call timeout functions before performing an action that could block for a long time. * ksutil.h, ksutil.c: New. Right now just contains timeout functions.
2004-10-11* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Fix aDavid Shaw1-2/+2
few occurances of "filename" to `filename'.
2004-08-23* gpgkeys_ldap.c (get_key, search_key), gpgkeys_hkp.c (get_key,David Shaw1-4/+0
search_key), gpgkeys_http.c (get_key): Do not give informational logs since this is now done inside gpg.
2004-05-26* gpgkeys_http.c: General polish and removal of leftover stuff fromDavid Shaw1-31/+21
gpgkeys_hkp.c.
2004-05-22* gpgkeys_http.c (get_key): Cosmetic fix - make sure that URLs with noDavid Shaw1-4/+4
path use a path of "/".
2004-05-20* gpgkeys_http.c: New program to do a simple HTTP file fetch using theDavid Shaw1-0/+381
keyserver interface. * Makefile.am: Build it.