Skip to content

Commit

Permalink
Adapt visibility of setRecipientSeq to public.
Browse files Browse the repository at this point in the history
Add setRecipientReplayWindow.
Fixes issue #2222.

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed Mar 3, 2024
1 parent 4c27153 commit 7ef56fe
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -645,11 +645,20 @@ public synchronized void setSenderSeq(int seq) {

/**
* @param seq the recipient sequence number to set
* @since 3.11 (adjust visibility to public)
*/
synchronized void setRecipientSeq(int seq) {
public synchronized void setRecipientSeq(int seq) {
lowest_recipient_seq = seq;
}

/**
* @param window the recipient replay window to set
* @since 3.11
*/
public synchronized void setRecipientReplayWindow(int window) {
recipient_replay_window = window;
}

/**
* Enables setting the sender key
*
Expand Down

0 comments on commit 7ef56fe

Please sign in to comment.