Skip to content

Commit 3e4f351

Browse files
committed
C++: Rename SslContextCallMake to SslContextCallGlobal
This is in line with changes made to the dataflow library
1 parent 9d88f01 commit 3e4f351

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: deprecated
33
---
4-
* The `SslContextCallAbstractConfig`, `SslContextCallConfig`, `SslContextCallBannedProtocolConfig`, `SslContextCallTls12ProtocolConfig`, `SslContextCallTls13ProtocolConfig`, `SslContextCallTlsProtocolConfig`, `SslContextFlowsToSetOptionConfig`, `SslOptionConfig` dataflow configurations from `BoostorgAsio` have been deprecated. Please use `SslContextCallConfigSig`, `SslContextCallMake`, `SslContextCallFlow`, `SslContextCallBannedProtocolFlow`, `SslContextCallTls12ProtocolFlow`, `SslContextCallTls13ProtocolFlow`, `SslContextCallTlsProtocolFlow`, `SslContextFlowsToSetOptionFlow`.
4+
* The `SslContextCallAbstractConfig`, `SslContextCallConfig`, `SslContextCallBannedProtocolConfig`, `SslContextCallTls12ProtocolConfig`, `SslContextCallTls13ProtocolConfig`, `SslContextCallTlsProtocolConfig`, `SslContextFlowsToSetOptionConfig`, `SslOptionConfig` dataflow configurations from `BoostorgAsio` have been deprecated. Please use `SslContextCallConfigSig`, `SslContextCallGlobal`, `SslContextCallFlow`, `SslContextCallBannedProtocolFlow`, `SslContextCallTls12ProtocolFlow`, `SslContextCallTls13ProtocolFlow`, `SslContextCallTlsProtocolFlow`, `SslContextFlowsToSetOptionFlow`.

cpp/ql/lib/semmle/code/cpp/security/boostorg/asio/protocols.qll

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,19 @@ module BoostorgAsio {
394394
* Constructs a standard data flow computation for protocol values to the first argument
395395
* of a context constructor.
396396
*/
397-
module SslContextCallMake<SslContextCallConfigSig Config> {
397+
module SslContextCallGlobal<SslContextCallConfigSig Config> {
398398
private module C implements DataFlow::ConfigSig {
399399
import Config
400400
}
401401

402402
import DataFlow::Global<C>
403403
}
404404

405+
/** DEPRECATED: Use `SslContextCallGlobal` instead. */
406+
deprecated module SslContextCallMake<SslContextCallConfigSig Config> {
407+
import SslContextCallGlobal<Config>
408+
}
409+
405410
/**
406411
* Any protocol value that flows to the first argument of a context constructor.
407412
*/
@@ -428,7 +433,7 @@ module BoostorgAsio {
428433
}
429434
}
430435

431-
module SslContextCallFlow = SslContextCallMake<SslContextCallConfig>;
436+
module SslContextCallFlow = SslContextCallGlobal<SslContextCallConfig>;
432437

433438
/**
434439
* A banned protocol value that flows to the first argument of a context constructor.
@@ -458,7 +463,8 @@ module BoostorgAsio {
458463
}
459464
}
460465

461-
module SslContextCallBannedProtocolFlow = SslContextCallMake<SslContextCallBannedProtocolConfig>;
466+
module SslContextCallBannedProtocolFlow =
467+
SslContextCallGlobal<SslContextCallBannedProtocolConfig>;
462468

463469
/**
464470
* A TLS 1.2 protocol value that flows to the first argument of a context constructor.
@@ -488,7 +494,7 @@ module BoostorgAsio {
488494
}
489495
}
490496

491-
module SslContextCallTls12ProtocolFlow = SslContextCallMake<SslContextCallTls12ProtocolConfig>;
497+
module SslContextCallTls12ProtocolFlow = SslContextCallGlobal<SslContextCallTls12ProtocolConfig>;
492498

493499
/**
494500
* A TLS 1.3 protocol value that flows to the first argument of a context constructor.
@@ -518,7 +524,7 @@ module BoostorgAsio {
518524
}
519525
}
520526

521-
module SslContextCallTls13ProtocolFlow = SslContextCallMake<SslContextCallTls13ProtocolConfig>;
527+
module SslContextCallTls13ProtocolFlow = SslContextCallGlobal<SslContextCallTls13ProtocolConfig>;
522528

523529
/**
524530
* A generic TLS protocol value that flows to the first argument of a context constructor.
@@ -548,7 +554,7 @@ module BoostorgAsio {
548554
}
549555
}
550556

551-
module SslContextCallTlsProtocolFlow = SslContextCallMake<SslContextCallTlsProtocolConfig>;
557+
module SslContextCallTlsProtocolFlow = SslContextCallGlobal<SslContextCallTlsProtocolConfig>;
552558

553559
/**
554560
* A context constructor call that flows to a call to `SetOptions()`.

0 commit comments

Comments
 (0)