New method update to updates ddwaf handle for the one that returns ddwaf_update with the updated ruleset.
An InstanceAccessor has been set for rulesInfo property in order to be able to update the ruleset info when updating the ruleset. When instance is disposed, rulesInfo is null.
When ddwaf update returns a null handler (due to nothing to update or an error), an exception is thrown and the previous handler is kept.
Motivation
libddwaf ^1.8.0 exposes new method ddwaf_update for all-in-one ruleset updates and deprecates old updating methods.
What does this PR do?
update
to updates ddwaf handle for the one that returnsddwaf_update
with the updated ruleset.AnInstanceAccessor
has been set forrulesInfo
property in order to be able to update the ruleset info when updating the ruleset. When instance is disposed, rulesInfo isnull
.Motivation
libddwaf ^1.8.0
exposes new methodddwaf_update
for all-in-one ruleset updates and deprecates old updating methods.Additional Notes
libddwaf upgrading guide