SspiExcludePackage function (sspi.h)

Creates a new identity structure that is a copy of the specified identity structure modified to exclude the specified security support provider (SSP).

Syntax

SECURITY_STATUS SEC_ENTRY SspiExcludePackage(
  [in]  PSEC_WINNT_AUTH_IDENTITY_OPAQUE AuthIdentity,
  [in]  PCWSTR                          pszPackageName,
  [out] PSEC_WINNT_AUTH_IDENTITY_OPAQUE *ppNewAuthIdentity
);

Parameters

[in] AuthIdentity

The identity structure to modify.

[in] pszPackageName

The SSP to exclude.

[out] ppNewAuthIdentity

The modified identity structure.

Return value

If the function succeeds, it returns SEC_E_OK.

If the function fails, it returns a nonzero error code.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header sspi.h
Library Secur32.lib
DLL SspiCli.dll