diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-31 19:17:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-31 19:17:07 +0000 |
commit | 1bf1f9d2fca917099c7e26e8f46df36329cd5c65 (patch) | |
tree | 756676cc8fc30d175869b579fad56d05a1d5ce06 /src/or/rendcommon.c | |
parent | 058ae90539de12b2486bc4032b11bc1d79357f41 (diff) | |
download | tor-1bf1f9d2fca917099c7e26e8f46df36329cd5c65.tar.gz tor-1bf1f9d2fca917099c7e26e8f46df36329cd5c65.zip |
r9449@Kushana: nickm | 2006-10-31 00:12:02 -0500
Dump breakdown of PK operations when we get a USR2 signal. This should help us figure out of we are doing some of them for stupid reasons.
svn:r8881
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 7293f8fb06..2ecc2c3513 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -97,6 +97,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, cp += 6+DIGEST_LEN+2+klen; } } + note_crypto_pk_op(REND_SERVER); i = crypto_pk_private_sign_digest(key, cp, *str_out, cp-*str_out); if (i<0) { tor_free(*str_out); @@ -198,6 +199,7 @@ rend_parse_service_descriptor(const char *str, size_t len) (int)((size_t)(end-cp) - keylen)); goto error; } + note_crypto_pk_op(REND_CLIENT); if (crypto_pk_public_checksig_digest(result->pk, (char*)str,cp-str, /* data */ (char*)cp,end-cp /* signature*/ |