rename jni shared library from libwolfssl to libwolfssljni
parent
0a39a8d0a3
commit
79aae16993
|
@ -55,6 +55,7 @@
|
|||
<delete dir="${reports.dir}"/>
|
||||
<delete>
|
||||
<fileset dir="${lib.dir}" includes="wolfssl.jar" />
|
||||
<fileset dir="${lib.dir}" includes="wolfssl-jsse.jar" />
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
|
|
4
java.sh
4
java.sh
|
@ -9,7 +9,7 @@ if [ "$OS" == "Darwin" ] ; then
|
|||
javaHome=`/usr/libexec/java_home`
|
||||
javaIncludes="-I$javaHome/include -I$javaHome/include/darwin"
|
||||
javaLibs="-dynamiclib -framework JavaVM"
|
||||
jniLibName="libwolfssl.jnilib"
|
||||
jniLibName="libwolfssljni.jnilib"
|
||||
cflags="-DHAVE_ECC"
|
||||
elif [ "$OS" == "Linux" ] ; then
|
||||
javaHome=`echo $(dirname $(dirname $(readlink -f $(which java))))`
|
||||
|
@ -19,7 +19,7 @@ elif [ "$OS" == "Linux" ] ; then
|
|||
fi
|
||||
javaIncludes="-I$javaHome/include -I$javaHome/include/linux"
|
||||
javaLibs="-shared"
|
||||
jniLibName="libwolfSSL.so"
|
||||
jniLibName="libwolfssljni.so"
|
||||
cflags="-DHAVE_ECC -DUSE_FAST_MATH"
|
||||
if [ "$ARCH" == "x86_64" ] ; then
|
||||
fpic="-fPIC"
|
||||
|
|
|
@ -283,13 +283,13 @@ public class WolfSSL {
|
|||
/**
|
||||
* Loads JNI library; must be called prior to any other calls in this class.
|
||||
*
|
||||
* The native library is expected to be be called "wolfssl", and must be
|
||||
* The native library is expected to be be called "wolfssljni", and must be
|
||||
* on the system library search path.
|
||||
*
|
||||
* @throws UnsatisfiedLinkError if the library is not found.
|
||||
*/
|
||||
public static void loadLibrary() throws UnsatisfiedLinkError {
|
||||
System.loadLibrary("wolfSSL");
|
||||
System.loadLibrary("wolfssljni");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue