diff options
author | Jack Lloyd <[email protected]> | 2017-12-19 14:17:04 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-19 14:17:04 -0500 |
commit | 4ad5acf4e038f5dd296b0ac82922a1f2e3880324 (patch) | |
tree | 694c64bc5b4deb4f9fa84f1ba1b6266cd01e86d9 /src/lib/x509/cert_status.cpp | |
parent | 3eb0012462b6c92f386f5d430b6aa136eaed50b6 (diff) | |
parent | 584587969d10c903bf08f4e4580ecde83cbf62a2 (diff) |
Merge GH #1364 Expose a function returning status when verifying X509 objects
Diffstat (limited to 'src/lib/x509/cert_status.cpp')
-rw-r--r-- | src/lib/x509/cert_status.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/x509/cert_status.cpp b/src/lib/x509/cert_status.cpp index 76a102aef..9561cae57 100644 --- a/src/lib/x509/cert_status.cpp +++ b/src/lib/x509/cert_status.cpp @@ -91,7 +91,12 @@ const char* to_string(Certificate_Status_Code code) return "Signature error"; case Certificate_Status_Code::CERT_PUBKEY_INVALID: return "Certificate public key invalid"; - // intentionally no default so we are warned + case Certificate_Status_Code::SIGNATURE_ALGO_UNKNOWN: + return "Certificate signed with unknown/unavailable algorithm"; + case Certificate_Status_Code::SIGNATURE_ALGO_BAD_PARAMS: + return "Certificate signature has invalid parameters"; + + // intentionally no default so we are warned if new enum values are added } return nullptr; |