Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/netpgpkeys Fix bug repor...
details: https://anonhg.NetBSD.org/src/rev/36c1b0187aba
branches: trunk
changeset: 334958:36c1b0187aba
user: agc <agc%NetBSD.org@localhost>
date: Wed Dec 17 16:50:52 2014 +0000
description:
Fix bug report from Jared - actually print the key when exporting
diffstat:
crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r bf46fee64a1c -r 36c1b0187aba crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c
--- a/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c Wed Dec 17 16:50:08 2014 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpkeys/netpgpkeys.c Wed Dec 17 16:50:52 2014 +0000
@@ -196,6 +196,7 @@
netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f)
{
char *key;
+ char *s;
switch (p->cmd) {
case LIST_KEYS:
@@ -211,8 +212,10 @@
key = netpgp_getvar(netpgp, "userid");
}
if (key) {
- printf("%s", key);
- return 1;
+ if ((s = netpgp_export_key(netpgp, key)) != NULL) {
+ printf("%s", s);
+ return 1;
+ }
}
(void) fprintf(stderr, "key '%s' not found\n", f);
return 0;
Home |
Main Index |
Thread Index |
Old Index