Pull up following revision(s) (requested by agc in ticket #334):
crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c: revision 1.26 Fix bug report from Jared - actually print the key when exporting
This commit is contained in:
parent
af08a22e09
commit
6fc803985b
|
@ -196,6 +196,7 @@ static int
|
|||
netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f)
|
||||
{
|
||||
char *key;
|
||||
char *s;
|
||||
|
||||
switch (p->cmd) {
|
||||
case LIST_KEYS:
|
||||
|
@ -211,9 +212,11 @@ netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f)
|
|||
key = netpgp_getvar(netpgp, "userid");
|
||||
}
|
||||
if (key) {
|
||||
printf("%s", key);
|
||||
if ((s = netpgp_export_key(netpgp, key)) != NULL) {
|
||||
printf("%s", s);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
(void) fprintf(stderr, "key '%s' not found\n", f);
|
||||
return 0;
|
||||
case IMPORT_KEY:
|
||||
|
|
Loading…
Reference in New Issue