From d4ed2e61f7acf9359c6c5c74674677f8f0c0db77 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 12 Apr 2012 08:16:30 -0700 Subject: [PATCH] Add Todo comments about domain-ifying crypto --- src/node_crypto.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 5f6594b8e5..c05e8e3361 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -864,6 +864,9 @@ int Connection::SelectSNIContextCallback_(SSL *s, int *ad, void* arg) { Local callback = *p->sniCallback_; // Call it + // + // XXX There should be an object connected to this that + // we can attach a domain onto. Local ret; ret = Local::New(MakeCallback(Context::GetCurrent()->Global(), callback, ARRAY_SIZE(argv), argv)); @@ -4123,6 +4126,8 @@ EIO_PBKDF2After(uv_work_t* req) { argv[1] = Local::New(Undefined()); } + // XXX There should be an object connected to this that + // we can attach a domain onto. MakeCallback(Context::GetCurrent()->Global(), request->callback, ARRAY_SIZE(argv), argv); @@ -4313,6 +4318,8 @@ void RandomBytesAfter(uv_work_t* work_req) { Local argv[2]; RandomBytesCheck(req, argv); + // XXX There should be an object connected to this that + // we can attach a domain onto. MakeCallback(Context::GetCurrent()->Global(), req->callback_, ARRAY_SIZE(argv), argv);