Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plugins
pidgin-otr
Commits
5c7adcfd
Commit
5c7adcfd
authored
Jul 19, 2012
by
Ian Goldberg
Browse files
Use the new #defined value of the length of a human-readable fingerprint
parent
f3ad0dfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
gtk-dialog.c
View file @
5c7adcfd
...
...
@@ -642,7 +642,8 @@ static void add_to_vbox_init_two_way_auth(GtkWidget *vbox,
static
void
add_to_vbox_verify_fingerprint
(
GtkWidget
*
vbox
,
ConnContext
*
context
,
SmpResponsePair
*
smppair
)
{
char
our_hash
[
45
],
their_hash
[
45
];
char
our_hash
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
],
their_hash
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
];
GtkWidget
*
label
;
char
*
label_text
;
struct
vrfy_fingerprint_data
*
vfd
;
...
...
@@ -1378,7 +1379,8 @@ static void add_vrfy_fingerprint(GtkWidget *vbox, void *data)
static
void
verify_fingerprint
(
GtkWindow
*
parent
,
Fingerprint
*
fprint
)
{
GtkWidget
*
dialog
;
char
our_hash
[
45
],
their_hash
[
45
];
char
our_hash
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
],
their_hash
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
];
char
*
primary
;
char
*
secondary
;
struct
vrfy_fingerprint_data
*
vfd
;
...
...
gtk-ui.c
View file @
5c7adcfd
...
...
@@ -93,7 +93,7 @@ static void account_menu_changed_cb(GtkWidget *item, PurpleAccount *account,
char
*
fingerprint
;
if
(
account
)
{
char
fingerprint_buf
[
45
];
char
fingerprint_buf
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
];
accountname
=
purple_account_get_username
(
account
);
protocol
=
purple_account_get_protocol_id
(
account
);
fingerprint
=
otrl_privkey_fingerprint
(
otrg_plugin_userstate
,
...
...
@@ -149,7 +149,7 @@ static void clist_all_unselected(void)
static
void
otrg_gtk_ui_update_keylist
(
void
)
{
gchar
*
titles
[
5
];
char
hash
[
45
];
char
hash
[
OTRL_PRIVKEY_FPRINT_HUMAN_LEN
];
ConnContext
*
context
;
Fingerprint
*
fingerprint
;
int
selected_row
=
-
1
;
...
...
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