]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Bootstrapping via NFC URI Record
authorJouni Malinen <jouni@codeaurora.org>
Tue, 3 Dec 2019 16:22:36 +0000 (18:22 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Dec 2019 10:37:51 +0000 (12:37 +0200)
commite780b4bf2032d1cdea76e515a7ebaffda484e53e
tree7047d20e950f46ee4a6df06a827f93a073a065d0
parent3c0d6eb8a930690f19b061bbb0051be4a25d82dd
DPP: Bootstrapping via NFC URI Record

This extends hostapd and wpa_supplicant DPP implementation to allow the
bootstrapping URI to be generated for and parsed from an NFC Tag with an
NFC URI Record. This is similar to the way the bootstrapping URI is used
with QR Code for unidirectional authentication.

The DPP_BOOTSTRAP_GEN command uses "type=nfc-uri" to request the URI to
be assigned for NFC URI Record. In practice, the URI is generated
identically to the QR Code case, but the internal entry maintains the
NFC-URI type.

A new command "DPP_NFC_URI <uri>" can now be used to parse the URI read
from an NFC Tag with the NFC URI Record. This is similar to the
DPP_QR_CODE command.

Other commands (mainly, DPP_LISTEN and DPP_AUTH_INIT) are used for NFC
URI in the same way as they are used for QR Code.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c
src/ap/dpp_hostapd.c
src/ap/dpp_hostapd.h
src/common/dpp.c
src/common/dpp.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/dpp_supplicant.c
wpa_supplicant/dpp_supplicant.h