SecPkgInfo

This structure provides general data about a security package, such as its name and its capabilities.

At a Glance

Header file: Sspi.h
Windows CE versions: 2.10 and later

Syntax

typedef struct _SecPkgInfo {
ULONG fCapabilities;
USHORT
wVersion;
USHORT
wRPCID;
ULONG
cbMaxToken;
SEC_CHAR SEC_FAR
*Name;
SEC_CHAR SEC_FAR
*Comment;
} SecPkgInfo, SEC_FAR * PSecPkgInfo;

Members

fCapabilities

Set of bit flags that describe the capabilities of the security package. It can be a combination of the following flags:

Flag Description
SECPKG_FLAG_INTEGRITY Verify that all messages exchanged have not been tampered with or exchanged out of sequence.
SECPKG_FLAG_PRIVACY All messages are tamper proof and are not passed in cleartext. Reserved for future use.
SECPKG_FLAG_TOKEN_ONLY The package is interested only in the security-token portion of messages, and will ignore any other buffers. This is a performance-related issue.
SECPKG_FLAG_DATAGRAM Supports datagram-style authentication.
SECPKG_FLAG_CONNECTION Supports connection-oriented style authentication.
SECPKG_FLAG_MULTI_REQUIRED Multiple legs are required for authentication.
SECPKG_FLAG_CLIENT_ONLY Server authentication support is not provided.
SECPKG_FLAG_EXTENDED_ERROR Supports extended error handling.
SECPKG_FLAG_IMPERSONATION Supports Win32 impersonation in server contexts.
SECPKG_FLAG_ACCEPT_WIN32_NAME Understands Win32 principal and target names.
SECPKG_FLAG_STREAM Supports stream semantics.

wVersion

Specifies the version of the package protocol. Must be 1.

wRPCID

Specifies a DCE RPC identifier, if appropriate. If the package does not implement one of the DCE registered security systems, the reserved value SECPKG_ID_NONE is used.

cbMaxToken

Specifies the maximum size, in bytes, of the token.

Name

Pointer to a null-terminated string that contains the name of the security package.

Comment

Pointer to a null-terminated string. This can be any additional string passed back by the package.

See Also

EnumerateSecurityPackages, QuerySecurityPackageInfo