summaryrefslogtreecommitdiff
path: root/src/certificate_chain.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-08 12:54:00 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-08 12:54:00 +0100
commit815c7b9f870de727d76eb7641d924ed0831e14ec (patch)
tree06f12d6cecb197e063df1004761311521bfdaa41 /src/certificate_chain.cc
parentb666e62173fc3272baf12692ca298be0b24ca66f (diff)
Make public_key_digest() testable.
Diffstat (limited to 'src/certificate_chain.cc')
-rw-r--r--src/certificate_chain.cc4
1 files changed, 2 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";