mirror of https://github.com/nodejs/node.git
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>pull/42601/head
parent
2bc1991423
commit
ace89d9a89
|
@ -213,7 +213,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();
|
||||
|
|
Loading…
Reference in New Issue