Use locked_sstream. Replace once parse_stream with parse_memory.
[libdcp.git] / src / certificate.cc
index 18249a58aa26595f1ffcbd29e69424ce8a77128e..34f797545cad3cb379b0ef1219012d9f58105fe9 100644 (file)
@@ -55,7 +55,6 @@ using std::list;
 using std::string;
 using std::ostream;
 using std::min;
-using std::stringstream;
 using namespace dcp;
 
 static string const begin_certificate = "-----BEGIN CERTIFICATE-----";
@@ -104,7 +103,7 @@ Certificate::read_string (string cert)
           See http://comments.gmane.org/gmane.comp.encryption.openssl.user/55593
        */
 
-       stringstream s (cert);
+       locked_stringstream s (cert);
        string line;
 
        /* BEGIN */