/*
godlighty -- highly-customizable HTTP, HTTP/2, HTTPS server
-Copyright (C) 2021-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
return
}
- if cfg.TLS != nil && len(cfg.TLS.ClientCAs) > 0 {
+ if (cfg.ECDSATLS != nil && len(cfg.ECDSATLS.ClientCAs) > 0) ||
+ (cfg.EdDSATLS != nil && len(cfg.EdDSATLS.ClientCAs) > 0) ||
+ (cfg.GOSTTLS != nil && len(cfg.GOSTTLS.ClientCAs) > 0) {
if r.TLS == nil {
err = errors.New("TLS client authentication required")
printErr(http.StatusForbidden, err)
w.Header().Add("Digest", "SHA-512="+
base64.StdEncoding.EncodeToString(forHTTP.SHA512))
}
+ if forHTTP.Streebog256 != nil {
+ w.Header().Add("Digest", "Streebog-256="+
+ base64.StdEncoding.EncodeToString(forHTTP.Streebog256))
+ }
+ if forHTTP.Streebog512 != nil {
+ w.Header().Add("Digest", "Streebog-512="+
+ base64.StdEncoding.EncodeToString(forHTTP.Streebog512))
+ }
}
SkipMeta4: