summaryrefslogtreecommitdiffstats
path: root/lib/keychain.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keychain.h')
-rw-r--r--lib/keychain.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/lib/keychain.h b/lib/keychain.h
index d3f9168a0..cb3909fdb 100644
--- a/lib/keychain.h
+++ b/lib/keychain.h
@@ -24,41 +24,38 @@
#include "qobj.h"
-struct keychain
-{
- char *name;
+struct keychain {
+ char *name;
- struct list *key;
+ struct list *key;
- QOBJ_FIELDS
+ QOBJ_FIELDS
};
DECLARE_QOBJ_TYPE(keychain)
-struct key_range
-{
- time_t start;
- time_t end;
+struct key_range {
+ time_t start;
+ time_t end;
- u_char duration;
+ u_char duration;
};
-struct key
-{
- u_int32_t index;
+struct key {
+ u_int32_t index;
- char *string;
+ char *string;
- struct key_range send;
- struct key_range accept;
+ struct key_range send;
+ struct key_range accept;
- QOBJ_FIELDS
+ QOBJ_FIELDS
};
DECLARE_QOBJ_TYPE(key)
-extern void keychain_init (void);
-extern struct keychain *keychain_lookup (const char *);
-extern struct key *key_lookup_for_accept (const struct keychain *, u_int32_t);
-extern struct key *key_match_for_accept (const struct keychain *, const char *);
-extern struct key *key_lookup_for_send (const struct keychain *);
+extern void keychain_init(void);
+extern struct keychain *keychain_lookup(const char *);
+extern struct key *key_lookup_for_accept(const struct keychain *, u_int32_t);
+extern struct key *key_match_for_accept(const struct keychain *, const char *);
+extern struct key *key_lookup_for_send(const struct keychain *);
#endif /* _ZEBRA_KEYCHAIN_H */