mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Jni for setAuthenticationTokenVerified function.
This commit is contained in:
parent
1df8bd8d0e
commit
ce510f9d1f
2 changed files with 22 additions and 1 deletions
|
|
@ -1584,6 +1584,11 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCallImpl_isAuthenticationToke
|
|||
LinphoneCall *call = (LinphoneCall *) ptr;
|
||||
return linphone_call_get_authentication_token_verified(call);
|
||||
}
|
||||
extern "C" void Java_org_linphone_core_LinphoneCallImpl_setAuthenticationTokenVerified(JNIEnv* env,jobject thiz,jlong ptr,jboolean verified) {
|
||||
LinphoneCall *call = (LinphoneCall *) ptr;
|
||||
linphone_call_set_authentication_token_verified(call, verified);
|
||||
}
|
||||
|
||||
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_soundResourcesLocked(JNIEnv* env,jobject thiz,jlong ptr){
|
||||
return linphone_core_sound_resources_locked((LinphoneCore *) ptr);
|
||||
|
|
|
|||
|
|
@ -220,8 +220,24 @@ public interface LinphoneCall {
|
|||
*/
|
||||
float getAverageQuality();
|
||||
|
||||
|
||||
/**
|
||||
* Used by ZRTP encryption mechanism.
|
||||
* @return SAS associated to the main stream [voice]
|
||||
*/
|
||||
String getAuthenticationToken();
|
||||
|
||||
/**
|
||||
* Used by ZRTP encryption mechanism.
|
||||
* SAS can be verified manually by the user or automatically using a previously shared secret.
|
||||
* @return true if the main stream [voice ]SAS was verified.
|
||||
*/
|
||||
boolean isAuthenticationTokenVerified();
|
||||
|
||||
/**
|
||||
* Used by ZRTP encryption mechanism.
|
||||
* @param verified true when displayed SAS is correct
|
||||
*/
|
||||
void setAuthenticationTokenVerified(boolean verified);
|
||||
|
||||
boolean isInConference();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue