diff src/proto.salty.c @ 52:3115f8af98bb V2.2.2

Added support for libsodium, fixed bug in USE_PI compatibility mode, improved timestamp checking in nacltai protocol
author Ivo Smits <Ivo@UCIS.nl>
date Sun, 27 Oct 2013 23:10:43 +0100
parents 3f04a72ce035
children 15d651dec8e9
line wrap: on
line diff
--- a/src/proto.salty.c	Mon Jun 03 01:01:22 2013 +0200
+++ b/src/proto.salty.c	Sun Oct 27 23:10:43 2013 +0100
@@ -377,7 +377,7 @@
 		dec->nonce[22] = enc[14];
 		dec->nonce[23] = enc[15];
 		memset(enc, 0, 16);
-	if (debug) dumphex("DECODE KEY", dec->sharedkey, 32);
+		if (debug) dumphex("DECODE KEY", dec->sharedkey, 32);
 		if (crypto_box_curve25519xsalsa20poly1305_open_afternm(raw, enc, len - 4 + 16, dec->nonce, dec->sharedkey)) {
 			fprintf(stderr, "Decryption of data packet failed len=%d\n", len);
 			return -1;