30 (checkWeakCryptography, ("S509",)), |
30 (checkWeakCryptography, ("S509",)), |
31 ], |
31 ], |
32 } |
32 } |
33 |
33 |
34 |
34 |
35 def checkInsecureVersion(reportError, context, config): |
35 def checkInsecureVersion(reportError, context, config): # noqa: U100 |
36 """ |
36 """ |
37 Function to check for the use of insecure SNMP version like |
37 Function to check for the use of insecure SNMP version like |
38 v1, v2c. |
38 v1, v2c. |
39 |
39 |
40 @param reportError function to be used to report errors |
40 @param reportError function to be used to report errors |
56 "M", |
56 "M", |
57 "H", |
57 "H", |
58 ) |
58 ) |
59 |
59 |
60 |
60 |
61 def checkWeakCryptography(reportError, context, config): |
61 def checkWeakCryptography(reportError, context, config): # noqa: U100 |
62 """ |
62 """ |
63 Function to check for the use of insecure SNMP cryptography |
63 Function to check for the use of insecure SNMP cryptography |
64 (i.e. v3 using noAuthNoPriv). |
64 (i.e. v3 using noAuthNoPriv). |
65 |
65 |
66 @param reportError function to be used to report errors |
66 @param reportError function to be used to report errors |