//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
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)
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());