Jni for setAuthenticationTokenVerified function.

This commit is contained in:
Guillaume Beraudo 2011-11-14 15:32:31 +01:00
parent 1df8bd8d0e
commit ce510f9d1f
2 changed files with 22 additions and 1 deletions

View file

@ -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);

View file

@ -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();
}