Compare commits

..

2 Commits

Author SHA1 Message Date
David Kocher
4be5228a4d Ensure reset of security provider preference. (#1013)
Some checks failed
Build SSHJ / Build with Java 11 (push) Has been cancelled
Build SSHJ / Integration test (push) Has been cancelled
2025-05-14 16:05:06 +02:00
Jeroen van Erp
1398b190ec Prepare release 0.39.0
Some checks failed
Build SSHJ / Build with Java 11 (push) Has been cancelled
Build SSHJ / Integration test (push) Has been cancelled
2025-05-13 11:33:00 +02:00
3 changed files with 17 additions and 0 deletions

View File

@@ -110,6 +110,18 @@ Issue tracker: https://github.com/hierynomus/sshj/issues
Fork away! Fork away!
== Release history == Release history
SSHJ 0.39.0 (2024-02-20)::
* Upgraded dependencies
* Remove hard dependencies on BouncyCastle, making it optional.
* Merged https://github.com/hierynomus/sshj/pull/993[#993]: Remove EDDSA dependency
* Merged https://github.com/hierynomus/sshj/pull/959[#959]: Improve Curve25519 public key handling
* Merged https://github.com/hierynomus/sshj/pull/911[#911]: Fix for bad packet received with heartbeat enabled
* Merged https://github.com/hierynomus/sshj/pull/926[#926]: Close session when closing SFTP client
* Merged https://github.com/hierynomus/sshj/pull/928[#928]: Improve file-listing performance
* Merged https://github.com/hierynomus/sshj/pull/934[#934]: Don't send keep-alive before KEX done
* Merged https://github.com/hierynomus/sshj/pull/936[#936]: Improve Base64 decoding error handling
* Merged https://github.com/hierynomus/sshj/pull/925[#925]: Allow passing connected sockets
* Merged https://github.com/hierynomus/sshj/pull/922[#922]: Fix bug in known_hosts parsing
SSHJ 0.38.0 (2024-01-02):: SSHJ 0.38.0 (2024-01-02)::
* Mitigated CVE-2023-48795 - Terrapin * Mitigated CVE-2023-48795 - Terrapin
* Merged https://github.com/hierynomus/sshj/pull/917[#917]: Implement OpenSSH strict key exchange extension * Merged https://github.com/hierynomus/sshj/pull/917[#917]: Implement OpenSSH strict key exchange extension

View File

@@ -276,6 +276,9 @@ public class SecurityUtils {
*/ */
public static synchronized void setSecurityProvider(String securityProvider) { public static synchronized void setSecurityProvider(String securityProvider) {
SecurityUtils.securityProvider = securityProvider; SecurityUtils.securityProvider = securityProvider;
if(null == securityProvider) {
SecurityUtils.registerBouncyCastle = null;
}
registrationDone = false; registrationDone = false;
} }

View File

@@ -17,6 +17,7 @@ package net.schmizz.sshj.transport.kex;
import net.schmizz.sshj.common.SecurityUtils; import net.schmizz.sshj.common.SecurityUtils;
import net.schmizz.sshj.transport.random.JCERandom; import net.schmizz.sshj.transport.random.JCERandom;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -43,6 +44,7 @@ public class Curve25519DHTest {
}; };
@BeforeEach @BeforeEach
@AfterEach
public void clearSecurityProvider() { public void clearSecurityProvider() {
SecurityUtils.setSecurityProvider(null); SecurityUtils.setSecurityProvider(null);
} }