Certificate data is now a string
This commit is contained in:
parent
47c37d6f51
commit
8f9a0100e3
1 changed files with 2 additions and 3 deletions
|
@ -168,13 +168,12 @@ void OnClientCertificateSelected(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
v8::Local<v8::Object> data;
|
std::string data;
|
||||||
if (!cert_data.Get("data", &data))
|
if (!cert_data.Get("data", &data))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto certs = net::X509Certificate::CreateCertificateListFromBytes(
|
auto certs = net::X509Certificate::CreateCertificateListFromBytes(
|
||||||
node::Buffer::Data(data), node::Buffer::Length(data),
|
data.c_str(), data.length(), net::X509Certificate::FORMAT_AUTO);
|
||||||
net::X509Certificate::FORMAT_AUTO);
|
|
||||||
if (certs.size() > 0)
|
if (certs.size() > 0)
|
||||||
delegate->ContinueWithCertificate(certs[0].get());
|
delegate->ContinueWithCertificate(certs[0].get());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue