summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorStefan Gschiel <stefan.gschiel.sg@gmail.com>2017-02-24 13:04:52 +0100
committerStefan Gschiel <stefan.gschiel.sg@gmail.com>2017-02-24 13:04:52 +0100
commitaeff143e65b856db4438854127df1822a433cfca (patch)
tree070be881784b54b2beeb558b625bae72ba1d7ec8 /cpputil
parentcd1df3aceab87225aa5357b7c46332d09cc88838 (diff)
downloadnss-hg-aeff143e65b856db4438854127df1822a433cfca.tar.gz
Bug 1342351 - Implement --list-keys for nss-tool r=ttaubert
Differential Revision: https://nss-review.dev.mozaws.net/D191
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/scoped_ptrs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h
index a96ac1fa8..a2351984d 100644
--- a/cpputil/scoped_ptrs.h
+++ b/cpputil/scoped_ptrs.h
@@ -28,6 +28,9 @@ struct ScopedDelete {
void operator()(SECItem* item) { SECITEM_FreeItem(item, true); }
void operator()(SECKEYPublicKey* key) { SECKEY_DestroyPublicKey(key); }
void operator()(SECKEYPrivateKey* key) { SECKEY_DestroyPrivateKey(key); }
+ void operator()(SECKEYPrivateKeyList* list) {
+ SECKEY_DestroyPrivateKeyList(list);
+ }
};
template <class T>
@@ -53,6 +56,7 @@ SCOPED(SECAlgorithmID);
SCOPED(SECItem);
SCOPED(SECKEYPublicKey);
SCOPED(SECKEYPrivateKey);
+SCOPED(SECKEYPrivateKeyList);
#undef SCOPED