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:
Tobias Nießen authored and Michaël Zasso committed 2022-07-31 09:44:13 +02:00
1 parent ae2ec73a69
commit 7bdd31929c
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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)
-2
View File
@@ -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();