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
friend struct ::certificates_validation7;
friend struct ::certificates_validation8;
- bool chain_valid (List const & chain) const;
+ bool chain_valid(List const & chain, std::string* error = nullptr) const;
/** Our certificates, not in any particular order */
List _certificates;
};
+std::string public_key_digest(RSA* public_key);
+std::string public_key_digest(boost::filesystem::path private_key);
+std::string escape_digest(std::string digest);
+
+
}