1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00

7 Commits

Author SHA1 Message Date
Joerg Schmidbauer
4a3c54fc2d TESTCASES: use RSA-2048 key in various tests
If the system runs in fips mode, RSA-1024 is blocked. Just use
an RSA-2048 key so that the key length is ok in any case.

Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
2023-05-10 08:59:20 +02:00
Ingo Franzki
2bd0b1fcc1 TESTCASES: Remove unused argument of testcase_setup()
Argument 'total' of macro testcase_setup() is not used for anything.
Remove it.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2022-03-22 09:32:27 +01:00
Ingo Franzki
b57644843c TESTCASES: Ensure testcase exits with non-zero on failure
If at least one test step ends with ERROR or FAILURE, exit the
process with a non-zero return code to let the caller easily detect
if the testcase showed any errors.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2021-08-13 19:59:16 +02:00
Ingo Franzki
a3c002397e TESTCASES: Avoid NULL dereference in case of missing argument
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2020-11-24 09:43:57 +01:00
Ingo Franzki
7bbc62514a Remove now unused header timeb.h
Since ef62794ca1 timeb.h is no longer used.
Remove it from the testcases that still include it, and also do not
check for it in configure.ac.

Closes: https://github.com/opencryptoki/opencryptoki/issues/330

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2020-10-26 10:22:30 +01:00
Patrick Steuer
2749f80687 Conform to PKCS 11 v3.0 Baseline Provider profile - part 1
Add required constants and declarations and implement the
required functions.

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
2020-10-14 10:59:54 +02:00
Ingo Franzki
af37c6f404 TESTCASES: Add multi instance test case
Open sessions on two different tokens within one process. Ensure that
both tokens operate independently, and that sessions of objects opened
with one token can not be used with the other one.

To test multi-instance support of a token, the Opencryptoi configuration
must be set up that way that 2 tokens of the same type (e.g. 2 EP11 tokens),
exist.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2020-04-03 13:22:06 +02:00