Browse Source

dirmngr: Allow to pass no filter args to dirmngr_ldap.

* dirmngr/dirmngr_ldap.c (main): Handle no args case.
--

This is required for example for CRLs.  The old code did not require
this because the hos was taken from the URL given has arg.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit f6e45671aa)
ikloecker/pinentry-formatted-passphrase
Werner Koch 1 year ago
parent
commit
14528ec66b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
  1. 16
      dirmngr/dirmngr_ldap.c

16
dirmngr/dirmngr_ldap.c

@ -296,8 +296,6 @@ main (int argc, char **argv)
if (log_get_errorcount (0))
exit (2);
if (argc < 1)
gpgrt_usage (1);
if (opt.alarm_timeout)
{
@ -320,9 +318,17 @@ main (int argc, char **argv)
any_err = 1;
else
{
for (; argc; argc--, argv++)
if (process_filter (ld, *argv))
any_err = 1;
if (!argc)
{
if (process_filter (ld, "(objectClass=*)"))
any_err = 1;
}
else
{
for (; argc; argc--, argv++)
if (process_filter (ld, *argv))
any_err = 1;
}
ldap_unbind (ld);
}

Loading…
Cancel
Save