Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ internal static partial SECURITY_STATUS SspiEncodeStringsAsAuthIdentity(
[LibraryImport(Interop.Libraries.SspiCli, SetLastError = true)]
internal static partial SECURITY_STATUS SetCredentialsAttributesW(
in CredHandle handlePtr,
long ulAttribute,
uint ulAttribute,
in SecPkgCred_ClientCertPolicy pBuffer,
long cbBuffer);
uint cbBuffer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ private static unsafe void AttachCertificateStore(SafeFreeCredentials cred, X509
clientCertPolicy.pwszSslCtlStoreName = ptr;
Interop.SECURITY_STATUS errorCode = Interop.SspiCli.SetCredentialsAttributesW(
cred._handle,
(long)Interop.SspiCli.ContextAttribute.SECPKG_ATTR_CLIENT_CERT_POLICY,
(uint)Interop.SspiCli.ContextAttribute.SECPKG_ATTR_CLIENT_CERT_POLICY,
clientCertPolicy,
sizeof(Interop.SspiCli.SecPkgCred_ClientCertPolicy));
(uint)sizeof(Interop.SspiCli.SecPkgCred_ClientCertPolicy));

if (errorCode != Interop.SECURITY_STATUS.OK)
{
Expand Down
Loading