Add error if a non-supported key is attempted to be imported.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-09-30 17:04:34 +02:00
parent 57e7fc38fb
commit e0779a49e7

View File

@@ -2025,6 +2025,9 @@ static int cmd_import_data() {
return SW_EXEC_ERROR();
}
}
else {
return SW_FUNC_NOT_SUPPORTED();
}
if (fid == EF_PK_SIG) {
reset_sig_count();
}