- code cleanup of encoding package
This commit is contained in:
@@ -465,7 +465,7 @@ static status_t process_message(private_ike_sa_init_requested_t *this, message_t
|
||||
status_t process_nonce_payload (private_ike_sa_init_requested_t *this, nonce_payload_t *nonce_payload)
|
||||
{
|
||||
allocator_free(this->received_nonce.ptr);
|
||||
nonce_payload->get_nonce(nonce_payload, &(this->received_nonce));
|
||||
this->received_nonce = nonce_payload->get_nonce(nonce_payload);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ static status_t build_nonce_payload(private_responder_init_t *this,nonce_payload
|
||||
this->received_nonce = CHUNK_INITIALIZER;
|
||||
|
||||
this->logger->log(this->logger, CONTROL | MOST, "Get NONCE value and store it");
|
||||
nonce_request->get_nonce(nonce_request, &(this->received_nonce));
|
||||
this->received_nonce = nonce_request->get_nonce(nonce_request);
|
||||
|
||||
this->logger->log(this->logger, CONTROL | MOST, "Create new NONCE value.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user