Skip to content

Commit ea2cf25

Browse files
committed
JNI/JSSE: call wolfSSL_Init() in WolfObject init() before running FIPS CASTs
1 parent 5177645 commit ea2cf25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/wolfssl/wolfcrypt/WolfObject.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ public class WolfObject {
6464
/* Load wolfcryptjni library */
6565
System.loadLibrary("wolfcryptjni");
6666

67+
/* initialize native wolfCrypt library */
68+
init();
69+
6770
/* Run FIPS CAST if we are in FIPS mode. Will only forcefully
6871
* be run once - Fips class keeps track of a successful run. */
6972
if (Fips.enabled) {
7073
Fips.runAllCast_fips();
7174
}
72-
73-
/* initialize native wolfCrypt library */
74-
init();
7575
}
7676

7777
/**

0 commit comments

Comments
 (0)