aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".David Shaw2005-12-231-0/+3
| | | | | | * 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-33/+125
| | | | | | | | 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.
* * ksutil.c (curl_err_to_gpg_err): Add CURLE_OK and CURLE_COULDNT_CONNECT.David Shaw2005-12-071-1/+4
| | | | | | * gpgkeys_curl.c (get_key): Give key-not-found error if no data is found (or file itself is not found) during a fetch.
* * ksutil.h, ksutil.c (parse_ks_options): Remove exact-name andDavid Shaw2005-08-261-21/+21
| | | | | | | | | 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-1/+14
| | | | | | | | 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-0/+8
| | | | | | | | exact-email. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do an email-only search.
* * gpgkeys_curl.c (get_key, main): Don't try and be smart about whatDavid Shaw2005-07-201-0/+1
| | | | | | | | | | | 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.
* * ksutil.c (init_ks_options, parse_ks_options): Provide a default "/"David Shaw2005-06-051-0/+12
| | | | | | path unless overridden by the config. Allow config to specify items multiple times and take the last specified item.
* * ksutil.c [HAVE_DOSISH_SYSTEM]: Fix warnings on mingw32. Noted by JoeDavid Shaw2005-06-011-8/+9
| | | | | Vender.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * ksutil.h, ksutil.c: #ifdef so we can build without libcurl orDavid Shaw2005-05-041-2/+7
| | | | | fake-curl.
* * ksutil.h, ksutil.c (curl_writer), gpgkeys_curl.c (get_key): Pass aDavid Shaw2005-04-171-16/+21
| | | | | | 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-0/+66
| | | | | | | | | | 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_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved fromDavid Shaw2005-03-221-0/+18
| | | | | | | | | 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.
* * ksutil.c (parse_ks_options): Handle verbose=nnn.David Shaw2005-03-171-2/+5
| | | | | | * Makefile.am: Calculate GNUPG_LIBEXECDIR directly. Do not redefine $libexecdir.
* * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start usingDavid Shaw2005-03-171-0/+12
| | | | | | | | 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.
* * ksutil.h, ksutil.c (ks_action_to_string): New. (free_ks_options): OnlyDavid Shaw2005-03-161-12/+24
| | | | | free if options exist.
* * ksutil.h, ksutil.c (init_ks_options, free_ks_options,David Shaw2005-03-161-1/+207
| | | | | | parse_ks_options): Pull a lot of duplicated code into a single options parser for all keyserver helpers.
* * gpgkeys_ldap.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main),David Shaw2004-10-131-0/+63
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.