KERB_SMARTCARD_CSP_INFO structure

from: http://msdn.microsoft.com/en-us/library/windows/desktop/bb545682%28v=vs.85%29.aspx      点击打开链接


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

C++
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.

ValueMeaning
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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

See also

KERB_CERTIFICATE_LOGON

 

 

Send comments about this topic to Microsoft

Build date: 9/5/2012

Did you find this helpful?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值