aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/cert_req.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-15 13:44:42 +0000
committerlloyd <[email protected]>2010-09-15 13:44:42 +0000
commit180c5358cb31e9c003cada3705bb30cf01732878 (patch)
tree951038dfaf2c33bcee5e27c4b1d2980eb35494a3 /src/ssl/cert_req.cpp
parenta9d0f37596e5413cae45f32740738c5c68abcce1 (diff)
Update all uses of MemoryRegion::append to use either push_back or operator+=
Diffstat (limited to 'src/ssl/cert_req.cpp')
-rw-r--r--src/ssl/cert_req.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ssl/cert_req.cpp b/src/ssl/cert_req.cpp
index 7a32af03b..9cd6bd5c1 100644
--- a/src/ssl/cert_req.cpp
+++ b/src/ssl/cert_req.cpp
@@ -37,9 +37,9 @@ SecureVector<byte> Certificate_Req::serialize() const
{
SecureVector<byte> buf;
- buf.append(types.size());
+ buf.push_back(types.size());
for(u32bit i = 0; i != types.size(); i++)
- buf.append(types[i]);
+ buf.push_back(types[i]);
DER_Encoder encoder;
for(u32bit i = 0; i != names.size(); i++)
@@ -48,9 +48,9 @@ SecureVector<byte> Certificate_Req::serialize() const
SecureVector<byte> der_names = encoder.get_contents();
u16bit names_size = der_names.size();
- buf.append(get_byte(0, names_size));
- buf.append(get_byte(1, names_size));
- buf.append(der_names);
+ buf.push_back(get_byte(0, names_size));
+ buf.push_back(get_byte(1, names_size));
+ buf += der_names;
return buf;
}
@@ -109,8 +109,8 @@ SecureVector<byte> Certificate::serialize() const
SecureVector<byte> raw_cert = certs[i].BER_encode();
u32bit cert_size = raw_cert.size();
for(u32bit j = 0; j != 3; j++)
- buf.append(get_byte(j+1, cert_size));
- buf.append(raw_cert);
+ buf.push_back(get_byte(j+1, cert_size));
+ buf += raw_cert;
}
u32bit buf_size = buf.size() - 3;