aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ldap-wrapper-ce.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-07-26 14:01:32 +0000
committerWerner Koch <[email protected]>2010-07-26 14:01:32 +0000
commitca279dc707df0cdca43271ba02133327a138f625 (patch)
tree53cb5c3a804bb9c8ddffdc0a2bb0e3ecd8f22b40 /dirmngr/ldap-wrapper-ce.c
parentAdd new set_binary feature to estream (diff)
downloadgnupg-ca279dc707df0cdca43271ba02133327a138f625.tar.gz
gnupg-ca279dc707df0cdca43271ba02133327a138f625.zip
Some work on the dirmngr
Diffstat (limited to '')
-rw-r--r--dirmngr/ldap-wrapper-ce.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/dirmngr/ldap-wrapper-ce.c b/dirmngr/ldap-wrapper-ce.c
index dd594fdbd..b7a61ad8d 100644
--- a/dirmngr/ldap-wrapper-ce.c
+++ b/dirmngr/ldap-wrapper-ce.c
@@ -41,6 +41,9 @@
#include "misc.h"
#include "ldap-wrapper.h"
+#ifdef USE_LDAPWRAPPER
+# error This module is not expected to be build.
+#endif
/* To keep track of the LDAP wrapper state we use this structure. */
@@ -169,19 +172,9 @@ ldap_wrapper_connection_cleanup (ctrl_t ctrl)
}
}
-/* Fork and exec the LDAP wrapper and returns a new libksba reader
+/* Start a new LDAP thread and returns a new libksba reader
object at READER. ARGV is a NULL terminated list of arguments for
- the wrapper. The function returns 0 on success or an error code.
-
- Special hack to avoid passing a password through the command line
- which is globally visible: If the first element of ARGV is "--pass"
- it will be removed and instead the environment variable
- DIRMNGR_LDAP_PASS will be set to the next value of ARGV. On modern
- OSes the environment is not visible to other users. For those old
- systems where it can't be avoided, we don't want to go into the
- hassle of passing the password via stdin; it's just too complicated
- and an LDAP password used for public directory lookups should not
- be that confidential. */
+ the wrapper. The function returns 0 on success or an error code. */
gpg_error_t
ldap_wrapper (ctrl_t ctrl, ksba_reader_t *reader, const char *argv[])
{