summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorStefan Gschiel <stefan.gschiel.sg@gmail.com>2017-06-08 17:10:41 +0200
committerStefan Gschiel <stefan.gschiel.sg@gmail.com>2017-06-08 17:10:41 +0200
commitef9b90f0c006f2518f15cd020ca67dec294be790 (patch)
treebb0246bb5f5ee6e22c11109959c3e30d15042ba3 /cpputil
parentaaba6ad2d01187f452ee2cc285696557401e2c50 (diff)
downloadnss-hg-ef9b90f0c006f2518f15cd020ca67dec294be790.tar.gz
Bug 1371303 - Add "digest" command to NSS tool r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D253
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/scoped_ptrs.h2
1 files changed, 2 insertions, 0 deletions
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 <class T>
@@ -64,6 +65,7 @@ SCOPED(SECKEYPrivateKey);
SCOPED(SECKEYPrivateKeyList);
SCOPED(PK11URI);
SCOPED(PLArenaPool);
+SCOPED(PK11Context);
#undef SCOPED