aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switched to GPLv3.Werner Koch2007-10-2311-44/+22
| | | | | Updated gettext.
* * gpgkeys_ldap.c (main): Fix bug in setting up whether to verify peerDavid Shaw2007-07-292-1/+7
| | | | | | SSL cert. This used to work with older OpenLDAP, but is now more strictly handled.
* * gpgkeys_ldap.c: Fix build warning with mozldap.David Shaw2007-07-272-0/+7
|
* * gpgkeys_ldap.c (search_key, main): Fix bug where searching for fooDavid Shaw2007-07-272-5/+19
| | | | | | bar (no quotes) on the command line resulted in searching for "foo\2Abar" due to LDAP quoting. The proper search is "foo*bar".
* * gpgkeys_hkp.c (main): Show curl or fake-curl version string.David Shaw2007-04-163-3/+7
| | | | | * Makefile.am: Link with libcompat.a for ascii_str(n)casecmp.
* * gpgkeys_curl.c, gpgkeys_ldap.c, gpgkeys_hkp.c, ksutil.c: Rename allDavid Shaw2007-04-165-38/+48
| | | | | | str(n)casecmp to ascii_str(n)casecmp. We want the locale-independent ones here.
* * gpgkeys_curl.c (main): Use curl_version_info to verify that theDavid Shaw2007-03-134-6/+43
| | | | | | | | | 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.
* * gpgkeys_ldap.c (send_key): Missing a free().David Shaw2007-02-113-1/+16
| | | | | | * curl-shim.c (curl_easy_perform): Some debugging items that may be handy.
* * curl-shim.h, curl-shim.c, gpgkeys_hkp.c: Rename curl_escape() toDavid Shaw2007-01-164-7/+12
| | | | | curl_easy_escape() to match cURL.
* * gpgkeys_hkp.c (send_key): Allow GPG to send any armored key lineDavid Shaw2007-01-162-20/+29
| | | | | length without problems. Reported by Felix von Leitner.
* * ksutil.c (classify_ks_search): Try and recognize a key ID evenDavid Shaw2006-12-042-4/+22
| | | | | | | without the 0x prefix. This isn't exact (it's possible that a user ID string happens to be 8 or 16 digits of hex), but it's extremely unlikely. Plus GPG itself makes the same assumption.
* * gpgkeys_hkp.c (search_key): HKP keyservers like the 0x to be presentDavid Shaw2006-12-032-0/+11
| | | | | when searching by keyID.
* * gpgkeys_hkp.c (curl_mrindex_writer): Revert previous change.David Shaw2006-11-062-5/+8
| | | | | Key-not-found still has a HTML response.
* * gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTMLDavid Shaw2006-10-202-1/+9
| | | | | coming back from a MR hkp query.
* Move strsep() and ascii_isspace() to libcompat.David Shaw2006-09-281-1/+1
|
* Put in the basic wiring (just hextobyte for now) for a libcompat.a thatDavid Shaw2006-09-285-29/+7
| | | | | | | can contain replacement files that can be linked to keyserver helpers without bringing in the whole libutil.a. libutil.a contains a complete copy of libcompat.a so we only need to link to one of them.
* * gpgkeys_ldap.c (build_attrs), ksutil.c (ks_toupper, ks_strcasecmp),David Shaw2006-09-284-33/+10
| | | | | | ksutil.h: Remove the need for strcasecmp as the field tags are always lowercase.
* Allow to build w/o curl.Werner Koch2006-09-268-11/+139
|
* * Makefile.am: Fix missing include path for gpgkeys_finger (needs theDavid Shaw2006-07-262-0/+7
| | | | | | libcurl path, even though it doesn't use libcurl because of ksutil.c:curl_err_to_gpg_err(). Noted by Gilbert Fernandes.
* * curl-shim.c (curl_easy_perform): Minor cleanup of proxy code.David Shaw2006-07-212-5/+7
|
* * gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key,David Shaw2006-07-173-8/+14
| | | | | | 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-143-11/+27
| | | | | | Fix string matching problem when the ascii armored form of the key happens to match "KEY" at the beginning of the line.
* * gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix badDavid Shaw2006-07-123-2/+7
| | | | | encoding of characters > 127. Noted by Nalin Dahyabhai.
* * configure.ac: Fix resolver autoconf code so it works (fails)David Shaw2006-07-081-2/+2
| | | | | properly with uClibc.
* * gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.David Shaw2006-04-263-1567/+2
|
* * Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer asDavid Shaw2006-04-266-30/+21
| | | | | | | | 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_ldap.c (ldap_quote, get_name, search_key): LDAP-quoteDavid Shaw2006-04-112-47/+13
| | | | | directly into place rather than mallocing temporary buffers.
* * gpgkeys_ldap.c (get_name): Build strings with strcat rather thanDavid Shaw2006-04-112-8/+22
| | | | | using sprintf which is harder to read and modify.
* * ksutil.h, ksutil.c (classify_ks_search): Add KS_SEARCH_KEYID_SHORTDavid Shaw2006-04-114-15/+108
| | | | | | | | 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.
* * gpgkeys_ldap.c: #define LDAP_DEPRECATED for newer OpenLDAPs so they useDavid Shaw2006-03-272-0/+8
| | | | | the regular old API that is compatible with other LDAP libraries.
* * gpgkeys_ldap.c (main): Fix build problem with non-OpenLDAP LDAPDavid Shaw2006-03-032-5/+15
| | | | | libraries that have TLS.
* * ksutil.c (init_ks_options): Default include-revoked and include-subkeysDavid Shaw2006-02-232-0/+7
| | | | | to on, as gpg isn't doing this any longer.
* * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down onDavid Shaw2006-02-222-0/+8
| | | | | odd matches.
* * gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't allowDavid Shaw2006-02-222-29/+33
| | | | | duplicate attributes as OpenLDAP is now enforcing this.
* * gpgkeys_ldap.c (main): Add binddn and bindpw so users can passDavid Shaw2006-02-222-16/+78
| | | | | credentials to a remote LDAP server.
* * curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,David Shaw2006-02-223-4/+7
| | | | | curl_easy_perform): Mingw has 'stderr' as a macro?
* * curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,David Shaw2006-02-213-3/+26
| | | | | | curl_easy_perform): Add CURLOPT_VERBOSE and CURLOPT_STDERR for easier debugging.
* * gpgkeys_hkp.c (send_key): Do not escape the '=' in the HTTP POST whenDavid Shaw2006-01-162-13/+21
| | | | | uploading a key.
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".David Shaw2005-12-235-20/+252
| | | | | | * 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-195-44/+162
| | | | | | | | 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-073-11/+11
| | | | | for the key-not-found error.
* * ksutil.c (curl_err_to_gpg_err): Add CURLE_OK and CURLE_COULDNT_CONNECT.David Shaw2005-12-073-5/+24
| | | | | | * gpgkeys_curl.c (get_key): Give key-not-found error if no data is found (or file itself is not found) during a fetch.
* * curl-shim.c (curl_easy_perform): Fix build warning (code beforeDavid Shaw2005-12-062-1/+7
| | | | | declaration).
* Fix various build warnings reported by Joe Vender on MinGW.David Shaw2005-11-032-1/+6
|
* * ksutil.h, ksutil.c (parse_ks_options): Remove exact-name andDavid Shaw2005-08-265-72/+60
| | | | | | | | | 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-185-5/+49
| | | | | | | | 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.
* * gpgkeys_ldap.c (ldap_quote): \-quote a string for LDAP.David Shaw2005-08-182-3/+56
| | | | | | * gpgkeys_ldap.c (search_key): Use it here to escape reserved characters in searches.
* * ksutil.h, ksutil.c (parse_ks_options): New keyserver-optionDavid Shaw2005-08-185-7/+61
| | | | | | | | exact-email. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do an email-only search.
* * Makefile.am: Include LDAP_CPPFLAGS when building LDAP.David Shaw2005-08-082-0/+6
|
* * gpgkeys_hkp.c (main), gpgkeys_curl.c (main), curl-shim.h: ShowDavid Shaw2005-08-044-0/+8
| | | | | version of curl (or curl-shim) when debug is set.