Skip to content

Commit

Permalink
v4.21-9613-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dnobori committed Apr 24, 2016
1 parent c0c1b91 commit 1e17c9b
Show file tree
Hide file tree
Showing 40 changed files with 246 additions and 52 deletions.
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ open-source. You can redistribute them and/or modify them under the terms of
the GNU General Public License version 2 as published by the Free Software
Foundation.

Copyright (c) 2012-2015 Daiyuu Nobori.
Copyright (c) 2012-2015 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2015 SoftEther Corporation.
Copyright (c) 2012-2016 Daiyuu Nobori.
Copyright (c) 2012-2016 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2016 SoftEther Corporation.
All Rights Reserved.
http://www.softether.org/

Expand Down
6 changes: 3 additions & 3 deletions LICENSE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ open-source. You can redistribute them and/or modify them under the terms of
the GNU General Public License version 2 as published by the Free Software
Foundation.

Copyright (c) 2012-2015 Daiyuu Nobori.
Copyright (c) 2012-2015 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2015 SoftEther Corporation.
Copyright (c) 2012-2016 Daiyuu Nobori.
Copyright (c) 2012-2016 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2016 SoftEther Corporation.
All Rights Reserved.
http://www.softether.org/

Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ http://www.softether-download.com/
We accept your patches by the acceptance policy:
http://www.softether.org/5-download/src/9.patch

Copyright (c) 2012-2015 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2016 SoftEther Project at University of Tsukuba, Japan.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
Expand Down
2 changes: 1 addition & 1 deletion README.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ http://www.softether-download.com/
We accept your patches by the acceptance policy:
http://www.softether.org/5-download/src/9.patch

Copyright (c) 2012-2015 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2016 SoftEther Project at University of Tsukuba, Japan.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
Expand Down
4 changes: 2 additions & 2 deletions centos/SOURCES/linux_32bit.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SoftEther VPN Source Code
#
# Copyright (c) 2012-2015 SoftEther VPN Project at University of Tsukuba, Japan.
# Copyright (c) 2012-2015 Daiyuu Nobori.
# Copyright (c) 2012-2016 SoftEther VPN Project at University of Tsukuba, Japan.
# Copyright (c) 2012-2016 Daiyuu Nobori.
# All Rights Reserved.
#
# http://www.softether.org/
Expand Down
4 changes: 2 additions & 2 deletions centos/SOURCES/linux_64bit.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SoftEther VPN Source Code
#
# Copyright (c) 2012-2015 SoftEther VPN Project at University of Tsukuba, Japan.
# Copyright (c) 2012-2015 Daiyuu Nobori.
# Copyright (c) 2012-2016 SoftEther VPN Project at University of Tsukuba, Japan.
# Copyright (c) 2012-2016 Daiyuu Nobori.
# All Rights Reserved.
#
# http://www.softether.org/
Expand Down
23 changes: 23 additions & 0 deletions src/BuildUtil/UnixBuildSoftwares.cs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,30 @@ public virtual StringWriter GenerateMakeFileForRelease(string srcDir)
#else
sr.WriteLine("\t@echo \"And please execute './vpncmd' to run the SoftEther VPN Command-Line Utility to configure {0}.\"", BuildHelper.GetSoftwareTitle(this.Software));
#endif
sr.WriteLine("\t@echo");
#if !BU_SOFTETHER
sr.WriteLine("\t@echo \"Of course, you can use the VPN Server Manager GUI Application for Windows on the other Windows PC in order to configure the {0} remotely.\"", BuildHelper.GetSoftwareTitle(this.Software));
#else
sr.WriteLine("\t@echo \"Of course, you can use the VPN Server Manager GUI Application for Windows / Mac OS X on the other Windows / Mac OS X computers in order to configure the {0} remotely.\"", BuildHelper.GetSoftwareTitle(this.Software));
#endif

#if !BU_SOFTETHER
#else
sr.WriteLine("\t@echo");
sr.WriteLine("\t@echo");
sr.WriteLine("\t@echo \"*** For Windows users ***\"");
sr.WriteLine("\t@echo \"You can download the SoftEther VPN Server Manager for Windows\"");
sr.WriteLine("\t@echo \"from the http://www.softether-download.com/ web site.\"");
sr.WriteLine("\t@echo \"This manager application helps you to completely and easily manage the VPN server services running in remote hosts.\"");
sr.WriteLine("\t@echo");
sr.WriteLine("\t@echo");
sr.WriteLine("\t@echo \"*** For Mac OS X users ***\"");
sr.WriteLine("\t@echo \"In April 2016 we released the SoftEther VPN Server Manager for Mac OS X.\"");
sr.WriteLine("\t@echo \"You can download it from the http://www.softether-download.com/ web site.\"");
sr.WriteLine("\t@echo \"VPN Server Manager for Mac OS X works perfectly as same as the traditional Windows versions. It helps you to completely and easily manage the VPN server services running in remote hosts.\"");
sr.WriteLine("\t@echo");
#endif


