Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / security / cert / FSecCertX509CertificatePath.cpp
index 307c9d9..a2fde93 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -71,7 +70,7 @@ X509CertificatePath::AddCertificate(const Tizen::Security::Cert::ICertificate& c
        result r = E_SUCCESS;
        byte* pCert = null;
        int certLen = 0;
-       
+
        SysTryReturnResult(NID_SEC_CERT, ((certificate.GetFormat()).CompareTo(L"X509")) == 0, E_INVALID_ARG, "Certificate format is not valid.");
 
        if (__certCtx == 0)
@@ -80,7 +79,7 @@ X509CertificatePath::AddCertificate(const Tizen::Security::Cert::ICertificate& c
                SysTryReturn(NID_SEC_CERT, !IsFailed(r), r, r, "[%s] Failed to create certificate chain context.", GetErrorMessage(r));
        }
 
-       std::unique_ptr<ByteBuffer> pBuffer(certificate.GetEncodedDataN());
+       std::unique_ptr< ByteBuffer > pBuffer(certificate.GetEncodedDataN());
        SysTryReturnResult(NID_SEC_CERT, pBuffer != null, E_INVALID_ARG, "Failed to get encoded certificate buffer.");
 
        pCert = const_cast< byte* >(pBuffer->GetPointer());