Skip to content

Commit d1dd98d

Browse files
authored
Merge pull request #4 from wsjcpp/version-0.1.2
Version 0.1.2
2 parents 2d2840b + 56fc028 commit d1dd98d

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-19
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
All notable changes to wsjcpp-hashes project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [v0.1.2] - 2020-09-12 (2020 Sep 12)
9+
10+
### Security
11+
12+
- Fixed alerts by lgtm
13+

src.wsjcpp/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Automaticly generated by wsjcpp@v0.1.6
1+
# Automaticly generated by wsjcpp@v0.2.1
22
cmake_minimum_required(VERSION 3.0)
33

4-
add_definitions(-DWSJCPP_APP_VERSION="v0.1.1")
4+
add_definitions(-DWSJCPP_APP_VERSION="v0.1.2")
55
add_definitions(-DWSJCPP_APP_NAME="wsjcpp-hashes")
66

77
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

src/md5.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ std::string MD5::hexdigest() const
347347

348348
//////////////////////////////
349349

350-
std::ostream& operator<<(std::ostream& out, MD5 md5)
350+
std::ostream& operator<<(std::ostream& out, const MD5 &md5)
351351
{
352352
return out << md5.hexdigest();
353353
}

src/smallsha1.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace sha1
3939
namespace // local
4040
{
4141
// Rotate an integer value to left.
42-
inline const unsigned int rol(const unsigned int value,
42+
inline unsigned int rol(const unsigned int value,
4343
const unsigned int steps)
4444
{
4545
return ((value << steps) | (value >> (32 - steps)));

unit-tests.wsjcpp/CMakeLists.txt

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Automaticly generated by wsjcpp@v0.1.6
1+
# Automaticly generated by wsjcpp@v0.2.1
22
cmake_minimum_required(VERSION 3.0)
33

44
project(unit-tests C CXX)
5-
add_definitions(-DWSJCPP_APP_VERSION="ut-v0.1.1")
5+
add_definitions(-DWSJCPP_APP_VERSION="ut-v0.1.2")
66
add_definitions(-DWSJCPP_APP_NAME="unit-tests-wsjcpp-hashes")
77

88
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -27,7 +27,7 @@ list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests.cpp")
2727
list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests.h")
2828
list (APPEND WSJCPP_SOURCES "../src.wsjcpp/wsjcpp_core/wsjcpp_unit_tests_main.cpp")
2929

30-
# wsjcpp-hashes:v0.1.1
30+
# wsjcpp-hashes:v0.1.2
3131
list (APPEND WSJCPP_INCLUDE_DIRS "../src")
3232
list (APPEND WSJCPP_SOURCES "../src/md5.cpp")
3333
list (APPEND WSJCPP_SOURCES "../src/md5.h")
@@ -38,9 +38,7 @@ list (APPEND WSJCPP_SOURCES "../src/wsjcpp_hashes.h")
3838

3939
# unit-tests
4040
list (APPEND WSJCPP_INCLUDE_DIRS "src")
41-
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_md5.h")
4241
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_md5.cpp")
43-
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_sha1.h")
4442
list (APPEND WSJCPP_SOURCES "../unit-tests.wsjcpp/src/unit_test_sha1.cpp")
4543

4644
include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.user-custom.txt)
@@ -52,11 +50,3 @@ add_executable ("unit-tests" ${WSJCPP_SOURCES})
5250

5351
target_link_libraries("unit-tests" -lpthread ${WSJCPP_LIBRARIES} )
5452

55-
install(
56-
TARGETS
57-
"unit-tests"
58-
RUNTIME DESTINATION
59-
/usr/bin
60-
)
61-
62-

unit-tests.wsjcpp/build_simple.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if [ ! -d tmp ]; then
4-
mkdir -p tmp
4+
mkdir -p tmp
55
fi
66

77
cd tmp

wsjcpp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_cxx_standard: 11
33
cmake_minimum_required: 3.0
44

55
name: wsjcpp-hashes
6-
version: v0.1.1
6+
version: v0.1.2
77
description: Small Collection of hashes
88
issues: https://github.com/wsjcpp/wsjcpp-hashes/issues
99

0 commit comments

Comments
 (0)