diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-08 12:54:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-08 12:54:00 +0100 |
| commit | 815c7b9f870de727d76eb7641d924ed0831e14ec (patch) | |
| tree | 06f12d6cecb197e063df1004761311521bfdaa41 /src | |
| parent | b666e62173fc3272baf12692ca298be0b24ca66f (diff) | |
Make public_key_digest() testable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate_chain.cc | 4 | ||||
| -rw-r--r-- | src/certificate_chain.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc index 6748d73c..5afe8a27 100644 --- a/src/certificate_chain.cc +++ b/src/certificate_chain.cc @@ -124,8 +124,8 @@ command (string cmd) * @param openssl openssl binary name (or full path if openssl is not on the system path). * @return SHA1 digest of corresponding public key, with escaped / characters. */ -static string -public_key_digest (boost::filesystem::path private_key, boost::filesystem::path openssl) +string +dcp::public_key_digest(boost::filesystem::path private_key, boost::filesystem::path openssl) { boost::filesystem::path public_name = private_key.string() + ".public"; diff --git a/src/certificate_chain.h b/src/certificate_chain.h index 5d94b74b..aabe9f00 100644 --- a/src/certificate_chain.h +++ b/src/certificate_chain.h @@ -190,6 +190,9 @@ private: }; +std::string public_key_digest(boost::filesystem::path private_key, boost::filesystem::path openssl); + + } |
