diff options
author | Jack Lloyd <[email protected]> | 2017-12-06 05:34:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-06 05:34:39 -0500 |
commit | dd9b4462b1319719128fb20e2cbffcafd13b9b36 (patch) | |
tree | 72899758cad6ba8a95021fa80108da6ea50a3ce7 /src/lib/utils/version.h | |
parent | 5d101ca94e2a53ebd9313d35669320e87835c618 (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.h | 16 |
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 |