summaryrefslogtreecommitdiff
path: root/cpputil
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2018-01-16 13:50:59 +0100
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2018-01-16 13:50:59 +0100
commit076b6670fe565e0d2f828ba4495cf5705d09292f (patch)
treea68a9850cec6a2785fdc191f6cbd8e9eb14de74a /cpputil
parent024ed21d3c880f4e3a26f4859be164c3f4d9e817 (diff)
downloadnss-hg-076b6670fe565e0d2f828ba4495cf5705d09292f.tar.gz
Bug 1399439 - API for external TLS session caches, r=mt
Reviewers: mt, ekr Bug #: 1399439 Differential Revision: https://phabricator.services.mozilla.com/D284
Diffstat (limited to 'cpputil')
-rw-r--r--cpputil/scoped_ptrs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs.h b/cpputil/scoped_ptrs.h
index b92b8132b..e86603a97 100644
--- a/cpputil/scoped_ptrs.h
+++ b/cpputil/scoped_ptrs.h
@@ -12,6 +12,7 @@
#include "keyhi.h"
#include "pk11pub.h"
#include "pkcs11uri.h"
+#include "sslexp.h"
struct ScopedDelete {
void operator()(CERTCertificate* cert) { CERT_DestroyCertificate(cert); }
@@ -37,6 +38,9 @@ struct ScopedDelete {
void operator()(PLArenaPool* arena) { PORT_FreeArena(arena, PR_FALSE); }
void operator()(PK11Context* context) { PK11_DestroyContext(context, true); }
void operator()(PK11GenericObject* obj) { PK11_DestroyGenericObject(obj); }
+ void operator()(SSLResumptionTokenInfo* token) {
+ SSL_DestroyResumptionTokenInfo(token);
+ }
};
template <class T>
@@ -68,6 +72,7 @@ SCOPED(PK11URI);
SCOPED(PLArenaPool);
SCOPED(PK11Context);
SCOPED(PK11GenericObject);
+SCOPED(SSLResumptionTokenInfo);
#undef SCOPED