1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-27 03:49:52 +03:00
Commit Graph

1386 Commits

Author SHA1 Message Date
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
da8cd6a10d
Merge PR #734: Mayaqua/Network.c: improve RecvFrom() and RecvFrom6() 2018-10-08 03:53:10 +02: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
66b906378f
Merge PR #733: Mayaqua/OS: improve UnixGetOsInfo() so that it retrieves info on recent Linux/BSD systems 2018-10-07 04:39:09 +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
Davide Beatrici
2271bf5fba
Merge PR #730: Add string for "IF_TYPE_PROP_VIRTUAL" network interface type 2018-10-03 09:26:05 +02:00
Davide Beatrici
e02237f397 Add string for "IF_TYPE_PROP_VIRTUAL" network interface type 2018-10-03 09:10:27 +02:00
Davide Beatrici
c5c1403f46
Merge PR #729: legal.txt: remove unneeded text 2018-10-03 08:40:32 +02:00
Davide Beatrici
1f4d8c5a4b legal.txt: remove unneeded text 2018-10-03 08:17:46 +02:00
Davide Beatrici
01caded489
Merge PR #728: Copy authors file into "src/bin/hamcore" automatically 2018-10-03 07:41:27 +02:00
Davide Beatrici
e8050651c0 Copy authors file into "src/bin/hamcore" automatically 2018-10-03 07:24:42 +02:00
Davide Beatrici
750f583f41
Merge PR #727: AUTHORS.TXT: update contributors list using "git log --format='%aN <%aE>' | sort -f | uniq" 2018-10-03 06:18:00 +02:00
Davide Beatrici
3bd2cf34f7 AUTHORS.TXT: update contributors list using "git log --format='%aN <%aE>' | sort -f | uniq"
Email addresses ending with "@users.noreply.github.com" are replaced with the GitHub profile links.
2018-10-03 05:52:16 +02:00
Davide Beatrici
6717877231
Merge PR #726: AUTHORS.TXT: move development board members into a dedicated section 2018-10-02 02:10:59 +02:00
Davide Beatrici
69aef9c5f8 AUTHORS.TXT: move development board members into a dedicated section 2018-10-01 21:55:17 +02:00
Ilya Shipitsin
6144f45918 increased build number to 5.1.9658 2018-10-01 23:09:30 +05:00
Davide Beatrici
00f66616d2
Merge PR #721: Encrypt.c: fix MdProcess()'s HMAC implementation 2018-10-01 19:08:38 +02:00
Davide Beatrici
34f443c0c7
Merge PR #718: src/Cedar/BridgeUnix.c: resolve null pointer dereference 2018-09-29 23:30:28 +02:00
Davide Beatrici
05fecef6d8
Merge PR #725: BridgeUnix.c: enable local bridge function on all BSD systems 2018-09-28 23:11:20 +02:00
Ilya Shipitsin
564ca6087f src/Mayaqua/Object.c: remove redundant conditionals
found by PVS analyzer

