浏览代码

added debugging statements to print out result of tag check

cecylia 7 年之前
父节点
当前提交
13aabbdb54
共有 1 个文件被更改,包括 7 次插入0 次删除
  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