aboutsummaryrefslogtreecommitdiffstats
path: root/g10/card-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-06-30 09:42:08 +0000
committerWerner Koch <[email protected]>2006-06-30 09:42:08 +0000
commit6c208fea3275e7d9244842811e8a5eefeb255e5f (patch)
treeb98d77626ae598b03138f84ff2b1682c7e8733db /g10/card-util.c
parentRemove stale lockfiles if created on the same node. (diff)
downloadgnupg-6c208fea3275e7d9244842811e8a5eefeb255e5f.tar.gz
gnupg-6c208fea3275e7d9244842811e8a5eefeb255e5f.zip
A couple of fixes. gpg2's key generation does now work.
Diffstat (limited to 'g10/card-util.c')
-rw-r--r--g10/card-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/card-util.c b/g10/card-util.c
index b5a036e54..b7da1ba98 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -1271,7 +1271,7 @@ card_store_subkey (KBNODE node, int use)
sk->skey[i] = NULL;
}
i = pubkey_get_npkey (sk->pubkey_algo);
- sk->skey[i] = mpi_set_opaque (NULL, xstrdup ("dummydata"), 10);
+ sk->skey[i] = gcry_mpi_set_opaque (NULL, xstrdup ("dummydata"), 10*8);
sk->is_protected = 1;
sk->protect.s2k.mode = 1002;
s = info.serialno;