src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/insecureSslTls.py

branch
server
changeset 10704
27d21e5163b8
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
124 "M", 124 "M",
125 "M", 125 "M",
126 ) 126 )
127 127
128 128
129 def checkSslWithoutVersion(reportError, context, config): # noqa: U100 129 def checkSslWithoutVersion(reportError, context, _config):
130 """ 130 """
131 Function to check for SSL use with no version specified. 131 Function to check for SSL use with no version specified.
132 132
133 @param reportError function to be used to report errors 133 @param reportError function to be used to report errors
134 @type func 134 @type func
135 @param context security context object 135 @param context security context object
136 @type SecurityContext 136 @type SecurityContext
137 @param config dictionary with configuration data 137 @param _config dictionary with configuration data (unused)
138 @type dict 138 @type dict
139 """ 139 """
140 if ( 140 if (
141 context.callFunctionNameQual == "ssl.wrap_socket" 141 context.callFunctionNameQual == "ssl.wrap_socket"
142 and context.checkCallArgValue("ssl_version") is None 142 and context.checkCallArgValue("ssl_version") is None

eric ide

mercurial