forked from apache/mina-sshd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apacheGH-445] lay down the groundwork for mitigating the Terrapin at…
…tack
- Loading branch information
Lyor Goldstein
committed
Dec 21, 2023
1 parent
f5c63a8
commit 1943506
Showing
7 changed files
with
429 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,21 @@ public final class KexExtensions { | |
public static final String CLIENT_KEX_EXTENSION = "ext-info-c"; | ||
public static final String SERVER_KEX_EXTENSION = "ext-info-s"; | ||
|
||
/** | ||
* Reminder: | ||
* | ||
* These pseudo-algorithms are only valid in the initial SSH2_MSG_KEXINIT and MUST be ignored if they are present in | ||
* subsequent SSH2_MSG_KEXINIT packets. | ||
* | ||
* <B>Note:</B> these values are <U>appended</U> to the initial proposals and removed if received before proceeding | ||
* with the standard KEX proposals negotiation. | ||
* | ||
* @see <A HREF="https://github.com/openssh/openssh-portable/blob/master/PROTOCOL">OpenSSH PROTOCOL - 1.9 transport: | ||
* strict key exchange extension</A> | ||
*/ | ||
public static final String STRICT_KEX_CLIENT_EXTENSION = "[email protected]"; | ||
public static final String STRICT_KEX_SERVER_EXTENSION = "[email protected]"; | ||
|
||
@SuppressWarnings("checkstyle:Indentation") | ||
public static final Predicate<String> IS_KEX_EXTENSION_SIGNAL | ||
= n -> CLIENT_KEX_EXTENSION.equalsIgnoreCase(n) || SERVER_KEX_EXTENSION.equalsIgnoreCase(n); | ||
|
Oops, something went wrong.