Microchip® Advanced Software Framework

tstrM2mWifi1xHdr Struct Reference

Wi-Fi Authentication 802.1x header for parameters. The parameters (Domain, UserName, PrivateKey/Password) are appended to this structure.

#include <m2m_types.h>

Data Fields

uint8 au81xAuthDetails []
 
uint8 au8TlsSpecificRootNameSha1 [20]
 
uint16 u16CertificateLength
 
uint16 u16CertificateOffset
 
uint16 u16PrivateKeyLength
 
uint16 u16PrivateKeyOffset
 
uint32 u32Rsv
 
uint32 u32TlsCsBmp
 
uint32 u32TlsHsFlags
 
uint8 u8DomainLength
 
uint8 u8Flags
 
uint8 u8HdrLength
 
uint8 u8UserNameLength
 

uint8 tstrM2mWifi1xHdr::au81xAuthDetails[]

Placeholder for concatenation of Domain, UserName, PrivateKey/Password, Certificate. Certificate (for 1x Tls only) is sent over HIF separately from the other parameters.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint8 tstrM2mWifi1xHdr::au8TlsSpecificRootNameSha1[20]

SHA1 digest of subject name to identify specific root certificate for phase 1 server verification.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint16 tstrM2mWifi1xHdr::u16CertificateLength

Length of Certificate.

Referenced by m2m_wifi_connect_1x_tls().

uint16 tstrM2mWifi1xHdr::u16CertificateOffset

Offset within au81xAuthDetails of Certificate.

Referenced by m2m_wifi_connect_1x_tls().

uint16 tstrM2mWifi1xHdr::u16PrivateKeyLength

Length of PrivateKey/Password. In the case of PrivateKey, this is the length of the modulus.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint16 tstrM2mWifi1xHdr::u16PrivateKeyOffset

Offset within au81xAuthDetails of PrivateKey/Password.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint32 tstrM2mWifi1xHdr::u32Rsv

Reserved, set to 0.

uint32 tstrM2mWifi1xHdr::u32TlsCsBmp

Bitmap of TLS ciphersuites supported. Set to 0 by driver. The firmware uses whichever set of ciphersuites is active (via m2m_ssl_set_active_ciphersuites) when m2m_wifi_connect_1x_* is called.

uint32 tstrM2mWifi1xHdr::u32TlsHsFlags

TLS handshake flags for phase 1.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint8 tstrM2mWifi1xHdr::u8DomainLength

Length of Domain. (Offset of Domain, within au81xAuthDetails, understood to be 0.)

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint8 tstrM2mWifi1xHdr::u8HdrLength

Length of header (offset of au81xAuthDetails within tstrM2mWifi1xHdr). Legacy implementations may have 0 here, in which case header is 12 bytes. The unusual placing of this field is in order to hit a zero in legacy implementations.

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().

uint8 tstrM2mWifi1xHdr::u8UserNameLength

Length of UserName. (Offset of UserName, within au81xAuthDetails, understood to be u8DomainLength.)

Referenced by m2m_wifi_connect_1x_mschap2(), and m2m_wifi_connect_1x_tls().