Move p_sha1_hash() to stanza.c
Move `p_sha1_hash()` from `common.c` to `xmpp/stanza.c` as it is only used in this file and now depends on libstrophe so xmpp is a better namespace folder. Renaming it as `_stanza_create_sha1_hash()`. And making static since only used here. The function cannot be tested in the unit tests anymore. Once functional tests are working again we should write a test for the sha1 functionality.
This commit is contained in:
@@ -19,14 +19,6 @@ void test_dnd_is_valid_resource_presence_string(void **state);
|
||||
void test_available_is_not_valid_resource_presence_string(void **state);
|
||||
void test_unavailable_is_not_valid_resource_presence_string(void **state);
|
||||
void test_blah_is_not_valid_resource_presence_string(void **state);
|
||||
void test_p_sha1_hash1(void **state);
|
||||
void test_p_sha1_hash2(void **state);
|
||||
void test_p_sha1_hash3(void **state);
|
||||
void test_p_sha1_hash4(void **state);
|
||||
void test_p_sha1_hash5(void **state);
|
||||
void test_p_sha1_hash6(void **state);
|
||||
void test_p_sha1_hash6(void **state);
|
||||
void test_p_sha1_hash7(void **state);
|
||||
void utf8_display_len_null_str(void **state);
|
||||
void utf8_display_len_1_non_wide(void **state);
|
||||
void utf8_display_len_1_wide(void **state);
|
||||
|
||||
Reference in New Issue
Block a user