mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +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)
|
if (!list)
|
||||||
goto bad_seckey;
|
goto bad_seckey;
|
||||||
value = gcry_sexp_nth_data (list, 1, &valuelen);
|
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;
|
goto bad_seckey;
|
||||||
is_v4 = (value[0] == '4');
|
is_v4 = (value[0] == '4') || (value[0] == '5');
|
||||||
|
|
||||||
gcry_sexp_release (list);
|
gcry_sexp_release (list);
|
||||||
list = gcry_sexp_find_token (top_list, "protection", 0);
|
list = gcry_sexp_find_token (top_list, "protection", 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user