SaslIdentifyPackageA function (sspi.h)

The SaslIdentifyPackage function returns the negotiate prefix that matches the specified SASL negotiation buffer.

Syntax

SECURITY_STATUS SEC_ENTRY SaslIdentifyPackageA(
  [in]  PSecBufferDesc pInput,
  [out] PSecPkgInfoA   *PackageInfo
);

Parameters

[in] pInput

Pointer to a SecBufferDesc structure that specifies the SASL negotiation buffer for which to find the negotiate prefix.

[out] PackageInfo

Pointer to a pointer to a SecPkgInfo structure that returns the negotiate prefix for the negotiation buffer specified by the pInput parameter.

Return value

If the call is completed successfully, this function returns SEC_E_OK.

If the function fails, the return value is a nonzero error code.

Remarks

Note

The sspi.h header defines SaslIdentifyPackage as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header sspi.h (include Security.h)
Library Secur32.lib
DLL Secur32.dll