From 49c928208dd25861a4939a9a6de225e7796f80d2 Mon Sep 17 00:00:00 2001 From: Dongsun Lee Date: Tue, 12 Dec 2017 11:26:49 +0900 Subject: [PATCH] [SecureRepository] Add support of InvalidFormat error in ckmc api Change-Id: I2d8ff3842c64e2e9307c626635eeb20474c97329 Signed-off-by: Dongsun Lee --- src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs b/src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs index 3e12547..b15ce64 100644 --- a/src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs +++ b/src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs @@ -26,6 +26,7 @@ internal static partial class Interop { None = ErrorCode.None, InvalidParameter = ErrorCode.InvalidParameter, + InvalidFormat = TizenErrorKeyManager | 0x0E, // CKMC_ERROR_INVALID_FORMAT VerificationFailed = TizenErrorKeyManager | 0x0D // CKMC_ERROR_VERIFICATION_FAILED }; @@ -36,6 +37,7 @@ internal static partial class Interop case (int)KeyManagerError.None: return; case (int)KeyManagerError.InvalidParameter: + case (int)KeyManagerError.InvalidFormat: throw new ArgumentException(string.Format("[{0}] {1}, error={2}", LogTag, msg, ErrorFacts.GetErrorMessage(err))); default: -- 2.7.4