Skip to content

Commit

Permalink
return String[] directly from WolfSSL.java cipher suite getters
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Nov 12, 2021
1 parent 202aa77 commit 7bbdbee
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/java/com/wolfssl/WolfSSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,7 @@ public static String[] getCiphers() {
if (cipherSuites == null)
return null;

String[] suiteArray = cipherSuites.split(":");

return suiteArray;
return cipherSuites.split(":");
}

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

String[] suiteArray = cipherSuites.split(":");

return suiteArray;
return cipherSuites.split(":");
}

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

String[] suiteArray = cipherSuites.split(":");

return suiteArray;
return cipherSuites.split(":");
}

/* ------------------------- isEnabled methods -------------------------- */
Expand Down

0 comments on commit 7bbdbee

Please sign in to comment.