projects
/
platform
/
core
/
security
/
webauthn-ble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
707c7f5
)
Handle credential exclusion
57/313157/1
author
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Wed, 19 Jun 2024 11:05:30 +0000
(13:05 +0200)
committer
Krzysztof Jackiewicz
<k.jackiewicz@samsung.com>
Wed, 19 Jun 2024 11:07:58 +0000
(13:07 +0200)
Return WAUTHN_ERROR_NOT_ALLOWED if credential is excluded
Change-Id: I33b78a363622397c77bc4eaeb34a4073db7d2ab7
srcs/message.cpp
patch
|
blob
|
history
diff --git
a/srcs/message.cpp
b/srcs/message.cpp
index 098a4d1cd28b165c3105d8c0ef1609ee27efb477..481637467fce594c473247dc8da410581b5d9d4d 100644
(file)
--- a/
srcs/message.cpp
+++ b/
srcs/message.cpp
@@
-571,6
+571,9
@@
void CtapResponse::Deserialize(BufferView &input)
case StatusCode::CTAP2_ERR_NOT_ALLOWED:
THROW_INVALID_STATE("Invalid authenticator state. Status: " << uStatus);
+ case StatusCode::CTAP2_ERR_CREDENTIAL_EXCLUDED:
+ THROW_NOT_ALLOWED("Not allowed. Status: " << uStatus);
+
default: THROW_UNKNOWN("CTAP command failed with status " << uStatus);
}