diff options
Diffstat (limited to 'src/tests/test_pkcs11.cpp')
-rw-r--r-- | src/tests/test_pkcs11.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tests/test_pkcs11.cpp b/src/tests/test_pkcs11.cpp index 289e34466..70861cef7 100644 --- a/src/tests/test_pkcs11.cpp +++ b/src/tests/test_pkcs11.cpp @@ -10,9 +10,6 @@ namespace Botan_Tests { #if defined(BOTAN_HAS_PKCS11) -using namespace Botan; -using namespace PKCS11; - std::vector<Test::Result> PKCS11_Test::run_pkcs11_tests(const std::string& name, std::vector<std::function<Test::Result()>>& fns) { @@ -24,11 +21,11 @@ std::vector<Test::Result> PKCS11_Test::run_pkcs11_tests(const std::string& name, { results.push_back(fns[ i ]()); } - catch(PKCS11_ReturnError& e) + catch(Botan::PKCS11::PKCS11_ReturnError& e) { results.push_back(Test::Result::Failure(name + " test " + std::to_string(i), e.what())); - if(e.get_return_value() == ReturnValue::PinIncorrect) + if(e.get_return_value() == Botan::PKCS11::ReturnValue::PinIncorrect) { break; // Do not continue to not potentially lock the token } |