aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_ldap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * Makefile.am: Add automake conditionals to symlink gpgkeys_ldaps toDavid Shaw2004-02-191-11/+125
| | | | | | | | | | gpgkeys_ldap when needed. * gpgkeys_ldap.c (main): Add support for LDAPS and TLS connections. These are only useful and usable when talking to real LDAP keyservers. Add new "tls" option to tune TLS use from off, to try quietly, to try loudly, or to require TLS.
* * gpgkeys_ldap.c (find_basekeyspacedn): New function to figure out whatDavid Shaw2004-02-191-63/+124
| | | | | | | | kind of LDAP server we're talking to (either real LDAP or the LDAP keyserver), and return the baseKeySpaceDN to find keys under. (main): Call it from here, and remove the old code that only handled the LDAP keyserver.
* * gpgkeys_ldap.c (ldap_to_gpg_err): Make sure that LDAP_OPT_ERROR_NUMBERDavid Shaw2004-02-181-1/+1
| | | | | | | is defined before we use it. * gpgkeys_mailto.in: Fix VERSION number.
* * gpgkeys_hkp.c (search_key): Catch a mangled input file (useful ifDavid Shaw2004-01-121-3/+4
| | | | | | | | something other than GnuPG is calling the program). (main): Avoid possible pre-string write. Noted by Christian Biere. * gpgkeys_ldap.c (main): Avoid possible pre-string write.
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-281-8/+0
|
* * gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available.David Shaw2003-05-311-0/+6
| | | | | | | | | | Also include extern references for optarg and optind since there is no guarantee that any header file will include them. Standards? We don't need no stinkin' standards * Makefile.am: Use @GETOPT@ to pull in libiberty on those platforms that need it.
* * gpgkeys_ldap.c (main), gpgkeys_hkp.c (main): Use new keyserver protocolDavid Shaw2002-11-181-1/+1
| | | | | version.
* * gpgkeys_ldap.c (get_key): The deduping code requires "pgpcertid", butDavid Shaw2002-11-141-2/+5
| | | | | that was not available when running without verbose on. Noted by Stefan.
* * gpgkeys_ldap.c (get_key): Fix typo in deduping code.David Shaw2002-11-101-1/+1
|
* * gpgkeys_ldap.c (key_in_keylist, add_key_to_keylist, free_keylist,David Shaw2002-11-051-198/+285
| | | | | | | get_key, search_key): The LDAP keyserver doesn't remove duplicates, so remove them locally. Do not include the key modification time in the search response.
* * gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key): Properly handle anDavid Shaw2002-11-041-8/+6
| | | | | input file that does not include any key data at all.
* * gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to outputDavid Shaw2002-10-241-1/+6
| | | | | protocol and program version.
* * gpgkeys_ldap.c (get_key): Don't print keysize unless it's >0.David Shaw2002-10-141-55/+62
| | | | | | (printquoted): Use %-encoding instead of \-encoding. (search_key): Use new keyserver key listing format.
* * gpgkeys_ldap.c (search_key, main): Make sure LDAP values are freed inDavid Shaw2002-10-091-6/+8
| | | | | case of error.
* * gpgkeys_ldap.c (fail_all): New function to unwind a keylist and errorDavid Shaw2002-10-091-4/+39
| | | | | | | | | | | | each item. (main): Call fail_all from here, as needed. Also add a NO_MEMORY error in an appropriate place and fix error return code. (ldap_err_to_gpg_err): Add KEYSERVER_UNREACHABLE. * gpgkeys_hkp.c (fail_all): New function to unwind a keylist and error each item. (main): Call fail_all from here. Also add a NO_MEMORY error in an appropriate place. (get_key): Use new UNREACHABLE error for network errors.
* From stable branchDavid Shaw2002-09-271-8/+3
| | | | | * gpgkeys_ldap.c (send_key): Removed non-constant initializers.
* * gpgkeys_ldap.c (ldap_err_to_gpg_err, ldap_to_gpg_err, send_key, get_key,David Shaw2002-09-241-33/+97
| | | | | | search_key, main): Some minor error reporting enhancements for use with GPA (show reasons for KEY FAILED).
* * gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89) don't likeDavid Shaw2002-09-091-8/+3
| | | | | using variables as array initializers.
* * gpgkeys_hkp.c (get_key, parse_hkp_index): Bring over latest code fromDavid Shaw2002-08-191-3/+3
| | | | | | | | g10/hkp.c. * gpgkeys_ldap.c (get_key): Fix cosmetic URL display problem (extra ":" at the end).
* RISC OS changes due to dynload removalStefan Bellon2002-08-031-2/+6
|
* * gpgkeys_ldap.c (send_key, get_key, main): Consult the server versionDavid Shaw2002-07-151-10/+28
| | | | | string to determine whether to use pgpKey or pgpKeyV2.
* * gpgkeys_ldap.c (get_key), gpgkeys_hkp.c (get_key): Display keyserver URIDavid Shaw2002-07-041-3/+4
| | | | | as a URI, but only if verbose.
* * gpgkeys_hkp.c (parse_hkp_index): Error if the keyserver returns anDavid Shaw2002-07-011-4/+4
| | | | | | | | | | | unparseable HKP response. * gpgkeys_hkp.c (main): Warn on honor-http-proxy, broken-http-proxy, and include-subkeys (not supported yet). * gpgkeys_ldap.c (main), gpgkeys_hkp.c (http_connect, main): Fix some shadowing warnings.
* Update head to match stable 1.0David Shaw2002-06-291-0/+986