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:
parent
2fc5a7f22e
commit
3a5f633cdd
4 changed files with 78 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue