aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_otp.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2020-04-23 22:14:34 (GMT)
committerJouni Malinen <j@w1.fi>2020-04-24 14:06:50 (GMT)
commitd15e109e29874bb19d854d9057f50cd5f066f1cd (patch)
treef40ae1f693a5def735ee468ba07dc4283115b84e /src/eap_peer/eap_otp.c
parentc9d70dd3298dc41cb2390f93c84cb8692c996783 (diff)
downloadhostap-d15e109e29874bb19d854d9057f50cd5f066f1cd.zip
hostap-d15e109e29874bb19d854d9057f50cd5f066f1cd.tar.gz
hostap-d15e109e29874bb19d854d9057f50cd5f066f1cd.tar.bz2
EAP peer: Convert Boolean to C99 bool
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/eap_peer/eap_otp.c')
-rw-r--r--src/eap_peer/eap_otp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eap_peer/eap_otp.c b/src/eap_peer/eap_otp.c
index 0ab4c79..87615c6 100644
--- a/src/eap_peer/eap_otp.c
+++ b/src/eap_peer/eap_otp.c
@@ -36,7 +36,7 @@ static struct wpabuf * eap_otp_process(struct eap_sm *sm, void *priv,
pos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_OTP, reqData, &len);
if (pos == NULL) {
- ret->ignore = TRUE;
+ ret->ignore = true;
return NULL;
}
wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-OTP: Request message",
@@ -53,15 +53,15 @@ static struct wpabuf * eap_otp_process(struct eap_sm *sm, void *priv,
if (password == NULL) {
wpa_printf(MSG_INFO, "EAP-OTP: Password not configured");
eap_sm_request_otp(sm, (const char *) pos, len);
- ret->ignore = TRUE;
+ ret->ignore = true;
return NULL;
}
- ret->ignore = FALSE;
+ ret->ignore = false;
ret->methodState = METHOD_DONE;
ret->decision = DECISION_COND_SUCC;
- ret->allowNotifications = FALSE;
+ ret->allowNotifications = false;
resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_OTP, password_len,
EAP_CODE_RESPONSE, eap_get_id(reqData));