Skip to content

Commit

Permalink
Revert "Moved to OpenSSL 3.0 as OpenSSL 1.1.0 LTS is soon ending it's…
Browse files Browse the repository at this point in the history
… life."

This reverts commit 9bce04a.
  • Loading branch information
SorenRR committed Sep 1, 2023
1 parent 9bce04a commit 41b016d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
8 changes: 4 additions & 4 deletions hmailserver/installation/hMailServer.iss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[Setup]
AppName=hMailServer
AppVerName=hMailServer 5.6.9-B2607.82 (x86)
AppVerName=hMailServer 5.6.9-B2607.80 (x86)
AppCopyright=Copyright (C) 2023
DefaultDirName={pf}\hMailServer
DefaultGroupName=hMailServer
PrivilegesRequired=admin
OutputBaseFilename=hMailServer-5.6.9-B2607.82-(x86)
OutputBaseFilename=hMailServer-5.6.9-B2607.80-(x86)
SolidCompression=yes
WizardImageFile=setup.bmp
LicenseFile=license.rtf
Expand Down Expand Up @@ -75,8 +75,8 @@ Source: "System files\dnsapi.dll"; DestDir: "{sys}"; Flags: uninsneveruninstall
Source: "System files\ATL\atl70.dll"; DestDir: "{sys}"; Components: server;
Source: "SQLCE\SSCERuntime-ENU.msi"; Flags: deleteafterinstall ; Excludes: ".svn"; DestDir: "{tmp}"; Components: server;
Source: ".\Extras\7za.exe"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server;
Source: "..\..\..\Libs\openssl-3.0.10\out32\bin\libcrypto-3.dll"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server admintools;
Source: "..\..\..\Libs\openssl-3.0.10\out32\bin\libssl-3.dll"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server admintools;
Source: "..\..\..\Libs\openssl-1.1.1u\out32\bin\libcrypto-1_1.dll"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server admintools;
Source: "..\..\..\Libs\openssl-1.1.1u\out32\bin\libssl-1_1.dll"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server admintools;
Source: "Microsoft.VC120.CRT\*"; DestDir: "{app}\Bin"; Flags: ignoreversion; Components: server admintools;

; Main server
Expand Down
5 changes: 2 additions & 3 deletions hmailserver/source/Server/Common/AntiSpam/DKIM/DKIM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ namespace HM
void
DKIM::Initialize()
{
// Deprecated: OpenSSL_add_all_algorithms();
// Deprecated: ERR_load_crypto_strings();
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL);
OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();
ERR_load_EVP_strings();

recommendedHeaderFields_.push_back("From");
Expand Down
4 changes: 1 addition & 3 deletions hmailserver/source/Server/Common/Application/Version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define HMAILSERVER_VERSION "5.6.9"
#define HMAILSERVER_BUILD "2607.82 (x86)"
#define HMAILSERVER_BUILD "2607.80 (x86)"

