From ef9b90f0c006f2518f15cd020ca67dec294be790 Mon Sep 17 00:00:00 2001 From: Stefan Gschiel Date: Thu, 8 Jun 2017 17:10:41 +0200 Subject: Bug 1371303 - Add "digest" command to NSS tool r=ttaubert Differential Revision: https://nss-review.dev.mozaws.net/D253 --- cpputil/scoped_ptrs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpputil') diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h index 0436cd20e..9f224dfc0 100644 --- a/cpputil/scoped_ptrs.h +++ b/cpputil/scoped_ptrs.h @@ -35,6 +35,7 @@ struct ScopedDelete { } void operator()(PK11URI* uri) { PK11URI_DestroyURI(uri); } void operator()(PLArenaPool* arena) { PORT_FreeArena(arena, PR_FALSE); } + void operator()(PK11Context* context) { PK11_DestroyContext(context, true); } }; template @@ -64,6 +65,7 @@ SCOPED(SECKEYPrivateKey); SCOPED(SECKEYPrivateKeyList); SCOPED(PK11URI); SCOPED(PLArenaPool); +SCOPED(PK11Context); #undef SCOPED -- cgit v1.2.1