Assume OpenCryptoki on Linux for evp-pkcs11

This commit is contained in:
Nicolas Williams
2016-11-11 14:16:49 -06:00
parent 7422cd1f6b
commit e803b00bca

View File

@@ -65,6 +65,18 @@
# else # else
# define PKCS11_MODULE_PATH "/usr/lib/libpkcs11.so" # define PKCS11_MODULE_PATH "/usr/lib/libpkcs11.so"
# endif # endif
#elif defined(__linux__)
/*
* XXX We should have an autoconf check for OpenCryptoki and such
* things. However, there's no AC_CHECK_OBJECT(), and we'd have to
* write one. Today I'm feeling lazy. Another possibility would be to
* have a symlink from the libdir we'll install into, and then we could
* dlopen() that on all platforms.
*
* XXX Also, we should pick an appropriate shared object based on 32- vs
* 64-bits.
*/
# define PKCS11_MODULE_PATH "/usr/lib/pkcs11/PKCS11_API.so"
#endif #endif
static CK_FUNCTION_LIST_PTR p11_module; static CK_FUNCTION_LIST_PTR p11_module;