- nonce payload tested
- generator for nonce data written
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user