aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-agent.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2016-10-21 12:37:04 +0000
committerNIIBE Yutaka <[email protected]>2016-10-21 12:37:04 +0000
commitd2653b1a6db90aed073194a51fd61023d69773ec (patch)
tree78b024d7a0753011194d53c70b02c33dd0d65c5c /g10/call-agent.c
parentscd: Fix segfault changing key attr. (diff)
downloadgnupg-d2653b1a6db90aed073194a51fd61023d69773ec.tar.gz
gnupg-d2653b1a6db90aed073194a51fd61023d69773ec.zip
g10,scd: Fix ECC keygen.
* g10/keygen.c (generate_keypair): For card key generation, fill parameters by KEY-ATTR. * scd/app-openpgp.c (ecc_read_pubkey): OID should be freed at last, after its reference by OIDBUF is finished. (ecc_writekey): Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/call-agent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c
index c1ad8ddf7..e7af001df 100644
--- a/g10/call-agent.c
+++ b/g10/call-agent.c
@@ -994,9 +994,11 @@ scd_genkey_cb (void *opaque, const char *line)
return 0;
}
-/* Send a GENKEY command to the SCdaemon. If CREATETIME is not 0, it
- will be passed to SCDAEMON so that the key is created with this
- timestamp. On success, creation time is stored back to CREATETIME. */
+/* Send a GENKEY command to the SCdaemon. If *CREATETIME is not 0,
+ the value will be passed to SCDAEMON with --timestamp option so that
+ the key is created with this. Otherwise, timestamp was generated by
+ SCDEAMON. On success, creation time is stored back to
+ CREATETIME. */
int
agent_scd_genkey (int keyno, int force, u32 *createtime)
{