diff options
author | Stefan Gschiel <stefan.gschiel.sg@gmail.com> | 2017-06-08 17:10:41 +0200 |
---|---|---|
committer | Stefan Gschiel <stefan.gschiel.sg@gmail.com> | 2017-06-08 17:10:41 +0200 |
commit | ef9b90f0c006f2518f15cd020ca67dec294be790 (patch) | |
tree | bb0246bb5f5ee6e22c11109959c3e30d15042ba3 /cpputil | |
parent | aaba6ad2d01187f452ee2cc285696557401e2c50 (diff) | |
download | nss-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.h | 2 |
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 |