WS_CAPI_ASYMMETRIC_SECURITY_KEY_HANDLE structure (webservices.h)

The type for specifying asymmetric cryptographic keys as CAPI 1.0 key handles.

When this structure is used in an API (such as with XML token creation and subsequent use of that XML token for a channel), the application is responsible for making sure that the HCRYPTPROV remains valid as long as the key is in use. The application is also responsible for freeing the handle when it is no longer in use.

This type is supported only on pre-Windows Vista platforms: for Windows Vista and later, please use WS_NCRYPT_ASYMMETRIC_SECURITY_KEY_HANDLE.

Syntax

typedef struct _WS_CAPI_ASYMMETRIC_SECURITY_KEY_HANDLE {
  WS_SECURITY_KEY_HANDLE keyHandle;
  HCRYPTPROV             provider;
  ULONG                  keySpec;
} WS_CAPI_ASYMMETRIC_SECURITY_KEY_HANDLE;

Members

keyHandle

The base type from which this type and all other key handle types derive.

provider

The cryptographic provider.

keySpec

The key specification.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h