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,
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;
......
......@@ -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;
......
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