diff options
Diffstat (limited to 'cpputil')
-rw-r--r-- | cpputil/scoped_ptrs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h index e86603a97..85da99e62 100644 --- a/cpputil/scoped_ptrs.h +++ b/cpputil/scoped_ptrs.h @@ -13,6 +13,7 @@ #include "pk11pub.h" #include "pkcs11uri.h" #include "sslexp.h" +#include "p12.h" struct ScopedDelete { void operator()(CERTCertificate* cert) { CERT_DestroyCertificate(cert); } @@ -41,6 +42,9 @@ struct ScopedDelete { void operator()(SSLResumptionTokenInfo* token) { SSL_DestroyResumptionTokenInfo(token); } + void operator()(SEC_PKCS12DecoderContext* dcx) { + SEC_PKCS12DecoderFinish(dcx); + } }; template <class T> @@ -73,6 +77,7 @@ SCOPED(PLArenaPool); SCOPED(PK11Context); SCOPED(PK11GenericObject); SCOPED(SSLResumptionTokenInfo); +SCOPED(SEC_PKCS12DecoderContext); #undef SCOPED |