aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-29 14:02:37 +0200
committerSimon Warta <[email protected]>2015-06-30 10:38:23 +0200
commit1de5fc1419add86884df97580d7a2e745ad43bff (patch)
tree295eafb79cab7843888133abbad07fb983915520 /src/lib/asn1
parent8668ce8753b10e944bdc72b6e66d752759c7e710 (diff)
More changes for use with debug STL
Diffstat (limited to 'src/lib/asn1')
-rw-r--r--src/lib/asn1/ber_dec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/asn1/ber_dec.cpp b/src/lib/asn1/ber_dec.cpp
index e9133d50f..06543d9e7 100644
--- a/src/lib/asn1/ber_dec.cpp
+++ b/src/lib/asn1/ber_dec.cpp
@@ -220,7 +220,7 @@ BER_Object BER_Decoder::get_next_object()
size_t length = decode_length(source);
next.value.resize(length);
- if(source->read(&next.value[0], length) != length)
+ if(source->read(next.value.data(), length) != length)
throw BER_Decoding_Error("Value truncated");
if(next.type_tag == EOC && next.class_tag == UNIVERSAL)
@@ -254,7 +254,7 @@ BER_Decoder BER_Decoder::start_cons(ASN1_Tag type_tag,
BER_Object obj = get_next_object();
obj.assert_is_a(type_tag, ASN1_Tag(class_tag | CONSTRUCTED));
- BER_Decoder result(&obj.value[0], obj.value.size());
+ BER_Decoder result(obj.value.data(), obj.value.size());
result.parent = this;
return result;
}