comparison src/protocols/silc/pk.c @ 10589:0f7452b1f777

[gaim-migrate @ 11994] Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Feb 2005 05:10:40 +0000
parents 9f358a718f38
children 07dc8c6a359f
comparison
equal deleted inserted replaced
10588:529111933c9c 10589:0f7452b1f777
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 {