Commit 5c7adcfd authored by Ian Goldberg's avatar Ian Goldberg
Browse files

Use the new #defined value of the length of a human-readable fingerprint

parent f3ad0dfa
...@@ -642,7 +642,8 @@ static void add_to_vbox_init_two_way_auth(GtkWidget *vbox, ...@@ -642,7 +642,8 @@ static void add_to_vbox_init_two_way_auth(GtkWidget *vbox,
static void add_to_vbox_verify_fingerprint(GtkWidget *vbox, static void add_to_vbox_verify_fingerprint(GtkWidget *vbox,
ConnContext *context, SmpResponsePair* smppair) { 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; GtkWidget *label;
char *label_text; char *label_text;
struct vrfy_fingerprint_data *vfd; struct vrfy_fingerprint_data *vfd;
...@@ -1378,7 +1379,8 @@ static void add_vrfy_fingerprint(GtkWidget *vbox, void *data) ...@@ -1378,7 +1379,8 @@ static void add_vrfy_fingerprint(GtkWidget *vbox, void *data)
static void verify_fingerprint(GtkWindow *parent, Fingerprint *fprint) static void verify_fingerprint(GtkWindow *parent, Fingerprint *fprint)
{ {
GtkWidget *dialog; 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 *primary;
char *secondary; char *secondary;
struct vrfy_fingerprint_data *vfd; struct vrfy_fingerprint_data *vfd;
......
...@@ -93,7 +93,7 @@ static void account_menu_changed_cb(GtkWidget *item, PurpleAccount *account, ...@@ -93,7 +93,7 @@ static void account_menu_changed_cb(GtkWidget *item, PurpleAccount *account,
char *fingerprint; char *fingerprint;
if (account) { if (account) {
char fingerprint_buf[45]; char fingerprint_buf[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
accountname = purple_account_get_username(account); accountname = purple_account_get_username(account);
protocol = purple_account_get_protocol_id(account); protocol = purple_account_get_protocol_id(account);
fingerprint = otrl_privkey_fingerprint(otrg_plugin_userstate, fingerprint = otrl_privkey_fingerprint(otrg_plugin_userstate,
...@@ -149,7 +149,7 @@ static void clist_all_unselected(void) ...@@ -149,7 +149,7 @@ static void clist_all_unselected(void)
static void otrg_gtk_ui_update_keylist(void) static void otrg_gtk_ui_update_keylist(void)
{ {
gchar *titles[5]; gchar *titles[5];
char hash[45]; char hash[OTRL_PRIVKEY_FPRINT_HUMAN_LEN];
ConnContext * context; ConnContext * context;
Fingerprint * fingerprint; Fingerprint * fingerprint;
int selected_row = -1; int selected_row = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment