Changeset 1bdc669 for protocols/jabber/jabber_util.c
- Timestamp:
- 2023-02-23T23:48:10Z (21 months ago)
- Branches:
- master
- Children:
- 93d4d8f
- Parents:
- 7342cae
- git-author:
- Jelmer Vernooij <jelmer@…> (23-02-23 23:48:10)
- git-committer:
- GitHub <noreply@…> (23-02-23 23:48:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
r7342cae r1bdc669 23 23 24 24 #include "jabber.h" 25 #include "md5.h"26 25 #include "base64.h" 27 26 … … 141 140 struct jabber_data *jd = ic->proto_data; 142 141 struct jabber_cache_entry *entry = g_new0(struct jabber_cache_entry, 1); 143 md5_state_t id_hash; 144 md5_byte_t id_sum[16]; 142 GChecksum *id_hash; 143 gsize digest_len = MD5_HASH_SIZE; 144 guint8 id_sum[MD5_HASH_SIZE]; 145 145 char *id, *asc_hash; 146 146 … … 148 148 149 149 id_hash = jd->cached_id_prefix; 150 md5_append(&id_hash, (md5_byte_t *) &next_id, sizeof(next_id)); 151 md5_digest_keep(&id_hash, id_sum); 150 g_checksum_update(id_hash, (guint8 *) &next_id, sizeof(next_id)); 151 g_checksum_get_digest(id_hash, id_sum, &digest_len); 152 g_checksum_free(id_hash); 153 152 154 asc_hash = base64_encode(id_sum, 12); 153 155
Note: See TracChangeset
for help on using the changeset viewer.