mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Pass SSL certificate information to CefRequestHandler::OnCertificateError via a new CefSSLInfo interface (issue #1530).
- cefclient: Improve error message text and use a data: URI instead of LoadString for loading error messages (issue #579). - Add functions in cef_url.h for base64 and URI encoding/decoding (issue #579). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/2272@2029 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
36
libcef/browser/ssl_cert_principal_impl.h
Normal file
36
libcef/browser/ssl_cert_principal_impl.h
Normal file
@ -0,0 +1,36 @@
|
||||
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#ifndef CEF_LIBCEF_BROWSER_SSL_CERT_PRINCIPAL_IMPL_H_
|
||||
#define CEF_LIBCEF_BROWSER_SSL_CERT_PRINCIPAL_IMPL_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_ssl_info.h"
|
||||
|
||||
#include "net/cert/x509_cert_types.h"
|
||||
|
||||
// CefSSLCertPrincipal implementation
|
||||
class CefSSLCertPrincipalImpl : public CefSSLCertPrincipal {
|
||||
public:
|
||||
explicit CefSSLCertPrincipalImpl(const net::CertPrincipal& value);
|
||||
|
||||
// CefSSLCertPrincipal methods.
|
||||
CefString GetDisplayName() override;
|
||||
CefString GetCommonName() override;
|
||||
CefString GetLocalityName() override;
|
||||
CefString GetStateOrProvinceName() override;
|
||||
CefString GetCountryName() override;
|
||||
void GetStreetAddresses(std::vector<CefString>& addresses) override;
|
||||
void GetOrganizationNames(std::vector<CefString>& names) override;
|
||||
void GetOrganizationUnitNames(std::vector<CefString>& names) override;
|
||||
void GetDomainComponents(std::vector<CefString>& components) override;
|
||||
|
||||
private:
|
||||
net::CertPrincipal value_;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(CefSSLCertPrincipalImpl);
|
||||
DISALLOW_COPY_AND_ASSIGN(CefSSLCertPrincipalImpl);
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_SSL_CERT_PRINCIPAL_IMPL_H_
|
Reference in New Issue
Block a user