diff options
Diffstat (limited to 'cpputil/nss_scoped_ptrs.h')
-rw-r--r-- | cpputil/nss_scoped_ptrs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpputil/nss_scoped_ptrs.h b/cpputil/nss_scoped_ptrs.h index 501f9dfe8..2c57986b1 100644 --- a/cpputil/nss_scoped_ptrs.h +++ b/cpputil/nss_scoped_ptrs.h @@ -11,6 +11,7 @@ #include "cert.h" #include "keyhi.h" #include "p12.h" +#include "pk11hpke.h" #include "pk11pqg.h" #include "pk11pub.h" #include "pkcs11uri.h" @@ -27,6 +28,9 @@ struct ScopedDelete { void operator()(CERTSubjectPublicKeyInfo* spki) { SECKEY_DestroySubjectPublicKeyInfo(spki); } + void operator()(HpkeContext* context) { + PK11_HPKE_DestroyContext(context, true); + } void operator()(PK11Context* context) { PK11_DestroyContext(context, true); } void operator()(PK11GenericObject* obj) { PK11_DestroyGenericObject(obj); } void operator()(PK11SlotInfo* slot) { PK11_FreeSlot(slot); } @@ -70,6 +74,7 @@ SCOPED(CERTCertificateList); SCOPED(CERTDistNames); SCOPED(CERTName); SCOPED(CERTSubjectPublicKeyInfo); +SCOPED(HpkeContext); SCOPED(PK11Context); SCOPED(PK11GenericObject); SCOPED(PK11SlotInfo); |