aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pkcs11.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-02 11:27:27 -0400
committerJack Lloyd <[email protected]>2019-10-02 11:27:27 -0400
commit8248adce64ad5eeb4fba9e08c105d24fd4a4f899 (patch)
tree2d827b294dcd75dad5206f6033e2cb792fecebaa /src/tests/test_pkcs11.h
parent5f3b9a6f84e82b0a102af439014eec6280c6ba76 (diff)
Some post merge fixups/reindent
run_pkcs11_tests was basically duplicated in the low level tests - expose it and use it in both sets.
Diffstat (limited to 'src/tests/test_pkcs11.h')
-rw-r--r--src/tests/test_pkcs11.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/test_pkcs11.h b/src/tests/test_pkcs11.h
index d3922f635..696fcc6ae 100644
--- a/src/tests/test_pkcs11.h
+++ b/src/tests/test_pkcs11.h
@@ -8,8 +8,6 @@
#ifndef BOTAN_TESTS_PKCS11_H_
#define BOTAN_TESTS_PKCS11_H_
-#define STRING_AND_FUNCTION(x) #x, x
-
#include "tests.h"
#if defined(BOTAN_HAS_PKCS11)
@@ -23,6 +21,8 @@ namespace Botan_Tests {
#if defined(BOTAN_HAS_PKCS11)
+#define STRING_AND_FUNCTION(x) #x, x
+
// PIN is expected to be set to "123456" prior to running the tests
const std::string PKCS11_USER_PIN = "123456";
// SO PIN is expected to be set to "12345678" prior to running the tests
@@ -57,6 +57,9 @@ inline Botan::PKCS11::secure_string TEST_SO_PIN()
return to_sec_string(PKCS11_TEST_SO_PIN);
}
+std::vector<Test::Result> run_pkcs11_tests(const std::string& name,
+ std::vector<std::pair<std::string, std::function<Test::Result()>>>& fns);
+
#endif
}