Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing unsafe context/modifier when parsing SslGetCipherSuitePRFHashAlgorithm #1914

Open
riverar opened this issue May 29, 2024 · 0 comments

Comments

@riverar
Copy link
Collaborator

riverar commented May 29, 2024

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant