Santino Mazza : ncrypt: Add NCryptVerifySignature stub.

Alexandre Julliard julliard at winehq.org
Thu Feb 17 15:33:59 CST 2022


Module: wine
Branch: master
Commit: 12cb5d2efedebe1594a7fd8cb6fb4cad804f20fa
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=12cb5d2efedebe1594a7fd8cb6fb4cad804f20fa

Author: Santino Mazza <mazzasantino1206 at gmail.com>
Date:   Thu Feb 17 11:06:32 2022 +0100

ncrypt: Add NCryptVerifySignature stub.

With this change now some applications which uses ncrypt for
signature validation work.
For example, the visual studio installer (using dotnet from winetricks).

Signed-off-by: Santino Mazza <mazzasantino1206 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ncrypt/main.c      | 8 ++++++++
 dlls/ncrypt/ncrypt.spec | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c
index 2c2a0dc6f56..8e789573924 100644
--- a/dlls/ncrypt/main.c
+++ b/dlls/ncrypt/main.c
@@ -367,3 +367,11 @@ SECURITY_STATUS WINAPI NCryptSetProperty(NCRYPT_HANDLE handle, const WCHAR *name
 
     return set_object_property(object, name, input, insize);
 }
+
+SECURITY_STATUS WINAPI NCryptVerifySignature(NCRYPT_KEY_HANDLE handle, void *padding, BYTE *hash, DWORD hash_size,
+                                             BYTE *signature, DWORD signature_size, DWORD flags)
+{
+    FIXME("(%#Ix, %p, %p, %lu, %p, %lu, %#lx): stub\n", handle, padding, hash, hash_size, signature,
+          signature_size, flags);
+    return ERROR_SUCCESS;
+}
diff --git a/dlls/ncrypt/ncrypt.spec b/dlls/ncrypt/ncrypt.spec
index 0e92609790c..bb914616373 100644
--- a/dlls/ncrypt/ncrypt.spec
+++ b/dlls/ncrypt/ncrypt.spec
@@ -101,7 +101,7 @@
 @ stub NCryptUnprotectKey
 @ stub NCryptUnprotectSecret
 @ stub NCryptVerifyClaim
-@ stub NCryptVerifySignature
+@ stdcall NCryptVerifySignature(ptr ptr ptr long ptr long long)
 @ stub SslChangeNotify
 @ stub SslComputeClientAuthHash
 @ stub SslComputeEapKeyBlock




More information about the wine-cvs mailing list