Implement warning thresholds for OpenPGP #31

Merged
dirk merged 1 commit from unify-behaviour-of-x509-and-gpg-retries into main 2024-10-07 20:59:41 +00:00

1 commit

Author SHA1 Message Date
de3cf38c5d Implement warning thresholds for OpenPGP
This patch fixes https://bugs.cacert.org/view.php?id=1530 by adding the same
warning threshold behaviour for OpenPGP signing requests that exists for
X.509 signing requests.

The warning threshold has been moved to a variable. The SQL statements are
created using an sprintf statement to avoid potential SQL injections that may
get introduced by setting the warning_threshold variable to an invalid valid.

Fixes #1530
2024-10-05 17:24:49 +02:00