aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-engine.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-04-04 06:49:55 +0000
committerWerner Koch <[email protected]>2023-04-04 06:49:55 +0000
commit56d309133f0e54ac5e2f95871fb74f8cb97e2636 (patch)
tree79624645582e9dbe72b16287b553b37abfcfc724 /dirmngr/ks-engine.h
parentagent: Add trustlist flag "de-vs". (diff)
downloadgnupg-56d309133f0e54ac5e2f95871fb74f8cb97e2636.tar.gz
gnupg-56d309133f0e54ac5e2f95871fb74f8cb97e2636.zip
dirmngr: Return modifyTimestamp and add server option --newer.
* dirmngr/server.c (cmd_ks_get): Add option --newer. (cmd_ad_query): Ditto. * dirmngr/ldap-misc.c (isotime2rfc4517): New. (rfc4517toisotime): New. * dirmngr/ks-action.c (ks_action_get): Add arg newer and pass on. (ks_action_query): Ditto. * dirmngr/ks-engine-ldap.c (extract_keys): Print new "chg" record. (ks_ldap_get): Add arg newer. Modify filter with newer arg. (ks_ldap_search): Print the modifyTimestamp. (ks_ldap_query): Add arg newer. Modify filter with newer arg. -- Note that the modifyTimestamp is also available on Windows, where its value is more commonly known as whenChanged. Both are constructed attributes. Note that the --newer option is a bit of a misnomer because LDAP has only a greater-or-equal and no greater-than operator.
Diffstat (limited to 'dirmngr/ks-engine.h')
-rw-r--r--dirmngr/ks-engine.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dirmngr/ks-engine.h b/dirmngr/ks-engine.h
index 5fbe300c0..03588a4d3 100644
--- a/dirmngr/ks-engine.h
+++ b/dirmngr/ks-engine.h
@@ -76,13 +76,14 @@ gpg_error_t ks_ldap_search (ctrl_t ctrl, parsed_uri_t uri, const char *pattern,
estream_t *r_fp);
gpg_error_t ks_ldap_get (ctrl_t ctrl, parsed_uri_t uri,
const char *keyspec, unsigned int ks_get_flags,
- estream_t *r_fp);
+ gnupg_isotime_t newer, estream_t *r_fp);
gpg_error_t ks_ldap_put (ctrl_t ctrl, parsed_uri_t uri,
void *data, size_t datalen,
void *info, size_t infolen);
gpg_error_t ks_ldap_query (ctrl_t ctrl, parsed_uri_t uri,
unsigned int ks_get_flags,
- const char *filter, char **attrs, estream_t *r_fp);
+ const char *filter, char **attrs,
+ gnupg_isotime_t newer, estream_t *r_fp);
#endif /*DIRMNGR_KS_ENGINE_H*/