Add support for multiple SCEP provisioners

Similarly to how ACME suppors multiple provisioners, it's
now possible to load the right provisioner based on the
URL.
This commit is contained in:
Herman Slatman 2021-03-05 12:40:42 +01:00
parent 2fc5a7f22e
commit 3a5f633cdd
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F
4 changed files with 78 additions and 26 deletions

View file

@ -4,8 +4,8 @@ package scep
type Error struct {
// Type ProbType
// Detail string
Err error
Status int
Message string `json:"message"`
Status int `json:"-"`
// Sub []*Error
// Identifier *Identifier
}
@ -15,5 +15,5 @@ func (e *Error) Error() string {
// if e.Err == nil {
// return e.Detail
// }
return e.Err.Error()
return e.Message
}