g10: detects public key encryption packet error properly.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 May 2015 01:47:42 +0000 (10:47 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 May 2015 01:47:42 +0000 (10:47 +0900)
commitf3b00d88efa25e23f70b757cf99302af77d3d7ae
treed2878d224ab538d6f3a319fe669369662e8c54e9
parentb3fd30451a5464b124b0296afbc341cb98b3977c
g10: detects public key encryption packet error properly.

g10/mainproc.c (proc_pubkey_enc): Only allow relevant algorithms for
encryption.

--

(backported from 2.1 commit c771963140cad7c1c25349bcde27e427effc0058)
g10/mainproc.c