mirror of https://github.com/grpc/grpc-node.git
Fix incorrect C++ usage
This commit is contained in:
parent
0210f160ed
commit
265c8fcfc8
|
|
@ -16,6 +16,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include <nan.h>
|
#include <nan.h>
|
||||||
#include <node.h>
|
#include <node.h>
|
||||||
|
|
||||||
|
|
@ -148,8 +150,8 @@ NAN_METHOD(ServerCredentials::CreateSsl) {
|
||||||
Local<Array> pair_list = Local<Array>::Cast(info[1]);
|
Local<Array> pair_list = Local<Array>::Cast(info[1]);
|
||||||
uint32_t key_cert_pair_count = pair_list->Length();
|
uint32_t key_cert_pair_count = pair_list->Length();
|
||||||
grpc_ssl_pem_key_cert_pair key_cert_pairs[key_cert_pair_count];
|
grpc_ssl_pem_key_cert_pair key_cert_pairs[key_cert_pair_count];
|
||||||
StringOrNull key_strings[key_cert_pair_count];
|
std::vector<StringOrNull> key_strings(key_cert_pair_count);
|
||||||
StringOrNull cert_strings[key_cert_pair_count];
|
std::vector<StringOrNull> cert_strings(key_cert_pair_count);
|
||||||
Local<String> key_key = Nan::New("private_key").ToLocalChecked();
|
Local<String> key_key = Nan::New("private_key").ToLocalChecked();
|
||||||
Local<String> cert_key = Nan::New("cert_chain").ToLocalChecked();
|
Local<String> cert_key = Nan::New("cert_chain").ToLocalChecked();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue