Merge "[Pkcs] Added one SysTryReturnResult statement" into tizen_2.1
authorKyungwooNoh <kw1004.noh@samsung.com>
Tue, 23 Apr 2013 07:12:36 +0000 (16:12 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 23 Apr 2013 07:12:36 +0000 (16:12 +0900)
src/security/pkcs/FSecPkcs_Pkcs08AttributeImpl.cpp

index 87e5bde..157fe7d 100644 (file)
@@ -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;