projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4efe32b
)
New interface to enquire whether a key has expired.
author
mdw
<mdw>
Fri, 22 Jun 2001 19:37:59 +0000
(19:37 +0000)
committer
mdw
<mdw>
Fri, 22 Jun 2001 19:37:59 +0000
(19:37 +0000)
key.h
patch
|
blob
|
blame
|
history
diff --git
a/key.h
b/key.h
index
09bcad5
..
8629a57
100644
(file)
--- a/
key.h
+++ b/
key.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: key.h,v 1.
8 2001/02/03 11:57:38
mdw Exp $
+ * $Id: key.h,v 1.
9 2001/06/22 19:37:59
mdw Exp $
*
* Simple key management
*
*
* Simple key management
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: key.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: key.h,v $
+ * Revision 1.9 2001/06/22 19:37:59 mdw
+ * New interface to enquire whether a key has expired.
+ *
* Revision 1.8 2001/02/03 11:57:38 mdw
* Allow creating keyfiles with no file attached.
*
* Revision 1.8 2001/02/03 11:57:38 mdw
* Allow creating keyfiles with no file attached.
*
@@
-374,6
+377,15
@@
extern key *key_new(key_file */*f*/, uint32 /*id*/, const char */*type*/,
extern int key_delete(key_file */*f*/, key */*k*/);
extern int key_delete(key_file */*f*/, key */*k*/);
+/* --- @key_expired@ --- *
+ *
+ * Arguments: @key *k@ = pointer to key block
+ *
+ * Returns: Zero if the key is OK, nonzero if it's expired.
+ */
+
+int key_expired(key */*k*/);
+
/* --- @key_expire@ --- *
*
* Arguments: @key_file *f@ = pointer to file block
/* --- @key_expire@ --- *
*
* Arguments: @key_file *f@ = pointer to file block