Skip to content

Commit

Permalink
NCRYPT_SSL_FUNCTION_TABLE/SslGetCipherSuitePRFHashAlgorithmFn doesn't…
Browse files Browse the repository at this point in the history
… exist. Fixed #1925.
  • Loading branch information
mikebattista committed Jun 14, 2024
1 parent eebd555 commit c2b7ea9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 6 additions & 8 deletions generation/WinSDK/manual/Security.Cryptography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@

namespace Windows.Win32.Security.Cryptography
{
// Manually defined due to missing unsafe modifier during codegen pass
// https://github.com/microsoft/win32metadata/issues/1914
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
[return:NativeTypeName("SECURITY_STATUS")]
public unsafe 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);

public static unsafe partial class Apis
{
// Manually defined due to missing header definitions
// https://github.com/microsoft/win32metadata/issues/1605

[DllImport("BCryptPrimitives.dll", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
[return: NativeTypeName("BOOL")]
public static extern int SystemPrng([NativeTypeName("PUCHAR")][MemorySize(BytesParamIndex=1)][Out] byte* pbRandomData, [NativeTypeName("SIZE_T")] nuint cbRandomData);

[DllImport("BCryptPrimitives.dll", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
[return: NativeTypeName("BOOL")]
public static extern int ProcessPrng([NativeTypeName("PBYTE")][MemorySize(BytesParamIndex=1)][Out] byte* pbData, [NativeTypeName("SIZE_T")] nuint cbData);

// Manually defined due to missing unsafe modifier during codegen pass
// https://github.com/microsoft/win32metadata/issues/1914

[UnmanagedFunctionPointer(CallingConvention.Winapi)]
[return:NativeTypeName("SECURITY_STATUS")]
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);
}
}
2 changes: 2 additions & 0 deletions scripts/ChangesSinceLastRelease.txt
Original file line number Diff line number Diff line change
Expand Up @@ -893,3 +893,5 @@ Windows.Win32.Networking.WinSock.Apis.INADDR_ANY added
Windows.Win32.Networking.WinSock.Apis.INADDR_BROADCAST added
Windows.Win32.Networking.WinSock.Apis.SO_DONTLINGER added
Windows.Win32.Networking.WinSock.Apis.SO_EXCLUSIVEADDRUSE added
# Fixed #1925.
Windows.Win32.Security.Cryptography.SslGetCipherSuitePRFHashAlgorithmFn added

0 comments on commit c2b7ea9

Please sign in to comment.