From db093bb9759bacade163e5d9a6636deb89cd6b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 5 Dec 2006 23:44:32 +0000 Subject: [PATCH] add time validity-testing to query mask git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19227 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hx_locl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/hx509/hx_locl.h b/lib/hx509/hx_locl.h index 08a329713..a7260edcf 100644 --- a/lib/hx509/hx_locl.h +++ b/lib/hx509/hx_locl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 - 2005 Kungliga Tekniska Högskolan + * Copyright (c) 2004 - 2006 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -123,7 +123,8 @@ struct hx509_query_data { #define HX509_QUERY_MATCH_FRIENDLY_NAME 0x040000 #define HX509_QUERY_MATCH_FUNCTION 0x080000 #define HX509_QUERY_MATCH_KEY_HASH_SHA1 0x100000 -#define HX509_QUERY_MASK 0x1fffff +#define HX509_QUERY_MATCH_TIME 0x200000 +#define HX509_QUERY_MASK 0x3fffff Certificate *subject; Certificate *certificate; heim_integer *serial; @@ -136,6 +137,7 @@ struct hx509_query_data { int (*cmp_func)(void *, hx509_cert); void *cmp_func_ctx; heim_octet_string *keyhash_sha1; + time_t timenow; }; struct hx509_keyset_ops {