Merge "[SecureRepository] Add support of InvalidFormat error in ckmc api" 5.0.0-preview1-00408
authorYunjin Lee <yunjin-.lee@samsung.com>
Tue, 12 Dec 2017 03:15:07 +0000 (03:15 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 12 Dec 2017 03:15:07 +0000 (03:15 +0000)
src/Tizen.Security.SecureRepository/Interop/Interop.CkmcErrors.cs

index 3e12547..b15ce64 100644 (file)
@@ -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: