diff options
author | Daniel Neus <[email protected]> | 2016-08-19 23:26:25 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-08-20 15:08:49 +0200 |
commit | c6e1dbe76d72c0d2b5bf6009acad4ac944050841 (patch) | |
tree | 5a7ab2114f631a0fdb58f3ddcc2cb120a5771f50 /src/tests/test_pkcs11_high_level.cpp | |
parent | bcce9b9a2aff295aa43dd95495bfcf3c918a3967 (diff) |
fix minimized build when pkcs11 module enabled
Diffstat (limited to 'src/tests/test_pkcs11_high_level.cpp')
-rw-r--r-- | src/tests/test_pkcs11_high_level.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tests/test_pkcs11_high_level.cpp b/src/tests/test_pkcs11_high_level.cpp index 82610adc6..8e894ef28 100644 --- a/src/tests/test_pkcs11_high_level.cpp +++ b/src/tests/test_pkcs11_high_level.cpp @@ -415,6 +415,7 @@ Test::Result test_attribute_container() return result; } +#if defined(BOTAN_HAS_ASN1) Test::Result test_create_destroy_data_object() { Test::Result result("Object create/delete data object"); @@ -565,6 +566,7 @@ Test::Result test_object_copy() copied_obj.destroy(); return result; } +#endif class Object_Tests : public PKCS11_Test { @@ -573,11 +575,13 @@ class Object_Tests : public PKCS11_Test { std::vector<std::function<Test::Result()>> fns = { - test_attribute_container, - test_create_destroy_data_object, - test_get_set_attribute_values, - test_object_finder, - test_object_copy + test_attribute_container +#if defined(BOTAN_HAS_ASN1) + ,test_create_destroy_data_object + ,test_get_set_attribute_values + ,test_object_finder + ,test_object_copy +#endif }; return run_pkcs11_tests("Object", fns); |