/*
[list=1]
Expand Down Expand Up @@ -83,7 +83,5 @@
[*]Experiment: Remove .NET 2.0 requirement during install.
[*]Update hm_smtp_antivirus.php issue #471
[*]OpenSSL 1.1.1u compiled with "no-ssl2 no-ssl3" since we don't support them.
[*]OpenSSL 3.0.10 compiled with "--api=1.1.1 no-deprecated no-ssl3", removed "enable-weak-ssl-ciphers".
[*]Fix: Redefined deprecated OpenSSL calls in dkim.cpp.
[/list]
*/
16 changes: 8 additions & 8 deletions hmailserver/source/Server/hMailServer/hMailServer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ EXIT 0
</Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(hMailServerLibs)\boost_1_70_0;..\..\..\..\Libraries\mssqlce3.5;$(hMailServerLibs)\openssl-3.0.10\out32\include;..\..\..\..\Libraries\pgsql8.2.4\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(hMailServerLibs)\boost_1_70_0;..\..\..\..\Libraries\mssqlce3.5;$(hMailServerLibs)\openssl-1.1.1u\out32\include;..\..\..\..\Libraries\pgsql8.2.4\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;UNICODE;_UNICODE;BOOST_DATE_TIME_NO_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>false</MinimalRebuild>
<ExceptionHandling>Async</ExceptionHandling>
Expand All @@ -114,7 +114,7 @@ EXIT 0
<AdditionalDependencies>Adsiid.lib;activeds.lib;IPHlpAPI.lib;Dnsapi.lib;Ws2_32.lib;libpq.lib;libcrypto.lib;libssl.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<ShowProgress>NotSet</ShowProgress>
<OutputFile>$(OutDir)hMailServer.exe</OutputFile>
<AdditionalLibraryDirectories>$(hMailServerLibs)\boost_1_70_0\stage\lib;$(hMailServerLibs)\openssl-3.0.10\out32\lib;..\..\..\..\Libraries\pgsql8.2.4;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(hMailServerLibs)\boost_1_70_0\stage\lib;$(hMailServerLibs)\openssl-1.1.1u\out32\lib;..\..\..\..\Libraries\pgsql8.2.4;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AssemblyDebug>true</AssemblyDebug>
Expand All @@ -125,8 +125,8 @@ EXIT 0
</Link>
<PostBuildEvent>
<Message>Performing registration</Message>
<Command>xcopy /F /Y $(hMailServerLibs)\openssl-3.0.10\out32\bin\libcrypto-3.dll $(OutDir)
xcopy /F /Y $(hMailServerLibs)\openssl-3.0.10\out32\bin\libssl-3.dll $(OutDir)
<Command>xcopy /F /Y $(hMailServerLibs)\openssl-1.1.1u\out32\bin\libcrypto-1_1.dll $(OutDir)
xcopy /F /Y $(hMailServerLibs)\openssl-1.1.1u\out32\bin\libssl-1_1.dll $(OutDir)
"$(TargetPath)" /Register
</Command>
</PostBuildEvent>
Expand All @@ -151,7 +151,7 @@ EXIT 0
<ClCompile>
<AdditionalOptions>/MP
%(AdditionalOptions)</AdditionalOptions>
<AdditionalIncludeDirectories>$(hMailServerLibs)\boost_1_70_0;..\..\..\..\Libraries\mssqlce3.5;$(hMailServerLibs)\openssl-3.0.10\out32\include;..\..\..\..\Libraries\pgsql8.2.4\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(hMailServerLibs)\boost_1_70_0;..\..\..\..\Libraries\mssqlce3.5;$(hMailServerLibs)\openssl-1.1.1u\out32\include;..\..\..\..\Libraries\pgsql8.2.4\include;$(ProjectDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_WINDOWS;UNICODE;_UNICODE;NDEBUG;BOOST_DATE_TIME_NO_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ExceptionHandling>Async</ExceptionHandling>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
Expand All @@ -169,7 +169,7 @@ EXIT 0
<AdditionalOptions>/SAFESEH /ignore:4099 %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>libcrypto.lib;libssl.lib;Adsiid.lib;activeds.lib;IPHlpAPI.lib;Dnsapi.lib;Ws2_32.lib;libpq.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)hMailServer.exe</OutputFile>
<AdditionalLibraryDirectories>$(hMailServerLibs)\boost_1_70_0\stage\lib;$(hMailServerLibs)\openssl-3.0.10\out32\lib;..\..\..\..\Libraries\pgsql8.2.4;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(hMailServerLibs)\boost_1_70_0\stage\lib;$(hMailServerLibs)\openssl-1.1.1u\out32\lib;..\..\..\..\Libraries\pgsql8.2.4;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
Expand All @@ -180,8 +180,8 @@ EXIT 0
</Link>
<PostBuildEvent>
<Message>Performing registration</Message>
<Command>xcopy /F /Y $(hMailServerLibs)\openssl-3.0.10\out32\bin\libcrypto-3.dll $(OutDir)
xcopy /F /Y $(hMailServerLibs)\openssl-3.0.10\out32\bin\libssl-3.dll $(OutDir)
<Command>xcopy /F /Y $(hMailServerLibs)\openssl-1.1.1u\out32\bin\libcrypto-1_1.dll $(OutDir)
xcopy /F /Y $(hMailServerLibs)\openssl-1.1.1u\out32\bin\libssl-1_1.dll $(OutDir)
"$(TargetPath)" /Register
</Command>
</PostBuildEvent>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41b016d

Please sign in to comment.