]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Spec conformance: KH|"INTRODUCE" is only for establishing intro pt
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 21:39:18 +0000 (21:39 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Apr 2004 21:39:18 +0000 (21:39 +0000)
svn:r1493

src/or/rendclient.c

index 9632f54f3bf0661b6c003984fff441c30badb48e..ec052cd8d4dad94f5442f9c3f728845ed18b9c6c 100644 (file)
@@ -192,13 +192,7 @@ rend_client_receive_rendezvous(circuit_t *circ, const char *request, int request
     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;
   }