aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/version.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-06 05:34:39 -0500
committerJack Lloyd <[email protected]>2017-12-06 05:34:39 -0500
commitdd9b4462b1319719128fb20e2cbffcafd13b9b36 (patch)
tree72899758cad6ba8a95021fa80108da6ea50a3ce7 /src/lib/utils/version.h
parent5d101ca94e2a53ebd9313d35669320e87835c618 (diff)
Add a new version function returning just the version without extras
Diffstat (limited to 'src/lib/utils/version.h')
-rw-r--r--src/lib/utils/version.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/utils/version.h b/src/lib/utils/version.h
index f82916607..fe59de625 100644
--- a/src/lib/utils/version.h
+++ b/src/lib/utils/version.h
@@ -24,9 +24,25 @@ namespace Botan {
*/
BOTAN_PUBLIC_API(2,0) std::string version_string();
+/**
+* Same as version_string() except returning a pointer to a statically
+* allocated string.
+* @return version string
+*/
BOTAN_PUBLIC_API(2,0) const char* version_cstr();
/**
+* Return a version string of the form "MAJOR.MINOR.PATCH" where
+* each of the values is an integer.
+*/
+BOTAN_PUBLIC_API(2,4) std::string short_version_string();
+
+/**
+* Same as version_short_string except returning a pointer to the string.
+*/
+BOTAN_PUBLIC_API(2,4) const char* short_version_cstr();
+
+/**
* Return the date this version of botan was released, in an integer of
* the form YYYYMMDD. For instance a version released on May 21, 2013
* would return the integer 20130521. If the currently running version