mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision ff259bab (#488528)
This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "libcef/browser/x509_certificate_impl.h"
|
||||
|
||||
#include "libcef/browser/x509_cert_principal_impl.h"
|
||||
#include "libcef/common/time_util.h"
|
||||
|
||||
#include "net/ssl/ssl_private_key.h"
|
||||
|
||||
namespace {
|
||||
|
||||
CefRefPtr<CefBinaryValue> EncodeCertificate(
|
||||
@@ -24,6 +27,10 @@ CefRefPtr<CefBinaryValue> EncodeCertificate(
|
||||
|
||||
} // namespace
|
||||
|
||||
CefX509CertificateImpl::CefX509CertificateImpl(
|
||||
std::unique_ptr<net::ClientCertIdentity> identity)
|
||||
: identity_(std::move(identity)), cert_(identity_->certificate()) {}
|
||||
|
||||
CefX509CertificateImpl::CefX509CertificateImpl(
|
||||
scoped_refptr<net::X509Certificate> cert)
|
||||
: cert_(cert) {}
|
||||
@@ -92,6 +99,15 @@ size_t CefX509CertificateImpl::GetIssuerChainSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CefX509CertificateImpl::AcquirePrivateKey(
|
||||
const base::Callback<void(scoped_refptr<net::SSLPrivateKey>)>&
|
||||
private_key_callback) {
|
||||
if (identity_)
|
||||
identity_->AcquirePrivateKey(private_key_callback);
|
||||
else
|
||||
private_key_callback.Run(nullptr);
|
||||
}
|
||||
|
||||
void CefX509CertificateImpl::GetEncodedIssuerChain(
|
||||
CefX509Certificate::IssuerChainBinaryList& chain,
|
||||
bool der) {
|
||||
|
Reference in New Issue
Block a user