Remove another stringstream from DecryptedKDM.
authorCarl Hetherington <cth@carlh.net>
Thu, 11 Aug 2016 15:03:21 +0000 (16:03 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 11 Aug 2016 15:03:21 +0000 (16:03 +0100)
src/decrypted_kdm.cc

index 38fc77cc6ddb8f35c777742af75989634b127bb8..ef6a6208fa35be2ef62b4091a48f61598fd0444f 100644 (file)
@@ -299,15 +299,15 @@ DecryptedKDM::encrypt (shared_ptr<const CertificateChain> signer, Certificate re
                char out[encrypted_len * 2];
                Kumu::base64encode (encrypted, encrypted_len, out, encrypted_len * 2);
                int const N = strlen (out);
-               locked_stringstream lines;
+               string lines;
                for (int i = 0; i < N; ++i) {
                        if (i > 0 && (i % 64) == 0) {
-                               lines << "\n";
+                               lines += "\n";
                        }
-                       lines << out[i];
+                       lines += out[i];
                }
 
-               keys.push_back (lines.str ());
+               keys.push_back (lines);
        }
 
        string device_list_description = recipient.subject_common_name ();