@@ -40,7 +40,7 @@ API::Node sslContextInstance() {
4040class WrapSocketCall extends ConnectionCreation , DataFlow:: CallCfgNode {
4141 WrapSocketCall ( ) { this = sslContextInstance ( ) .getMember ( "wrap_socket" ) .getACall ( ) }
4242
43- override DataFlow:: CfgNode getContext ( ) {
43+ override DataFlow:: Node getContext ( ) {
4444 result = this .getFunction ( ) .( DataFlow:: AttrRead ) .getObject ( )
4545 }
4646}
@@ -63,7 +63,7 @@ class OptionsAugOr extends ProtocolRestriction, DataFlow::CfgNode {
6363 )
6464 }
6565
66- override DataFlow:: CfgNode getContext ( ) { result = this }
66+ override DataFlow:: Node getContext ( ) { result = this }
6767
6868 override ProtocolVersion getRestriction ( ) { result = restriction }
6969}
@@ -88,7 +88,7 @@ class OptionsAugAndNot extends ProtocolUnrestriction, DataFlow::CfgNode {
8888 )
8989 }
9090
91- override DataFlow:: CfgNode getContext ( ) { result = this }
91+ override DataFlow:: Node getContext ( ) { result = this }
9292
9393 override ProtocolVersion getUnrestriction ( ) { result = restriction }
9494}
@@ -138,7 +138,7 @@ class ContextSetVersion extends ProtocolRestriction, ProtocolUnrestriction, Data
138138 )
139139 }
140140
141- override DataFlow:: CfgNode getContext ( ) { result = this }
141+ override DataFlow:: Node getContext ( ) { result = this }
142142
143143 override ProtocolVersion getRestriction ( ) { result .lessThan ( restriction ) }
144144
@@ -159,7 +159,7 @@ class UnspecificSSLContextCreation extends SSLContextCreation, UnspecificContext
159159}
160160
161161class UnspecificSSLDefaultContextCreation extends SSLDefaultContextCreation , ProtocolUnrestriction {
162- override DataFlow:: CfgNode getContext ( ) { result = this }
162+ override DataFlow:: Node getContext ( ) { result = this }
163163
164164 // see https://docs.python.org/3/library/ssl.html#ssl.create_default_context
165165 override ProtocolVersion getUnrestriction ( ) {
@@ -186,9 +186,9 @@ class Ssl extends TlsLibrary {
186186
187187 override ContextCreation specific_context_creation ( ) { result instanceof SSLContextCreation }
188188
189- override DataFlow:: CfgNode insecure_connection_creation ( ProtocolVersion version ) {
189+ override DataFlow:: CallCfgNode insecure_connection_creation ( ProtocolVersion version ) {
190190 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
192192 version .isInsecure ( )
193193 }
194194
0 commit comments