EAP TLS - Hostapd

Satya Prakash Prasad satyaprakash.developer.unix at gmail.com
Tue Apr 9 08:51:01 PDT 2024


Hi,

Referring to https://github.com/prplfoundation/hostap/tree/master -
please guide me code example - how after authentication successful
read / write data exchange will happen.

I was referring to below peer example code:

https://github.com/prplfoundation/hostap/blob/master/eap_example/eap_example_peer.c

After the EAP success case, how peer / server side will read / write
data - which APIs code implements the same - also how do we verify
that EAP authentication was successful before each write / data?

EAP-TLS Peer                                      EAP-TLS Server

                                                      EAP-Request/
                             <--------                   Identity
 EAP-Response/
 Identity (Privacy-Friendly) -------->
                                                      EAP-Request/
                                                 EAP-Type=EAP-TLS
                             <--------                 (TLS Start)
 EAP-Response/
 EAP-Type=EAP-TLS
(TLS ClientHello)            -------->
                                                      EAP-Request/
                                                 EAP-Type=EAP-TLS
                                                 (TLS ServerHello,
                                          TLS EncryptedExtensions,
                                           TLS CertificateRequest,
                                                  TLS Certificate,
                                            TLS CertificateVerify,
                             <--------               TLS Finished)
 EAP-Response/
 EAP-Type=EAP-TLS
(TLS Certificate,
 TLS CertificateVerify,
 TLS Finished)               -------->
                                                      EAP-Request/
                                                 EAP-Type=EAP-TLS
                             <-------- (TLS Application Data 0x00)
 EAP-Response/
 EAP-Type=EAP-TLS            -------->
                             <--------                EAP-Success


Thanks in advance.

Regards,
Prakash



More information about the Hostap mailing list