summaryrefslogtreecommitdiff
path: root/nest/password.h
diff options
context:
space:
mode:
authorPavel TvrdĂ­k <pawel.tvrdik@gmail.com>2016-01-26 16:45:13 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-11-02 16:23:53 +0100
commit56cb3bedc2634a44ea41587566c2889f5b5f5b5b (patch)
treefe3eca634f35b4a3b7e8449915f75a3b42e70ea1 /nest/password.h
parentde2a27e255b6ec834d11c005909b28a150c7c0db (diff)
Nest: Add support for MAC algorithms in grammar
Diffstat (limited to 'nest/password.h')
-rw-r--r--nest/password.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/nest/password.h b/nest/password.h
index a45261e6..7392389b 100644
--- a/nest/password.h
+++ b/nest/password.h
@@ -9,12 +9,15 @@
#ifndef PASSWORD_H
#define PASSWORD_H
+
#include "lib/timer.h"
struct password_item {
node n;
- char *password;
- int id;
+ char *password; /* Key data, null terminated */
+ uint length; /* Key length, without null */
+ uint id; /* Key ID */
+ uint alg; /* MAC algorithm */
bird_clock_t accfrom, accto, genfrom, gento;
};