comparison mcabber/mcabber/utils.h @ 2197:189abf03ef24

Fix fingerprint management (Reported by Sven Gaerner in issue #134)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 11 Oct 2015 17:17:35 +0200
parents 1210a22726d3
children 1591518a33b9
comparison
equal deleted inserted replaced
2196:8811fe9d6ef0 2197:189abf03ef24
19 char *get_servername(const char *username, const char *servername); 19 char *get_servername(const char *username, const char *servername);
20 char *compose_jid(const char *username, const char *servername, 20 char *compose_jid(const char *username, const char *servername,
21 const char *resource); 21 const char *resource);
22 gboolean jid_equal(const char *jid1, const char *jid2); 22 gboolean jid_equal(const char *jid1, const char *jid2);
23 23
24 void fingerprint_to_hex(const unsigned char *fpr, char hex[49]); 24 void fingerprint_to_hex(const unsigned char *fpr, char hex[48]);
25 gboolean hex_to_fingerprint(const char * hex, char fpr[16]); 25 gboolean hex_to_fingerprint(const char *hex, char fpr[17]);
26 26
27 void ut_init_debug(void); 27 void ut_init_debug(void);
28 void ut_write_log(unsigned int flag, const char *data); 28 void ut_write_log(unsigned int flag, const char *data);
29 29
30 char *expand_filename(const char *fname); 30 char *expand_filename(const char *fname);