@@ -40,7 +40,7 @@ API::Node sslContextInstance() {
40
40
class WrapSocketCall extends ConnectionCreation , DataFlow:: CallCfgNode {
41
41
WrapSocketCall ( ) { this = sslContextInstance ( ) .getMember ( "wrap_socket" ) .getACall ( ) }
42
42
43
- override DataFlow:: CfgNode getContext ( ) {
43
+ override DataFlow:: Node getContext ( ) {
44
44
result = this .getFunction ( ) .( DataFlow:: AttrRead ) .getObject ( )
45
45
}
46
46
}
@@ -63,7 +63,7 @@ class OptionsAugOr extends ProtocolRestriction, DataFlow::CfgNode {
63
63
)
64
64
}
65
65
66
- override DataFlow:: CfgNode getContext ( ) { result = this }
66
+ override DataFlow:: Node getContext ( ) { result = this }
67
67
68
68
override ProtocolVersion getRestriction ( ) { result = restriction }
69
69
}
@@ -88,7 +88,7 @@ class OptionsAugAndNot extends ProtocolUnrestriction, DataFlow::CfgNode {
88
88
)
89
89
}
90
90
91
- override DataFlow:: CfgNode getContext ( ) { result = this }
91
+ override DataFlow:: Node getContext ( ) { result = this }
92
92
93
93
override ProtocolVersion getUnrestriction ( ) { result = restriction }
94
94
}
@@ -138,7 +138,7 @@ class ContextSetVersion extends ProtocolRestriction, ProtocolUnrestriction, Data
138
138
)
139
139
}
140
140
141
- override DataFlow:: CfgNode getContext ( ) { result = this }
141
+ override DataFlow:: Node getContext ( ) { result = this }
142
142
143
143
override ProtocolVersion getRestriction ( ) { result .lessThan ( restriction ) }
144
144
@@ -159,7 +159,7 @@ class UnspecificSSLContextCreation extends SSLContextCreation, UnspecificContext
159
159
}
160
160
161
161
class UnspecificSSLDefaultContextCreation extends SSLDefaultContextCreation , ProtocolUnrestriction {
162
- override DataFlow:: CfgNode getContext ( ) { result = this }
162
+ override DataFlow:: Node getContext ( ) { result = this }
163
163
164
164
// see https://docs.python.org/3/library/ssl.html#ssl.create_default_context
165
165
override ProtocolVersion getUnrestriction ( ) {
@@ -186,9 +186,9 @@ class Ssl extends TlsLibrary {
186
186
187
187
override ContextCreation specific_context_creation ( ) { result instanceof SSLContextCreation }
188
188
189
- override DataFlow:: CfgNode insecure_connection_creation ( ProtocolVersion version ) {
189
+ override DataFlow:: CallCfgNode insecure_connection_creation ( ProtocolVersion version ) {
190
190
result = API:: moduleImport ( "ssl" ) .getMember ( "wrap_socket" ) .getACall ( ) and
191
- this .specific_version ( version ) = result .( DataFlow :: CallCfgNode ) . getArgByName ( "ssl_version" ) and
191
+ this .specific_version ( version ) = result .getArgByName ( "ssl_version" ) and
192
192
version .isInsecure ( )
193
193
}
194
194
0 commit comments