L2TP_CONFIG_DATA (Windows CE 5.0)
This structure specifies a number of settings used to configure Layer Two Tunneling Protocol (L2TP).
typedef struct _L2TP_CONFIG_DATA{ DWORDdwVersion;DWORDdwAuthType;DWORDdwFlags;DWORDcbKey;DWORDdwOffsetKey;DWORDcMyCerts;DWORDcRootCerts;DWORDdwOffsetCertHashes;} 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
OS Versions: Windows CE .NET 4.2 and later.
Header: Lt2pcfg.h.
See Also
L2TP/IPSec Application Development
Send Feedback on this topic to the authors