NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/56127: netpgpkeys not working



The following reply was made to PR bin/56127; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/56127: netpgpkeys not working
Date: Sat, 1 May 2021 16:43:34 +0200

 Here is a patch that seems to get the userid into the key at generation
 time, but I still can't list keys or use them to verify/sign.
 
 Martin
 
 Index: src/netpgpkeys/netpgpkeys.c
 ===================================================================
 RCS file: /cvsroot/src/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c,v
 retrieving revision 1.27
 diff -u -p -r1.27 netpgpkeys.c
 --- src/netpgpkeys/netpgpkeys.c	13 Nov 2018 14:52:30 -0000	1.27
 +++ src/netpgpkeys/netpgpkeys.c	1 May 2021 14:37:46 -0000
 @@ -222,6 +222,8 @@ netpgp_cmd(netpgp_t *netpgp, prog_t *p, 
  	case IMPORT_KEY:
  		return netpgp_import_key(netpgp, f);
  	case GENERATE_KEY:
 +		if (f == NULL)
 +			f = netpgp_getvar(netpgp, "userid");
  		return netpgp_generate_key(netpgp, f, p->numbits);
  	case GET_KEY:
  		key = netpgp_get_key(netpgp, f, netpgp_getvar(netpgp, "format"));
 


Home | Main Index | Thread Index | Old Index