diff options
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); } |