aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/ksutil.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2013-04-231-3/+6
| | | | | | | | | | | -- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
* Expand a ~ in the ca-cert-file argument.Werner Koch2009-08-261-1/+2
|
* W32 related keyserver fixes.Werner Koch2008-04-211-0/+20
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* Clarified cURL and OpenLDAP license issues.Werner Koch2006-09-221-0/+63
| | | | | Made readline support work.
* * Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer asDavid Shaw2006-04-261-5/+1
| | | | | | | | 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.
* * ksutil.h, ksutil.c (classify_ks_search): Add KS_SEARCH_KEYID_SHORTDavid Shaw2006-04-111-2/+20
| | | | | | | | and KS_SEARCH_KEYID_LONG to search for a key ID. * gpgkeys_ldap.c (search_key): Use it here to flip from pgpUserID searches to pgpKeyID or pgpCertID.
* * ksutil.c (init_ks_options): Default include-revoked and include-subkeysDavid Shaw2006-02-231-0/+2
| | | | | to on, as gpg isn't doing this any longer.
* * 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.