/tls/ -- add internal usable flag to simplify logic when https needs to be booted up

This commit is contained in:
Eugene Bujak
2019-02-19 15:21:38 +03:00
parent ba103f9825
commit 3c374b5940
3 changed files with 6 additions and 2 deletions

View File

@@ -88,6 +88,9 @@ type tlsConfigStatus struct {
ValidKey bool `yaml:"-" json:"valid_key"`
KeyType string `yaml:"-" json:"key_type,omitempty"`
// is usable? set by validator
usable bool
// warnings
Warning string `yaml:"-" json:"warning,omitempty"`
WarningValidation string `yaml:"-" json:"warning_validation,omitempty"`