Skip to content

Commit f03e520

Browse files
committed
MEDIUM: Add global ocsp-update keywords
Added: - ocsp-update.disable - ocsp-update.httpproxy - ocsp-update.maxdelay - ocsp-update.mindelay - ocs-update.mode
1 parent c75eaad commit f03e520

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

section-parsers.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,11 @@ func (p *configParser) getGlobalParser() *Parsers { //nolint: maintidx
436436
addParser(parser, &sequence, &simple.Number{Name: "ssl-security-level"})
437437
addParser(parser, &sequence, &parsers.HTTPErrCodes{})
438438
addParser(parser, &sequence, &parsers.HTTPFailCodes{})
439+
addParser(parser, &sequence, &simple.OnOff{Name: "ocsp-update.disable"})
440+
addParser(parser, &sequence, &simple.Word{Name: "ocsp-update.httpproxy"})
441+
addParser(parser, &sequence, &simple.Number{Name: "ocsp-update.mindelay"})
442+
addParser(parser, &sequence, &simple.Number{Name: "ocsp-update.maxdelay"})
443+
addParser(parser, &sequence, &simple.OnOff{Name: "ocsp-update.mode"})
439444
// the ConfigSnippet must be at the end to parsers load order to ensure
440445
// the overloading of any option has been declared previously
441446
addParser(parser, &sequence, &parsers.ConfigSnippet{})

tests/configs/haproxy.cfg.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ global
6262
tune.ssl.default-dh-param 2048
6363
ssl-default-bind-client-sigalgs RSA+SHA256
6464
ssl-default-bind-sigalgs ECDSA+SHA256:RSA+SHA256
65+
ocsp-update.disable off
66+
ocsp-update.httpproxy 127.0.0.1:123
67+
ocsp-update.maxdelay 10
68+
ocsp-update.mindelay 7
69+
ocsp-update.mode on
6570
###_config-snippet_### END
6671
# random comment after snippet
6772

0 commit comments

Comments
 (0)