diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-08 21:58:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-08 21:58:58 +0100 |
| commit | 3695f700496d43eb27adf112936972bad978c06c (patch) | |
| tree | f7fc485136fe99024e320b2a5c66108f28d5167a /src | |
| parent | c85d5ae643df5f2fa399398796feaa6f42b114a7 (diff) | |
White space.
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/util.cc b/src/util.cc index 5f19d323..1be79be3 100644 --- a/src/util.cc +++ b/src/util.cc @@ -287,22 +287,22 @@ dcp::write_string_to_file(string const& string, boost::filesystem::path const& p string dcp::private_key_fingerprint (string key) { - boost::replace_all (key, "-----BEGIN RSA PRIVATE KEY-----\n", ""); - boost::replace_all (key, "\n-----END RSA PRIVATE KEY-----\n", ""); - boost::replace_all (key, "-----BEGIN PRIVATE KEY-----\n", ""); - boost::replace_all (key, "\n-----END PRIVATE KEY-----\n", ""); + boost::replace_all(key, "-----BEGIN RSA PRIVATE KEY-----\n", ""); + boost::replace_all(key, "\n-----END RSA PRIVATE KEY-----\n", ""); + boost::replace_all(key, "-----BEGIN PRIVATE KEY-----\n", ""); + boost::replace_all(key, "\n-----END PRIVATE KEY-----\n", ""); unsigned char buffer[4096]; - int const N = base64_decode (key, buffer, sizeof (buffer)); + int const N = base64_decode(key, buffer, sizeof (buffer)); SHA_CTX sha; - SHA1_Init (&sha); - SHA1_Update (&sha, buffer, N); + SHA1_Init(&sha); + SHA1_Update(&sha, buffer, N); uint8_t digest[20]; - SHA1_Final (digest, &sha); + SHA1_Final(digest, &sha); char digest_base64[64]; - return Kumu::base64encode (digest, 20, digest_base64, 64); + return Kumu::base64encode(digest, 20, digest_base64, 64); } |
