David Shaw
5748f595b0
* gpgkeys_curl.c (main): If the http-proxy option is given without any
...
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.
2005-04-16 18:50:46 +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
24a34eea61
* ksutil.c (parse_ks_options): Handle verbose=nnn.
...
* Makefile.am: Calculate GNUPG_LIBEXECDIR directly. Do not redefine
$libexecdir.
2005-03-17 23:16:41 +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
4f347281a9
* ksutil.h, ksutil.c (ks_action_to_string): New. (free_ks_options): Only
...
free if options exist.
2005-03-16 23:46:07 +00:00
David Shaw
a90637513c
* ksutil.h, ksutil.c (init_ks_options, free_ks_options,
...
parse_ks_options): Pull a lot of duplicated code into a single options
parser for all keyserver helpers.
2005-03-16 15:17:03 +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
25001837e9
* curl-shim.h, curl-shim.c: New. This is code to fake the curl API in
...
terms of the current HTTP iobuf API.
* gpgkeys_curl.c [FAKE_CURL], Makefile.am: If FAKE_CURL is set, link with
the iobuf code rather than libcurl.
2005-02-11 18:05:13 +00:00
David Shaw
203e4835f6
* gpgkeys_finger.c (main), gpgkeys_hkp.c (main): Fix --version output.
...
* gpgkeys_curl.c (main): Make sure the curl handle is cleaned up on
failure.
2005-02-05 15:04:59 +00:00
David Shaw
b663f3f8d3
* gpgkeys_hkp.c (get_key), gpgkeys_http.c (get_key): Fix missing
...
http_close() calls. Noted by Phil Pennock.
2005-02-01 20:57:08 +00:00
David Shaw
9af66d4634
* ksutil.h: Up the default timeout to two minutes.
2005-02-01 17:08:18 +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
115ebcfcf8
* gpgkeys_curl.c: Fix typo.
2005-01-18 14:43:14 +00:00
Werner Koch
02a85a958c
* gpgkeys_curl.c: s/MAX_PATH/URLMAX_PATH/g to avoid a clash with
...
the W32 defined macro. Removed unneeded initialization of static
variables.
* gpgkeys_http.c: Ditto.
* ksutil.h: s/MAX_PATH/URLMAX_PATH/.
2005-01-18 11:16:10 +00:00
David Shaw
8220c9e799
* gpgkeys_curl.c (main): Only allow specified protocols to use the
...
curl handler.
* Makefile.am: Use LIBCURL_CPPFLAGS instead of LIBCURL_INCLUDES.
2005-01-18 04:24:52 +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
3fe489d1ac
* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
...
SOCKET_ERROR. Noted by Timo.
2005-01-13 22:08:18 +00:00
David Shaw
1f91ed775c
* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define TRUE.
2005-01-10 03:46:12 +00:00
David Shaw
d341143cd7
* gpgkeys_curl.c (main): Use new defines for opting out of certain
...
transfer protocols. Allow setting HTTP proxy via "http-proxy=foo" option
(there is natural support in libcurl for the http_proxy environment
variable).
* Makefile.am: Remove the conditional since this is all handled in
autoconf now.
2004-12-24 19:48:36 +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
David Shaw
0361c6f01b
* gpgkeys_curl.c (get_key, writer): New function to wrap around fwrite to
...
avoid DLL access problem on win32.
* gpgkeys_http.c (main, get_key): Properly pass authentication info
through to the http library.
2004-12-22 18:07:21 +00:00
David Shaw
52595e06f6
* Makefile.am: Build gpgkeys_http or gpgkeys_curl as needed.
...
* gpgkeys_curl.c (main, get_key): Minor tweaks to work with either FTP or
HTTP.
* gpgkeys_ftp.c: renamed to gpgkeys_curl.c.
2004-12-22 17:12:23 +00:00
David Shaw
f150d44a31
* gpgkeys_ftp.c (main, get_key): Use auth data as passed by gpg. Use
...
CURLOPT_FILE instead of CURLOPT_WRITEDATA (same option, but backwards
compatible).
2004-12-22 05:23:22 +00:00
David Shaw
95b8456f34
FTP keyserver support via gpgkeys_ftp. This is currently off by default.
2004-12-21 23:39:57 +00:00
Werner Koch
d0b9eff4b6
Prepared for last 1.4 release candidate
2004-12-14 07:49:27 +00:00
David Shaw
62d19cbd0e
* Makefile.am: The harmless "ignored error" on gpgkeys_ldap install on top
...
of an existing install is bound to confuse people. Use ln -s -f to force
the overwrite.
2004-12-03 19:12:38 +00:00
David Shaw
deffa62e87
* gpgkeys_finger.c [_WIN32] (connect_server): Fix typo.
2004-10-28 21:53:51 +00:00
Werner Koch
41f46fb062
Inlcude LIBICONV
2004-10-28 18:57:50 +00:00
David Shaw
7e9a93d017
* gpgkeys_hkp.c (send_key, get_key, search_key): Use "hkp" instead of
...
"x-hkp" so it can be used as a SRV tag.
2004-10-18 15:53:28 +00:00
David Shaw
a2cd03ffe1
* gpgkeys_finger.c [_WIN32] (connect_server): Fix typo.
2004-10-16 16:04:19 +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
Werner Koch
5db236f4e7
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New.
...
(AUTOMAKE_OPTIONS): New.
* configure.ac: Check whether vasprintf needs a replacement.
* app-openpgp.c (parse_login_data): New.
(app_select_openpgp): Call it.
(do_setattr): Reparse it after change.
* Makefile.am: Add ksutil.h.
2004-10-15 09:55:39 +00:00
David Shaw
e6a212a154
* gpgkeys_finger.c (main): We do not support relay fingering (i.e.
...
"finger://relayhost/user@example.com"), but finger URLs are occasionally
miswritten that way. Give an error in this case.
2004-10-14 20:36:40 +00:00
Werner Koch
8f70a693ac
* rndunix.c (start_gatherer) [ENABLE_SELINUX_HACKS]: Don't allow
...
logging.
* gpgkeys_finger.c (get_key): s/unsigned char/byte/ due
to a strange typedef for RISC OS. Noted by Stefan.
2004-10-14 07:21:17 +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
Werner Koch
b15e268c8a
Oops commited binary instead of source.
2004-10-11 12:45:50 +00:00
Werner Koch
5bdb171026
* configure.ac: New option --disable-finger.
...
* keyserver.c (keyserver_spawn): Print an empty string in log_info
if the host is not set (e.g. finger).
* gpgkeys_finger.c: New.
2004-10-11 08:44:35 +00:00
Stefan Bellon
159352d8b7
change back skey to unsigned and cast instead
2004-08-27 21:16:16 +00:00
Stefan Bellon
9355045841
fix type incompatibility
2004-08-27 18:21:32 +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
d612492e7d
* gpgkeys_hkp.c (dehtmlize): Understand the quote character (i.e.
...
""") in HTML responses. (search_key): Search key must be unsigned for
url encoder to work properly for 8-bit values.
2004-08-23 17:43: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