p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
149 stars 91 forks source link

Fallback if C_GetInterface returns 0x54 #622

Closed space88man closed 5 months ago

space88man commented 6 months ago

A vendor module (Thales Luna libCryptoki2_64.so 10.5.0 works with v6 / v7 hardware) exposes the symbol C_GetInterface but may return 0x54 if the HSM firmware is too old.

This PR allows fallback to C_GetFunctionList in this scenario.

Addresses #621

coveralls commented 6 months ago

Coverage Status

coverage: 69.473% (-0.004%) from 69.477% when pulling 932127e77826950dfa3c23b83d75a3f3a2230d5f on space88man:fallback-0x54 into 775640465d460e7be262f375830f2617917ffbbb on p11-glue:master.