mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 20:48:07 +00:00
Rename openssl libs. ZRTP API and makefiles.
This commit is contained in:
parent
f91c9b4805
commit
d9333176bf
4 changed files with 35 additions and 2 deletions
|
|
@ -39,6 +39,9 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
private native int getDuration(long nativePtr);
|
||||
private native float getCurrentQuality(long nativePtr);
|
||||
private native float getAverageQuality(long nativePtr);
|
||||
private native String getAuthenticationToken(long nativePtr);
|
||||
private native boolean isAuthenticationTokenVerified(long nativePtr);
|
||||
private native boolean areStreamsEncrypted(long nativePtr);
|
||||
|
||||
protected LinphoneCallImpl(long aNativePtr) {
|
||||
nativePtr = aNativePtr;
|
||||
|
|
@ -109,5 +112,14 @@ class LinphoneCallImpl implements LinphoneCall {
|
|||
public float getCurrentQuality() {
|
||||
return getCurrentQuality(nativePtr);
|
||||
}
|
||||
|
||||
|
||||
public String getAuthenticationToken(){
|
||||
return getAuthenticationToken(nativePtr);
|
||||
}
|
||||
public boolean isAuthenticationTokenVerified(){
|
||||
return isAuthenticationTokenVerified(nativePtr);
|
||||
}
|
||||
public boolean areStreamsEncrypted() {
|
||||
return areStreamsEncrypted(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,10 +32,22 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
|
|||
}
|
||||
|
||||
static {
|
||||
// FFMPEG (audio/video)
|
||||
loadOptionalLibrary("avutil");
|
||||
loadOptionalLibrary("swscale");
|
||||
loadOptionalLibrary("avcore");
|
||||
loadOptionalLibrary("avcodec");
|
||||
|
||||
// OPENSSL (cryptography)
|
||||
// lin prefix avoids collision with libs in /system/lib
|
||||
loadOptionalLibrary("lincrypto");
|
||||
loadOptionalLibrary("linssl");
|
||||
|
||||
// Secure RTP and key negotiation
|
||||
loadOptionalLibrary("srtp");
|
||||
loadOptionalLibrary("zrtpcpp"); // GPLv3+
|
||||
|
||||
//Main library
|
||||
System.loadLibrary("linphone");
|
||||
}
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native int resumeCall(long nativePtr, long callPtr);
|
||||
private native void setUploadPtime(long nativePtr, int ptime);
|
||||
private native void setDownloadPtime(long nativePtr, int ptime);
|
||||
|
||||
private native void setZrtpSecretsCache(long nativePtr, String file);
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
|
||||
mListener=listener;
|
||||
nativePtr = newLinphoneCore(listener,userConfig.getCanonicalPath(),factoryConfig.getCanonicalPath(),userdata);
|
||||
|
|
@ -493,4 +494,8 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public void setUploadPtime(int ptime) {
|
||||
setUploadPtime(nativePtr,ptime);
|
||||
}
|
||||
|
||||
public void setZrtpSecretsCache(String file) {
|
||||
setZrtpSecretsCache(nativePtr,file);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public class Version {
|
|||
public static final int API09_GINGERBREAD_23 = 9;
|
||||
public static final int API11_HONEYCOMB_30 = 11;
|
||||
|
||||
private static native boolean nativeHasZrtp();
|
||||
private static native boolean nativeHasNeon();
|
||||
private static Boolean hasNeon;
|
||||
|
||||
|
|
@ -69,4 +70,7 @@ public class Version {
|
|||
return !Version.sdkStrictlyBelow(5) && Version.hasNeon() && Hacks.hasCamera();
|
||||
}
|
||||
|
||||
public static boolean hasZrtp(){
|
||||
return nativeHasZrtp();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue