Ilya Shipitsin
080edcdb81
v5.01.9662
...
Signed-off-by: Ilya Shipitsin <chipitsine@gmail.com>
2018-10-30 16:47:37 +00:00
Ilya Shipitsin
8da2464831
Merge pull request #781 from chipitsine/BN_free
...
Merge PR #781 : src/Mayaqua/Encrypt.c: fix memory leak occasionally found by valgrind
2018-10-29 14:22:45 +05:00
Ilya Shipitsin
5e75a1fb99
src/Mayaqua/Encrypt.c: fix memory leak occasionally found by valgrind
2018-10-29 10:52:56 +05:00
Daiyuu Nobori
4e4db36c11
Fix a single memory leak in loading the string table.
2018-10-29 14:48:15 +09:00
Ilya Shipitsin
292670cfa2
vpntest: return non zero on invalid syntax
2018-10-27 09:55:42 +05:00
Davide Beatrici
c1f522c10e
CMake: add support for Windows (Visual C++ 2017 toolset)
2018-10-24 21:25:57 +02:00
Davide Beatrici
5fe90bb180
hamcorebuilder: include all files on Windows
2018-10-24 21:21:36 +02:00
Ilya Shipitsin
97393bbe45
CMake: change ${CMAKE_SOURCE_DIR}/tmp with ${CMAKE_BINARY_DIR}
2018-10-24 23:47:17 +05:00
Ilya Shipitsin
e50cf278cd
CMake: add dynamic libraries to RPATH
...
Fixes #766
2018-10-24 00:32:41 +05:00
Ilya Shipitsin
5b11e6bffd
fix typo issued by the previous commit
2018-10-22 22:22:08 +05:00
Ilya Shipitsin
a6ac9456b5
v5.01.9661
2018-10-22 21:57:21 +05:00
Ilya Shipitsin
139fffe6e0
adjust systemd paths according to installation path
2018-10-22 10:55:12 +05:00
Davide Beatrici
b72292edd1
Try to fix macOS build
2018-10-20 13:31:45 +02:00
Davide Beatrici
3429e1bf31
CMake: build Cedar and Mayaqua as shared libraries, create "common" package
2018-10-20 13:12:49 +02:00
Ilya Shipitsin
cf6eef4841
Merge pull request #757 from davidebeatrici/cmake-no-build-subdirectories
...
Merge PR #757 : CMake: build all targets in the same directory, so that "hamcore.se2" doesn't have to be copied for each of them
2018-10-19 18:09:53 +05:00
Davide Beatrici
99a029c7c4
Merge PR #759 : Protocol.c: fix crash with OpenVPN when the certificate's common name is empty
2018-10-18 22:24:37 +02:00
Davide Beatrici
f061557aad
Protocol.c: fix crash with OpenVPN when the certificate's common name is empty
2018-10-18 21:21:37 +02:00
Davide Beatrici
8173eb4509
CMake: build all targets in the same directory, so that "hamcore.se2" doesn't have to be copied for each of them
2018-10-18 02:02:17 +02:00
Ilya Shipitsin
63513259c0
src/Cedar/Logging.c: clean compiler warning
...
warning: zero-length gnu_printf format string [-Wformat-zero-length]
2018-10-17 15:31:36 +05:00
Davide Beatrici
91c5d5feb8
Cedar/Bridge.c: fix NULL pointer dereference in GetEthDeviceHash()
2018-10-16 04:40:22 +02:00
Ilya Shipitsin
2d3469909b
release v5.01.9660
2018-10-15 14:26:01 +05:00
Ilya Shipitsin
68f1260f2c
src/Mayaqua/MayaType.h: fix extra bracket
...
reported by @paskal
2018-10-14 20:40:28 +05:00
Davide Beatrici
e496f33455
Memory.c: fix pointer cast in TrackChangeObjSize() call
...
This commit fixes the "TrackDeleteObj: 0x12345678 is not Object!!" (where 0x12345678 is the actual address) errors with memcheck enabled.
It also fixes the following related warnings:
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
TrackChangeObjSize((DWORD)addr, size, (DWORD)new_addr);
^
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
TrackChangeObjSize((DWORD)addr, size, (DWORD)new_addr);
^
2018-10-14 07:51:53 +02:00
Davide Beatrici
ec7a9d7281
MayaType.h: fix pointer casting warnings
...
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define POINTER_TO_KEY(p) ((sizeof(void *) == sizeof(UINT)) ? (UINT)(p) : HashPtrToUINT(p))
^
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define UINT64_TO_POINTER(i) ((sizeof(void *) == sizeof(UINT64)) ? (void *)(i) : (void *)((UINT)(i)))
^
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define POINTER_TO_UINT64(p) (((sizeof(void *) == sizeof(UINT64)) ? (UINT64)(p) : (UINT64)((UINT)(p))))
^
2018-10-14 07:24:18 +02:00
Davide Beatrici
40cca2379e
hamcorebuilder.c: check for "_DEBUG" macro and don't enable memcheck
2018-10-14 03:19:12 +02:00
Ilya Shipitsin
c2600e64a5
Merge pull request #744 from chipitsine/12.04
...
Merge PR #744 : gitlab-ci: enable ubuntu 12.04 builds
2018-10-12 01:16:34 +05:00
Ilya Shipitsin
ec09309aa8
gitlab-ci: enable ubuntu 12.04 builds
2018-10-12 01:03:12 +05:00
Davide Beatrici
76f0b2d037
BuildAll.cmd: copy "ossl_static.pdb" where the linker expects it to be
2018-10-10 05:52:54 +02:00
Daiyuu Nobori
2748ac6df5
Added OpenSSL and zlib .pdb files for .lib for Windows.
2018-10-10 08:10:39 +09:00
Daiyuu Nobori
36ac327d7b
Fix VS2017 x64 debug OpenSSL libraries name. For backward compatibility, libcrypto.lib is stored as libeay32.lib, and libssl.lib is stored as ssleay32.lib.
2018-10-10 07:25:48 +09:00
Davide Beatrici
0e22adc598
Merge PR #739 : vpntest improvement: add Server Manager UI and Client Manager UI test
2018-10-09 19:47:33 +02:00
Davide Beatrici
6dcba8f492
Merge PR #738 : Upgrade Windows OpenSSL to 1.1.1, and also Visual Studio 2017 static link libraries support.
2018-10-09 19:45:38 +02:00
Ilya Shipitsin
a25fea0809
release 5.01.9659
2018-10-09 21:25:28 +05:00
Daiyuu Nobori
c000c2f1e0
vpntest improvement: add Server Manager UI and Client Manager UI test
2018-10-09 21:34:54 +09:00
Daiyuu Nobori
a77a98dc41
Added OpenSSL 1.1.1 and zlib's .lib files for Visual Studio 2017.
2018-10-09 21:20:09 +09:00
Daiyuu Nobori
58e659f33f
Add automatically generated files to .gitignore
2018-10-09 21:10:29 +09:00
Daiyuu Nobori
8df347c093
Added OpenSSL 1.1.1 .lib files for Visual Studio 2008.
2018-10-09 20:30:03 +09:00
Daiyuu Nobori
baff1b349c
Win32 OpenSSL Header File: Ver 1.0.2j -> Ver 1.1.1
2018-10-09 19:29:11 +09:00
Davide Beatrici
03d78693a3
Merge PR #735 : Debug flag and test mode improvements
2018-10-08 21:00:44 +02:00
Davide Beatrici
8ddd336c38
Merge PR #736 : vpntest project for programmers: runs VPN Server / VPN Client / VPN Bridge in test mode with full debug console output and memory leak checks
2018-10-08 06:33:47 +02:00
Daiyuu Nobori
ff85841dab
Fix MSBuild error.
2018-10-08 13:16:52 +09:00
Davide Beatrici
97d7f3fb05
Add "vpntest" to CMake
2018-10-08 05:10:54 +02:00
Daiyuu Nobori
8abcf3d0a9
Debug flag and test mode improvements
...
1. ifdef DEBUG -> defined(_DEBUG) || defined(DEBUG)
In VC++ compilers, the macro is "_DEBUG", not "DEBUG".
2. If set memcheck = true, the program will be vitally slow since it will log all malloc() / realloc() / free() calls to find the cause of memory leak.
For normal debug we set memcheck = false.
Please set memcheck = true if you want to test the cause of memory leaks.
2018-10-08 04:50:46 +02:00
Daiyuu Nobori
ee208dd6f0
Finally, the implementation of test code is completed! Ha ha ha
2018-10-08 11:50:11 +09:00
Daiyuu Nobori
2d76507561
Next, change the project name "Ham" to "vpntest" so every programmer will recognize easily it is a test program.
2018-10-08 11:19:39 +09:00
Daiyuu Nobori
0ce8ad7a2b
At first, restore "Ham" project. This reverts commit 24d23feacf
.
2018-10-08 11:13:48 +09:00
Davide Beatrici
9fa9f6cdc1
Mayaqua/Network.c: improve RecvFrom() and RecvFrom6()
...
This commit improves the RecvFrom() and RecvFrom6() functions by:
- Using the right data type for the struct size variable passed to recvfrom().
- Improving the arguments validation mechanism.
- Printing unhandled errors.
2018-10-08 03:21:10 +02:00
Davide Beatrici
afe994f252
Mayaqua/OS: improve UnixGetOsInfo() so that it retrieves info on recent Linux/BSD systems
2018-10-07 01:38:02 +02:00
Davide Beatrici
335e0503c9
Mayaqua/Str: add TrimQuotes() function to remove quotes from a string
2018-10-06 22:42:29 +02:00
Davide Beatrici
9970d6f657
Mayaqua/Memory: move and adapt entry list functions from Cedar/Proto_OpenVPN
2018-10-06 22:41:35 +02:00