From 084827e90154f3c534d50979f606c88f997ee669 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Wed, 25 May 2016 23:21:09 -0600 Subject: [PATCH] ncrypt: Add stub dll. Signed-off-by: Alex Henrie Signed-off-by: Austin English Signed-off-by: Alexandre Julliard --- configure | 2 + configure.ac | 1 + dlls/ncrypt/Makefile.in | 4 ++ dlls/ncrypt/main.c | 45 +++++++++++++ dlls/ncrypt/ncrypt.spec | 138 ++++++++++++++++++++++++++++++++++++++++ tools/make_specfiles | 4 ++ 6 files changed, 194 insertions(+) create mode 100644 dlls/ncrypt/Makefile.in create mode 100644 dlls/ncrypt/main.c create mode 100644 dlls/ncrypt/ncrypt.spec diff --git a/configure b/configure index 5abf6aee7fd..c1d1bf89df4 100755 --- a/configure +++ b/configure @@ -1246,6 +1246,7 @@ enable_msxml2 enable_msxml3 enable_msxml4 enable_msxml6 +enable_ncrypt enable_nddeapi enable_ndis_sys enable_netapi32 @@ -17882,6 +17883,7 @@ wine_fn_config_dll msxml3 enable_msxml3 clean wine_fn_config_test dlls/msxml3/tests msxml3_test clean wine_fn_config_dll msxml4 enable_msxml4 clean wine_fn_config_dll msxml6 enable_msxml6 clean +wine_fn_config_dll ncrypt enable_ncrypt wine_fn_config_dll nddeapi enable_nddeapi implib wine_fn_config_dll ndis.sys enable_ndis_sys wine_fn_config_dll netapi32 enable_netapi32 implib diff --git a/configure.ac b/configure.ac index f25c96585ea..e42e35df91f 100644 --- a/configure.ac +++ b/configure.ac @@ -3129,6 +3129,7 @@ WINE_CONFIG_DLL(msxml3,,[clean]) WINE_CONFIG_TEST(dlls/msxml3/tests,[clean]) WINE_CONFIG_DLL(msxml4,,[clean]) WINE_CONFIG_DLL(msxml6,,[clean]) +WINE_CONFIG_DLL(ncrypt) WINE_CONFIG_DLL(nddeapi,,[implib]) WINE_CONFIG_DLL(ndis.sys) WINE_CONFIG_DLL(netapi32,,[implib]) diff --git a/dlls/ncrypt/Makefile.in b/dlls/ncrypt/Makefile.in new file mode 100644 index 00000000000..d54b9218ee1 --- /dev/null +++ b/dlls/ncrypt/Makefile.in @@ -0,0 +1,4 @@ +MODULE = ncrypt.dll + +C_SRCS = \ + main.c diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c new file mode 100644 index 00000000000..9c096004737 --- /dev/null +++ b/dlls/ncrypt/main.c @@ -0,0 +1,45 @@ +/* + * New cryptographic library (ncrypt.dll) + * + * Copyright 2016 Alex Henrie + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(ncrypt); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + TRACE("(%p, %u, %p)\n", instance, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} diff --git a/dlls/ncrypt/ncrypt.spec b/dlls/ncrypt/ncrypt.spec new file mode 100644 index 00000000000..1322f1e40c1 --- /dev/null +++ b/dlls/ncrypt/ncrypt.spec @@ -0,0 +1,138 @@ +@ stub BCryptAddContextFunction +@ stub BCryptAddContextFunctionProvider +@ stdcall BCryptCloseAlgorithmProvider(ptr long) bcrypt.BCryptCloseAlgorithmProvider +@ stub BCryptConfigureContext +@ stub BCryptConfigureContextFunction +@ stub BCryptCreateContext +@ stdcall BCryptCreateHash(ptr ptr ptr long ptr long long) bcrypt.BCryptCreateHash +@ stub BCryptDecrypt +@ stub BCryptDeleteContext +@ stub BCryptDeriveKey +@ stub BCryptDeriveKeyCapi +@ stub BCryptDeriveKeyPBKDF2 +@ stdcall BCryptDestroyHash(ptr) bcrypt.BCryptDestroyHash +@ stub BCryptDestroyKey +@ stub BCryptDestroySecret +@ stub BCryptDuplicateHash +@ stub BCryptDuplicateKey +@ stub BCryptEncrypt +@ stdcall BCryptEnumAlgorithms(long ptr ptr long) bcrypt.BCryptEnumAlgorithms +@ stub BCryptEnumContextFunctionProviders +@ stub BCryptEnumContextFunctions +@ stub BCryptEnumContexts +@ stub BCryptEnumProviders +@ stub BCryptEnumRegisteredProviders +@ stub BCryptExportKey +@ stub BCryptFinalizeKeyPair +@ stdcall BCryptFinishHash(ptr ptr long long) bcrypt.BCryptFinishHash +@ stub BCryptFreeBuffer +@ stdcall BCryptGenRandom(ptr ptr long long) bcrypt.BCryptGenRandom +@ stub BCryptGenerateKeyPair +@ stub BCryptGenerateSymmetricKey +@ stdcall BCryptGetFipsAlgorithmMode(ptr) bcrypt.BCryptGetFipsAlgorithmMode +@ stdcall BCryptGetProperty(ptr wstr ptr long ptr long) bcrypt.BCryptGetProperty +@ stdcall BCryptHash(ptr ptr long ptr long ptr long) bcrypt.BCryptHash +@ stdcall BCryptHashData(ptr ptr long long) bcrypt.BCryptHashData +@ stub BCryptImportKey +@ stub BCryptImportKeyPair +@ stub BCryptKeyDerivation +@ stdcall BCryptOpenAlgorithmProvider(ptr wstr wstr long) bcrypt.BCryptOpenAlgorithmProvider +@ stub BCryptQueryContextConfiguration +@ stub BCryptQueryContextFunctionConfiguration +@ stub BCryptQueryContextFunctionProperty +@ stub BCryptQueryProviderRegistration +@ stub BCryptRegisterConfigChangeNotify +@ stub BCryptRegisterProvider +@ stub BCryptRemoveContextFunction +@ stub BCryptRemoveContextFunctionProvider +@ stub BCryptResolveProviders +@ stub BCryptSecretAgreement +@ stub BCryptSetAuditingInterface +@ stub BCryptSetContextFunctionProperty +@ stub BCryptSetProperty +@ stub BCryptSignHash +@ stub BCryptUnregisterConfigChangeNotify +@ stub BCryptUnregisterProvider +@ stub BCryptVerifySignature +@ stub GetIsolationServerInterface +@ stub GetKeyStorageInterface +@ stub GetSChannelInterface +@ stub NCryptCloseKeyProtector +@ stub NCryptCloseProtectionDescriptor +@ stub NCryptCreateClaim +@ stub NCryptCreatePersistedKey +@ stub NCryptCreateProtectionDescriptor +@ stub NCryptDecrypt +@ stub NCryptDeleteKey +@ stub NCryptDeriveKey +@ stub NCryptDuplicateKeyProtectorHandle +@ stub NCryptEncrypt +@ stub NCryptEnumAlgorithms +@ stub NCryptEnumKeys +@ stub NCryptEnumStorageProviders +@ stub NCryptExportKey +@ stub NCryptFinalizeKey +@ stub NCryptFreeBuffer +@ stub NCryptFreeObject +@ stub NCryptGetProperty +@ stub NCryptGetProtectionDescriptorInfo +@ stub NCryptImportKey +@ stub NCryptIsAlgSupported +@ stub NCryptIsKeyHandle +@ stub NCryptKeyDerivation +@ stub NCryptNotifyChangeKey +@ stub NCryptOpenKey +@ stub NCryptOpenKeyProtector +@ stub NCryptOpenStorageProvider +@ stub NCryptProtectKey +@ stub NCryptProtectSecret +@ stub NCryptQueryProtectionDescriptorName +@ stub NCryptRegisterProtectionDescriptorName +@ stub NCryptSecretAgreement +@ stub NCryptSetAuditingInterface +@ stub NCryptSetProperty +@ stub NCryptSignHash +@ stub NCryptStreamClose +@ stub NCryptStreamOpenToProtect +@ stub NCryptStreamOpenToUnprotect +@ stub NCryptStreamOpenToUnprotectEx +@ stub NCryptStreamUpdate +@ stub NCryptTranslateHandle +@ stub NCryptUnprotectKey +@ stub NCryptUnprotectSecret +@ stub NCryptVerifyClaim +@ stub NCryptVerifySignature +@ stub SslChangeNotify +@ stub SslComputeClientAuthHash +@ stub SslComputeEapKeyBlock +@ stub SslComputeFinishedHash +@ stub SslComputeSessionHash +@ stub SslCreateClientAuthHash +@ stub SslCreateEphemeralKey +@ stub SslCreateHandshakeHash +@ stub SslDecrementProviderReferenceCount +@ stub SslDecryptPacket +@ stub SslEncryptPacket +@ stub SslEnumCipherSuites +@ stub SslEnumEccCurves +@ stub SslEnumProtocolProviders +@ stub SslExportKey +@ stub SslExportKeyingMaterial +@ stub SslFreeBuffer +@ stub SslFreeObject +@ stub SslGenerateMasterKey +@ stub SslGeneratePreMasterKey +@ stub SslGenerateSessionKeys +@ stub SslGetCipherSuitePRFHashAlgorithm +@ stub SslGetKeyProperty +@ stub SslGetProviderProperty +@ stub SslHashHandshake +@ stub SslImportKey +@ stub SslImportMasterKey +@ stub SslIncrementProviderReferenceCount +@ stub SslLookupCipherLengths +@ stub SslLookupCipherSuiteInfo +@ stub SslOpenPrivateKey +@ stub SslOpenProvider +@ stub SslSignHash +@ stub SslVerifySignature diff --git a/tools/make_specfiles b/tools/make_specfiles index 774687ee08c..feb65b4e123 100755 --- a/tools/make_specfiles +++ b/tools/make_specfiles @@ -289,6 +289,10 @@ my @dll_groups = "sfc_os", "sfc", ], + [ + "bcrypt", + "ncrypt", + ], ); my $update_flags = 0;