mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Spec conformance: KH|"INTRODUCE" is only for establishing intro pt
svn:r1493
This commit is contained in:
+1
-7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user