aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_ldap.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-2/+2
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2009-06-24Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch1-6/+8
Still one problem left; marked with a gcc #warning.
2009-05-11From 1.4:David Shaw1-3/+4
* 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-03-25Changed the way i18n files are located under Windows. The setting of theWerner Koch1-2/+2
Registry key is not anymore required. Helpfiles are not properly located.
2007-10-25Ported changes from 1.4.Werner Koch1-7/+16
Add copyright notices.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-06First steps towards supporting W32.Werner Koch1-13/+13
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-03-10From STABLE-BRANCH-1-4David Shaw1-0/+1
* gpgkeys_ldap.c (send_key): Missing a free(). * curl-shim.c (curl_easy_perform): Some debugging items that may be handy.
2006-09-22Clarified cURL and OpenLDAP license issues.Werner Koch1-6/+18
Made readline support work.
2006-07-27Preparing a new releasegnupg-1.9.22Werner Koch1-8/+14
2006-07-17* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key,David Shaw1-6/+6
send_key_keyserver): Improved version of previous fix. Force match on spaces in string.
2006-07-14* gpgkeys_hkp.c (send_key), gpgkeys_ldap.c (send_key, send_key_keyserver):David Shaw1-8/+14
Fix string matching problem when the ascii armored form of the key happens to match "KEY" at the beginning of the line.
2006-07-12* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix badDavid Shaw1-1/+1
encoding of characters > 127. Noted by Nalin Dahyabhai.
2006-06-30Added keyserver directory from trunkWerner Koch1-0/+2350
2006-04-11* gpgkeys_ldap.c (ldap_quote, get_name, search_key): LDAP-quoteDavid Shaw1-47/+10
directly into place rather than mallocing temporary buffers.
2006-04-11* gpgkeys_ldap.c (get_name): Build strings with strcat rather thanDavid Shaw1-8/+19
using sprintf which is harder to read and modify.
2006-04-11* ksutil.h, ksutil.c (classify_ks_search): Add KS_SEARCH_KEYID_SHORTDavid Shaw1-12/+77
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-03-27* gpgkeys_ldap.c: #define LDAP_DEPRECATED for newer OpenLDAPs so they useDavid Shaw1-0/+2
the regular old API that is compatible with other LDAP libraries.
2006-03-03* gpgkeys_ldap.c (main): Fix build problem with non-OpenLDAP LDAPDavid Shaw1-5/+10
libraries that have TLS.
2006-02-22* gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't allowDavid Shaw1-29/+30
duplicate attributes as OpenLDAP is now enforcing this.
2006-02-22* gpgkeys_ldap.c (main): Add binddn and bindpw so users can passDavid Shaw1-16/+75
credentials to a remote LDAP server.
2005-12-23* ksutil.h, ksutil.c (parse_ks_options): New keyserver command "getname".David Shaw1-16/+143
* 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-08-26* ksutil.h, ksutil.c (parse_ks_options): Remove exact-name andDavid Shaw1-8/+16
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-18* ksutil.h, ksutil.c (parse_ks_options): New keyserver-option exact-name. David Shaw1-2/+7
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* gpgkeys_ldap.c (ldap_quote): \-quote a string for LDAP.David Shaw1-3/+49
* gpgkeys_ldap.c (search_key): Use it here to escape reserved characters in searches.
2005-08-18* ksutil.h, ksutil.c (parse_ks_options): New keyserver-optionDavid Shaw1-3/+10
exact-email. * gpgkeys_ldap.c (search_key), gpgkeys_hkp.c (search_key): Use it here to do an email-only search.
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-03-22* gpgkeys_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved fromDavid Shaw1-11/+0
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-19* gpgkeys_ldap.c (main): Fix three wrong calls to fail_all(). NotedDavid Shaw1-3/+3
by Stefan Bellon.
2005-03-17* gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start usingDavid Shaw1-235/+135
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* gpgkeys_ldap.c: Include lber.h if configure determines we need it.David Shaw1-0/+3
2005-02-12* curl-shim.c (curl_easy_perform): Fix compile warning.David Shaw1-0/+35
* curl-shim.h, gpgkeys_curl.c (main), gpgkeys_ldap.c (main): Add ca-cert-file option, to pass in the SSL cert.
2005-01-24* gpgkeys_ldap.c (print_nocr): New. (get_key): Call it here toDavid Shaw1-1/+13
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-22* gpgkeys_ldap.c (main): Add "check-cert" option to disable SSLDavid Shaw1-7/+35
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-13* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,David Shaw1-20/+1
gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the various defines to ksutil.h.
2005-01-13* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1David Shaw1-20/+28
of a minor cleanup to use #defines instead of hard-coded sizes.
2004-12-22* gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optionalDavid Shaw1-1/+3
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-10-15* gpgkeys_ldap.c (main, show_help): Kludge to implement standardWerner Koch1-3/+22
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-13* gpgkeys_ldap.c (main), gpgkeys_hkp.c (main), gpgkeys_http.c (main),David Shaw1-0/+24
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-11* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Fix aDavid Shaw1-2/+2
few occurances of "filename" to `filename'.
2004-08-23* gpgkeys_ldap.c (get_key, search_key), gpgkeys_hkp.c (get_key,David Shaw1-7/+0
search_key), gpgkeys_http.c (get_key): Do not give informational logs since this is now done inside gpg.
2004-08-23* gpgkeys_ldap.c (get_key): Factor out informational display into newDavid Shaw1-74/+78
function build_info().
2004-08-23* gpgkeys_ldap.c (build_attrs): Properly terminate user ID strings thatDavid Shaw1-0/+2
got shrunk due to encoding.
2004-08-23* gpgkeys_ldap.c (find_basekeyspacedn): Use LDAP_SCOPE_BASE along with aDavid Shaw1-7/+24
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-07-29* gpgkeys_ldap.c (main): Add "debug" option. This is only really usefulDavid Shaw1-11/+60
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-28* gpgkeys_ldap.c (build_attrs): Add "pgpKeySize" and "pgpSubKeyID"David Shaw1-2/+42
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* gpgkeys_ldap.c (join_two_modlists): New. (send_key): Use new function soDavid Shaw1-19/+62
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* gpgkeys_ldap.c (main): Don't try and error out before making a ldapsDavid Shaw1-28/+19
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-27* configure.ac (AM_GNU_GETTEXT_VERSION): New.Werner Koch1-0/+7
(min_automake_version): New. * LINGUAS: Added all languages we supported in 1.2.5. Copied all po files from 1.2.5. * autogen.sh: Updated to the modern version, grepping the required tool versions from configure.ac.
2004-05-21* gpgkeys_ldap.c (ldap2epochtime): We can always rely on timegm() beingDavid Shaw1-22/+3
available now, since it's a replacement function.