aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-12 18:42:33 +0000
committerlloyd <[email protected]>2008-10-12 18:42:33 +0000
commit4a2d232f50a72ebf06e786b8f9b339dfd003f32e (patch)
tree50873df1d411243a54c5d4451573e7dbf88e5791 /src
parent9d70cbc14c9882128166c2f63f8113a167215c24 (diff)
Remove leading "Botan " from result of version_string
Add a comment explaining why these functions are compiled rather than inlined.
Diffstat (limited to 'src')
-rw-r--r--src/utils/version.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/utils/version.cpp b/src/utils/version.cpp
index 09deb53d6..3deed3149 100644
--- a/src/utils/version.cpp
+++ b/src/utils/version.cpp
@@ -8,14 +8,20 @@
namespace Botan {
+/*
+ These are intentionally compiled rather than inlined, so an
+ application running against a shared library can test the true
+ version they are running against.
+*/
+
/*************************************************
* Return the version as a string *
*************************************************/
std::string version_string()
{
- return "Botan " + to_string(version_major()) + "." +
- to_string(version_minor()) + "." +
- to_string(version_patch());
+ return to_string(version_major()) + "." +
+ to_string(version_minor()) + "." +
+ to_string(version_patch());
}
/*************************************************