aboutsummaryrefslogtreecommitdiffstats
path: root/src/cms
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-29 15:15:30 +0000
committerlloyd <[email protected]>2010-10-29 15:15:30 +0000
commit66b163323d39ac5c0be30fd0b1c0fd91b64a55f3 (patch)
treee745b4824105f600ec5452e591a112229bc01478 /src/cms
parent89a2e78d2ff2f0266825708a0294b13a4c370a29 (diff)
Make MemoryRegion::set protected, change all callers
Diffstat (limited to 'src/cms')
-rw-r--r--src/cms/cms_enc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cms/cms_enc.cpp b/src/cms/cms_enc.cpp
index 1cc2064ac..cd739ef08 100644
--- a/src/cms/cms_enc.cpp
+++ b/src/cms/cms_enc.cpp
@@ -20,7 +20,8 @@ void CMS_Encoder::set_data(const byte buf[], size_t length)
if(!data.empty())
throw Invalid_State("Cannot call CMS_Encoder::set_data here");
- data.set(buf, length);
+ data.resize(length);
+ copy_mem(&data[0], buf, length);
type = "CMS.DataContent";
}