Werner Koch
64f24da283
Fix a couple of minor bugs.
2009-06-24 14:01:20 +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
Werner Koch
2c045c4fca
Powerpc64 fix.
2008-03-25 10:45:59 +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
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
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
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
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
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
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
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
aec65a94d8
* ksutil.h, ksutil.c (parse_ks_options): Remove exact-name and
...
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.
2005-08-26 04:24:46 +00:00
David Shaw
70bf6d9204
* ksutil.h, ksutil.c (parse_ks_options): New keyserver-option exact-name.
...
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.
2005-08-18 21:14:16 +00:00
David Shaw
2d353af65d
* gpgkeys_ldap.c (ldap_quote): \-quote a string for LDAP.
...
* gpgkeys_ldap.c (search_key): Use it here to escape reserved characters
in searches.
2005-08-18 17:40:04 +00:00
David Shaw
e9b444a9d0
* ksutil.h, ksutil.c (parse_ks_options): New keyserver-option
...
exact-email.
* gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here
to do an email-only search.
2005-08-18 04:17:20 +00:00
Werner Koch
7d4043ca57
Updated FSF street address and preparations for a release candidate.
2005-05-31 08:39:18 +00:00
David Shaw
1517f0e945
* gpgkeys_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved from
...
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.
2005-03-22 23:41:08 +00:00
David Shaw
8885f0b0cc
* gpgkeys_ldap.c (main): Fix three wrong calls to fail_all(). Noted
...
by Stefan Bellon.
2005-03-19 14:24:36 +00:00
David Shaw
efa0dd21a2
* gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start using
...
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.
2005-03-17 16:42:41 +00:00
David Shaw
dee66f5cc9
* gpgkeys_ldap.c: Include lber.h if configure determines we need it.
2005-03-17 04:02:17 +00:00
David Shaw
2833a0eadc
* curl-shim.c (curl_easy_perform): Fix compile warning.
...
* curl-shim.h, gpgkeys_curl.c (main), gpgkeys_ldap.c (main): Add
ca-cert-file option, to pass in the SSL cert.
2005-02-12 03:15:02 +00:00
David Shaw
5d257ee60e
* gpgkeys_ldap.c (print_nocr): New. (get_key): Call it here to
...
canonicalize line endings.
* gpgkeys_curl.c (writer): Discard everything outside the BEGIN and
END lines when retrieving keys. Canonicalize line endings. (main):
Accept FTPS.
2005-01-24 18:23:56 +00:00
David Shaw
2b10681641
* gpgkeys_ldap.c (main): Add "check-cert" option to disable SSL
...
certificate checking (which is on by default).
* gpgkeys_curl.c (main): Add "debug" option to match the LDAP helper.
Add "check-cert" option to disable SSL certificate checking (which is
on by default).
2005-01-22 03:27:19 +00:00
David Shaw
996c82ffd6
* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,
...
gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the
various defines to ksutil.h.
2005-01-13 23:37:26 +00:00
David Shaw
0a42f97e43
* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1
...
of a minor cleanup to use #defines instead of hard-coded sizes.
2005-01-13 23:22:10 +00:00
David Shaw
97b8f41b08
* gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optional
...
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.
2004-12-22 19:19:10 +00:00
Werner Koch
e170c54cf8
* gpgkeys_ldap.c (main, show_help): Kludge to implement standard
...
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.
2004-10-15 12:19:06 +00:00
David Shaw
d603b7c3a1
* gpgkeys_ldap.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main),
...
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.
2004-10-13 18:30:29 +00:00
David Shaw
e3fd0f0c60
* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Fix a
...
few occurances of "filename" to `filename'.
2004-10-11 20:33:22 +00:00
David Shaw
6c5507fff0
* gpgkeys_ldap.c (get_key, search_key), gpgkeys_hkp.c (get_key,
...
search_key), gpgkeys_http.c (get_key): Do not give informational logs
since this is now done inside gpg.
2004-08-23 19:54:40 +00:00
David Shaw
357afb5084
* gpgkeys_ldap.c (get_key): Factor out informational display into new
...
function build_info().
2004-08-23 16:59:11 +00:00
David Shaw
b27b7aea6d
* gpgkeys_ldap.c (build_attrs): Properly terminate user ID strings that
...
got shrunk due to encoding.
2004-08-23 14:24:05 +00:00
David Shaw
4615a538bf
* gpgkeys_ldap.c (find_basekeyspacedn): Use LDAP_SCOPE_BASE along with a
...
full DN rather than LDAP_SCOPE_ONELEVEL plus a filter to find the
pgpServerInfo object. Some LDAP setups don't like the search. (main):
Stop binding to the server since it seems no server really requires it,
and some require it not be there.
2004-08-23 03:13:27 +00:00
David Shaw
f7a793ae28
* gpgkeys_ldap.c (main): Add "debug" option. This is only really useful
...
with OpenLDAP, but it's practically vital to debug SSL and TLS setups.
Add "basedn" option. This allows users to override the autodetection for
base DN. SSL overrides TLS, so TLS will not be started on SSL connections
(starting an already started car).
2004-07-29 14:01:04 +00:00
David Shaw
a2914a1592
* gpgkeys_ldap.c (build_attrs): Add "pgpKeySize" and "pgpSubKeyID"
...
attributes so we can do subkey searches.
* gpgkeys_ldap.c (main): Under certain error conditions, we might try and
unbind twice. Don't.
2004-07-28 19:55:21 +00:00
David Shaw
4552115bbb
* gpgkeys_ldap.c (join_two_modlists): New. (send_key): Use new function so
...
we can try a modify operation first, and fail over to an add if that
fails. Add cannot cope with the NULLs at the head of the modify request,
so we jump into the list in the middle.
2004-07-28 19:45:23 +00:00
David Shaw
a32297863b
* gpgkeys_ldap.c (main): Don't try and error out before making a ldaps
...
connection to the NAI keyserver since we cannot tell if it is a NAI
keyserver until we connect. Fail if we cannot find a base keyspace DN.
Fix a false success message for TLS being enabled.
2004-07-28 02:36:45 +00:00