mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for loading certificate revocation lists (issue #2213)
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
|
||||
#include "tests/cefclient/browser/client_browser.h"
|
||||
|
||||
#include "include/cef_command_line.h"
|
||||
#include "include/cef_crash_util.h"
|
||||
#include "include/cef_file_util.h"
|
||||
#include "tests/shared/common/client_switches.h"
|
||||
|
||||
namespace client {
|
||||
namespace browser {
|
||||
@@ -23,6 +26,14 @@ class ClientBrowserDelegate : public ClientAppBrowser::Delegate {
|
||||
CefSetCrashKeyValue("testkey2", "value2_browser");
|
||||
CefSetCrashKeyValue("testkey3", "value3_browser");
|
||||
}
|
||||
|
||||
const std::string& crl_sets_path =
|
||||
CefCommandLine::GetGlobalCommandLine()->GetSwitchValue(
|
||||
switches::kCRLSetsPath);
|
||||
if (!crl_sets_path.empty()) {
|
||||
// Load the CRLSets file from the specified path.
|
||||
CefLoadCRLSetsFile(crl_sets_path);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user