diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-01-23 14:22:58 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-01-23 16:33:56 +0100 |
commit | bf0c364db7d2e31272786c3bc59eea4f26f8ac71 (patch) | |
tree | eb78c86dcd8720c4a1515fb3641e96c7e2373d75 /jrt | |
parent | a0781f51282f8e0c489013208295947d998ca55c (diff) |
Allow configuration of accepted ciphers
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/tests/com/yahoo/jrt/CryptoUtils.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jrt/tests/com/yahoo/jrt/CryptoUtils.java b/jrt/tests/com/yahoo/jrt/CryptoUtils.java index 1c2280567cb..1112234e04e 100644 --- a/jrt/tests/com/yahoo/jrt/CryptoUtils.java +++ b/jrt/tests/com/yahoo/jrt/CryptoUtils.java @@ -17,6 +17,7 @@ import javax.security.auth.x500.X500Principal; import java.security.KeyPair; import java.security.cert.X509Certificate; import java.time.Instant; +import java.util.List; import static com.yahoo.security.KeyAlgorithm.RSA; import static com.yahoo.security.SignatureAlgorithm.SHA256_WITH_RSA; @@ -49,7 +50,7 @@ class CryptoUtils { Field.CN, new HostGlobPattern("dummy")))))); static TlsContext createTestTlsContext() { - return new DefaultTlsContext(singletonList(certificate), keyPair.getPrivate(), singletonList(certificate), authorizedPeers, AuthorizationMode.ENFORCE); + return new DefaultTlsContext(singletonList(certificate), keyPair.getPrivate(), singletonList(certificate), authorizedPeers, AuthorizationMode.ENFORCE, List.of()); } } |