summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-05 21:39:18 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-05 21:39:18 +0000
commitd371dda8f9b7a9de93a3aef732fa08db9cf59576 (patch)
tree9f9203fcca41fe6e891d4fb9954f834a9df08c96 /src/or/rendclient.c
parent536a9b6c2841a3981e4f65f640325d5b07350746 (diff)
downloadtor-d371dda8f9b7a9de93a3aef732fa08db9cf59576.tar.gz
tor-d371dda8f9b7a9de93a3aef732fa08db9cf59576.zip
Spec conformance: KH|"INTRODUCE" is only for establishing intro pt
svn:r1493
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 9632f54f3b..ec052cd8d4 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -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;
}