aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/symkey.h
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/base/symkey.h
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/base/symkey.h')
-rw-r--r--src/lib/base/symkey.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/base/symkey.h b/src/lib/base/symkey.h
index a010cc466..69becdd4e 100644
--- a/src/lib/base/symkey.h
+++ b/src/lib/base/symkey.h
@@ -43,7 +43,12 @@ class BOTAN_PUBLIC_API(2,0) OctetString final
/**
* @return this encoded as hex
*/
- std::string as_string() const;
+ std::string to_string() const;
+
+ std::string BOTAN_DEPRECATED("Use OctetString::to_string") as_string() const
+ {
+ return this->to_string();
+ }
/**
* XOR the contents of another octet string into this one