sr.WriteLine("\t@echo \"--------------------------------------------------------------------\"");
sr.WriteLine("\t@echo");
Expand Down
12 changes: 6 additions & 6 deletions src/Cedar/Cedar.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@


// Version number
#define CEDAR_VER 420
#define CEDAR_VER 421

// Build Number
#define CEDAR_BUILD 9608
#define CEDAR_BUILD 9613

// Beta number
//#define BETA_NUMBER 3
Expand All @@ -159,10 +159,10 @@
// Specifies the build date
#define BUILD_DATE_Y 2016
#define BUILD_DATE_M 4
#define BUILD_DATE_D 17
#define BUILD_DATE_HO 20
#define BUILD_DATE_MI 58
#define BUILD_DATE_SE 26
#define BUILD_DATE_D 24
#define BUILD_DATE_HO 15
#define BUILD_DATE_MI 39
#define BUILD_DATE_SE 17

// Tolerable time difference
#define ALLOW_TIMESTAMP_DIFF (UINT64)(3 * 24 * 60 * 60 * 1000)
Expand Down
34 changes: 33 additions & 1 deletion src/Cedar/Command.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,27 @@ void TtsWorkerThread(THREAD *thread, void *param)
{
ret = Recv(ts->Sock, recv_buf_data, buf_size, false);
}

if (ts->FirstSendTick == 0)
{
ts->FirstSendTick = now;
}
else
{
if (ts->FirstSendTick <= now)
{
if (ts->Span != 0)
{
UINT64 giveup_tick = ts->FirstSendTick + ts->Span * 3ULL + 180000ULL;

if (now > giveup_tick)
{
ret = 0;
}
}
}
}

break;

case 3:
Expand Down Expand Up @@ -1757,6 +1778,7 @@ void TtcThread(THREAD *thread, void *param)
bool ok = false;
UINT buf_size;
UCHAR *send_buf_data, *recv_buf_data;
IP ip_ret;
// Validate arguments
if (thread == NULL || param == NULL)
{
Expand Down Expand Up @@ -1786,10 +1808,13 @@ void TtcThread(THREAD *thread, void *param)

ok = true;

Zero(&ip_ret, sizeof(ip_ret));

for (i = 0;i < ttc->NumTcp;i++)
{
SOCK *s;
TTC_SOCK *ts = ZeroMalloc(sizeof(TTC_SOCK));
char target_host[MAX_SIZE];

ts->Id = i + 1;

Expand All @@ -1806,7 +1831,14 @@ void TtcThread(THREAD *thread, void *param)
ts->Download = ((i % 2) == 0) ? true : false;
}

s = ConnectEx2(ttc->Host, ttc->Port, 0, ttc->Cancel);
StrCpy(target_host, sizeof(target_host), ttc->Host);

if (IsZeroIp(&ip_ret) == false)
{
IPToStr(target_host, sizeof(target_host), &ip_ret);
}

s = ConnectEx4(target_host, ttc->Port, 0, ttc->Cancel, NULL, NULL, false, false, true, &ip_ret);

if (s == NULL)
{
Expand Down
1 change: 1 addition & 0 deletions src/Cedar/Command.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ struct TTS_SOCK
UINT64 SessionId; // Session ID
bool NoMoreSendData; // Flag not to send more data
UINT64 FirstRecvTick; // Time which the data has been received last
UINT64 FirstSendTick; // Time which the data has been sent last
UINT64 Span; // Period
};

Expand Down
22 changes: 20 additions & 2 deletions src/Cedar/SM.c
Original file line number Diff line number Diff line change
Expand Up @@ -16557,6 +16557,11 @@ void SmSaveKeyPairDlgInit(HWND hWnd, SM_SAVE_KEY_PAIR *s)
Check(hWnd, R_X509_AND_KEY, true);
}

if (MsIsWine())
{
Disable(hWnd, R_SECURE);
}

SmSaveKeyPairDlgUpdate(hWnd, s);
}

