diff options
Diffstat (limited to 'cpputil/scoped_ptrs_ssl.h')
-rw-r--r-- | cpputil/scoped_ptrs_ssl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpputil/scoped_ptrs_ssl.h b/cpputil/scoped_ptrs_ssl.h index 7eeae8f8f..581fe423a 100644 --- a/cpputil/scoped_ptrs_ssl.h +++ b/cpputil/scoped_ptrs_ssl.h @@ -14,6 +14,7 @@ struct ScopedDeleteSSL { void operator()(SSLResumptionTokenInfo* token) { SSL_DestroyResumptionTokenInfo(token); } + void operator()(SSLAeadContext* ctx) { SSL_DestroyAead(ctx); } }; template <class T> @@ -29,6 +30,7 @@ struct ScopedMaybeDeleteSSL { #define SCOPED(x) typedef std::unique_ptr<x, ScopedMaybeDeleteSSL<x> > Scoped##x SCOPED(SSLResumptionTokenInfo); +SCOPED(SSLAeadContext); #undef SCOPED |