microsoft / win32metadata

Tooling to generate metadata for Win32 APIs in the Windows SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing unsafe context/modifier when parsing SslGetCipherSuitePRFHashAlgorithm

riverar opened this issue · comments

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);