summaryrefslogtreecommitdiff
path: root/src/certificate_chain.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 14:13:37 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 14:13:37 +0100
commit2ae92dcc97765deb2845dd07a338858aeb375cb3 (patch)
tree6f0f8dec0b81a0a7d56e8dbc3a87f0986dae6748 /src/certificate_chain.cc
parent13db82c73af330ffbc7a813cd38c5bef36d5b54c (diff)
No-op: whitespace.
Diffstat (limited to 'src/certificate_chain.cc')
-rw-r--r--src/certificate_chain.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc
index 4f92d8d9..22754f4e 100644
--- a/src/certificate_chain.cc
+++ b/src/certificate_chain.cc
@@ -125,7 +125,7 @@ public_key_digest (boost::filesystem::path private_key, boost::filesystem::path
}
/* Decode the base64 of the public key */
-
+
unsigned char buffer[512];
int const N = dcp::base64_decode (pub, buffer, 1024);
@@ -149,9 +149,9 @@ public_key_digest (boost::filesystem::path private_key, boost::filesystem::path
string dig = Kumu::base64encode (digest, SHA_DIGEST_LENGTH, digest_base64, 64);
#ifdef LIBDCP_WINDOWS
boost::replace_all (dig, "/", "\\/");
-#else
+#else
boost::replace_all (dig, "/", "\\\\/");
-#endif
+#endif
return dig;
}
@@ -167,7 +167,7 @@ dcp::make_certificate_chain (
{
boost::filesystem::path directory = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path ();
boost::filesystem::create_directories (directory);
-
+
boost::filesystem::path const cwd = boost::filesystem::current_path ();
boost::filesystem::current_path (directory);
@@ -221,7 +221,7 @@ dcp::make_certificate_chain (
<< "OU = Organization unit\n"
<< "CN = Entity and dnQualifier\n";
}
-
+
string const inter_subject = "/O=" + organisation +
"/OU=" + organisational_unit +
"/CN=" + intermediate_common_name +
@@ -234,7 +234,7 @@ dcp::make_certificate_chain (
command (s.str().c_str());
}
-
+
command (
quoted_openssl +
" x509 -req -sha256 -days 3649 -CA ca.self-signed.pem -CAkey ca.key -set_serial 6"