mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
experiment:agent: Allow importing v5 secret key.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
b1a2e1904e
commit
16fe6cdf72
@ -840,9 +840,10 @@ convert_from_openpgp_main (ctrl_t ctrl, gcry_sexp_t s_pgp, int dontcare_exist,
|
||||
if (!list)
|
||||
goto bad_seckey;
|
||||
value = gcry_sexp_nth_data (list, 1, &valuelen);
|
||||
if (!value || valuelen != 1 || !(value[0] == '3' || value[0] == '4'))
|
||||
if (!value || valuelen != 1
|
||||
|| !(value[0] == '3' || value[0] == '4' || value[0] == '5'))
|
||||
goto bad_seckey;
|
||||
is_v4 = (value[0] == '4');
|
||||
is_v4 = (value[0] == '4') || (value[0] == '5');
|
||||
|
||||
gcry_sexp_release (list);
|
||||
list = gcry_sexp_find_token (top_list, "protection", 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user