fixed NONCE allocation
This commit is contained in:
parent
c9b4ddb8db
commit
b0f9c787be
@ -13,6 +13,7 @@ DIMASTATUS load_nodes(Node_info * nodelist)
|
||||
Cl1.ID = CLIENT1_ID;
|
||||
Cl1.status = DFL_CL_STAT;
|
||||
Cl1.pubKey_file="clientkeys/Client1_pub.pem";
|
||||
Cl1.NONCE = calloc(1, sizeof(unsigned char) * NONCE_SIZE);
|
||||
|
||||
nodelist[1] = Cl1;
|
||||
|
||||
@ -47,8 +48,8 @@ DIMASTATUS challenge_client(Node_info * Client)
|
||||
}
|
||||
|
||||
//Ch.NONCE = RAND;
|
||||
Client->NONCE = Ch.NONCE;
|
||||
//memcpy(Client->NONCE, Ch.NONCE, NONCE_SIZE);
|
||||
//Client->NONCE = Ch.NONCE;
|
||||
memcpy(Client->NONCE, Ch.NONCE, NONCE_SIZE);
|
||||
|
||||
|
||||
//if(DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user