summaryrefslogtreecommitdiffstats
path: root/security/nss/cpputil/scoped_ptrs_ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/cpputil/scoped_ptrs_ssl.h')
-rw-r--r--security/nss/cpputil/scoped_ptrs_ssl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/nss/cpputil/scoped_ptrs_ssl.h b/security/nss/cpputil/scoped_ptrs_ssl.h
index 7eeae8f8f..474187540 100644
--- a/security/nss/cpputil/scoped_ptrs_ssl.h
+++ b/security/nss/cpputil/scoped_ptrs_ssl.h
@@ -11,6 +11,10 @@
#include "sslexp.h"
struct ScopedDeleteSSL {
+ void operator()(SSLAeadContext* ctx) { SSL_DestroyAead(ctx); }
+ void operator()(SSLAntiReplayContext* ctx) {
+ SSL_ReleaseAntiReplayContext(ctx);
+ }
void operator()(SSLResumptionTokenInfo* token) {
SSL_DestroyResumptionTokenInfo(token);
}
@@ -28,6 +32,8 @@ struct ScopedMaybeDeleteSSL {
#define SCOPED(x) typedef std::unique_ptr<x, ScopedMaybeDeleteSSL<x> > Scoped##x
+SCOPED(SSLAeadContext);
+SCOPED(SSLAntiReplayContext);
SCOPED(SSLResumptionTokenInfo);
#undef SCOPED