Share via


L2TP_CONFIG_DATA (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

L2TP/IPSec Structures

Concepts

L2TP/IPSec Application Development