src/protocols/silc/util.c

changeset 11488
d422a70bed74
parent 11201
f8fed1f48ca3
child 12217
ea610d8ab584
equal deleted inserted replaced
11487:cde0ab5a3beb 11488:d422a70bed74
298 298
299 pk = silc_pkcs_public_key_encode(public_key, &pk_len); 299 pk = silc_pkcs_public_key_encode(public_key, &pk_len);
300 fingerprint = silc_hash_fingerprint(NULL, pk, pk_len); 300 fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);
301 babbleprint = silc_hash_babbleprint(NULL, pk, pk_len); 301 babbleprint = silc_hash_babbleprint(NULL, pk, pk_len);
302 302
303 if (silc_pkcs_alloc(public_key->name, &pkcs)) { 303 if (silc_pkcs_alloc((unsigned char *)public_key->name, &pkcs)) {
304 key_len = silc_pkcs_public_key_set(pkcs, public_key); 304 key_len = silc_pkcs_public_key_set(pkcs, public_key);
305 silc_pkcs_free(pkcs); 305 silc_pkcs_free(pkcs);
306 } 306 }
307 307
308 s = g_string_new(""); 308 s = g_string_new("");

mercurial