From 185c3ef016663ab8201878da7efab0a2cff0bcc7 Mon Sep 17 00:00:00 2001 From: Mike Battista <13860912+mikebattista@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:21:53 -0700 Subject: [PATCH] wincrypt.h metadata issues. Fixed #1963. --- .../WinSDK/Partitions/Security.Cryptography/main.cpp | 1 + generation/WinSDK/autoTypes.json | 2 +- scripts/ChangesSinceLastRelease.txt | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/generation/WinSDK/Partitions/Security.Cryptography/main.cpp b/generation/WinSDK/Partitions/Security.Cryptography/main.cpp index 13fc6c9d..9410d01e 100644 --- a/generation/WinSDK/Partitions/Security.Cryptography/main.cpp +++ b/generation/WinSDK/Partitions/Security.Cryptography/main.cpp @@ -1,5 +1,6 @@ #define SECURITY_WIN32 // For sspi.h #define QCC_OS_GROUP_WINDOWS +#define CERT_CHAIN_PARA_HAS_EXTRA_FIELDS #include "intrinfix.h" diff --git a/generation/WinSDK/autoTypes.json b/generation/WinSDK/autoTypes.json index a2f7de81..99240333 100644 --- a/generation/WinSDK/autoTypes.json +++ b/generation/WinSDK/autoTypes.json @@ -499,7 +499,7 @@ }, { "Name": "HCERTCHAINENGINE", - "ValueType": "IntPtr", + "ValueType": "DECLARE_HANDLE", "CloseApi": "CertFreeCertificateChainEngine", "InvalidHandleValues": [ -1, 0 ], "NativeTypedef": true diff --git a/scripts/ChangesSinceLastRelease.txt b/scripts/ChangesSinceLastRelease.txt index cd32a5b2..10f0a1b5 100644 --- a/scripts/ChangesSinceLastRelease.txt +++ b/scripts/ChangesSinceLastRelease.txt @@ -1302,3 +1302,12 @@ Windows.Win32.Security.Cryptography.Catalog.Apis.CryptCATCDFEnumMembersByCDFTagE # Added NativeArrayInfo for #1945. Windows.Win32.System.Services.Apis.StartServiceCtrlDispatcherA : lpServiceStartTable : [Const,In] => [Const,In,NativeArrayInfo] Windows.Win32.System.Services.Apis.StartServiceCtrlDispatcherW : lpServiceStartTable : [Const,In] => [Const,In,NativeArrayInfo] +# wincrypt.h metadata issues #1963 +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.dwRevocationFreshnessTime added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.dwStrongSignFlags added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.dwUrlRetrievalTimeout added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.fCheckRevocationFreshnessTime added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.pftCacheResync added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.pStrongSignPara added +Windows.Win32.Security.Cryptography.CERT_CHAIN_PARA.RequestedIssuancePolicy added +Windows.Win32.Security.Cryptography.HCERTCHAINENGINE.Value...System.IntPtr => System.Void*