From e412bb5e397362de403355cf1fa79258318f8a71 Mon Sep 17 00:00:00 2001 From: Sunggyu Choi Date: Tue, 4 Jun 2024 14:36:31 +0900 Subject: [PATCH] Add new custom error messages for webauthn Change-Id: I3fc5416f5d35476894f6b8fbd012bac1c782e1d9 Signed-off-by: Sunggyu Choi --- 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..c210ccb 100644 --- a/include/private/tizen_error_private.h +++ b/include/private/tizen_error_private.h @@ -284,6 +284,13 @@ static err_info err_list[] = { ERR_ENTRY("PLAYER_ERROR_NOT_SUPPORTED_SUBTITLE", TIZEN_ERROR_PLAYER | 0x30, "Not supported subtitle format"), ERR_ENTRY("PLAYER_ERROR_NOT_SUPPORTED_FORMAT", TIZEN_ERROR_PLAYER | 0x31, "Not supported format"), ERR_ENTRY("PLAYER_ERROR_NOT_AVAILABLE", TIZEN_ERROR_PLAYER | 0x32, "Not available operation"), + 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"), ERR_ENTRY("RADIO_ERROR_INVALID_STATE", TIZEN_ERROR_RADIO | 0x01, "Invalid state"), ERR_ENTRY("RADIO_ERROR_SOUND_POLICY", TIZEN_ERROR_RADIO | 0x02, "Sound policy error"), ERR_ENTRY("RADIO_ERROR_NO_ANTENNA", TIZEN_ERROR_RADIO | 0x03, "No Antenna error"), diff --git a/include/tizen_error.h b/include/tizen_error.h index 67d801d..37e31b7 100644 --- a/include/tizen_error.h +++ b/include/tizen_error.h @@ -319,6 +319,8 @@ extern "C" { #define TIZEN_ERROR_MEDIA_EDITOR -0x030D0000 /* Resource Monitor */ #define TIZEN_ERROR_RESOURCE_MONITOR -0x030E0000 +/* 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 5f4988e..3e0f058 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.78 +Version: 0.4.79 Release: 1 Group: Base License: Apache-2.0 -- 2.34.1