David Shaw
b3ac8341d9
* curl-shim.h, gpgkeys_curl.c, gpgkeys_hkp.c (main): Always show curl
...
version (even for curl-shim).
2008-11-18 18:43:13 +00:00
Werner Koch
5452f53c5c
Make --version close to GNU standards.
2008-11-18 18:17:10 +00:00
David Shaw
9e0919fad1
* 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-11-18 17:09:07 +00:00
David Shaw
06278768b4
* gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurl
...
number options are passed as long.
2008-04-14 17:41:47 +00:00
David Shaw
b9cbb0aa0b
* curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl
...
better - libcurl uses 'long', not 'unsigned int'.
2008-04-14 16:08:00 +00:00
Werner Koch
2c045c4fca
Powerpc64 fix.
2008-03-25 10:45:59 +00:00
David Shaw
4c39fb56b8
* Makefile.am: Fix compile error when libcurl is in a nonstandard
...
location.
2007-12-17 21:27:10 +00:00
Werner Koch
9a2a818887
Switched to GPLv3.
...
Updated gettext.
2007-10-23 10:48:09 +00:00
David Shaw
43f18c4b65
* gpgkeys_ldap.c (main): Fix bug in setting up whether to verify peer
...
SSL cert. This used to work with older OpenLDAP, but is now more
strictly handled.
2007-07-29 02:58:26 +00:00
David Shaw
3349267ee5
* gpgkeys_ldap.c: Fix build warning with mozldap.
2007-07-27 16:33:05 +00:00
David Shaw
8898e869a2
* gpgkeys_ldap.c (search_key, main): Fix bug where searching for foo
...
bar (no quotes) on the command line resulted in searching for
"foo\2Abar" due to LDAP quoting. The proper search is "foo*bar".
2007-07-27 16:21:18 +00:00
David Shaw
1fc3e4a299
* gpgkeys_hkp.c (main): Show curl or fake-curl version string.
...
* Makefile.am: Link with libcompat.a for ascii_str(n)casecmp.
2007-04-16 22:47:20 +00:00
David Shaw
e7c72ccc2f
* gpgkeys_curl.c, gpgkeys_ldap.c, gpgkeys_hkp.c, ksutil.c: Rename all
...
str(n)casecmp to ascii_str(n)casecmp. We want the locale-independent
ones here.
2007-04-16 22:43:29 +00:00
David Shaw
7a81947753
* 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.
2007-03-13 17:53:57 +00:00
David Shaw
1475939994
* gpgkeys_ldap.c (send_key): Missing a free().
...
* curl-shim.c (curl_easy_perform): Some debugging items that may be
handy.
2007-02-11 03:56:59 +00:00
David Shaw
b8bd7b6186
* curl-shim.h, curl-shim.c, gpgkeys_hkp.c: Rename curl_escape() to
...
curl_easy_escape() to match cURL.
2007-01-16 18:12:43 +00:00
David Shaw
a15b16a356
* gpgkeys_hkp.c (send_key): Allow GPG to send any armored key line
...
length without problems. Reported by Felix von Leitner.
2007-01-16 04:31:49 +00:00
David Shaw
ede66f6fb5
* ksutil.c (classify_ks_search): Try and recognize a key ID even
...
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.
2006-12-04 01:20:55 +00:00
David Shaw
928db7d34b
* gpgkeys_hkp.c (search_key): HKP keyservers like the 0x to be present
...
when searching by keyID.
2006-12-03 05:57:57 +00:00
David Shaw
1b41117e2a
* gpgkeys_hkp.c (curl_mrindex_writer): Revert previous change.
...
Key-not-found still has a HTML response.
2006-11-06 03:37:08 +00:00
David Shaw
9e9214b944
* gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTML
...
coming back from a MR hkp query.
2006-10-20 03:56:17 +00:00
David Shaw
6f32b4e4d1
Move strsep() and ascii_isspace() to libcompat.
2006-09-28 19:53:17 +00:00
David Shaw
b17fcc5d51
Put in the basic wiring (just hextobyte for now) for a libcompat.a that
...
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.
2006-09-28 19:36:55 +00:00
David Shaw
61765b20e6
* gpgkeys_ldap.c (build_attrs), ksutil.c (ks_toupper, ks_strcasecmp),
...
ksutil.h: Remove the need for strcasecmp as the field tags are always
lowercase.
2006-09-28 19:30:03 +00:00
Werner Koch
29f68725d0
Allow to build w/o curl.
2006-09-26 14:15:17 +00:00
David Shaw
519435f06c
* Makefile.am: Fix missing include path for gpgkeys_finger (needs the
...
libcurl path, even though it doesn't use libcurl because of
ksutil.c:curl_err_to_gpg_err(). Noted by Gilbert Fernandes.
2006-07-26 21:12:55 +00:00
David Shaw
c45f73774d
* curl-shim.c (curl_easy_perform): Minor cleanup of proxy code.
2006-07-21 02:19:43 +00:00
David Shaw
b8b482b596
* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key,
...
send_key_keyserver): Improved version of previous fix. Force match on
spaces in string.
2006-07-17 04:11:30 +00:00
David Shaw
2dc880aa9e
* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key, send_key_keyserver):
...
Fix string matching problem when the ascii armored form of the key happens
to match "KEY" at the beginning of the line.
2006-07-14 16:07:01 +00:00
David Shaw
5476afe1b4
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
...
encoding of characters > 127. Noted by Nalin Dahyabhai.
2006-07-12 21:16:57 +00:00
David Shaw
975da08004
* configure.ac: Fix resolver autoconf code so it works (fails)
...
properly with uClibc.
2006-07-08 23:29:25 +00:00
David Shaw
f37dac88cb
* gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.
2006-04-26 21:49:43 +00:00
David Shaw
e87d36ccf6
* Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer as
...
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.
2006-04-26 21:48:29 +00:00
David Shaw
ed776a913f
* gpgkeys_ldap.c (ldap_quote, get_name, search_key): LDAP-quote
...
directly into place rather than mallocing temporary buffers.
2006-04-11 03:25:25 +00:00
David Shaw
af0a0ae6ee
* gpgkeys_ldap.c (get_name): Build strings with strcat rather than
...
using sprintf which is harder to read and modify.
2006-04-11 03:13:46 +00:00
David Shaw
3011a39284
* ksutil.h, ksutil.c (classify_ks_search): Add KS_SEARCH_KEYID_SHORT
...
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.
2006-04-11 03:00:50 +00:00
David Shaw
0ea95fd80f
* gpgkeys_ldap.c: #define LDAP_DEPRECATED for newer OpenLDAPs so they use
...
the regular old API that is compatible with other LDAP libraries.
2006-03-27 19:06:46 +00:00
David Shaw
9523139ee7
* gpgkeys_ldap.c (main): Fix build problem with non-OpenLDAP LDAP
...
libraries that have TLS.
2006-03-03 21:55:38 +00:00
David Shaw
0302c7e0ac
* ksutil.c (init_ks_options): Default include-revoked and include-subkeys
...
to on, as gpg isn't doing this any longer.
2006-02-23 21:06:32 +00:00
David Shaw
482a3a0101
* gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down on
...
odd matches.
2006-02-22 23:19:36 +00:00
David Shaw
e396cd2c7c
* gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't allow
...
duplicate attributes as OpenLDAP is now enforcing this.
2006-02-22 04:19:21 +00:00
David Shaw
c68649e1b1
* gpgkeys_ldap.c (main): Add binddn and bindpw so users can pass
...
credentials to a remote LDAP server.
2006-02-22 03:49:49 +00:00
David Shaw
79ec50f77d
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
...
curl_easy_perform): Mingw has 'stderr' as a macro?
2006-02-22 02:11:35 +00:00
David Shaw
e4206de3f5
* curl-shim.h, curl-shim.c (curl_easy_init, curl_easy_setopt,
...
curl_easy_perform): Add CURLOPT_VERBOSE and CURLOPT_STDERR for easier
debugging.
2006-02-21 16:16:09 +00:00
David Shaw
2c4b5d5de9
* gpgkeys_hkp.c (send_key): Do not escape the '=' in the HTTP POST when
...
uploading a key.
2006-01-16 17:59:46 +00:00
David Shaw
da9a10d2b0
* ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".
...
* gpgkeys_hkp.c (main, get_name), gpgkeys_ldap.c (main, get_name): Use it
here to do direct name (rather than key ID) fetches.
2005-12-23 20:51:48 +00:00
David Shaw
5432755319
* ksutil.h, ksutil.c (curl_armor_writer, curl_writer,
...
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-19 19:39:32 +00:00
David Shaw
a4fae95d04
* gpgkeys_finger.c (get_key), gpgkeys_curl.c (get_key): Better language
...
for the key-not-found error.
2005-12-07 23:00:30 +00:00
David Shaw
c826ccdec1
* ksutil.c (curl_err_to_gpg_err): Add CURLE_OK and CURLE_COULDNT_CONNECT.
...
* 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-12-07 22:25:58 +00:00
David Shaw
d6e918e40f
* curl-shim.c (curl_easy_perform): Fix build warning (code before
...
declaration).
2005-12-06 18:49:34 +00:00