in capi/lib/revocation/ocsp/ocsp.go [114:131]
func FromString(data string) (OCSPStatus, error) {
switch data {
case `good`:
return Good, nil
case `revoked`:
return Revoked, nil
case `unknown`:
return Unknown, nil
case `unauthorized`:
return Unauthorized, nil
case `badResponse`:
return BadResponse, nil
case `internalError`:
return InternalError, nil
default:
return Unknown, errors.New("unknown OCSPStatus type " + string(data))
}
}