diff options
author | lloyd <[email protected]> | 2007-03-08 00:28:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-03-08 00:28:01 +0000 |
commit | 74a8b86758a4a0b1c8a6471a13ebcf94fe24343e (patch) | |
tree | 8eab4f254e259a9d0a53925d03a6e4c921b2d4af /src/base.cpp | |
parent | bbd20f37f6bb4fde0b36fe3ceddaedb531c2562f (diff) |
Move the version query code out of base.cpp and into version.cpp; I have
a feeling I may want to perform automated source changes to the version
strings (eg, to insert a monotone revision ID), but I'd just as soon
perform such operations on as small a file as possible to limit any
damage that might occur due to a source code rewriting script gone awry.
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/base.cpp b/src/base.cpp index 522a5563b..3afa9e6b1 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -5,7 +5,6 @@ #include <botan/base.h> #include <botan/version.h> -#include <botan/parsing.h> #include <botan/util.h> #include <botan/config.h> @@ -243,21 +242,4 @@ u32bit RandomNumberGenerator::add_entropy(EntropySource& source, return entropy_estimate(buffer, bytes_gathered); } -/************************************************* -* 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 parts of the version as integers * -*************************************************/ -u32bit version_major() { return BOTAN_VERSION_MAJOR; } -u32bit version_minor() { return BOTAN_VERSION_MINOR; } -u32bit version_patch() { return BOTAN_VERSION_PATCH; } - } |