diff options
author | David Howells <dhowells@redhat.com> | 2011-08-31 17:46:56 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2011-08-31 17:46:56 +0100 |
commit | 64efa82d6f54eddac1f4d4f5bd8e6ceaba1a413b (patch) | |
tree | 028a152663e2278050e4f3827aa41a89b349abb0 /keyutils.h | |
parent | 3bed09463eb231069c41885da2ffd49ee0039cb9 (diff) | |
download | keyutils-64efa82d6f54eddac1f4d4f5bd8e6ceaba1a413b.tar.gz |
Store version info in library and allow it to be displayed
The package version number and build date are stored in the library in:
const char keyutils_version_string[];
const char keyutils_build_string[];
And are displayable with the programs built as part of it:
# keyctl --version
keyctl from keyutils-1.5.3 (Built 2011-08-24)
# request-key --version
request-key from keyutils-1.5.3 (Built 2011-08-24)
The DNS query resolver gets extended version information as it already has its
own version number:
# key.dns_resolver --version
version: 1.0 from keyutils-1.5.3 (2011-08-24)
(the keyutils version is simply appended to the original).
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'keyutils.h')
-rw-r--r-- | keyutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,9 @@ #include <stdint.h> +extern const char keyutils_version_string[]; +extern const char keyutils_build_string[]; + /* key serial number */ typedef int32_t key_serial_t; |