gnupg/dirmngr
Neal H. Walfield 51341badb6 Add support to talking to LDAP key servers.
* g10/call-dirmngr.c (record_output): New function.
(ks_put_inq_cb): Use it here to generate a --with-colons like output
instead of a custom format.
* dirmngr/ks-action.c: Include "ldap-parse-uri.h".
(ks_action_help): If the provided URI is an LDAP URI, then use
ldap_parse_uri to parse.  Call ks_ldap_help.
(ks_action_search): If passed an LDAP URI, then call ks_ldap_search.
(ks_action_get): Likewise.
(ks_action_put): Likewise.  Also, change data from a 'const void *' to
a 'void *' and add info and infolen parameters.  Add note that
function may modify DATA.
* dirmngr/ks-action.h (ks_action_put): Update declaration accordingly.
* dirmngr/server.c: Include "ldap-parse-uri.h".
(cmd_keyserver): If ITEM->URI is an LDAP URI, parse it using
ldap_parse_uri.
(hlp_ks_put): Improve documentation.
(cmd_ks_put): Also pass info and infolen to ks_action_put.  Improve
documentation.
* dirmngr/ks-engine.h (ks_ldap_help): New declaration.
(ks_ldap_search): Likewise.
(ks_ldap_get): Likewise.
(ks_ldap_put): Likewise.
* dirmngr/ks-engine-ldap.c: New file.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add ks-engine-ldap.c,
ldap-parse-uri.c and ldap-parse-uri.h.
(dirmngr_LDADD) [USE_LDAP]: Add $(ldaplibs).

--
Signed-off-by: Neal H. Walfield <neal@g10code.de>
2015-03-23 19:58:29 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
ChangeLog.1 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
OAUTHORS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ONEWS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
cdb.h Tweaks for gpgconf. 2010-12-14 19:17:58 +00:00
cdblib.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
certcache.c dirmngr: Initialize cache from sysconfig dir 2015-02-12 13:02:53 +01:00
certcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlcache.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
crlcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlfetch.c dirmngr: Remove un-needed check. 2014-12-22 12:39:14 +01:00
crlfetch.h Some work on the dirmngr 2010-07-23 16:16:14 +00:00
dirmngr-client.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
dirmngr-err.h Some work on porting dirmngr (unfinished) 2010-07-16 13:19:45 +00:00
dirmngr.c dirmngr: Initialize cache from sysconfig dir 2015-02-12 13:02:53 +01:00
dirmngr.h dirmngr: Initialize cache from sysconfig dir 2015-02-12 13:02:53 +01:00
dirmngr_ldap.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
ks-action.c Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
ks-action.h Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
ks-engine-finger.c Add framework to print keyserver engine information 2011-02-09 18:20:05 +01:00
ks-engine-hkp.c Move armor_data to misc.c. 2015-03-23 19:58:27 +01:00
ks-engine-http.c dirmngr: Support https for KS_FETCH. 2014-09-10 10:37:48 +02:00
ks-engine-kdns.c Add ECC import regression tests and fixed a regression. 2011-02-10 20:45:37 +01:00
ks-engine-ldap.c Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
ks-engine.h Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
ldap-parse-uri.c Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
ldap-parse-uri.h Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
ldap-url.c dirmngr: Simplify strtok macro. 2014-03-07 19:00:31 +01:00
ldap-url.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
ldap-wrapper-ce.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
ldap-wrapper.c Replace npth_yield in busy wait by npth_usleep. 2012-02-28 17:26:32 +01:00
ldap-wrapper.h Fixed couple of build problems. However the W32 version is currently 2010-07-26 14:27:59 +00:00
ldap.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
ldapserver.c dirmngr,gpgsm: Return NULL on fail 2014-12-22 12:39:14 +01:00
ldapserver.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
misc.c Move copy_stream function to misc.c. 2015-03-23 19:58:27 +01:00
misc.h Move copy_stream function to misc.c. 2015-03-23 19:58:27 +01:00
ocsp.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
ocsp.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
server.c Add support to talking to LDAP key servers. 2015-03-23 19:58:29 +01:00
sks-keyservers.netCA.pem dirmngr: Add support for hkps keyservers. 2014-05-05 16:23:37 +02:00
t-ldap-parse-uri.c Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
t-support.h Add new LDAP utility functions. 2015-03-23 19:58:26 +01:00
validate.c Use a unique capitalization for "Note:". 2014-10-10 15:29:42 +02:00
validate.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
w32-ldap-help.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00