[or-cvs] When debugging, dump key material

Nick Mathewson nickm at seul.org
Sat Jun 14 01:34:42 UTC 2003


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv4149/src/or

Modified Files:
	onion.c 
Log Message:
When debugging, dump key material

Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- onion.c	14 Jun 2003 01:30:53 -0000	1.56
+++ onion.c	14 Jun 2003 01:34:39 -0000	1.57
@@ -523,6 +523,9 @@
   memcpy(key_out, buf+len-key_out_len, key_out_len);
 
 #ifdef DEBUG_ONION_SKINS
+  printf("Server: key material:");
+  PA(buf, DH_KEY_LEN);
+  puts("");
   printf("Server: keys out:");
   PA(key_out, key_out_len);
   puts("");
@@ -573,6 +576,9 @@
   memcpy(key_out, key_material+len-key_out_len, key_out_len);
 
 #ifdef DEBUG_ONION_SKINS
+  printf("Client: key material:");
+  PA(key_material, DH_KEY_LEN);
+  puts("");
   printf("Client: keys out:");
   PA(key_out, key_out_len);
   puts("");



More information about the tor-commits mailing list