SCHANNEL_ALERT_TOKEN structure (schannel.h)
Generates a Secure Sockets Layer Protocol (SSL) or Transport Layer Security Protocol (TLS) alert to be sent to the target of a call to either the InitializeSecurityContext (Schannel) function or the AcceptSecurityContext (Schannel) function.
typedef struct _SCHANNEL_ALERT_TOKEN {
DWORD dwTokenType;
DWORD dwAlertType;
DWORD dwAlertNumber;
} SCHANNEL_ALERT_TOKEN;
dwTokenType
Specifies the type of this structure. Set the value of this member to SCHANNEL_ALERT.
dwAlertType
Specifies the alert type. This must be one of the following values.
Value | Meaning |
---|---|
|
The message is a warning. |
|
The message is a fatal error. The connection is closed immediately. |
dwAlertNumber
One of the alert messages defined by the TLS protocol specification. For descriptions of the defined messages, see RFC 5246, RFC 4346, or RFC 2246. This member must be one of the following values.
Add an alert message to a client context by using this structure as the value of the pInput parameter in a call to the ApplyControlToken function.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | schannel.h |