Add support for loading certificate revocation lists (issue #2213)

This commit is contained in:
Marshall Greenblatt
2017-07-11 15:02:44 -04:00
parent b216f427f6
commit 700123d3eb
9 changed files with 127 additions and 3 deletions

View File

@@ -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: