aboutsummaryrefslogtreecommitdiffstats
path: root/checks/check.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-04-14 14:29:04 +0000
committerlloyd <[email protected]>2011-04-14 14:29:04 +0000
commit0cbd87ebafdda027104dde4bd3a68f7c5f1f6d73 (patch)
tree363532e1fdaf2188c5a3a9cc51a6a22f4043d94c /checks/check.cpp
parentfd3d36cd40bf84bf25602e069e44d52549517587 (diff)
Tick version numbers to 1.10.0
More documentation updates. The clean target wasn't removing one of the symlinks. In the self-test application, warn if the version we are linked against does not match the version we were built against. This always indicates a problem. Someone who had an older version installed on their system got very confused when the test app was linked against it at runtime; this warning would have saved a couple hours of puzzling by me. This would also have helped avoid the nasty bug in 1.8.3
Diffstat (limited to 'checks/check.cpp')
-rw-r--r--checks/check.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index e32f57ed7..4fa1160ae 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -100,6 +100,20 @@ void test_types()
int main(int argc, char* argv[])
{
+ if(BOTAN_VERSION_MAJOR != version_major() ||
+ BOTAN_VERSION_MINOR != version_minor() ||
+ BOTAN_VERSION_PATCH != version_patch())
+ {
+ std::cout << "Warning: linked version ("
+ << version_major() << '.'
+ << version_minor() << '.'
+ << version_patch()
+ << ") does not match version built against ("
+ << BOTAN_VERSION_MAJOR << '.'
+ << BOTAN_VERSION_MINOR << '.'
+ << BOTAN_VERSION_PATCH << ")\n";
+ }
+
try
{
OptionParser opts("help|test|validate|dyn-load=|"