aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-07-21 23:02:16 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-07-21 23:02:16 -0700
commit5029b30d1ce8509a4b2f7c17e88bddb8a5206f56 (patch)
treeb586799ce95e506d9cb5311d7bf5e751bf26226f /src/node
parentd1408e71636f7ec74839a9bcff0429fb7e2caeb0 (diff)
Adding option to force client auth on the server SSL creds.
Diffstat (limited to 'src/node')
-rw-r--r--src/node/ext/server_credentials.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/ext/server_credentials.cc b/src/node/ext/server_credentials.cc
index d2b63cdc4e..709105c72f 100644
--- a/src/node/ext/server_credentials.cc
+++ b/src/node/ext/server_credentials.cc
@@ -140,8 +140,10 @@ NAN_METHOD(ServerCredentials::CreateSsl) {
return NanThrowTypeError("createSsl's third argument must be a Buffer");
}
key_cert_pair.cert_chain = ::node::Buffer::Data(args[2]);
+ // TODO Add a force_client_auth parameter and pass it as the last parameter
+ // here.
NanReturnValue(WrapStruct(
- grpc_ssl_server_credentials_create(root_certs, &key_cert_pair, 1)));
+ grpc_ssl_server_credentials_create(root_certs, &key_cert_pair, 1, 0)));
}
NAN_METHOD(ServerCredentials::CreateFake) {