# # # patch "m4/botan.m4" # from [fc801b657e392136b3308dfac89f34ecaa96df5d] # to [bb146cd55de685d93019400cdbbaf0eae60039e1] # # patch "sha1_engine.hh" # from [501948b43bba5a7b2dfdd8452070ec785fb736c9] # to [35cff54c2f8a7c8d3b210a513acf156404918832] # ============================================================ --- m4/botan.m4 fc801b657e392136b3308dfac89f34ecaa96df5d +++ m4/botan.m4 bb146cd55de685d93019400cdbbaf0eae60039e1 @@ -1,6 +1,6 @@ # Currently we accept botan version 1.6.3 and newer, limited to the # development branch 1.7, emitting a warning if the found botan is -# newer than 1.7.19. +# newer than 1.7.20. AC_DEFUN([MTN_FIND_BOTAN], [ @@ -36,7 +36,7 @@ AC_DEFUN([MTN_FIND_BOTAN], AC_PREPROC_IFELSE([ #include -#if BOTAN_VERSION_CODE > BOTAN_VERSION_CODE_FOR(1,7,19) +#if BOTAN_VERSION_CODE > BOTAN_VERSION_CODE_FOR(1,7,20) #error "Botan from the future" #endif], [botan_version_match=yes], ============================================================ --- sha1_engine.hh 501948b43bba5a7b2dfdd8452070ec785fb736c9 +++ sha1_engine.hh 35cff54c2f8a7c8d3b210a513acf156404918832 @@ -13,8 +13,14 @@ // This file defines the interface needed to implement a new SHA-1 engine, // which we will hook into Botan. -#include +#include +#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(1,7,20) + #include +#else + #include +#endif + typedef Botan::HashFunction * sha1_maker(); // Declare one of these objects as a private global in your extension module.