Add new custom error messages for webauthn 82/312082/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20240607.172240
authorSunggyu Choi <sunggyu.choi@samsung.com>
Tue, 4 Jun 2024 05:36:31 +0000 (14:36 +0900)
committerSunggyu Choi <sunggyu.choi@samsung.com>
Tue, 4 Jun 2024 05:37:17 +0000 (14:37 +0900)
Change-Id: I3fc5416f5d35476894f6b8fbd012bac1c782e1d9
Signed-off-by: Sunggyu Choi <sunggyu.choi@samsung.com>
error_messages/capi-webauthn.xml [new file with mode: 0644]
include/private/tizen_error_private.h
include/tizen_error.h
packaging/capi-base-common.spec

diff --git a/error_messages/capi-webauthn.xml b/error_messages/capi-webauthn.xml
new file mode 100644 (file)
index 0000000..fb44933
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<package uri="platform/core/security/webauthn">
+       <error name="WAUTHN_ERROR_NONE_AND_WAIT">
+               <value>TIZEN_ERROR_WAUTHN | 0x01</value>
+               <msg>Successful and needs to wait for other result</msg>
+       </error>
+       <error name="WAUTHN_ERROR_NOT_ALLOWED">
+               <value>TIZEN_ERROR_WAUTHN | 0x02</value>
+               <msg>Not allowed in the current context</msg>
+       </error>
+       <error name="WAUTHN_ERROR_INVALID_STATE">
+               <value>TIZEN_ERROR_WAUTHN | 0x03</value>
+               <msg>Invalid State</msg>
+       </error>
+       <error name="WAUTHN_ERROR_ENCODING_FAILED">
+               <value>TIZEN_ERROR_WAUTHN | 0x04</value>
+               <msg>Encoding operation failed</msg>
+       </error>
+       <error name="WAUTHN_ERROR_SOCKET">
+               <value>TIZEN_ERROR_WAUTHN | 0x05</value>
+               <msg>Socket error</msg>
+       </error>
+       <error name="WAUTHN_ERROR_NO_SUCH_SERVICE">
+               <value>TIZEN_ERROR_WAUTHN | 0x06</value>
+               <msg>Socket operation on non-socket error</msg>
+       </error>
+       <error name="WAUTHN_ERROR_ACCESS_DENIED">
+               <value>TIZEN_ERROR_WAUTHN | 0x07</value>
+               <msg>Socket access denied</msg>
+       </error>
+</package>
+
index 333000373e933aeb5c61c86e90d4ca8e21628a76..c210ccbdb7d5b00765689c7e84d36c6ed08af87d 100644 (file)
@@ -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"),
index 67d801d967d6ea0888b5a9b271d12d5dacc395f6..37e31b705e91a14a753cc0aa47ad326b4356e64f 100644 (file)
@@ -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.
index 5f4988ea5f187ee7bea9592771e96b149a705ef1..3e0f058718051cf8169608088e5c6a12477ff513 100644 (file)
@@ -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