diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-03 11:58:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-03 11:58:59 -0500 |
commit | 66039d98430bfbbc921f386b41366b78579e07f0 (patch) | |
tree | 35b4b4f71c4c4499cbe6105a5434a3fcb101b30f /src/or/rendmid.c | |
parent | 30b3475e6d5f5b644d4b607b343ff1da9540d178 (diff) | |
parent | 989db9aed19f0ca3c93a1638bab4a2b473a94aa9 (diff) | |
download | tor-66039d98430bfbbc921f386b41366b78579e07f0.tar.gz tor-66039d98430bfbbc921f386b41366b78579e07f0.zip |
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Conflicts:
src/or/routerparse.c
Diffstat (limited to 'src/or/rendmid.c')
-rw-r--r-- | src/or/rendmid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c index baa83293d9..5e2dd986ba 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -69,7 +69,8 @@ rend_mid_establish_intro(or_circuit_t *circ, const uint8_t *request, } /* Rest of body: signature of previous data */ note_crypto_pk_op(REND_MID); - if (crypto_pk_public_checksig_digest(pk, (char*)request, 2+asn1len+DIGEST_LEN, + if (crypto_pk_public_checksig_digest(pk, + (char*)request, 2+asn1len+DIGEST_LEN, (char*)(request+2+DIGEST_LEN+asn1len), request_len-(2+DIGEST_LEN+asn1len))<0) { log_warn(LD_PROTOCOL, @@ -130,7 +131,8 @@ rend_mid_establish_intro(or_circuit_t *circ, const uint8_t *request, * INTRODUCE2 cell. */ int -rend_mid_introduce(or_circuit_t *circ, const uint8_t *request, size_t request_len) +rend_mid_introduce(or_circuit_t *circ, const uint8_t *request, + size_t request_len) { or_circuit_t *intro_circ; char serviceid[REND_SERVICE_ID_LEN_BASE32+1]; |