diff options
author | NIIBE Yutaka <[email protected]> | 2016-10-21 12:37:04 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-10-21 12:37:04 +0000 |
commit | d2653b1a6db90aed073194a51fd61023d69773ec (patch) | |
tree | 78b024d7a0753011194d53c70b02c33dd0d65c5c /g10/call-agent.c | |
parent | scd: Fix segfault changing key attr. (diff) | |
download | gnupg-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.c | 8 |
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) { |