Skip to content

Commit 7bbdbee

Browse files
committed
return String[] directly from WolfSSL.java cipher suite getters
1 parent 202aa77 commit 7bbdbee

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/java/com/wolfssl/WolfSSL.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,7 @@ public static String[] getCiphers() {
874874
if (cipherSuites == null)
875875
return null;
876876

877-
String[] suiteArray = cipherSuites.split(":");
878-
879-
return suiteArray;
877+
return cipherSuites.split(":");
880878
}
881879

882880
/**
@@ -890,9 +888,7 @@ public static String[] getCiphersIana() {
890888
if (cipherSuites == null)
891889
return null;
892890

893-
String[] suiteArray = cipherSuites.split(":");
894-
895-
return suiteArray;
891+
return cipherSuites.split(":");
896892
}
897893

898894
/**
@@ -908,9 +904,7 @@ public static String[] getCiphersAvailableIana(TLS_VERSION version) {
908904
if (cipherSuites == null)
909905
return null;
910906

911-
String[] suiteArray = cipherSuites.split(":");
912-
913-
return suiteArray;
907+
return cipherSuites.split(":");
914908
}
915909

916910
/* ------------------------- isEnabled methods -------------------------- */

0 commit comments

Comments
 (0)