Skip to content

Commit

Permalink
Merge branch 'master' of i2pgit.org:i2p-hackers/i2p.i2p
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Jan 7, 2025
2 parents b1602f6 + d644831 commit a25719b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ static GarlicMessage createGarlicMessage(RouterContext ctx, long replyToken, lon
* @param dataClove may be null for ECIES-layer ack
* @param tagsToSendOverride if > 0, use this instead of skm's default
* @param lowTagsOverride if > 0, use this instead of skm's default
* @param wrappedKey non-null with null data,
* output parameter that will be filled with the SessionKey used
* @param wrappedTags output parameter that will be filled with the sessionTags used
* @param wrappedKey for ElGamal, non-null with null data,
* output parameter that will be filled with the SessionKey used,
* may be null for ECIES
* @param wrappedTags for ElGamal, output parameter that will be filled with the sessionTags used,
* may be null for ECIES
* @param replyTunnel non-null if requireAck is true or bundledReplyLeaseSet is non-null
* @param requireAck if true, bundle replyToken in an ack clove
* @param bundledReplyLeaseSet may be null; if non-null, put it in a clove
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,15 @@ private void send() {
clove = null;
}

SessionKey sessKey = new SessionKey();
Set<SessionTag> tags = new HashSet<SessionTag>();
SessionKey sessKey;
Set<SessionTag> tags;
if (_encryptionKey.getType() == EncType.ECIES_X25519) {
sessKey = null;
tags = null;
} else {
sessKey = new SessionKey();
tags = new HashSet<SessionTag>();
}

// Per-message flag > 0 overrides per-session option
int tagsToSend = SendMessageOptions.getTagsToSend(sendFlags);
Expand Down

0 comments on commit a25719b

Please sign in to comment.