botan.utils.version_

Version Information

Members

Functions

BOTAN_VERSION_CODE_FOR
long BOTAN_VERSION_CODE_FOR(ubyte a, ubyte b, ubyte c)
Undocumented in source. Be warned that the author may not have intended to support it.
versionDatestamp
uint versionDatestamp()

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 is not an official release, this function will return 0 instead.

versionMajor
uint versionMajor()

Get the major version number.

versionMinor
uint versionMinor()

Get the minor version number.

versionPatch
uint versionPatch()

Get the patch number.

versionString
string versionString()

Get a human-readable string identifying the version of Botan. No particular format should be assumed.

Static variables

BOTAN_VERSION_CODE
long BOTAN_VERSION_CODE;

Compare using BOTAN_VERSION_CODE_FOR, as in static assert (BOTAN_VERSION_CODE > BOTAN_VERSION_CODE_FOR(1,8,0), "Botan version too old");

Meta

License

Botan is released under the Simplified BSD License (see LICENSE.md)