Skip to content

Commit 64778c5

Browse files
committed
fixup! fixup! src: add additional utilities to crypto::SecureContext
1 parent 597cb06 commit 64778c5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/crypto/crypto_context.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ class SecureContext final : public BaseObject {
4444

4545
const SSLCtxPointer& ctx() const { return ctx_; }
4646

47-
// Utility method that allows for non-default initialization of
47+
// Non-const ctx() that allows for non-default initialization of
4848
// the SecureContext.
49-
template <typename Func = void(SSLCtxPointer&)>
50-
inline void Initialize(Func fn) {
51-
fn(*ctx_);
52-
}
49+
SSLCtxPointer& ctx() { return ctx_; }
5350

5451
SSLPointer CreateSSL();
5552

0 commit comments

Comments
 (0)