diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-06-14 01:34:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-06-14 01:34:39 +0000 |
commit | debfe65fafcf5b0f0efb5c53bdb77ed3bbe1853c (patch) | |
tree | 3314798c1f4ef9ed19135068dbd93480035ba3e1 /src/or | |
parent | 9182537238b9485f181379b463686d426105ae30 (diff) | |
download | tor-debfe65fafcf5b0f0efb5c53bdb77ed3bbe1853c.tar.gz tor-debfe65fafcf5b0f0efb5c53bdb77ed3bbe1853c.zip |
When debugging, dump key material
svn:r323
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/onion.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 86430bcdca..e71e308d9e 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -523,6 +523,9 @@ onion_skin_server_handshake(char *onion_skin, /* DH_ONIONSKIN_LEN bytes long */ memcpy(key_out, buf+len-key_out_len, key_out_len); #ifdef DEBUG_ONION_SKINS + printf("Server: key material:"); + PA(buf, DH_KEY_LEN); + puts(""); printf("Server: keys out:"); PA(key_out, key_out_len); puts(""); @@ -573,6 +576,9 @@ onion_skin_client_handshake(crypto_dh_env_t *handshake_state, memcpy(key_out, key_material+len-key_out_len, key_out_len); #ifdef DEBUG_ONION_SKINS + printf("Client: key material:"); + PA(key_material, DH_KEY_LEN); + puts(""); printf("Client: keys out:"); PA(key_out, key_out_len); puts(""); |