diff options
Diffstat (limited to 'src/asn1_oid.cpp')
-rw-r--r-- | src/asn1_oid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/asn1_oid.cpp b/src/asn1_oid.cpp index 875fd7e67..ad64f4602 100644 --- a/src/asn1_oid.cpp +++ b/src/asn1_oid.cpp @@ -120,20 +120,20 @@ void OID::encode_into(DER_Encoder& der) const throw Invalid_Argument("OID::encode_into: OID is invalid"); MemoryVector<byte> encoding; - encoding.push_back(40 * id[0] + id[1]); + encoding.append(40 * id[0] + id[1]); for(u32bit j = 2; j != id.size(); ++j) { if(id[j] == 0) - encoding.push_back(0); + encoding.append(0); else { u32bit blocks = high_bit(id[j]) + 6; blocks = (blocks - (blocks % 7)) / 7; for(u32bit k = 0; k != blocks - 1; ++k) - encoding.push_back(0x80 | ((id[j] >> 7*(blocks-k-1)) & 0x7F)); - encoding.push_back(id[j] & 0x7F); + encoding.append(0x80 | ((id[j] >> 7*(blocks-k-1)) & 0x7F)); + encoding.append(id[j] & 0x7F); } } der.add_object(OBJECT_ID, UNIVERSAL, encoding); |