summaryrefslogtreecommitdiff
path: root/src/key.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-22 09:20:58 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-22 09:20:58 +0100
commit455475575bcfa30aa60a377235bfaf2fd7bc2da7 (patch)
tree691c69e3e25722a4fa6ffe632179243907be8240 /src/key.cc
parent1eb9ba017214698de3fd41de5291604b4fe839c5 (diff)
Use locked_sstream. Replace once parse_stream with parse_memory.
Diffstat (limited to 'src/key.cc')
-rw-r--r--src/key.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/key.cc b/src/key.cc
index d2417a09..cf7b4d6d 100644
--- a/src/key.cc
+++ b/src/key.cc
@@ -36,15 +36,14 @@
*/
#include "key.h"
+#include <locked_sstream.h>
#include <asdcp/AS_DCP.h>
#include <asdcp/KM_prng.h>
#include <asdcp/KM_util.h>
-#include <sstream>
#include <string>
#include <iomanip>
using std::string;
-using std::stringstream;
using std::setw;
using std::setfill;
using namespace dcp;
@@ -94,7 +93,7 @@ Key::operator= (Key const & other)
string
Key::hex () const
{
- stringstream g;
+ locked_stringstream g;
for (unsigned int i = 0; i < ASDCP::KeyLen; ++i) {
g << setw(2) << setfill('0') << std::hex << static_cast<int> (_value[i]);