diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f842ce..b64d0f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [1.1.3] - 08-03-2018 +### Fixes +- Issue 11 - (AES) Invalid padding when input is equal to block size + ## [1.1.2] - 28-02-2018 ### Fixes - Fix crash with invalid msg from zlib diff --git a/CMakeLists.txt b/CMakeLists.txt index 14ca0af..fd8147d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,8 @@ option (test_main_header "Test main header (mine.h)" OFF) option (test_wstring_conversions "Test std::wstring (wchar_t*) conversions for encodings" ON) -set (MINE_VERSION "1.1.2") ## Also update build.php -set (MINE_SOVERSION "1.1.2") +set (MINE_VERSION "1.1.3") ## Also update build.php +set (MINE_SOVERSION "1.1.3") add_definitions (-DMINE_VERSION="${MINE_VERSION}") @@ -28,29 +28,6 @@ install(FILES include(FindPackageHandleStandardArgs) -# We need C++11 -macro(require_cpp11) - if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.0) - # CMake 3.1 has built-in CXX standard checks. - message("-- Setting C++11") - set(CMAKE_CXX_STANDARD 11) - set(CMAKE_CXX_STANDARD_REQUIRED on) - else() - if (CMAKE_CXX_COMPILER_ID MATCHES "GCC") - message ("-- GNU CXX (-std=c++11)") - list(APPEND CMAKE_CXX_FLAGS "-std=c++11") - elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") - message ("-- CLang CXX (-std=c++11)") - list(APPEND CMAKE_CXX_FLAGS "-std=c++11") - elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU") - message ("-- GNU CXX (-std=c++11)") - list(APPEND CMAKE_CXX_FLAGS "-std=c++11") - else() - message ("-- Requires C++11. Your compiler does not support it.") - endif() - endif() -endmacro() - # http://www.cmake.org/Wiki/CMake_RPATH_handling#Mac_OS_X_and_the_RPATH if (APPLE) set(CMAKE_MACOSX_RPATH ON) @@ -64,9 +41,7 @@ if (APPLE) endif() endif() -list (APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -Wunused ") - -require_cpp11() +list (APPEND CMAKE_CXX_FLAGS " -Wall -Wextra -Wunused -std=c++11 -O3 -L/usr/local/lib/ ") # Check for cryptopp (static) set(CryptoPP_USE_STATIC_LIBS ON) @@ -127,13 +102,14 @@ install (TARGETS mine-cli DESTINATION bin) ########################################## Unit Testing ################################### +set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") # Check for Easylogging++ find_package(EASYLOGGINGPP REQUIRED) include_directories (${EASYLOGGINGPP_INCLUDE_DIR}) find_package (gtest REQUIRED) -include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) +include_directories(${GTEST_INCLUDE_DIRS}) enable_testing() diff --git a/build.php b/build.php index fa82e97..ff8e426 100644 --- a/build.php +++ b/build.php @@ -6,7 +6,7 @@ /// modules for ease of development /// -$lib_version = "1.1.2"; +$lib_version = "1.1.3"; $header_template = <<