Skip to content

Commit

Permalink
Fix bug where ext-info-c was incorrectly advertised during rekeying.
Browse files Browse the repository at this point in the history
According to RFC 8308 section 2.1, ext-info-c should only advertised during the first key exchange.
  • Loading branch information
norrisjeremy committed Sep 8, 2021
1 parent 4144773 commit 3f47e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jcraft/jsch/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ private void send_kexinit() throws Exception {
}

String enable_server_sig_algs=getConfig("enable_server_sig_algs");
if(enable_server_sig_algs.equals("yes")){
if(enable_server_sig_algs.equals("yes") && !isAuthed){
kex+=",ext-info-c";
}

Expand Down

0 comments on commit 3f47e66

Please sign in to comment.