when opening a session forward the received cookie to sec-module

That allows to verify that the cookie hasn't been tampered
without relying only on the MAC.
This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-12 21:44:32 +01:00
parent d348caacc2
commit 3d55134215
6 changed files with 34 additions and 13 deletions
+2
View File
@@ -219,6 +219,8 @@ message cookie
message sec_auth_session_msg
{
required bytes sid = 1;
/* on open */
optional bytes cookie = 2;
/* on close */
optional uint32 uptime = 3;
optional uint64 bytes_in = 4;