1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_CERT_SCOPED_NSS_TYPES_H_
6 #define NET_CERT_SCOPED_NSS_TYPES_H_
10 #include "base/memory/scoped_ptr.h"
14 struct FreeCERTCertificate
{
15 void operator()(CERTCertificate
* x
) const {
16 CERT_DestroyCertificate(x
);
20 typedef scoped_ptr
<CERTCertificate
, FreeCERTCertificate
> ScopedCERTCertificate
;
24 #endif // NET_CERT_SCOPED_NSS_TYPES_H_