1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

More precise recognition of key policy negative tests

The test function asymmetric_signature_key_policy combines positive
and negative tests inside the code, so it doesn't take a status as its
last argument.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2021-01-12 12:57:23 +01:00
parent d6dc40cae1
commit 0794572f96
2 changed files with 6 additions and 6 deletions

View File

@ -164,7 +164,7 @@ def systematic_dependencies(file_name, function_name, arguments):
# Run key policy negative tests even if the algorithm to attempt performing
# is not supported.
if function_name.endswith('_key_policy') and \
arguments[-1] != 'PSA_SUCCESS':
arguments[-1].startswith('PSA_ERROR_'):
arguments[-2] = ''
for arg in arguments: