L2TP_CONFIG_DATA (Compact 2013)
3/26/2014
This structure specifies a number of settings used to configure Layer Two Tunneling Protocol (L2TP).
Syntax
typedef struct _L2TP_CONFIG_DATA{
DWORD dwVersion;
DWORD dwAuthType;
DWORD dwFlags;
DWORD cbKey;
DWORD dwOffsetKey;
DWORD cMyCerts;
DWORD cRootCerts;
DWORD dwOffsetCertHashes;
} L2TP_CONFIG_DATA, *PL2TP_CONFIG_DATA;
Members
- dwVersion
Specifies the version. Set to 1.
dwAuthType
Specifies the authentication type to be used. The following table shows possible values.Value
Description
L2TP_IPSEC_AUTH_SIGNATURE = 0x1
Enables signature-based authentication.
L2TP_IPSEC_AUTH_PRESHAREDKEY = 0x2
Enables pre-shared key authentication.
- dwFlags
No flags have been defined yet. Set to zero.
- cbKey
Specifies the size, in bytes, of the pre-shared key.
- dwOffsetKey
Specifies the offset of the pre-shared key from the start of the structure.
- cMyCerts
Specifies the number of client certificates.
- cRootCerts
Specifies the number root certificates.
- dwOffsetCertHashes
Specifies the offset to the start of the array of certificate Secure Hash Algorithm (SHA) hashes. For more information, see the Remarks section.
Remarks
In the certificate hash array, client certificate hashes are followed by the root certificate hashes using the following statement:
BYTE CertHashes[CERT_HASH_SIZE][cMyCerts + cRootCerts];
If no certificates are supplied, default rules apply.
Requirements
Header |
Lt2pcfg.h |