aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * Makefile.am: Don't split LDADD across two lines since some make programsDavid Shaw2004-02-282-4/+8
| | | | | | can't handle blank lines after a \ continuation. Noted by Christoph Moench-Tegeder.
* * gpgkeys_ldap.c (send_key): List pgpCertID as one of the deletedDavid Shaw2004-02-262-8/+18
| | | | | | | attributes. This guarantees that if something goes wrong, we won't be able to complete the transaction, thus leaving any key already existing on the server intact.
* * gpgkeys_ldap.c (delete_one_attr): Removed. (make_one_attr): DeleteDavid Shaw2004-02-242-79/+83
| | | | | | | | functionality added. Optional deduping functionality added (currently only used for pgpSignerID). (build_attrs): Translate sig entries into pgpSignerID. Properly build the timestamp for pgpKeyCreateTime and pgpKeyExpireTime.
* * gpgkeys_ldap.c (delete_one_attr): New function to replace attributesDavid Shaw2004-02-232-9/+65
| | | | | | | | | with NULL (a "delete" that works even for nonexistant attributes). (send_key): Use it here to remove attributes so a modify operation starts with a clean playing field. Bias sends to modify before add, since (I suspect) people update their existing keys more often than they make and send new keys to the server.
* * gpgkeys_ldap.c (epoch2ldaptime): New. Converse of ldap2epochtime.David Shaw2004-02-222-57/+534
| | | | | | | | | | (make_one_attr): New. Build a modification list in memory to send to the LDAP server. (build_attrs): New. Parse INFO lines sent over by gpg. (free_mod_values): New. Unwinds a modification list. (send_key_keyserver): Renamed from old send_key(). (send_key): New function to send a key to a LDAP server. (main): Use send_key() for real LDAP servers, send_key_keyserver() otherwise.
* * gpgkeys_ldap.c: Replacement prototypes for setenv and unsetenv.David Shaw2004-02-203-37/+64
| | | | | | | | | | (search_key): Catch a SIZELIMIT_EXCEEDED error and show the user whatever the server did give us. (find_basekeyspacedn): There is no guarantee that namingContexts will be readable. * Makefile.am: Link gpgkeys_ldap with libutil.a to get the replacement functions (and eventually translations, etc).
* * gpgkeys_ldap.c (ldap2epochtime): LDAP timestamps are UTC, so do notDavid Shaw2004-02-192-10/+40
| | | | | | | correct for timezones. (main): Find the basekeyspacedn before we try to start TLS, so we can give a better error message when a user tries to use TLS with a LDAP keyserver.
* * Makefile.am: Add automake conditionals to symlink gpgkeys_ldaps toDavid Shaw2004-02-193-12/+144
| | | | | | | | | | 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-192-63/+132
| | | | | | | | 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-183-6/+14
| | | | | | | is defined before we use it. * gpgkeys_mailto.in: Fix VERSION number.
* (send_key): Add a content type.Werner Koch2004-01-132-0/+8
|
* * gpgkeys_hkp.c (search_key): Catch a mangled input file (useful ifDavid Shaw2004-01-123-5/+22
| | | | | | | | 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.
* * gpgkeys_hkp.c (send_key, get_key, main): Work with new HTTP code thatDavid Shaw2003-12-282-13/+37
| | | | | | | passes the proxy in from the outside. If the command file sends a proxy, use it. If it sends "http-proxy" with no arguments, use $http_proxy from the environment.
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-283-16/+5
|
* (get_key): Fixed invalid use of fprintf withoutWerner Koch2003-11-272-2/+7
| | | | | format string.
* (gpgkeys_hkp_LDADD): Replaced INTLLIBS by LIBINTL.Werner Koch2003-10-252-1/+6
|
* * Makefile.am: Use W32LIBS where appropriate.David Shaw2003-07-102-2/+6
|
* * gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available.David Shaw2003-05-314-5/+24
| | | | | | | | | | 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_hkp.c (dehtmlize, parse_hkp_index): Fix memory corruption bug onDavid Shaw2003-04-092-1/+8
| | | | | some platforms.
* * gpgkeys_hkp.c (get_key): Properly handle CRLF line endings in theDavid Shaw2003-03-113-3/+28
| | | | | | | | | armored key. (main): Accept "try-dns-srv" option. * Makefile.am: Use @CAPLIBS@ to link in -lcap if we are using capabilities. Use @SRVLIBS@ to link in the resolver if we are using DNS SRV.
* * Makefile.am: Use a local copy of libexecdir along with @PACKAGE@ so itDavid Shaw2003-02-122-1/+6
| | | | | can be easily overridden at make time.
* * gpgkeys_mailto.in: Fix regexp to work properly if the "keyid" is not aDavid Shaw2003-01-292-4/+9
| | | | | keyid, but rather a text string from the user ID.
* * gpgkeys_hkp.c (get_key): Use options=mr when getting a key so keyserverDavid Shaw2003-01-062-1/+7
| | | | | doesn't attach the HTML header which we will just have to discard.
* * gpgkeys_ldap.c (main), gpgkeys_hkp.c (main): Use new keyserver protocolDavid Shaw2002-11-183-2/+7
| | | | | version.
* * gpgkeys_ldap.c (get_key): The deduping code requires "pgpcertid", butDavid Shaw2002-11-142-2/+11
| | | | | 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-102-1/+5
|
* * gpgkeys_ldap.c (key_in_keylist, add_key_to_keylist, free_keylist,David Shaw2002-11-052-198/+292
| | | | | | | 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-043-16/+21
| | | | | 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-243-2/+17
| | | | | protocol and program version.
* * Makefile.am: Anything linking with libutil.a needs INTLLIBS as well onDavid Shaw2002-10-212-2/+7
| | | | | platforms where INTLLIBS is set.
* * gpgkeys_hkp.c (write_quoted): Use %-encoding instead of \-encoding.David Shaw2002-10-142-99/+131
| | | | | | (parse_hkp_index): Use new keyserver key listing format, and add support for disabled keys via include-disabled.
* * gpgkeys_ldap.c (get_key): Don't print keysize unless it's >0.David Shaw2002-10-142-55/+68
| | | | | | (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-092-6/+11
| | | | | case of error.
* * gpgkeys_ldap.c (fail_all): New function to unwind a keylist and errorDavid Shaw2002-10-093-6/+85
| | | | | | | | | | | | 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-272-8/+7
| | | | | * 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-242-34/+103
| | | | | | search_key, main): Some minor error reporting enhancements for use with GPA (show reasons for KEY FAILED).
* * gpgkeys_hkp.c (send_key, get_key, search_key, main): Some minor errorDavid Shaw2002-09-242-35/+49
| | | | | reporting enhancements for use with GPA.
* * gpgkeys_hkp.c (handle_old_hkp_index): s/input/inp/ to avoidWerner Koch2002-09-202-2/+7
| | | | | shadowing warning.
* * gpgkeys_hkp.c (get_key, handle_old_hkp_index, search_key): ProperlyDavid Shaw2002-09-192-5/+17
| | | | | handle line truncation.
* * gpgkeys_mailto.in: Add quasi-RFC-2368 mailto:email@addr?from= syntax soDavid Shaw2002-09-163-6/+43
| | | | | | | | people can set their own email address to respond to. * gpgkeys_hkp.c (get_key): Properly respond with KEY FAILED (to gpg) and "key not found" (to user) on failure.
* * gpgkeys_hkp.c: (search_key, handle_old_hkp_index): Try and request aDavid Shaw2002-09-132-42/+72
| | | | | | machine-readable key index. If the server supports this, pass it through. If the server does not support it, parse the "index" page.
* updated RISC OS stuffStefan Bellon2002-09-122-0/+12
|
* * gpgkeys_hkp.c (main): Remove warning - this is no longer experimentalDavid Shaw2002-09-122-3/+5
| | | | | code.
* * gpgkeys_hkp.c (send_key, get_key, search_key): Check returnWerner Koch2002-09-102-12/+40
| | | | | | | | value of malloc. (dehtmlize): Use ascii_tolower to protect against weird locales. Cast the argument for isspace for the sake of broken HP/UXes. (search_key): Check return value of realloc.
* * gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89) don't likeDavid Shaw2002-09-092-8/+6
| | | | | using variables as array initializers.
* * gpgkeys_hkp.c (send_key): Use CRLF in headers.David Shaw2002-09-092-1/+5
|
* * gpgkeys_hkp.c: (parse_hkp_index): Use same types on all platforms.David Shaw2002-08-282-6/+5
| | | | | This was probably leftover from earlier code where the typing mattered.
* * gpgkeys_hkp.c: Overall cleanup from iobuf conversion. Be consistent inDavid Shaw2002-08-282-55/+53
| | | | | | m_alloc and malloc usage. Remove include-disabled (meaningless on HKP). RISC OS tweak.
* * gpgkeys_hkp.c, Makefile.am: Convert over to using iobufs.David Shaw2002-08-273-369/+257
|
* * gpgkeys_hkp.c (http_get, http_post): Use CRLF for line endings.David Shaw2002-08-272-3/+5
|