[ACR-1843] Add Web Authentication error codes 20/310720/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 7 May 2024 08:05:23 +0000 (10:05 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 9 May 2024 08:16:59 +0000 (10:16 +0200)
Change-Id: I18157641cebe52bad3c35bcd498d050d920a7236

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 3330003..e3939d3 100644 (file)
@@ -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}
 };
 
index 948828f..84baffa 100644 (file)
@@ -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.
index 3e0f058..95825dd 100644 (file)
@@ -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