Commit 716ad655 authored by Ghislain MARY's avatar Ghislain MARY

Fix build with Visual Studio.

parent c794ff88
......@@ -691,11 +691,11 @@ static int testAddMandatoryCryptoTypesIfNeeded(uint8_t algoType, uint8_t algoTyp
void test_addMandatoryCryptoTypesIfNeeded(void) {
/* mandatory types */
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_HASH_TYPE, (uint8_t [7]){}, 0, (uint8_t []){ZRTP_HASH_S256}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_CIPHERBLOCK_TYPE, (uint8_t [7]){}, 0, (uint8_t []){ZRTP_CIPHER_AES1}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_AUTHTAG_TYPE, (uint8_t [7]){}, 0, (uint8_t []){ZRTP_AUTHTAG_HS32, ZRTP_AUTHTAG_HS80}, 2));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_KEYAGREEMENT_TYPE, (uint8_t [7]){}, 0, (uint8_t []){ZRTP_KEYAGREEMENT_DH3k}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_SAS_TYPE, (uint8_t [7]){}, 0, (uint8_t []){ZRTP_SAS_B32}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_HASH_TYPE, (uint8_t [7]){ZRTP_UNSET_ALGO}, 0, (uint8_t []){ZRTP_HASH_S256}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_CIPHERBLOCK_TYPE, (uint8_t [7]){ZRTP_UNSET_ALGO}, 0, (uint8_t []){ZRTP_CIPHER_AES1}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_AUTHTAG_TYPE, (uint8_t [7]){ZRTP_UNSET_ALGO}, 0, (uint8_t []){ZRTP_AUTHTAG_HS32, ZRTP_AUTHTAG_HS80}, 2));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_KEYAGREEMENT_TYPE, (uint8_t [7]){ZRTP_UNSET_ALGO}, 0, (uint8_t []){ZRTP_KEYAGREEMENT_DH3k}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_SAS_TYPE, (uint8_t [7]){ZRTP_UNSET_ALGO}, 0, (uint8_t []){ZRTP_SAS_B32}, 1));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_AUTHTAG_TYPE, (uint8_t [7]){ZRTP_AUTHTAG_HS32, ZRTP_AUTHTAG_HS80}, 2, (uint8_t []){ZRTP_AUTHTAG_HS32, ZRTP_AUTHTAG_HS80}, 2));
CU_TEST(testAddMandatoryCryptoTypesIfNeeded(ZRTP_AUTHTAG_TYPE, (uint8_t [7]){ZRTP_AUTHTAG_HS80, ZRTP_AUTHTAG_HS32}, 2, (uint8_t []){ZRTP_AUTHTAG_HS80, ZRTP_AUTHTAG_HS32}, 2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment