Skip to content

Commit 07317be

Browse files
authored
Merge pull request #314 from rlm2002/autoSNISecToSys
Change wolfjsse.autoSNI references from Security property to System
2 parents a0c7f6c + a87f1ed commit 07317be

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Release 1.16.0 has bug fixes and new features including:
44

55
**JSSE System/Security Property Support:**
6-
* Add `wolfjsse.autoSNI` Security property support to control auto setting SNI (PR 249)
6+
* Add `wolfjsse.autoSNI` System property support to control auto setting SNI (PR 249)
77
* Add partial support for `jdk.tls.client.SignatureSchemes` and `jdk.tls.server.SignatureSchemes` (PR 299)
88

99
**JSSE Changes:**

src/test/com/wolfssl/provider/jsse/test/WolfSSLSocketTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,12 +3436,12 @@ public Void call() throws Exception {
34363436
public void testAutoSNIProperty() throws Exception {
34373437
System.out.print("\tTesting autoSNI property");
34383438

3439-
/* Save original Security property value */
3440-
String originalProp = Security.getProperty("wolfjsse.autoSNI");
3439+
/* Save original System property value */
3440+
String originalProp = System.getProperty("wolfjsse.autoSNI");
34413441

34423442
try {
34433443
/* Test with autoSNI enabled */
3444-
Security.setProperty("wolfjsse.autoSNI", "true");
3444+
System.setProperty("wolfjsse.autoSNI", "true");
34453445

34463446
/* Create new CTX */
34473447
this.ctx = tf.createSSLContext("TLS", ctxProvider);
@@ -3490,7 +3490,7 @@ public void testAutoSNIProperty() throws Exception {
34903490
}
34913491

34923492
/* Test with autoSNI disabled */
3493-
Security.setProperty("wolfjsse.autoSNI", "false");
3493+
System.setProperty("wolfjsse.autoSNI", "false");
34943494

34953495
ss = (SSLServerSocket)ctx.getServerSocketFactory()
34963496
.createServerSocket(0);
@@ -3524,9 +3524,9 @@ public void testAutoSNIProperty() throws Exception {
35243524
} finally {
35253525
/* Restore original property value */
35263526
if (originalProp != null) {
3527-
Security.setProperty("wolfjsse.autoSNI", originalProp);
3527+
System.setProperty("wolfjsse.autoSNI", originalProp);
35283528
} else {
3529-
Security.setProperty("wolfjsse.autoSNI", "true");
3529+
System.setProperty("wolfjsse.autoSNI", "true");
35303530
}
35313531
}
35323532
}

0 commit comments

Comments
 (0)