Platform SDK: Logon Authentication

SecPkgContext_ConnectionInfo

The SecPkgContext_ConnectionInfo structure contains infomation about the current connection.

typedef struct _SecPkgContext_ConnectionInfo
{
    DWORD    dwProtocol;
    ALG_ID   aiCipher;
    DWORD    dwCipherStrength;
    ALG_ID   aiHash;
    DWORD    dwHashStrength;
    ALG_ID   aiExch;
    DWORD    dwExchStrength;
} SecPkgContext_ConnectionInfo, *PSecPkgContext_ConnectionInfo;

Members

dwProtocol
Protocol used to establish this connection. Can be one of the following values:

SP_PROT_SSL2_CLIENT
SP_PROT_SSL2_SERVER
SP_PROT_SSL3_CLIENT
SP_PROT_SSL3_SERVER
SP_PROT_PCT1_CLIENT
SP_PROT_PCT1_SERVER
SP_PROT_TLS1_CLIENT
SP_PROT_TLS1_SERVER

aiCipher
CryptoAPI 2.0 algorithm identifier (ALG_ID) for the bulk encryption cipher used in this connection. Can be one of the following algorithm values:

CALG_RC2
CALG_RC4
CALG_DES
CALG_3DES
CALG_SKIPJACK
Zero (no encryption)

dwCipherStrength
Strength of the bulk encryption cipher in bits. Can be one of the following values: 0, 40, 56, 64, 80, 128, or 168.
aiHash
CryptoAPI 2.0 ALG_ID indicating the hash used for MACs in this connection. Can be one of the following values: CALG_MD5 or CALG_SHA.
dwHashStrength
Strength of the hash in bits. Can be one of the following values: 128 or 160.
aiExch
CryptoAPI 2.0 ALG_ID indicating the key exchange algorithm used to generate the shared master secret, from which the session keys are derived. Can be one of the following values.
ALG_ID Meaning
CALG_RSA_KEYX RSA key exchange
CALG_DH_EPHEM Diffie-Hellman key exchange
CALG_EXCH_KEA Fortezza

dwExchStrength
Strength of the key exchange in bits. Typically one of the following values: 512, 768, 1024, or 2048.

Requirements

  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Schannel.h; include Schnlsp.h.

See Also

ALG_ID