aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_hkp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * gpgkeys_hkp.c (curl_mrindex_writer): Revert previous change.David Shaw2006-11-061-5/+3
| | | | | Key-not-found still has a HTML response.
* * gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTMLDavid Shaw2006-10-201-1/+4
| | | | | coming back from a MR hkp query.
* Clarified cURL and OpenLDAP license issues.Werner Koch2006-09-221-0/+11
| | | | | Made readline support work.
* * gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key,David Shaw2006-07-171-2/+2
| | | | | | send_key_keyserver): Improved version of previous fix. Force match on spaces in string.
* * gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key, send_key_keyserver):David Shaw2006-07-141-3/+6
| | | | | | Fix string matching problem when the ascii armored form of the key happens to match "KEY" at the beginning of the line.
* * Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer asDavid Shaw2006-04-261-3/+3
| | | | | | | | 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.
* * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down onDavid Shaw2006-02-221-0/+3
| | | | | odd matches.
* * gpgkeys_hkp.c (send_key): Do not escape the '=' in the HTTP POST whenDavid Shaw2006-01-161-13/+16
| | | | | uploading a key.
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".David Shaw2005-12-231-2/+96
| | | | | | * gpgkeys_hkp.c (main, get_name), gpgkeys_ldap.c (main, get_name): Use it here to do direct name (rather than key ID) fetches.
* * ksutil.h, ksutil.c (curl_armor_writer, curl_writer,David Shaw2005-12-191-5/+6
| | | | | | | | 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.
* Fix various build warnings reported by Joe Vender on MinGW.David Shaw2005-11-031-1/+1
|
* * ksutil.h, ksutil.c (parse_ks_options): Remove exact-name andDavid Shaw2005-08-261-41/+9
| | | | | | | | | exact-email. (classify_ks_search): Mimic the gpg search modes instead with *, =, <, and @. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Call them here. Suggested by Jason Harris.
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver-option exact-name. David Shaw2005-08-181-2/+20
| | | | | | | | The last of exact-name and exact-email overrides the earlier. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do a name-only search.
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver-optionDavid Shaw2005-08-181-4/+34
| | | | | | | | exact-email. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do an email-only search.
* * 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_mailto.in, gpgkeys_test.in: Use @VERSION@ so version stringDavid Shaw2005-06-231-11/+18
| | | | | | | | | | | | | | 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.
* * gpgkeys_hkp.c (append_path, send_key, get_key, search_key, main),David Shaw2005-06-211-10/+19
| | | | | gpgkeys_oldhkp.c (main): Properly handle double slashes in paths.
* * gpgkeys_hkp.c, gpgkeys_oldhkp.c: Add support for HKP servers thatDavid Shaw2005-06-041-8/+16
| | | | | aren't at the root path. Suggested by Jack Bates.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * gpgkeys_hkp.c, gpgkeys_oldhkp.c, ksutil.h: Some minor cleanup andDavid Shaw2005-05-021-3/+9
| | | | | comments as to the size of MAX_LINE and MAX_URL.
* * gpgkeys_hkp.c: New hkp handler that uses curl or curl-shim.David Shaw2005-04-171-713/+256
| | | | | | | * Makefile.am: Build new gpgkeys_hkp. * curl-shim.c (curl_easy_perform): Cleanup.
* * gpgkeys_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved fromDavid Shaw2005-03-221-2/+2
| | | | | | | | | gpgkeys_ldap.c. Print a string, but strip out any CRs. * gpgkeys_finger.c (get_key), gpgkeys_hkp.c (get_key), gpgkeys_http.c (get_key): Use it here when outputting key material to canonicalize line endings.
* * gpgkeys_finger.c (main), gpgkeys_hkp.c (main): Fix --version output.David Shaw2005-02-051-1/+1
| | | | | | * gpgkeys_curl.c (main): Make sure the curl handle is cleaned up on failure.
* * gpgkeys_hkp.c (get_key), gpgkeys_http.c (get_key): Fix missingDavid Shaw2005-02-011-0/+1
| | | | | http_close() calls. Noted by Phil Pennock.
* * ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,David Shaw2005-01-131-23/+1
| | | | | | gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the various defines to ksutil.h.
* * gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1David Shaw2005-01-131-21/+29
| | | | | of a minor cleanup to use #defines instead of hard-coded sizes.
* * gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optionalDavid Shaw2004-12-221-1/+3
| | | | | | | | | | 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_hkp.c (send_key, get_key, search_key): Use "hkp" instead ofDavid Shaw2004-10-181-4/+3
| | | | | "x-hkp" so it can be used as a SRV tag.
* * gpgkeys_ldap.c (main, show_help): Kludge to implement standardWerner Koch2004-10-151-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.
* * gpgkeys_ldap.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main),David Shaw2004-10-131-4/+25
| | | | | | | | 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.
* * gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Fix aDavid Shaw2004-10-111-7/+7
| | | | | few occurances of "filename" to `filename'.
* change back skey to unsigned and cast insteadStefan Bellon2004-08-271-1/+1
|
* fix type incompatibilityStefan Bellon2004-08-271-5/+5
|
* * gpgkeys_ldap.c (get_key, search_key), gpgkeys_hkp.c (get_key,David Shaw2004-08-231-7/+0
| | | | | | search_key), gpgkeys_http.c (get_key): Do not give informational logs since this is now done inside gpg.
* * gpgkeys_hkp.c (dehtmlize): Understand the quote character (i.e.David Shaw2004-08-231-7/+16
| | | | | | "&quot;") in HTML responses. (search_key): Search key must be unsigned for url encoder to work properly for 8-bit values.
* (send_key): Add a content type.Werner Koch2004-01-131-0/+4
|
* * gpgkeys_hkp.c (search_key): Catch a mangled input file (useful ifDavid Shaw2004-01-121-2/+9
| | | | | | | | something other than GnuPG is calling the program). (main): Avoid possible pre-string write. Noted by Christian Biere. * gpgkeys_ldap.c (main): Avoid possible pre-string write.
* * gpgkeys_hkp.c (send_key, get_key, main): Work with new HTTP code thatDavid Shaw2003-12-281-13/+30
| | | | | | | passes the proxy in from the outside. If the command file sends a proxy, use it. If it sends "http-proxy" with no arguments, use $http_proxy from the environment.
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-281-8/+0
|
* (get_key): Fixed invalid use of fprintf withoutWerner Koch2003-11-271-2/+2
| | | | | format string.
* * gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available.David Shaw2003-05-311-0/+6
| | | | | | | | | | Also include extern references for optarg and optind since there is no guarantee that any header file will include them. Standards? We don't need no stinkin' standards * Makefile.am: Use @GETOPT@ to pull in libiberty on those platforms that need it.
* * gpgkeys_hkp.c (dehtmlize, parse_hkp_index): Fix memory corruption bug onDavid Shaw2003-04-091-1/+3
| | | | | some platforms.
* * gpgkeys_hkp.c (get_key): Properly handle CRLF line endings in theDavid Shaw2003-03-111-2/+17
| | | | | | | | | armored key. (main): Accept "try-dns-srv" option. * Makefile.am: Use @CAPLIBS@ to link in -lcap if we are using capabilities. Use @SRVLIBS@ to link in the resolver if we are using DNS SRV.
* * gpgkeys_hkp.c (get_key): Use options=mr when getting a key so keyserverDavid Shaw2003-01-061-1/+1
| | | | | doesn't attach the HTML header which we will just have to discard.
* * gpgkeys_ldap.c (main), gpgkeys_hkp.c (main): Use new keyserver protocolDavid Shaw2002-11-181-1/+1
| | | | | version.
* * gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key): Properly handle anDavid Shaw2002-11-041-8/+10
| | | | | input file that does not include any key data at all.
* * gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to outputDavid Shaw2002-10-241-1/+6
| | | | | protocol and program version.
* * gpgkeys_hkp.c (write_quoted): Use %-encoding instead of \-encoding.David Shaw2002-10-141-99/+126
| | | | | | (parse_hkp_index): Use new keyserver key listing format, and add support for disabled keys via include-disabled.
* * gpgkeys_ldap.c (fail_all): New function to unwind a keylist and errorDavid Shaw2002-10-091-2/+32
| | | | | | | | | | | | each item. (main): Call fail_all from here, as needed. Also add a NO_MEMORY error in an appropriate place and fix error return code. (ldap_err_to_gpg_err): Add KEYSERVER_UNREACHABLE. * gpgkeys_hkp.c (fail_all): New function to unwind a keylist and error each item. (main): Call fail_all from here. Also add a NO_MEMORY error in an appropriate place. (get_key): Use new UNREACHABLE error for network errors.
* * gpgkeys_hkp.c (send_key, get_key, search_key, main): Some minor errorDavid Shaw2002-09-241-35/+44
| | | | | reporting enhancements for use with GPA.