From df215af273a81f19e639d096c23fd3a7fdf3a1c2 Mon Sep 17 00:00:00 2001 From: Anju Date: Tue, 23 Apr 2013 12:25:59 +0530 Subject: [PATCH] [Pkcs] Added one SysTryReturnResult statement Change-Id: I3afea6bb623b446eed45878bd140ca2ddf78cf94 Signed-off-by: Anju --- src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp b/src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp index 87e5bde..157fe7d 100644 --- a/src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp +++ b/src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp @@ -132,6 +132,8 @@ _Pkcs08AttributeImpl::Construct(const Tizen::Base::String& attrType) SysAssertf(__attributeType.GetLength() <= 0, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class."); + SysTryReturnResult(NID_SEC_CRYPTO, attrType.GetLength() > 0, E_INVALID_ARG, "[E_INVALID_ARG] The specified input parameter is invalid."); + //Initialize the Attribute instance with Attribute type __attributeType = attrType; -- 2.7.4