Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
debfe65f
Commit
debfe65f
authored
Jun 14, 2003
by
Nick Mathewson
🎨
Browse files
When debugging, dump key material
svn:r323
parent
91825372
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/onion.c
View file @
debfe65f
...
...
@@ -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
(
""
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment