microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.
Other
1.32k stars 113 forks source link

Missing unsafe context/modifier when parsing SslGetCipherSuitePRFHashAlgorithm #1914

Open riverar opened 3 months ago

riverar commented 3 months ago

Placeholder issue. Hit an issue with this particular API, might be a ClangSharp bug but haven't fully investigated yet.

SECURITY_STATUS
WINAPI
SslGetCipherSuitePRFHashAlgorithm(
    _In_    NCRYPT_PROV_HANDLE hSslProvider,
    _In_    DWORD dwProtocol,
    _In_    DWORD dwCipherSuite,
    _In_    DWORD dwKeyType,
    _Out_writes_(NCRYPT_SSL_MAX_NAME_SIZE) 
            WCHAR szPRFHash[NCRYPT_SSL_MAX_NAME_SIZE],
    _In_    DWORD dwFlags);

results in

public delegate HRESULT SslGetCipherSuitePRFHashAlgorithmFn([NativeTypeName("NCRYPT_PROV_HANDLE")][In]UIntPtr hSslProvider, [NativeTypeName("DWORD")][In]uint dwProtocol, [NativeTypeName("DWORD")][In]uint dwCipherSuite, [NativeTypeName("DWORD")][In]uint dwKeyType, [NativeTypeName("WCHAR[64]")][NativeArrayInfo(CountConst = 64),Out]ushort* szPRFHash, [NativeTypeName("DWORD")][In]uint dwFlags);