scd: Add --advanced option for READKEY.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 4 Nov 2016 04:45:57 +0000 (13:45 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 4 Nov 2016 04:45:57 +0000 (13:45 +0900)
commitf9da935c3eb302e75a80def51128fb6f669661d7
tree85cb84c7aea26666af853cdc71481f5015c75fae
parentc1ea0b577a468030d2b006317ba27fc1746c4b14
scd: Add --advanced option for READKEY.

* scd/command.c (cmd_readkey) : Support ADVANCED arg.
* scd/app.c (app_readcert): Add ADVANCED arg.
* scd/app-openpgp.c (do_readkey): Implement ADVANCED arg.
* scd/app-nks.c (do_readkey): Error return with GPG_ERR_NOT_SUPPORTED.

--
"SCD READKEY --advanced OPENPGP.3" returns key in advanced format.
With this suport, poldi-ctrl will be no longer needed.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-common.h
scd/app-nks.c
scd/app-openpgp.c
scd/app.c
scd/command.c