aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/der_enc.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 11:32:10 +0200
committerSimon Warta <[email protected]>2015-06-27 11:18:13 +0200
commitd007082daa03ddebd124c38393f42793a1b50811 (patch)
tree04788426bbc4072024ae2d878c1c64830e9bc572 /src/lib/asn1/der_enc.h
parent105fb962ae525428c2385098abdf20bbf4382353 (diff)
lib/asn1: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/asn1/der_enc.h')
-rw-r--r--src/lib/asn1/der_enc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/asn1/der_enc.h b/src/lib/asn1/der_enc.h
index 0e96fea3b..dbb97d1aa 100644
--- a/src/lib/asn1/der_enc.h
+++ b/src/lib/asn1/der_enc.h
@@ -99,13 +99,13 @@ class BOTAN_DLL DER_Encoder
DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag,
const std::vector<byte>& rep)
{
- return add_object(type_tag, class_tag, &rep[0], rep.size());
+ return add_object(type_tag, class_tag, rep.data(), rep.size());
}
DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag,
const secure_vector<byte>& rep)
{
- return add_object(type_tag, class_tag, &rep[0], rep.size());
+ return add_object(type_tag, class_tag, rep.data(), rep.size());
}
DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag,