aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/asn1_str.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-18 15:21:47 -0500
committerJack Lloyd <[email protected]>2018-01-18 15:21:47 -0500
commit915e840bd0f77d8c2cd526a5d26a88621708f6ca (patch)
treefa93421e12d31f92e55f50f115f3badd29960669 /src/lib/asn1/asn1_str.cpp
parente7b9733171835e0a91155589318fdd08b1c68113 (diff)
Prepare for making BER_Object members private
Now there are usable accessors that allow the library to avoid using BER_Object members directly.
Diffstat (limited to 'src/lib/asn1/asn1_str.cpp')
-rw-r--r--src/lib/asn1/asn1_str.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/asn1/asn1_str.cpp b/src/lib/asn1/asn1_str.cpp
index 8b9524de2..416e4f0ac 100644
--- a/src/lib/asn1/asn1_str.cpp
+++ b/src/lib/asn1/asn1_str.cpp
@@ -130,10 +130,10 @@ void ASN1_String::decode_from(BER_Decoder& source)
{
BER_Object obj = source.get_next_object();
- assert_is_string_type(obj.type_tag);
+ assert_is_string_type(obj.type());
- m_tag = obj.type_tag;
- m_data.assign(obj.value.begin(), obj.value.end());
+ m_tag = obj.type();
+ m_data.assign(obj.bits(), obj.bits() + obj.length());
if(m_tag == BMP_STRING)
{