Lines Matching refs:secring
258 pgp_keyring_t *secring;
316 if ((secring = calloc(1, sizeof(*secring))) == NULL) {
321 if (!pgp_ssh2_readkeys(netpgp->io, pubring, secring, NULL, filename, hashtype)) {
323 free(secring);
327 netpgp->secring = secring;
861 netpgp->secring = readkeyring(netpgp, "secring");
862 if (netpgp->secring == NULL) {
866 /* now, if we don't have a valid user, use the first in secring */
870 if (get_first_ring(netpgp->secring, id, sizeof(id), 0)) {
934 if (netpgp->secring != NULL) {
935 pgp_keyring_free(netpgp->secring);
1239 (void) snprintf(ringfile = filename, sizeof(filename), "%s/secring.gpg", dir);
1244 (void) fprintf(io->errs, "can't append secring '%s'\n", ringfile);
1260 if (netpgp->secring != NULL) {
1261 pgp_keyring_free(netpgp->secring);
1329 return pgp_decrypt_file(netpgp->io, f, out, netpgp->secring,
1363 if ((keypair = resolve_userid(netpgp, netpgp->secring, userid)) == NULL) {
1379 "netpgp: warning - using pubkey from secring\n");
1394 pgp_keyring_t *secring;
1396 secring = netpgp->secring;
1397 seckey = &secring->keys[0].key.seckey;
1492 if ((keypair = resolve_userid(netpgp, netpgp->secring, userid)) == NULL) {
1508 "netpgp: warning - using pubkey from secring\n");
1673 mem = pgp_decrypt_buf(netpgp->io, input, insize, netpgp->secring,
1751 netpgp->secring,