mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
src: remove SecureContext::operator*
This rather mysterious operator is only used once and can easily be replaced with ssl_ctx(). PR-URL: https://github.com/nodejs/node/pull/43121 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
ae2ec73a69
commit
7bdd31929c
2 files changed
+1
-3
No files matched your search
@@ -209,7 +209,7 @@ const char* GetServerName(SSL* ssl) {
|
||||
}
|
||||
|
||||
bool SetGroups(SecureContext* sc, const char* groups) {
|
||||
return SSL_CTX_set1_groups_list(**sc, groups) == 1;
|
||||
return SSL_CTX_set1_groups_list(sc->ssl_ctx(), groups) == 1;
|
||||
}
|
||||
|
||||
const char* X509ErrorCode(long err) { // NOLINT(runtime/int)
|
||||
|
||||
@@ -41,8 +41,6 @@ class SecureContext final : public BaseObject {
|
||||
static void RegisterExternalReferences(ExternalReferenceRegistry* registry);
|
||||
static SecureContext* Create(Environment* env);
|
||||
|
||||
SSL_CTX* operator*() const { return ctx_.get(); }
|
||||
|
||||
SSL_CTX* ssl_ctx() const { return ctx_.get(); }
|
||||
|
||||
SSLPointer CreateSSL();
|
||||
|
||||
Reference in new issue
Block a user