aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/import.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index f54f8d850..9f6b8936e 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -850,6 +850,13 @@ import_secret_one( const char *fname, KBNODE keyblock,
return 0;
}
+ if(sk->protect.algo>110)
+ {
+ log_error(_("key %08lX: secret key with invalid cipher %d "
+ "- skipped\n"),(ulong)keyid[1],sk->protect.algo);
+ return 0;
+ }
+
clear_kbnode_flags( keyblock );
/* do we have this key already in one of our secrings ? */