src/protocols/silc/pk.c

changeset 10589
4e10236e06d4
parent 10116
054b064145a1
child 11201
f8fed1f48ca3
equal deleted inserted replaced
10588:b66302d38f7d 10589:4e10236e06d4
214 verify->context = context; 214 verify->context = context;
215 fingerprint = verify->fingerprint = silc_hash_fingerprint(NULL, pk, pk_len); 215 fingerprint = verify->fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);
216 babbleprint = verify->babbleprint = silc_hash_babbleprint(NULL, pk, pk_len); 216 babbleprint = verify->babbleprint = silc_hash_babbleprint(NULL, pk, pk_len);
217 217
218 /* Check whether this key already exists */ 218 /* Check whether this key already exists */
219 if (stat(ipf, &st) < 0 && (!hostf || stat(hostf, &st) < 0)) { 219 if (g_stat(ipf, &st) < 0 && (!hostf || g_stat(hostf, &st) < 0)) {
220 /* Key does not exist, ask user to verify the key and save it */ 220 /* Key does not exist, ask user to verify the key and save it */
221 silcgaim_verify_ask(name ? name : entity, 221 silcgaim_verify_ask(name ? name : entity,
222 fingerprint, babbleprint, verify); 222 fingerprint, babbleprint, verify);
223 return; 223 return;
224 } else { 224 } else {

mercurial