Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 0eed19b

Browse files
committed
quic: remove namespace qualifier for SecureContext
Currently, there are a few locations where the crypto namespace is used explicitly for SecureContext even though there is a using declaration for SecureContext. This commit removes the explict ones to make the code consistent. PR-URL: #368 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3748c7d commit 0eed19b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/quic/node_quic_session.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ int QuicCryptoContext::OnOCSP() {
996996
// The OnCertDone function is called by the QuicSessionOnCertDone
997997
// function when usercode is done handling the OCSPRequest event.
998998
void QuicCryptoContext::OnOCSPDone(
999-
BaseObjectPtr<crypto::SecureContext> context,
999+
BaseObjectPtr<SecureContext> context,
10001000
Local<Value> ocsp_response) {
10011001
Debug(session(),
10021002
"OCSPRequest completed. Context Provided? %s, OCSP Provided? %s",
@@ -2733,11 +2733,11 @@ void QuicSessionOnCertDone(const FunctionCallbackInfo<Value>& args) {
27332733
ASSIGN_OR_RETURN_UNWRAP(&session, args.Holder());
27342734

27352735
Local<FunctionTemplate> cons = env->secure_context_constructor_template();
2736-
crypto::SecureContext* context = nullptr;
2736+
SecureContext* context = nullptr;
27372737
if (args[0]->IsObject() && cons->HasInstance(args[0]))
2738-
context = Unwrap<crypto::SecureContext>(args[0].As<Object>());
2738+
context = Unwrap<SecureContext>(args[0].As<Object>());
27392739
session->crypto_context()->OnOCSPDone(
2740-
BaseObjectPtr<crypto::SecureContext>(context),
2740+
BaseObjectPtr<SecureContext>(context),
27412741
args[1]);
27422742
}
27432743
} // namespace
@@ -3675,7 +3675,7 @@ void NewQuicClientSession(const FunctionCallbackInfo<Value>& args) {
36753675
socket,
36763676
socket->local_address(),
36773677
remote_addr,
3678-
BaseObjectPtr<crypto::SecureContext>(sc),
3678+
BaseObjectPtr<SecureContext>(sc),
36793679
has_early_transport_params ? &early_transport_params : nullptr,
36803680
std::move(early_session_ticket),
36813681
args[ARG_IDX::DCID],

0 commit comments

Comments
 (0)