Browse Source

added debugging statements to print out result of tag check

cecylia 7 years ago
parent
commit
13aabbdb54
1 changed files with 7 additions and 0 deletions
  1. 7 0
      relay_station/crypto.c

+ 7 - 0
relay_station/crypto.c

@@ -1469,6 +1469,13 @@ void check_handshake(struct packet_info *info){
 
 		/* check tag*/ 
 		res = check_tag(key, privkey, p, (const byte *)"context", 7);
+
+                if(res){
+                    printf("No tag found\n");
+                } else {
+                    printf("Tag found!\n");
+                }
+
 		if (!res) {
 
 #ifdef DEBUG