| 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 { |