C++: Repair for function call macros.

This commit is contained in:
Geoffrey White
2021-05-18 13:40:53 +01:00
parent 012840e602
commit c7382ee06d
3 changed files with 10 additions and 3 deletions

View File

@@ -24,3 +24,4 @@
| test.cpp:92:2:92:17 | call to encryptTripleDES | This function call specifies a broken or weak cryptographic algorithm. |
| test.cpp:101:2:101:15 | call to do_des_encrypt | This function call specifies a broken or weak cryptographic algorithm. |
| test.cpp:102:2:102:12 | call to DES_Set_Key | This function call specifies a broken or weak cryptographic algorithm. |
| test.cpp:121:2:121:24 | INIT_ENCRYPT_WITH_DES() | This macro invocation specifies a broken or weak cryptographic algorithm. |

View File

@@ -118,7 +118,7 @@ void my_implementation8();
void test_macros2()
{
INIT_ENCRYPT_WITH_DES(); // BAD [NOT DETECTED]
INIT_ENCRYPT_WITH_DES(); // BAD
INIT_ENCRYPT_WITH_AES(); // GOOD (good algorithm)
// ...