diff options
author | Jack Lloyd <[email protected]> | 2019-08-20 05:56:12 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-20 05:56:12 -0400 |
commit | 081a4024d44de12e5b4b361ea78a0a52ba70e5cd (patch) | |
tree | cae5eae8d60bce28843755873cb7785f8ebb9cc8 /src/lib/prov/pkcs11 | |
parent | d5ebaadb7cca8898564cbe097e706e9d79cd97ac (diff) |
Serialize the PKCS11 tests
See #2072
Diffstat (limited to 'src/lib/prov/pkcs11')
-rw-r--r-- | src/lib/prov/pkcs11/p11_module.cpp | 2 |
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); } |