summaryrefslogtreecommitdiffstats
path: root/src/handshake.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-19 15:54:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-19 15:54:46 +0200
commit7982387d5fea3dbc4825e0b1eaccd0a2af0eb061 (patch)
treec2532e62aab0466626e8db7a4833e9a0ffe3815d /src/handshake.h
parent6d8aa57c0248d7da1cb2cf3fc3516d785bd4db54 (diff)
downloadfastd-7982387d5fea3dbc4825e0b1eaccd0a2af0eb061.tar
fastd-7982387d5fea3dbc4825e0b1eaccd0a2af0eb061.zip
Add a HMAC to authenticate all handshake TLV
Diffstat (limited to 'src/handshake.h')
-rw-r--r--src/handshake.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handshake.h b/src/handshake.h
index 70a1c6c..6415d5e 100644
--- a/src/handshake.h
+++ b/src/handshake.h
@@ -46,6 +46,7 @@ typedef enum fastd_handshake_record_type {
RECORD_METHOD_NAME,
RECORD_VERSION_NAME,
RECORD_METHOD_LIST,
+ RECORD_HANDSHAKE_MAC,
RECORD_MAX,
} fastd_handshake_record_type_t;
@@ -59,12 +60,13 @@ typedef enum fastd_reply_code {
typedef struct fastd_handshake_record {
size_t length;
- const uint8_t *data;
+ uint8_t *data;
} fastd_handshake_record_t;
struct fastd_handshake {
uint8_t type;
fastd_handshake_record_t records[RECORD_MAX];
+ fastd_buffer_t buffer;
};