diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:20:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:20:58 +0100 |
| commit | 455475575bcfa30aa60a377235bfaf2fd7bc2da7 (patch) | |
| tree | 691c69e3e25722a4fa6ffe632179243907be8240 /src/key.cc | |
| parent | 1eb9ba017214698de3fd41de5291604b4fe839c5 (diff) | |
Use locked_sstream. Replace once parse_stream with parse_memory.
Diffstat (limited to 'src/key.cc')
| -rw-r--r-- | src/key.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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]); |
