aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pkcs11_low_level.cpp
diff options
context:
space:
mode:
authorTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
committerTomasz Frydrych <[email protected]>2017-05-01 15:03:52 +0200
commit87c0fae706140b0a2a7a3fda9dd813474172fa2a (patch)
tree28930efab4d290dcebb89666d46050edd06703fd /src/tests/test_pkcs11_low_level.cpp
parent29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff)
Reformat code with astyle + fix code style
Diffstat (limited to 'src/tests/test_pkcs11_low_level.cpp')
-rw-r--r--src/tests/test_pkcs11_low_level.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/tests/test_pkcs11_low_level.cpp b/src/tests/test_pkcs11_low_level.cpp
index 289ff5995..01933b359 100644
--- a/src/tests/test_pkcs11_low_level.cpp
+++ b/src/tests/test_pkcs11_low_level.cpp
@@ -573,9 +573,9 @@ Test::Result test_c_set_pin()
const secure_vector<uint8_t>& new_pin) -> PKCS11_BoundTestFunction
{
return std::bind(static_cast< bool (LowLevel::*)(SessionHandle, const secure_vector<uint8_t>&,
- const secure_vector<uint8_t>&, ReturnValue*) const>
- (&LowLevel::C_SetPIN<secure_allocator<uint8_t>>), *p11_low_level.get(), session_handle,
- old_pin, new_pin, std::placeholders::_1);
+ const secure_vector<uint8_t>&, ReturnValue*) const>
+ (&LowLevel::C_SetPIN<secure_allocator<uint8_t>>), *p11_low_level.get(), session_handle,
+ old_pin, new_pin, std::placeholders::_1);
};
const std::string test_pin("654321");
@@ -799,28 +799,28 @@ class LowLevelTests : public Test
std::vector<std::function<Test::Result()>> fns =
{
test_c_get_function_list
- ,test_low_level_ctor
- ,test_initialize_finalize
- ,test_c_get_info
- ,test_c_get_slot_list
- ,test_c_get_slot_info
- ,test_c_get_token_info
- ,test_c_wait_for_slot_event
- ,test_c_get_mechanism_list
- ,test_c_get_mechanism_info
- ,test_open_close_session
- ,test_c_close_all_sessions
- ,test_c_get_session_info
- ,test_c_init_token
- ,test_c_login_logout_security_officier /* only possible if token is initialized */
- ,test_c_init_pin
- ,test_c_login_logout_user /* only possible if token is initialized and user pin is set */
- ,test_c_set_pin
- ,test_c_create_object_c_destroy_object
- ,test_c_get_object_size
- ,test_c_get_attribute_value
- ,test_c_set_attribute_value
- ,test_c_copy_object
+ , test_low_level_ctor
+ , test_initialize_finalize
+ , test_c_get_info
+ , test_c_get_slot_list
+ , test_c_get_slot_info
+ , test_c_get_token_info
+ , test_c_wait_for_slot_event
+ , test_c_get_mechanism_list
+ , test_c_get_mechanism_info
+ , test_open_close_session
+ , test_c_close_all_sessions
+ , test_c_get_session_info
+ , test_c_init_token
+ , test_c_login_logout_security_officier /* only possible if token is initialized */
+ , test_c_init_pin
+ , test_c_login_logout_user /* only possible if token is initialized and user pin is set */
+ , test_c_set_pin
+ , test_c_create_object_c_destroy_object
+ , test_c_get_object_size
+ , test_c_get_attribute_value
+ , test_c_set_attribute_value
+ , test_c_copy_object
};
for(size_t i = 0; i != fns.size(); ++i)