When we originally added this package (4 years ago) x/crypto/ocsp didn't have its own list of revocation reasons, so we added our own. Now it does have its own list, so just use that list instead of duplicating code for no real reason. Also we build a list of the revocation reasons we support so that we can tell users when they try to use an unsupported one. Instead of building this string every time, just build it once it during package initialization. Finally return the same error message in wfe that we use in wfe2 when a user requests an unsupported reason. |
||
---|---|---|
.. | ||
reasons.go |