From 265c8fcfc8360dae2611e88b8a53be136b802dbb Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 2 Apr 2018 18:27:29 -0700 Subject: [PATCH] Fix incorrect C++ usage --- packages/grpc-native-core/ext/server_credentials.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/grpc-native-core/ext/server_credentials.cc b/packages/grpc-native-core/ext/server_credentials.cc index 7172a165..256a6aaf 100644 --- a/packages/grpc-native-core/ext/server_credentials.cc +++ b/packages/grpc-native-core/ext/server_credentials.cc @@ -16,6 +16,8 @@ * */ +#include + #include #include @@ -148,8 +150,8 @@ NAN_METHOD(ServerCredentials::CreateSsl) { Local pair_list = Local::Cast(info[1]); uint32_t key_cert_pair_count = pair_list->Length(); grpc_ssl_pem_key_cert_pair key_cert_pairs[key_cert_pair_count]; - StringOrNull key_strings[key_cert_pair_count]; - StringOrNull cert_strings[key_cert_pair_count]; + std::vector key_strings(key_cert_pair_count); + std::vector cert_strings(key_cert_pair_count); Local key_key = Nan::New("private_key").ToLocalChecked(); Local cert_key = Nan::New("cert_chain").ToLocalChecked();