Wi-Fi Authentication 802.1x header for parameters. The parameters (Domain, UserName, PrivateKey/Password) are appended to this structure.
#include <m2m_types.h>
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 |
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::u32Rsv1 |
Reserved, set to 0.
uint32 tstrM2mWifi1xHdr::u32Rsv2 |
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::u8Flags |
802.1x-specific flags: M2M_802_1X_MSCHAP2_FLAG M2M_802_1X_TLS_FLAG M2M_802_1X_UNENCRYPTED_USERNAME_FLAG M2M_802_1X_PREPEND_DOMAIN_FLAG
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().