aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-02-03 15:39:03 +0000
committerWerner Koch <[email protected]>2011-02-03 15:39:03 +0000
commit38904b697c4d27a70281149c6070e6dfca4e893b (patch)
tree72ae98a01f64dbe2df74d9687faba0c97159d799 /g10/mainproc.c
parentAdd gitattributes (diff)
parentFinished ECC integration. (diff)
downloadgnupg-38904b697c4d27a70281149c6070e6dfca4e893b.tar.gz
gnupg-38904b697c4d27a70281149c6070e6dfca4e893b.zip
Merge branch 'ECC-INTEGRATION-2-1'ecc-integration-done
Diffstat (limited to '')
-rw-r--r--g10/mainproc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 72cefce43..dcbc4b45a 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -384,6 +384,8 @@ proc_pubkey_enc( CTX c, PACKET *pkt )
}
else if( is_ELGAMAL(enc->pubkey_algo)
|| enc->pubkey_algo == PUBKEY_ALGO_DSA
+ || enc->pubkey_algo == PUBKEY_ALGO_ECDSA
+ || enc->pubkey_algo == PUBKEY_ALGO_ECDH
|| is_RSA(enc->pubkey_algo)
|| enc->pubkey_algo == PUBKEY_ALGO_ELGAMAL) {
/* Note that we also allow type 20 Elgamal keys for decryption.
@@ -450,7 +452,7 @@ print_pkenc_list( struct kidlist_item *list, int failed )
if ( !failed && list->reason )
continue;
- algstr = gcry_pk_algo_name ( list->pubkey_algo );
+ algstr = openpgp_pk_algo_name ( list->pubkey_algo );
pk = xmalloc_clear( sizeof *pk );
if( !algstr )
@@ -1616,7 +1618,7 @@ check_sig_and_print( CTX c, KBNODE node )
/* (Indendation below not yet changed to GNU style.) */
- astr = gcry_pk_algo_name ( sig->pubkey_algo );
+ astr = openpgp_pk_algo_name ( sig->pubkey_algo );
if(keystrlen()>8)
{
log_info(_("Signature made %s\n"),asctimestamp(sig->timestamp));