summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-11-05 18:29:32 +0100
committerDaiki Ueno <dueno@redhat.com>2019-11-05 18:29:32 +0100
commit97e9b5e5092cd15f58fe231fe6200a1221bd09c4 (patch)
treec2e04004b87ce2ca00fc0cc90c4cd3df1f5c83cf /cpputil
parent57f0317452edc35b8191f5fc2cd89995d8e83d75 (diff)
downloadnss-hg-97e9b5e5092cd15f58fe231fe6200a1221bd09c4.tar.gz
Bug 1577803, gtests: import pkcs11testmodule from Firefox, r=rrelyea
Summary: This adds a mock PKCS #11 module from Firefox and add basic tests around it. This is needed for proper testing of PKCS #11 v3.0 profile objects (D45669). Reviewers: rrelyea Reviewed By: rrelyea Subscribers: reviewbot Bug #: 1577803 Differential Revision: https://phabricator.services.mozilla.com/D47060
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/nss_scoped_ptrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpputil/nss_scoped_ptrs.h b/cpputil/nss_scoped_ptrs.h
index 3ee7c9e1e..501f9dfe8 100644
--- a/cpputil/nss_scoped_ptrs.h
+++ b/cpputil/nss_scoped_ptrs.h
@@ -30,6 +30,7 @@ struct ScopedDelete {
void operator()(PK11Context* context) { PK11_DestroyContext(context, true); }
void operator()(PK11GenericObject* obj) { PK11_DestroyGenericObject(obj); }
void operator()(PK11SlotInfo* slot) { PK11_FreeSlot(slot); }
+ void operator()(PK11SlotList* slots) { PK11_FreeSlotList(slots); }
void operator()(PK11SymKey* key) { PK11_FreeSymKey(key); }
void operator()(PK11URI* uri) { PK11URI_DestroyURI(uri); }
void operator()(PLArenaPool* arena) { PORT_FreeArena(arena, PR_FALSE); }
@@ -72,6 +73,7 @@ SCOPED(CERTSubjectPublicKeyInfo);
SCOPED(PK11Context);
SCOPED(PK11GenericObject);
SCOPED(PK11SlotInfo);
+SCOPED(PK11SlotList);
SCOPED(PK11SymKey);
SCOPED(PK11URI);
SCOPED(PLArenaPool);