src/Mayaqua/Object.c	318	warn	V547 Expression 'c->Ready == 0' is always false.
src/Mayaqua/Object.c	348	warn	V547 Expression 'c->Ready == 0' is always false.
src/Mayaqua/Object.c	383	warn	V547 Expression 'c->Ready == 0' is always false.
2018-09-29 00:39:01 +05:00
Davide Beatrici
34b8666df1
Merge PR #722: cmake: compare PROJECT_VERSION against src/CurrentBuild.txt 2018-09-28 21:00:21 +02:00
Davide Beatrici
aee6084b19 BridgeUnix.c: enable local bridge function on all BSD systems 2018-09-28 20:56:10 +02:00
Ilya Shipitsin
d4ac00855b cmake: compare PROJECT_VERSION against src/CurrentBuild.txt 2018-09-28 23:38:31 +05:00
Ilya Shipitsin
3110ca530e
Merge pull request #724 from dnobori/180928_fixbugs
Merge PR #724: Fix bugs reported by Coverity Scan.
2018-09-28 21:41:12 +05:00
Daiyuu Nobori
ee9990317b Fix bugs reported by Coverity Scan. 2018-09-28 22:39:38 +09:00
Ilya Shipitsin
60bb1c34de src/Cedar/BridgeUnix.c: resolve null pointer dereference
found by coverity
2018-09-28 16:17:20 +05:00
Davide Beatrici
53c8abfd80 Encrypt.c: fix MdProcess()'s HMAC implementation 2018-09-27 20:28:48 +02:00
Ilya Shipitsin
06c06f1db8
Merge pull request #717 from mogikanin/master
Merge PR #717: Added some output/obj folders to git ignore.
2018-09-26 18:07:49 +05:00
mogikanin
540aa96428 Added some output/obj folders to git ignore. 2018-09-26 10:19:12 +03:00
Ilya Shipitsin
6014ec8eb5
Merge pull request #716 from chipitsine/master
Merge PR #716: travis-ci: setup releases from tags
2018-09-26 09:51:11 +05:00
Ilya Shipitsin
433c72e978 travis-ci: setup releases from tags 2018-09-26 07:21:49 +05:00
Davide Beatrici
33f5de78ba
Merge PR #715: src/Cedar: resolve possible null pointer dereference and silence dead code warning 2018-09-24 20:35:47 +02:00
Ilya Shipitsin
1fdc712e66 src/Cedar/Client.c: silence coverity regarding dead code 2018-09-24 11:19:54 +05:00
Ilya Shipitsin
36dbde6f32 src/Cedar/Hub.c: resolve possible null pointer dereference
found by coverity
2018-09-24 11:13:43 +05:00
Davide Beatrici
f5bba7499d
Merge PR #712: travis-ci: run stbcheck utility 2018-09-23 20:17:34 +02:00
Ilya Shipitsin
cfd0022e61 travis-ci: run stbcheck utility 2018-09-23 22:54:57 +05:00
Davide Beatrici
bfb188df0d
Merge PR #714: fix localization files, missing strings were taken from "en" 2018-09-23 19:40:16 +02:00
Ilya Shipitsin
0f77b5e30e fix localization files, missing strings were taken from "en" 2018-09-23 22:24:21 +05:00
Davide Beatrici
f449b0b405
Merge PR #704: vpncmd: Added information about "Disable UDP Acceleration" setting into output of AccountGet command. 2018-09-23 17:05:45 +02:00
Davide Beatrici
4c0e562019
Merge PR #713: AppVeyor: add Ubuntu 16.04 and 18.04 builds 2018-09-23 13:44:39 +02:00
Davide Beatrici
a015cc04b6 AppVeyor: add Ubuntu 16.04 and 18.04 builds 2018-09-22 21:07:07 +02:00
Davide Beatrici
c1d81c0940
Merge PR #695: Revamp digest functions 2018-09-22 19:18:52 +02:00
Davide Beatrici
50b42070e2 Encrypt: reorder digest functions 2018-09-22 06:47:03 +02:00
Davide Beatrici
3f5f716357 Revamp digest functions
- Hash() has been removed because it was ambiguous, Md5() and Sha0() are proper replacements.
- HMacMd5() and HMacSha1() now share a common implementation handled by the new Internal_HMac() function.
- NewMd() and MdProcess() now support plain hashing (without the key).
- NewMd(), SetMdKey() and MdProcess() now check the OpenSSL functions' return value and in case of failure a debug message is printed along with the error string, if available.
- SetMdKey()'s return value has been changed from void to bool, so that it's possible to know whether the function succeeded or not.
- MdProcess()' return value has been changed from void to UINT (unsigned int) and the function now returns the number of bytes written by HMAC_Final() or EVP_DigestFinal_ex().
2018-09-22 06:36:09 +02:00