diff options
author | lloyd <[email protected]> | 2010-09-15 13:44:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-15 13:44:42 +0000 |
commit | 180c5358cb31e9c003cada3705bb30cf01732878 (patch) | |
tree | 951038dfaf2c33bcee5e27c4b1d2980eb35494a3 /src/cert/x509/x509_ext.cpp | |
parent | a9d0f37596e5413cae45f32740738c5c68abcce1 (diff) |
Update all uses of MemoryRegion::append to use either push_back or operator+=
Diffstat (limited to 'src/cert/x509/x509_ext.cpp')
-rw-r--r-- | src/cert/x509/x509_ext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cert/x509/x509_ext.cpp b/src/cert/x509/x509_ext.cpp index 3e51d1fa2..bb4bc1775 100644 --- a/src/cert/x509/x509_ext.cpp +++ b/src/cert/x509/x509_ext.cpp @@ -223,12 +223,12 @@ MemoryVector<byte> Key_Usage::encode_inner() const const u32bit unused_bits = low_bit(constraints) - 1; SecureVector<byte> der; - der.append(BIT_STRING); - der.append(2 + ((unused_bits < 8) ? 1 : 0)); - der.append(unused_bits % 8); - der.append((constraints >> 8) & 0xFF); + der.push_back(BIT_STRING); + der.push_back(2 + ((unused_bits < 8) ? 1 : 0)); + der.push_back(unused_bits % 8); + der.push_back((constraints >> 8) & 0xFF); if(constraints & 0xFF) - der.append(constraints & 0xFF); + der.push_back(constraints & 0xFF); return der; } |