| 40719:833a9f17abd3 | 40755:fb2056ce3c58 |
|---|---|
| 19 | 19 |
| 20 #include "silcincludes.h" | 20 #include "silcincludes.h" |
| 21 #include "silcclient.h" | 21 #include "silcclient.h" |
| 22 #include "silcpurple.h" | 22 #include "silcpurple.h" |
| 23 #include "wb.h" | 23 #include "wb.h" |
| 24 | |
| 25 #include "glibcompat.h" | |
| 24 | 26 |
| 25 /***************************** Key Agreement *********************************/ | 27 /***************************** Key Agreement *********************************/ |
| 26 | 28 |
| 27 static void | 29 static void |
| 28 silcpurple_buddy_keyagr(PurpleBlistNode *node, gpointer data); | 30 silcpurple_buddy_keyagr(PurpleBlistNode *node, gpointer data); |
| 990 const unsigned char *data; | 992 const unsigned char *data; |
| 991 SilcUInt32 data_len; | 993 SilcUInt32 data_len; |
| 992 data = silc_mime_get_data(m, &data_len); | 994 data = silc_mime_get_data(m, &data_len); |
| 993 if (data) { | 995 if (data) { |
| 994 /* TODO: Check if SILC gives us something to use as the checksum instead */ | 996 /* TODO: Check if SILC gives us something to use as the checksum instead */ |
| 995 purple_buddy_icons_set_for_user(purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), g_memdup(data, data_len), data_len, NULL); | 997 purple_buddy_icons_set_for_user(purple_buddy_get_account(r->b), purple_buddy_get_name(r->b), g_memdup2(data, data_len), data_len, NULL); |
| 996 } | 998 } |
| 997 } | 999 } |
| 998 silc_mime_free(m); | 1000 silc_mime_free(m); |
| 999 } | 1001 } |
| 1000 } | 1002 } |