aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/asn1_time.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-03-01 09:00:47 -0500
committerJack Lloyd <[email protected]>2019-03-01 09:00:47 -0500
commit89b1838943e37b8f11b77f336691c9c6d250587b (patch)
treec113ee182197f7f54b58a6af00df3640a120ba04 /src/lib/asn1/asn1_time.cpp
parentff9174588a7ab7c1f7c2c88f24cb9a01dc6381f8 (diff)
s/as_string/to_string/
A few older APIs use as_string where everywhere else uses to_string. Add to_string's where missing, and deprecate X::as_string.
Diffstat (limited to 'src/lib/asn1/asn1_time.cpp')
-rw-r--r--src/lib/asn1/asn1_time.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/asn1/asn1_time.cpp b/src/lib/asn1/asn1_time.cpp
index 63b27c9d7..dcce45276 100644
--- a/src/lib/asn1/asn1_time.cpp
+++ b/src/lib/asn1/asn1_time.cpp
@@ -53,7 +53,7 @@ void X509_Time::decode_from(BER_Decoder& source)
std::string X509_Time::to_string() const
{
if(time_is_set() == false)
- throw Invalid_State("X509_Time::as_string: No time set");
+ throw Invalid_State("X509_Time::to_string: No time set");
uint32_t full_year = m_year;