[or-cvs] Spec conformance: KH|"INTRODUCE" is only for establishing i...

Nick Mathewson nickm at seul.org
Mon Apr 5 21:39:20 UTC 2004


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

Modified Files:
	rendclient.c 
Log Message:
Spec conformance: KH|"INTRODUCE" is only for establishing intro pt

Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendclient.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- rendclient.c	5 Apr 2004 21:15:14 -0000	1.16
+++ rendclient.c	5 Apr 2004 21:39:18 -0000	1.17
@@ -192,13 +192,7 @@
     goto err;
 
   /* Check whether the digest is right... */
-  memcpy(buf, keys, DIGEST_LEN);
-  memcpy(buf+DIGEST_LEN, "INTRODUCE", 9);
-  if (crypto_digest(buf, DIGEST_LEN+9, expected_digest)) {
-    log_fn(LOG_WARN, "Error computing digest");
-    goto err;
-  }
-  if (memcmp(expected_digest, request+DH_KEY_LEN, DIGEST_LEN)) {
+  if (memcmp(keys, request+DH_KEY_LEN, DIGEST_LEN)) {
     log_fn(LOG_WARN, "Incorrect digest of key material");
     goto err;
   }



More information about the tor-commits mailing list