File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ void Session::DestGenerate(const Sock& sock)
326
326
// https://geti2p.net/spec/common-structures#key-certificates
327
327
// "7" or "EdDSA_SHA512_Ed25519" - "Recent Router Identities and Destinations".
328
328
// Use "7" because i2pd <2.24.0 does not recognize the textual form.
329
+ // If SIGNATURE_TYPE is not specified, then the default one is DSA_SHA1.
329
330
const Reply& reply = SendRequestAndGetReply (sock, " DEST GENERATE SIGNATURE_TYPE=7" , false );
330
331
331
332
m_private_key = DecodeI2PBase64 (reply.Get (" PRIV" ));
@@ -379,7 +380,7 @@ void Session::CreateIfNotCreatedAlready()
379
380
// in the reply in DESTINATION=.
380
381
const Reply& reply = SendRequestAndGetReply (
381
382
*sock,
382
- strprintf (" SESSION CREATE STYLE=STREAM ID=%s DESTINATION=TRANSIENT" , session_id));
383
+ strprintf (" SESSION CREATE STYLE=STREAM ID=%s DESTINATION=TRANSIENT SIGNATURE_TYPE=7 " , session_id));
383
384
384
385
m_private_key = DecodeI2PBase64 (reply.Get (" DESTINATION" ));
385
386
} else {
You can’t perform that action at this time.
0 commit comments