We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b86b6 commit 4db73baCopy full SHA for 4db73ba
1 file changed
src/java/com/wolfssl/provider/jsse/WolfSSLProvider.java
@@ -34,6 +34,10 @@
34
*/
35
public final class WolfSSLProvider extends Provider {
36
37
+ /* Keep one static reference to native wolfSSL library across
38
+ * all WolfSSLProvider objects. */
39
+ private static WolfSSL sslLib = null;
40
+
41
public class JSSEFIPSErrorCallback implements WolfSSLFIPSErrorCallback {
42
public void errorCallback(int ok, int err, String hash) {
43
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
@@ -75,7 +79,7 @@ public WolfSSLProvider() {
75
79
76
80
try {
77
81
/* initialize native wolfSSL */
78
- WolfSSL sslLib = new WolfSSL();
82
+ sslLib = new WolfSSL();
83
} catch (WolfSSLException e) {
84
85
"Failed to initialize native wolfSSL library");
0 commit comments