summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-11 16:03:21 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-11 16:03:21 +0100
commit3956d410a1fce4fe3b02cd7c52d9717e29371f3b (patch)
tree434ef7cde3a01238a48902123a9878b777417a13 /src
parent5d6770aea92d798a31fdbda128411ce2001a4209 (diff)
Remove another stringstream from DecryptedKDM.
Diffstat (limited to 'src')
-rw-r--r--src/decrypted_kdm.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc
index 38fc77cc..ef6a6208 100644
--- a/src/decrypted_kdm.cc
+++ b/src/decrypted_kdm.cc
@@ -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 ();