diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-19 11:26:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-19 11:26:40 +0100 |
| commit | cedab18b03fa06370b78355937be10c104cf0aad (patch) | |
| tree | 6a8b7b7f969439ef3f93f242911b29769a4e05b1 /src | |
| parent | aca6a2b04313af94f44a2ac68ca4f2a5d57336bf (diff) | |
Add a comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate_chain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/certificate_chain.h b/src/certificate_chain.h index 8d07ebc2..5d94b74b 100644 --- a/src/certificate_chain.h +++ b/src/certificate_chain.h @@ -128,6 +128,12 @@ public: List root_to_leaf () const; List unordered () const; + /** Check if the certificates form a chain (i.e. root signs intermediate etc.) + * and that the private key matches the leaf certificate. + * @param if not nullptr, filled in with a reason for vailure (or untouched + * if there is no error) + * @return true if the chain is valid, false if not. + */ bool valid (std::string* reason = nullptr) const; /** Check to see if the chain is valid (i.e. root signs the intermediate, intermediate |
