summaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-12-10 16:19:34 +0100
committerWerner Koch <wk@gnupg.org>2007-12-10 16:19:34 +0100
commitbc482052f84e8340e0eebb540c39d143fac120af (patch)
tree7699f69d755c5196c98c2f3fa3f6e647c74bdd85 /g10/misc.c
parentAdd support for help stuff to audit.c (diff)
downloadgnupg2-bc482052f84e8340e0eebb540c39d143fac120af.tar.xz
gnupg2-bc482052f84e8340e0eebb540c39d143fac120af.zip
Fix for bug 851.
Fixed auto generation of the stub key for the card. Allow to encrypt toElgamal encryption keys of type 20.
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c
index f02601fc4..5f9af54c3 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -379,6 +379,7 @@ openpgp_pk_algo_usage ( int algo )
case PUBKEY_ALGO_RSA_S:
use = PUBKEY_USAGE_CERT | PUBKEY_USAGE_SIG;
break;
+ case PUBKEY_ALGO_ELGAMAL:
case PUBKEY_ALGO_ELGAMAL_E:
use = PUBKEY_USAGE_ENC;
break;