mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:15:43 +00:00
bcrypt: Add some crypto-provider related stubs.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e5e556bf85
commit
76bc8d01c0
|
@ -1,5 +1,5 @@
|
||||||
@ stub BCryptAddContextFunction
|
@ stdcall BCryptAddContextFunction(long wstr long wstr long)
|
||||||
@ stub BCryptAddContextFunctionProvider
|
@ stdcall BCryptAddContextFunctionProvider(long wstr long wstr wstr long)
|
||||||
@ stdcall BCryptCloseAlgorithmProvider(ptr long)
|
@ stdcall BCryptCloseAlgorithmProvider(ptr long)
|
||||||
@ stub BCryptConfigureContext
|
@ stub BCryptConfigureContext
|
||||||
@ stub BCryptConfigureContextFunction
|
@ stub BCryptConfigureContextFunction
|
||||||
|
@ -39,9 +39,9 @@
|
||||||
@ stub BCryptQueryContextFunctionProperty
|
@ stub BCryptQueryContextFunctionProperty
|
||||||
@ stub BCryptQueryProviderRegistration
|
@ stub BCryptQueryProviderRegistration
|
||||||
@ stub BCryptRegisterConfigChangeNotify
|
@ stub BCryptRegisterConfigChangeNotify
|
||||||
@ stub BCryptRegisterProvider
|
@ stdcall BCryptRegisterProvider(wstr long ptr)
|
||||||
@ stub BCryptRemoveContextFunction
|
@ stdcall BCryptRemoveContextFunction(long wstr long wstr)
|
||||||
@ stub BCryptRemoveContextFunctionProvider
|
@ stdcall BCryptRemoveContextFunctionProvider(long wstr long wstr wstr)
|
||||||
@ stub BCryptResolveProviders
|
@ stub BCryptResolveProviders
|
||||||
@ stub BCryptSecretAgreement
|
@ stub BCryptSecretAgreement
|
||||||
@ stub BCryptSetAuditingInterface
|
@ stub BCryptSetAuditingInterface
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
@ stdcall BCryptSetProperty(ptr wstr ptr long long)
|
@ stdcall BCryptSetProperty(ptr wstr ptr long long)
|
||||||
@ stub BCryptSignHash
|
@ stub BCryptSignHash
|
||||||
@ stub BCryptUnregisterConfigChangeNotify
|
@ stub BCryptUnregisterConfigChangeNotify
|
||||||
@ stub BCryptUnregisterProvider
|
@ stdcall BCryptUnregisterProvider(wstr)
|
||||||
@ stub BCryptVerifySignature
|
@ stub BCryptVerifySignature
|
||||||
@ stub GetAsymmetricEncryptionInterface
|
@ stub GetAsymmetricEncryptionInterface
|
||||||
@ stub GetCipherInterface
|
@ stub GetCipherInterface
|
||||||
|
|
|
@ -122,6 +122,42 @@ static void gnutls_uninitialize(void)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_GNUTLS_CIPHER_INIT && !HAVE_COMMONCRYPTO_COMMONCRYPTOR_H */
|
#endif /* HAVE_GNUTLS_CIPHER_INIT && !HAVE_COMMONCRYPTO_COMMONCRYPTOR_H */
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptAddContextFunction(ULONG table, LPCWSTR context, ULONG iface, LPCWSTR function, ULONG pos)
|
||||||
|
{
|
||||||
|
FIXME("%08x, %s, %08x, %s, %u: stub\n", table, debugstr_w(context), iface, debugstr_w(function), pos);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptAddContextFunctionProvider(ULONG table, LPCWSTR context, ULONG iface, LPCWSTR function, LPCWSTR provider, ULONG pos)
|
||||||
|
{
|
||||||
|
FIXME("%08x, %s, %08x, %s, %s, %u: stub\n", table, debugstr_w(context), iface, debugstr_w(function), debugstr_w(provider), pos);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptRemoveContextFunction(ULONG table, LPCWSTR context, ULONG iface, LPCWSTR function)
|
||||||
|
{
|
||||||
|
FIXME("%08x, %s, %08x, %s: stub\n", table, debugstr_w(context), iface, debugstr_w(function));
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptRemoveContextFunctionProvider(ULONG table, LPCWSTR context, ULONG iface, LPCWSTR function, LPCWSTR provider)
|
||||||
|
{
|
||||||
|
FIXME("%08x, %s, %08x, %s, %s: stub\n", table, debugstr_w(context), iface, debugstr_w(function), debugstr_w(provider));
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptRegisterProvider(LPCWSTR provider, ULONG flags, PCRYPT_PROVIDER_REG reg)
|
||||||
|
{
|
||||||
|
FIXME("%s, %08x, %p: stub\n", debugstr_w(provider), flags, reg);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptUnregisterProvider(LPCWSTR provider)
|
||||||
|
{
|
||||||
|
FIXME("%s: stub\n", debugstr_w(provider));
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
|
NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
|
||||||
BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, ULONG dwFlags)
|
BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, ULONG dwFlags)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@ stub BCryptAddContextFunction
|
@ stdcall BCryptAddContextFunction(long wstr long wstr long) bcrypt.BCryptAddContextFunction
|
||||||
@ stub BCryptAddContextFunctionProvider
|
@ stdcall BCryptAddContextFunctionProvider(long wstr long wstr wstr long) bcrypt.BCryptAddContextFunctionProvider
|
||||||
@ stdcall BCryptCloseAlgorithmProvider(ptr long) bcrypt.BCryptCloseAlgorithmProvider
|
@ stdcall BCryptCloseAlgorithmProvider(ptr long) bcrypt.BCryptCloseAlgorithmProvider
|
||||||
@ stub BCryptConfigureContext
|
@ stub BCryptConfigureContext
|
||||||
@ stub BCryptConfigureContextFunction
|
@ stub BCryptConfigureContextFunction
|
||||||
|
@ -42,9 +42,9 @@
|
||||||
@ stub BCryptQueryContextFunctionProperty
|
@ stub BCryptQueryContextFunctionProperty
|
||||||
@ stub BCryptQueryProviderRegistration
|
@ stub BCryptQueryProviderRegistration
|
||||||
@ stub BCryptRegisterConfigChangeNotify
|
@ stub BCryptRegisterConfigChangeNotify
|
||||||
@ stub BCryptRegisterProvider
|
@ stdcall BCryptRegisterProvider(wstr long ptr) bcrypt.BCryptRegisterProvider
|
||||||
@ stub BCryptRemoveContextFunction
|
@ stdcall BCryptRemoveContextFunction(long wstr long wstr) bcrypt.BCryptRemoveContextFunction
|
||||||
@ stub BCryptRemoveContextFunctionProvider
|
@ stdcall BCryptRemoveContextFunctionProvider(long wstr long wstr wstr) bcrypt.BCryptRemoveContextFunctionProvider
|
||||||
@ stub BCryptResolveProviders
|
@ stub BCryptResolveProviders
|
||||||
@ stub BCryptSecretAgreement
|
@ stub BCryptSecretAgreement
|
||||||
@ stub BCryptSetAuditingInterface
|
@ stub BCryptSetAuditingInterface
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
@ stdcall BCryptSetProperty(ptr wstr ptr long long) bcrypt.BCryptSetProperty
|
@ stdcall BCryptSetProperty(ptr wstr ptr long long) bcrypt.BCryptSetProperty
|
||||||
@ stub BCryptSignHash
|
@ stub BCryptSignHash
|
||||||
@ stub BCryptUnregisterConfigChangeNotify
|
@ stub BCryptUnregisterConfigChangeNotify
|
||||||
@ stub BCryptUnregisterProvider
|
@ stdcall BCryptUnregisterProvider(wstr) bcrypt.BCryptUnregisterProvider
|
||||||
@ stub BCryptVerifySignature
|
@ stub BCryptVerifySignature
|
||||||
@ stub GetIsolationServerInterface
|
@ stub GetIsolationServerInterface
|
||||||
@ stub GetKeyStorageInterface
|
@ stub GetKeyStorageInterface
|
||||||
|
|
|
@ -94,6 +94,29 @@ typedef struct __BCRYPT_KEY_LENGTHS_STRUCT
|
||||||
ULONG dwIncrement;
|
ULONG dwIncrement;
|
||||||
} BCRYPT_KEY_LENGTHS_STRUCT;
|
} BCRYPT_KEY_LENGTHS_STRUCT;
|
||||||
|
|
||||||
|
typedef struct _CRYPT_INTERFACE_REG
|
||||||
|
{
|
||||||
|
ULONG dwInterface;
|
||||||
|
ULONG dwFlags;
|
||||||
|
ULONG cFunctions;
|
||||||
|
PWSTR *rgpszFunctions;
|
||||||
|
} CRYPT_INTERFACE_REG, *PCRYPT_INTERFACE_REG;
|
||||||
|
|
||||||
|
typedef struct _CRYPT_IMAGE_REG
|
||||||
|
{
|
||||||
|
PWSTR pszImage;
|
||||||
|
ULONG cInterfaces;
|
||||||
|
PCRYPT_INTERFACE_REG *rgpInterfaces;
|
||||||
|
} CRYPT_IMAGE_REG, *PCRYPT_IMAGE_REG;
|
||||||
|
|
||||||
|
typedef struct _CRYPT_PROVIDER_REG
|
||||||
|
{
|
||||||
|
ULONG cAliases;
|
||||||
|
PWSTR *rgpszAliases;
|
||||||
|
PCRYPT_IMAGE_REG pUM;
|
||||||
|
PCRYPT_IMAGE_REG pKM;
|
||||||
|
} CRYPT_PROVIDER_REG, *PCRYPT_PROVIDER_REG;
|
||||||
|
|
||||||
typedef PVOID BCRYPT_ALG_HANDLE;
|
typedef PVOID BCRYPT_ALG_HANDLE;
|
||||||
typedef PVOID BCRYPT_KEY_HANDLE;
|
typedef PVOID BCRYPT_KEY_HANDLE;
|
||||||
typedef PVOID BCRYPT_HANDLE;
|
typedef PVOID BCRYPT_HANDLE;
|
||||||
|
|
Loading…
Reference in a new issue