aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base/scan_name.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/base/scan_name.h')
-rw-r--r--src/lib/base/scan_name.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/base/scan_name.h b/src/lib/base/scan_name.h
index 8aa45f50f..6194392f3 100644
--- a/src/lib/base/scan_name.h
+++ b/src/lib/base/scan_name.h
@@ -36,7 +36,12 @@ class BOTAN_PUBLIC_API(2,0) SCAN_Name final
/**
* @return original input string
*/
- const std::string& as_string() const { return m_orig_algo_spec; }
+ const std::string& to_string() const { return m_orig_algo_spec; }
+
+ const std::string& BOTAN_DEPRECATED("Use SCAN_Name::to_string") as_string() const
+ {
+ return this->to_string();
+ }
/**
* @return algorithm name