- nonce payload tested

- generator for nonce data written
This commit is contained in:
Jan Hutter
2005-11-15 16:13:40 +00:00
parent 8166bcec62
commit 2a489f333d
6 changed files with 99 additions and 9 deletions
+2 -5
View File
@@ -100,11 +100,6 @@ encoding_rule_t nonce_payload_encodings[] = {
{ NONCE_DATA, offsetof(private_nonce_payload_t, nonce) }
};
/**
* length of a nonce payload without a nonce in int
*/
#define NONCE_PAYLOAD_HEADER_LENGTH 4
/**
* Implements payload_t's and nonce_payload_t's destroy function.
* See #payload_s.destroy or nonce_payload_s.destroy for description.
@@ -229,6 +224,8 @@ nonce_payload_t *nonce_payload_create()
this->critical = FALSE;
this->next_payload = NO_PAYLOAD;
this->payload_length = NONCE_PAYLOAD_HEADER_LENGTH;
this->nonce.ptr = NULL;
this->nonce.len = 0;
return (&(this->public));
}
+4 -1
View File
@@ -28,7 +28,10 @@
#include "../types.h"
#include "payload.h"
/**
* length of a nonce payload without a nonce in int
*/
#define NONCE_PAYLOAD_HEADER_LENGTH 4
/**
* Object representing an IKEv2 Nonce payload