opencryptoki / openssl-ibmca

OpenSSL engine and provider for libica.
Apache License 2.0
6 stars 15 forks source link

tests: skip tests if libica does not support required algorithms #85

Closed ifranzki closed 2 years ago

ifranzki commented 2 years ago

Before actually running the tests, check if libica supports the required algorithms. Skip the whole test if not.

This can happen when running the test on a system without appropriate crypto adapters. This would lead to the situation that the provider would not register itself for the required algorithms, and thus the OpenSSL default provider would be used. This would make the tests to fail, because it is not running with the IBMCA provider as expected by the test.

Fixes https://github.com/opencryptoki/openssl-ibmca/issues/84