aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/pkcs11
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-08-20 05:56:12 -0400
committerJack Lloyd <[email protected]>2019-08-20 05:56:12 -0400
commit081a4024d44de12e5b4b361ea78a0a52ba70e5cd (patch)
treecae5eae8d60bce28843755873cb7785f8ebb9cc8 /src/lib/prov/pkcs11
parentd5ebaadb7cca8898564cbe097e706e9d79cd97ac (diff)
Serialize the PKCS11 tests
See #2072
Diffstat (limited to 'src/lib/prov/pkcs11')
-rw-r--r--src/lib/prov/pkcs11/p11_module.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/prov/pkcs11/p11_module.cpp b/src/lib/prov/pkcs11/p11_module.cpp
index 9399aea28..066fb676e 100644
--- a/src/lib/prov/pkcs11/p11_module.cpp
+++ b/src/lib/prov/pkcs11/p11_module.cpp
@@ -15,6 +15,8 @@ namespace PKCS11 {
Module::Module(const std::string& file_path, C_InitializeArgs init_args)
: m_file_path(file_path)
{
+ if(file_path.empty())
+ throw Invalid_Argument("PKCS11 no module path specified");
reload(init_args);
}