Lines Matching defs:ringfile
227 appendkey(pgp_io_t *io, pgp_key_t *key, char *ringfile)
233 if ((fd = pgp_setup_file_append(&create, ringfile)) < 0) {
234 fd = pgp_setup_file_write(&create, ringfile, 0);
237 (void) fprintf(io->errs, "can't open pubring '%s'\n", ringfile);
1244 char *ringfile;
1280 (void) snprintf(ringfile = filename, sizeof(filename), "%s/pubring.gpg", dir);
1281 if (!appendkey(io, key, ringfile)) {
1282 (void) fprintf(io->errs, "Cannot write pubkey to '%s'\n", ringfile);
1289 (void) snprintf(ringfile = filename, sizeof(filename), "%s/secring.gpg", dir);
1290 if ((fd = pgp_setup_file_append(&create, ringfile)) < 0) {
1291 fd = pgp_setup_file_write(&create, ringfile, 0);
1294 (void) fprintf(io->errs, "can't append secring '%s'\n", ringfile);