summaryrefslogtreecommitdiffstats
path: root/base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java')
-rw-r--r--base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java b/base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java
index 70aaa373f..729d71d63 100644
--- a/base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java
+++ b/base/util/src/com/netscape/cmsutil/crypto/CryptoUtil.java
@@ -944,7 +944,9 @@ public class CryptoUtil {
for (String cipher : ciphers) {
Integer cipherID = cipherMap.get(cipher);
- if (cipherID == null) continue;
+ if (cipherID == null) {
+ throw new SocketException("Unsupported cipher: " + cipher);
+ }
SSLSocket.setCipherPreferenceDefault(cipherID, true);
}