diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-09 13:22:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-09 13:22:43 +0100 |
| commit | 7374d3abb31113c88860320d8191f065a31e2b35 (patch) | |
| tree | fede20173b4402b5682c1b4eb7f017f0d4566b4b /src | |
| parent | 632db0a7fdcde01d03c36acd98f323b5c8b5d200 (diff) | |
Try to fix subject escaping on Windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/signer_chain.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/signer_chain.cc b/src/signer_chain.cc index 9393ea0b..78a8f284 100644 --- a/src/signer_chain.cc +++ b/src/signer_chain.cc @@ -106,7 +106,11 @@ public_key_digest (boost::filesystem::path private_key, boost::filesystem::path char digest_base64[64]; string dig = Kumu::base64encode (digest, SHA_DIGEST_LENGTH, digest_base64, 64); +#ifdef LIBDCP_WINDOWS + boost::replace_all (dig, "/", "\\/"); +#else boost::replace_all (dig, "/", "\\\\/"); +#endif return dig; } |
