X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcertificate_chain.h;h=5d94b74ba7617fbd1303a3532ca86c99c148a0ff;hb=2da55dbe6da21975612584365db17db2ae9935b8;hp=8d07ebc26db6124343c3df55bc5739e5fbe5abbc;hpb=55ca48ff8f63809f1f8ca4069d6a751517dd7947;p=libdcp.git 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