Expand Down Expand Up @@ -19350,8 +19355,13 @@ void SmConnectEx(HWND hWnd, SETTING *s, bool is_in_client)
Enable(hWnd, IDOK);
Enable(hWnd, B_ABOUT);
Enable(hWnd, IDCANCEL);
Enable(hWnd, B_SECURE_MANAGER);
Enable(hWnd, B_SELECT_SECURE);

if (MsIsWine() == false)
{
Enable(hWnd, B_SECURE_MANAGER);
Enable(hWnd, B_SELECT_SECURE);
}

Enable(hWnd, B_CERT_TOOL);
}

Expand Down Expand Up @@ -20150,6 +20160,12 @@ void SmMainDlgInit(HWND hWnd)

DlgFont(hWnd, IDOK, 10, true);

if (MsIsWine())
{
Disable(hWnd, B_SECURE_MANAGER);
Disable(hWnd, B_SELECT_SECURE);
}

Focus(hWnd, L_SETTING);

SmMainDlgUpdate(hWnd);
Expand Down Expand Up @@ -20479,6 +20495,8 @@ void SmMainDlg()
// Server Manager main process
void MainSM()
{
// MsgBoxEx(NULL, 0, L"MsIsWine: %u\n", MsIsWine());

if (sm->TempSetting == NULL)
{
// Open the main window
Expand Down
59 changes: 58 additions & 1 deletion src/Cedar/WinUi.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ WINUI_UPDATE *InitUpdateUi(wchar_t *title, char *name, char *family_name, UINT64
{
return NULL;
}
if (MsIsWine())
{
return false;
}
if (IsEmptyStr(family_name))
{
family_name = UPDATE_FAMILY_NAME;
Expand Down Expand Up @@ -3143,9 +3147,57 @@ void InitDialogInternational(HWND hWnd, void *pparam)

if (hControl != NULL)
{
bool set_font = true;
HFONT hFont = GetDialogDefaultFontEx(param && ((DIALOG_PARAM *)param)->meiryo);

SetFont(hControl, 0, hFont);
if (MsIsWine())
{
char classname[MAX_PATH];
char parent_classname[MAX_PATH];
HWND hParent = GetParent(hControl);

Zero(classname, sizeof(classname));
Zero(parent_classname, sizeof(parent_classname));

GetClassNameA(hControl, classname, sizeof(classname));

if (hParent != NULL)
{
GetClassNameA(hParent, parent_classname, sizeof(parent_classname));
}

if (StrCmpi(classname, "edit") == 0)
{
set_font = false;
}

if (StrCmpi(classname, "combobox") == 0)
{
set_font = false;
}

if (StrCmpi(classname, "syslistview32") == 0)
{
set_font = false;
}

if (StrCmpi(classname, "sysheader32") == 0)
{
set_font = false;
}

if (StrCmpi(parent_classname, "SysIPAddress32") == 0 ||
StrCmpi(classname, "SysIPAddress32") == 0)
{
set_font = true;
hFont = GetFont("Tahoma", 8, false, false, false, false);
}
}

if (set_font)
{
SetFont(hControl, 0, hFont);
}

if (MsIsVista())
{
Expand Down Expand Up @@ -3727,6 +3779,11 @@ void AboutDlgInit(HWND hWnd, WINUI_ABOUT *a)

SetFont(hWnd, S_INFO3, GetFont("Arial", 7, false, false, false, false));

if (MsIsWine())
{
Disable(hWnd, B_LANGUAGE);
}

//DlgFont(hWnd, S_INFO4, 8, false);

SetShow(hWnd, B_UPDATE_CONFIG, (a->Update != NULL));
Expand Down
8 changes: 4 additions & 4 deletions src/CurrentBuild.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUILD_NUMBER 9608
VERSION 420
BUILD_NAME rtm
BUILD_DATE 20160417_205826
BUILD_NUMBER 9613
VERSION 421
BUILD_NAME beta
BUILD_DATE 20160424_153917
6 changes: 3 additions & 3 deletions src/LICENSE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ open-source. You can redistribute them and/or modify them under the terms of
the GNU General Public License version 2 as published by the Free Software
Foundation.

Copyright (c) 2012-2015 Daiyuu Nobori.
Copyright (c) 2012-2015 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2015 SoftEther Corporation.
Copyright (c) 2012-2016 Daiyuu Nobori.
Copyright (c) 2012-2016 SoftEther Project at University of Tsukuba, Japan.
Copyright (c) 2012-2016 SoftEther Corporation.
All Rights Reserved.
http://www.softether.org/

Expand Down
Loading

0 comments on commit 1e17c9b

Please sign in to comment.