Commit graph

15 commits

Author SHA1 Message Date
heinrich5991 b986e54039 Add the SHA256 cryptographic hash function
Use the OpenSSL implementation of SHA256 if it is supported, otherwise
fall back to a public domain one.
2019-03-08 02:22:57 +01:00
oy 993c21dff5
Merge pull request #2053 from heinrich5991/pr_fix_findfile
Fix `IStorage::FindFile` in case no CRC or size are specified
2019-03-07 19:29:31 +01:00
heinrich5991 00cfc4f205 Fix IStorage::FindFile in case no CRC or size are specified
Previously, it only returned files with CRC 0 and size 0 (so empty
files) in case you didn't specify CRC and size.

Also add some tests covering that behavior.
2019-03-07 13:05:47 +01:00
heinrich5991 fbdc6d69be Add a notification when files are not sorted in CMake
Would've solved the problem in #2039 faster.
2019-03-07 12:19:44 +01:00
heinrich5991 732b003b8d Add -msse2 to compile flags on x86 only if necessary 2019-02-10 19:14:04 +01:00
heinrich5991 ae36f37e83 Automatically download GTest on Windows 2019-02-10 17:00:08 +01:00
heinrich5991 97febe41ba Add status message for missing GTest 2019-02-10 17:00:08 +01:00
heinrich5991 48129f0fa7 Add possibility to test
This uses GTest as a test framework.
2019-02-10 17:00:08 +01:00
heinrich5991 ad0946df37 Add more hardening flags
- `-fcf-protection` to protect the targets of indirect jumps and
  function returns.
- `-D_GLIBCXX_ASSERTIONS` for bounds-check assertions in the STL.
- `-fstack-clash-protection` to protect against stacks overwriting each
  other.
- `-fstack-protector-strong` instead of `-fstack-protector-all` as it
  apparently gives basically the same benefits at less slowdown.

These flags were taken from
https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc/.
2019-02-03 23:22:40 +01:00
oy a9df25ee21
Merge pull request #2013 from heinrich5991/pr_circleci_cmake
Test CMake on CircleCI
2019-02-03 12:38:07 +01:00
heinrich5991 63d17483d2 Add automatic dependency download to CMake for Windows 2019-02-03 11:25:24 +01:00
heinrich5991 ce59e97724 Make versionsrv's dependency on nethash.cpp explicit 2019-02-03 02:27:19 +01:00
Ryozuki 34781eaa92
Remove the no longer used info.png from cmake 2019-01-25 00:20:56 +01:00
heinrich5991 d6510c8858 Don't hardcode freetype library path 2018-12-25 21:54:26 +01:00
heinrich5991 d2e39d2f50 Add CMake
(cherry picked from commit ee2afdac33)
2018-12-25 21:54:26 +01:00