diff options
Diffstat (limited to '')
-rw-r--r-- | cipher/pubkey.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/pubkey.c b/cipher/pubkey.c index 853c518be..3ab84e4a3 100644 --- a/cipher/pubkey.c +++ b/cipher/pubkey.c @@ -518,6 +518,9 @@ pubkey_sign( int algo, MPI *resarr, MPI data, MPI *skey ) log_mpidump(" data:", data ); } + if (is_ELGAMAL (algo)) + return G10ERR_UNU_SECKEY; + do { for(i=0; pubkey_table[i].name; i++ ) if( pubkey_table[i].algo == algo ) { |