@@ -142,7 +142,6 @@ static bool extra_root_certs_loaded = false;
142
142
template void SSLWrap<TLSWrap>::AddMethods(Environment* env,
143
143
Local<FunctionTemplate> t);
144
144
template void SSLWrap<TLSWrap>::ConfigureSecureContext(SecureContext* sc);
145
- template void SSLWrap<TLSWrap>::SetSNIContext(SecureContext* sc);
146
145
template int SSLWrap<TLSWrap>::SetCACerts(SecureContext* sc);
147
146
template void SSLWrap<TLSWrap>::MemoryInfo(MemoryTracker* tracker) const ;
148
147
template SSL_SESSION* SSLWrap<TLSWrap>::GetSessionCallback(
@@ -2993,12 +2992,7 @@ void SSLWrap<Base>::CertCbDone(const FunctionCallbackInfo<Value>& args) {
2993
2992
if (cons->HasInstance (ctx)) {
2994
2993
SecureContext* sc = Unwrap<SecureContext>(ctx.As <Object>());
2995
2994
CHECK_NOT_NULL (sc);
2996
- // XXX: There is a method w->SetSNIContext(sc), and you might think that
2997
- // it makes sense to call that here and make setting w->sni_context_ part
2998
- // of it. In fact, that passes the test suite, although SetSNIContext()
2999
- // performs a lot more operations.
3000
- // If anybody is familiar enough with the TLS code to know whether it makes
3001
- // sense, please do so or document why it doesn't.
2995
+ // Store the SNI context for later use.
3002
2996
w->sni_context_ = BaseObjectPtr<SecureContext>(sc);
3003
2997
3004
2998
int rv;
@@ -3057,15 +3051,6 @@ void SSLWrap<Base>::DestroySSL() {
3057
3051
}
3058
3052
3059
3053
3060
- template <class Base >
3061
- void SSLWrap<Base>::SetSNIContext(SecureContext* sc) {
3062
- ConfigureSecureContext (sc);
3063
- CHECK_EQ (SSL_set_SSL_CTX (ssl_.get (), sc->ctx_ .get ()), sc->ctx_ .get ());
3064
-
3065
- SetCACerts (sc);
3066
- }
3067
-
3068
-
3069
3054
template <class Base >
3070
3055
int SSLWrap<Base>::SetCACerts(SecureContext* sc) {
3071
3056
int err = SSL_set1_verify_cert_store (ssl_.get (),
0 commit comments