diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-05-03 18:36:20 +0200 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2017-05-03 18:36:20 +0200 |
commit | 2cec199bc425aafc050fd18bbdc6b759d3ad2a61 (patch) | |
tree | 8e759844d73a65fb4a84138a9773da81413c73f9 /cpputil | |
parent | 7e5d3615d2090868eda09258cb2caa35e2bbd1ac (diff) | |
download | nss-hg-2cec199bc425aafc050fd18bbdc6b759d3ad2a61.tar.gz |
From 193777aedc558c56bb6501ba8e2134668ee5697b Mon Sep 17 00:00:00 2001
Bug 1162897, util: add minimal PKCS#11 URI parser, r=rrelyea
Diffstat (limited to 'cpputil')
-rw-r--r-- | cpputil/scoped_ptrs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h index 39a5e1f05..c5f81906f 100644 --- a/cpputil/scoped_ptrs.h +++ b/cpputil/scoped_ptrs.h @@ -11,6 +11,7 @@ #include "cert.h" #include "keyhi.h" #include "pk11pub.h" +#include "pkcs11uri.h" struct ScopedDelete { void operator()(CERTCertificate* cert) { CERT_DestroyCertificate(cert); } @@ -32,6 +33,7 @@ struct ScopedDelete { void operator()(SECKEYPrivateKeyList* list) { SECKEY_DestroyPrivateKeyList(list); } + void operator()(PK11URI* uri) { PK11URI_DestroyURI(uri); } }; template <class T> @@ -59,6 +61,7 @@ SCOPED(SECItem); SCOPED(SECKEYPublicKey); SCOPED(SECKEYPrivateKey); SCOPED(SECKEYPrivateKeyList); +SCOPED(PK11URI); #undef SCOPED |