KERB_SMARTCARD_CSP_INFO structure
The KERB_SMARTCARD_CSP_INFO structure contains information about a smart card cryptographic service provider (CSP).
This structure is not declared in a public header.
Syntax
typedef struct _KERB_SMARTCARD_CSP_INFO {
DWORD dwCspInfoLen;
DWORD MessageType;
union {
PVOID ContextInformation;
ULONG64 SpaceHolderForWow64;
};
DWORD flags;
DWORD KeySpec;
ULONG nCardNameOffset;
ULONG nReaderNameOffset;
ULONG nContainerNameOffset;
ULONG nCSPNameOffset;
TCHAR bBuffer;
} KERB_SMARTCARD_CSP_INFO, *PKERB_SMARTCARD_CSP_INFO;
Members
-
dwCspInfoLen
-
The size, in bytes, of this structure, including any appended data.
-
MessageType
-
The type of message being passed. This member must be set to 1.
-
ContextInformation
-
Reserved.
-
SpaceHolderForWow64
-
Reserved.
-
flags
-
Reserved.
-
KeySpec
-
The private key to use from the key container specified within the buffer bBuffer. The key can be one of the following values, defined in WinCrypt.h.
Value Meaning - AT_KEYEXCHANGE
- 1
The key is a key-exchange key. - AT_SIGNATURE
- 2
The key is a signature key. -
nCardNameOffset
-
The number of characters in the bBuffer buffer that precede the name of the smart card in that buffer.
Important
If the name of the smart card is not provided, the buffer must contain an empty string.
-
nReaderNameOffset
-
The number of characters in the bBuffer buffer that precede the name of the smart card reader in that buffer.
Important
If the name of the smart card reader is not provided, the buffer must contain an empty string.
-
nContainerNameOffset
-
The number of characters in the bBuffer buffer that precede the name of the key container in that buffer. This string cannot be empty.
-
nCSPNameOffset
-
The number of characters in the bBuffer buffer that precede the name of the CSP in that buffer.
-
bBuffer
-
An array of characters initialized to a length of
sizeof(DWORD)
. This buffer contains the names referred to by the nCardNameOffset, nReaderNameOffset, nContainerNameOffset, and nCSPNameOffset members, as well as any additional data provided by the CSP.Any names that are not provided must be represented in this buffer by empty strings.
Remarks
When this structure is serialized, the structure members must be aligned to boundaries that are multiples of 2 bytes.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
See also