From fc6f74e431438a04a4ac55a33eea97fe633ac3fe Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Tue, 7 May 2024 10:05:23 +0200 Subject: [PATCH] [ACR-1843] Add Web Authentication error codes Change-Id: I18157641cebe52bad3c35bcd498d050d920a7236 --- error_messages/capi-webauthn.xml | 32 ++++++++++++++++++++++++++++++++ include/private/tizen_error_private.h | 7 +++++++ include/tizen_error.h | 2 ++ packaging/capi-base-common.spec | 2 +- 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 error_messages/capi-webauthn.xml diff --git a/error_messages/capi-webauthn.xml b/error_messages/capi-webauthn.xml new file mode 100644 index 0000000..fb44933 --- /dev/null +++ b/error_messages/capi-webauthn.xml @@ -0,0 +1,32 @@ + + + + TIZEN_ERROR_WAUTHN | 0x01 + Successful and needs to wait for other result + + + TIZEN_ERROR_WAUTHN | 0x02 + Not allowed in the current context + + + TIZEN_ERROR_WAUTHN | 0x03 + Invalid State + + + TIZEN_ERROR_WAUTHN | 0x04 + Encoding operation failed + + + TIZEN_ERROR_WAUTHN | 0x05 + Socket error + + + TIZEN_ERROR_WAUTHN | 0x06 + Socket operation on non-socket error + + + TIZEN_ERROR_WAUTHN | 0x07 + Socket access denied + + + diff --git a/include/private/tizen_error_private.h b/include/private/tizen_error_private.h index 3330003..e3939d3 100644 --- a/include/private/tizen_error_private.h +++ b/include/private/tizen_error_private.h @@ -689,6 +689,13 @@ static err_info err_list[] = { ERR_ENTRY("SMARTCARD_ERROR_OPERATION_NOT_SUPPORTED", TIZEN_ERROR_SMARTCARD | 0x05, "Operation not supported from SE"), ERR_ENTRY("SMARTCARD_ERROR_CHANNEL_NOT_AVAILABLE", TIZEN_ERROR_SMARTCARD | 0x06, "No channel available"), ERR_ENTRY("SMARTCARD_ERROR_NOT_INITIALIZED", TIZEN_ERROR_SMARTCARD | 0x07, "Smartcard service not initialized"), + ERR_ENTRY("WAUTHN_ERROR_NONE_AND_WAIT", TIZEN_ERROR_WAUTHN | 0x01, "Successful and needs to wait for other result"), + ERR_ENTRY("WAUTHN_ERROR_NOT_ALLOWED", TIZEN_ERROR_WAUTHN | 0x02, "Not allowed in the current context"), + ERR_ENTRY("WAUTHN_ERROR_INVALID_STATE", TIZEN_ERROR_WAUTHN | 0x03, "Invalid State"), + ERR_ENTRY("WAUTHN_ERROR_ENCODING_FAILED", TIZEN_ERROR_WAUTHN | 0x04, "Encoding operation failed"), + ERR_ENTRY("WAUTHN_ERROR_SOCKET", TIZEN_ERROR_WAUTHN | 0x05, "Socket error"), + ERR_ENTRY("WAUTHN_ERROR_NO_SUCH_SERVICE", TIZEN_ERROR_WAUTHN | 0x06, "Socket operation on non-socket error"), + ERR_ENTRY("WAUTHN_ERROR_ACCESS_DENIED", TIZEN_ERROR_WAUTHN | 0x07, "Socket access denied"), {0, NULL, NULL} }; diff --git a/include/tizen_error.h b/include/tizen_error.h index 948828f..84baffa 100644 --- a/include/tizen_error.h +++ b/include/tizen_error.h @@ -321,6 +321,8 @@ extern "C" { #define TIZEN_ERROR_RESOURCE_MONITOR -0x030E0000 /* TVS Broadcast Middleware */ #define TIZEN_ERROR_TVS -0x030F0000 +/* Webauthn API */ +#define TIZEN_ERROR_WAUTHN -0x03100000 /** * @brief Enumeration for tizen errors. diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index 3e0f058..95825dd 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -1,6 +1,6 @@ Name: capi-base-common Summary: Common header files of Tizen Native API -Version: 0.4.79 +Version: 0.4.80 Release: 1 Group: Base License: Apache-2.0 -- 2.7.4