summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-03 02:14:20 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-03 02:14:20 +0000
commit4e996a4ce878f70b944216cfb61019b0c912e2e9 (patch)
tree4349d62dc30f263f49a77d5e75c62cbfa45862fe /src/or/rendcommon.c
parent8c19d6e3d7944f267ac420ed42731c10e632e7d1 (diff)
downloadtor-4e996a4ce878f70b944216cfb61019b0c912e2e9.tar.gz
tor-4e996a4ce878f70b944216cfb61019b0c912e2e9.zip
tabs
svn:r1456
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index f80abf48eb..c3ad05cc48 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -62,7 +62,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc,
}
rend_service_descriptor_t *rend_parse_service_descriptor(
- const char *str, int len)
+ const char *str, int len)
{
rend_service_descriptor_t *result = NULL;
int keylen, asn1len, i;
@@ -95,9 +95,9 @@ rend_service_descriptor_t *rend_parse_service_descriptor(
keylen = crypto_pk_keysize(result->pk);
if (end-cp != keylen) goto truncated;
if (crypto_pk_public_checksig_digest(result->pk,
- (char*)str,cp-str, /* data */
- (char*)cp,end-cp /* signature*/
- )<0) {
+ (char*)str,cp-str, /* data */
+ (char*)cp,end-cp /* signature*/
+ )<0) {
log_fn(LOG_WARN, "Bad signature on service descriptor");
goto error;
}