blob: 76efa1c8f9d347e82487269f5d19350ec5db9856 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_CERT_SCOPED_NSS_TYPES_H_
#define NET_CERT_SCOPED_NSS_TYPES_H_
#if !defined(STARBOARD)
#include <cert.h>
#include <memory>
#include <vector>
#include "starboard/types.h"
namespace net {
struct FreeCERTCertificate {
void operator()(CERTCertificate* x) const {
CERT_DestroyCertificate(x);
}
};
typedef std::unique_ptr<CERTCertificate, FreeCERTCertificate>
ScopedCERTCertificate;
using ScopedCERTCertificateList = std::vector<ScopedCERTCertificate>;
} // namespace net
#endif // !defined(STARBOARD)
#endif // NET_CERT_SCOPED_NSS_TYPES_H_