aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/openvpn/test_ncp.c4
-rw-r--r--tests/unit_tests/openvpn/test_pkt.c6
-rw-r--r--tests/unit_tests/openvpn/test_provider.c2
-rw-r--r--tests/unit_tests/plugins/auth-pam/test_search_and_replace.c20
4 files changed, 16 insertions, 16 deletions
diff --git a/tests/unit_tests/openvpn/test_ncp.c b/tests/unit_tests/openvpn/test_ncp.c
index 18c4036..2595d8c 100644
--- a/tests/unit_tests/openvpn/test_ncp.c
+++ b/tests/unit_tests/openvpn/test_ncp.c
@@ -138,7 +138,7 @@ test_extract_client_ciphers(void **state)
client_peer_info = "foo=bar\nIV_foo=y\nIV_NCP=2";
peer_list = tls_peer_ncp_list(client_peer_info, &gc);
- assert_string_equal(aes_ciphers,peer_list);
+ assert_string_equal(aes_ciphers, peer_list);
assert_true(tls_peer_supports_ncp(client_peer_info));
client_peer_info = "foo=bar\nIV_foo=y\nIV_NCP=2\nIV_CIPHERS=BF-CBC";
@@ -210,7 +210,7 @@ test_poor_man(void **state)
"none", &gc);
assert_string_equal(best_cipher, "none");
- best_cipher = ncp_get_best_cipher(serverlist, NULL,NULL, &gc);
+ best_cipher = ncp_get_best_cipher(serverlist, NULL, NULL, &gc);
assert_ptr_equal(best_cipher, NULL);
gc_free(&gc);
diff --git a/tests/unit_tests/openvpn/test_pkt.c b/tests/unit_tests/openvpn/test_pkt.c
index 9d038b7..2d771e3 100644
--- a/tests/unit_tests/openvpn/test_pkt.c
+++ b/tests/unit_tests/openvpn/test_pkt.c
@@ -157,7 +157,7 @@ const uint8_t client_ack_tls_auth_randomid[] = {
const uint8_t client_control_with_ack[] = {
0x20, 0x78, 0x19, 0xbf, 0x2e, 0xbc, 0xd1, 0x9a,
0x45, 0x01, 0x00, 0x00, 0x00, 0x00, 0xea,
- 0xfe,0xbf, 0xa4, 0x41, 0x8a, 0xe3, 0x1b,
+ 0xfe, 0xbf, 0xa4, 0x41, 0x8a, 0xe3, 0x1b,
0x00, 0x00, 0x00, 0x01, 0x16, 0x03, 0x01
};
@@ -490,7 +490,7 @@ test_calc_session_id_hmac_static(void **ut_state)
now = 1005;
struct session_id server_id = calculate_session_id_hmac(client_id, &addr, hmac, handwindow, 0);
- struct session_id expected_server_id = { {0xba, 0x83, 0xa9, 0x00, 0x72, 0xbd,0x93, 0xba }};
+ struct session_id expected_server_id = { {0xba, 0x83, 0xa9, 0x00, 0x72, 0xbd, 0x93, 0xba }};
assert_memory_equal(expected_server_id.id, server_id.id, SID_SIZE);
struct session_id server_id_m1 = calculate_session_id_hmac(client_id, &addr, hmac, handwindow, -1);
@@ -580,7 +580,7 @@ test_generate_reset_packet_tls_auth(void **ut_state)
/* Assure repeated generation of reset is deterministic/stateless*/
reset_packet_id_send(&tas_client.tls_wrap.opt.packet_id.send);
- struct buffer buf2 = tls_reset_standalone(&tas_client.tls_wrap, &tas_client, &client_id, &server_id, header,false);
+ struct buffer buf2 = tls_reset_standalone(&tas_client.tls_wrap, &tas_client, &client_id, &server_id, header, false);
assert_int_equal(BLEN(&buf), BLEN(&buf2));
assert_memory_equal(BPTR(&buf), BPTR(&buf2), BLEN(&buf));
diff --git a/tests/unit_tests/openvpn/test_provider.c b/tests/unit_tests/openvpn/test_provider.c
index 0b0952e..dc39534 100644
--- a/tests/unit_tests/openvpn/test_provider.c
+++ b/tests/unit_tests/openvpn/test_provider.c
@@ -116,7 +116,7 @@ load_pubkey(const char *pem)
static void
init_test()
{
- prov[0] = OSSL_PROVIDER_load(NULL,"default");
+ prov[0] = OSSL_PROVIDER_load(NULL, "default");
OSSL_PROVIDER_add_builtin(NULL, prov_name, xkey_provider_init);
prov[1] = OSSL_PROVIDER_load(NULL, prov_name);
diff --git a/tests/unit_tests/plugins/auth-pam/test_search_and_replace.c b/tests/unit_tests/plugins/auth-pam/test_search_and_replace.c
index 34a9a88..ee7a151 100644
--- a/tests/unit_tests/plugins/auth-pam/test_search_and_replace.c
+++ b/tests/unit_tests/plugins/auth-pam/test_search_and_replace.c
@@ -14,9 +14,9 @@ pass_any_null_param__returns_null()
char DUMMY[] = "DUMMY";
- assert_null(searchandreplace(NULL,DUMMY,DUMMY));
- assert_null(searchandreplace(DUMMY,NULL,DUMMY));
- assert_null(searchandreplace(DUMMY,DUMMY,NULL));
+ assert_null(searchandreplace(NULL, DUMMY, DUMMY));
+ assert_null(searchandreplace(DUMMY, NULL, DUMMY));
+ assert_null(searchandreplace(DUMMY, DUMMY, NULL));
}
static void
@@ -26,15 +26,15 @@ pass_any_empty_string__returns_null()
char DUMMY[] = "DUMMY";
char EMPTY[] = "";
- assert_null(searchandreplace(EMPTY,DUMMY,DUMMY));
- assert_null(searchandreplace(DUMMY,EMPTY,DUMMY));
- assert_null(searchandreplace(DUMMY,DUMMY,EMPTY));
+ assert_null(searchandreplace(EMPTY, DUMMY, DUMMY));
+ assert_null(searchandreplace(DUMMY, EMPTY, DUMMY));
+ assert_null(searchandreplace(DUMMY, DUMMY, EMPTY));
}
static void
replace_single_char__one_time__match_is_replaced()
{
- char *replaced = searchandreplace("X","X","Y");
+ char *replaced = searchandreplace("X", "X", "Y");
assert_non_null(replaced);
assert_string_equal("Y", replaced);
@@ -45,7 +45,7 @@ replace_single_char__one_time__match_is_replaced()
static void
replace_single_char__multiple_times__match_all_matches_are_replaced()
{
- char *replaced = searchandreplace("XaX","X","Y");
+ char *replaced = searchandreplace("XaX", "X", "Y");
assert_non_null(replaced);
assert_string_equal("YaY", replaced);
@@ -56,7 +56,7 @@ replace_single_char__multiple_times__match_all_matches_are_replaced()
static void
replace_longer_text__multiple_times__match_all_matches_are_replaced()
{
- char *replaced = searchandreplace("XXaXX","XX","YY");
+ char *replaced = searchandreplace("XXaXX", "XX", "YY");
assert_non_null(replaced);
assert_string_equal("YYaYY", replaced);
@@ -67,7 +67,7 @@ replace_longer_text__multiple_times__match_all_matches_are_replaced()
static void
pattern_not_found__returns_original()
{
- char *replaced = searchandreplace("abc","X","Y");
+ char *replaced = searchandreplace("abc", "X", "Y");
assert_non_null(replaced);
assert_string_equal("abc", replaced);