Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
7fc1f8a6
Commit
7fc1f8a6
authored
Nov 07, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linphonec encryption support
parent
d963ea74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
console/commands.c
console/commands.c
+12
-0
gtk/main.ui
gtk/main.ui
+1
-1
No files found.
console/commands.c
View file @
7fc1f8a6
...
...
@@ -103,6 +103,7 @@ static int lpc_cmd_states(LinphoneCore *lc, char *args);
static
int
lpc_cmd_identify
(
LinphoneCore
*
lc
,
char
*
args
);
static
int
lpc_cmd_ringback
(
LinphoneCore
*
lc
,
char
*
args
);
static
int
lpc_cmd_conference
(
LinphoneCore
*
lc
,
char
*
args
);
static
int
lpc_cmd_zrtp_verified
(
LinphoneCore
*
lc
,
char
*
args
);
/* Command handler helpers */
static
void
linphonec_proxy_add
(
LinphoneCore
*
lc
);
...
...
@@ -348,6 +349,9 @@ static LPC_COMMAND advanced_commands[] = {
{
"redirect"
,
lpc_cmd_redirect
,
"Redirect an incoming call"
,
"'redirect <redirect-uri>'
\t
: Redirect all pending incoming calls to the <redirect-uri>
\n
"
},
{
"zrtp-set-verified"
,
lpc_cmd_zrtp_verified
,
"Set ZRTP SAS verified."
,
"'Set ZRTP SAS verified'
\n
"
},
{
NULL
,
NULL
,
NULL
,
NULL
}
};
...
...
@@ -2552,6 +2556,14 @@ static int lpc_cmd_ringback(LinphoneCore *lc, char *args){
return
1
;
}
static
int
lpc_cmd_zrtp_verified
(
LinphoneCore
*
lc
,
char
*
args
){
LinphoneCall
*
call
=
linphone_core_get_current_call
(
lc
);
if
(
linphone_call_params_get_media_encryption
(
linphone_call_get_current_params
(
call
))
==
LinphoneMediaEncryptionZRTP
){
linphone_call_set_authentication_token_verified
(
call
,
TRUE
);
}
return
1
;
}
/***************************************************************************
*
* Command table management funx
...
...
gtk/main.ui
View file @
7fc1f8a6
...
...
@@ -167,7 +167,7 @@
</child>
<child>
<object
class=
"GtkButton"
id=
"encryption_verify_button"
>
<property
name=
"label"
translatable=
"yes"
>
button
</property>
<property
name=
"label"
translatable=
"yes"
>
Set verified
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment