From 1ab5020ef238d73d23611ef1da22d14c8ab3dbcc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 29 Dec 2009 11:39:05 +1100 Subject: s4-ldb: declate ldb_val_to_time() --- source4/lib/ldb/include/ldb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index c8bfa24832..1958fd740b 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1950,6 +1950,12 @@ char *ldb_timestring(TALLOC_CTX *mem_ctx, time_t t); */ time_t ldb_string_to_time(const char *s); +/** + convert a LDAP GeneralizedTime string in ldb_val format to a + time_t. +*/ +int ldb_val_to_time(const struct ldb_val *v, time_t *t); + /** Convert a time structure to a string -- cgit