Support configuration of the CefTestServer certificate type (see issue #3348)

This commit is contained in:
Marshall Greenblatt
2022-08-04 12:37:12 -04:00
parent dcd4a0077c
commit 18dac30874
13 changed files with 86 additions and 28 deletions

View File

@@ -3371,6 +3371,23 @@ typedef enum {
CEF_PERMISSION_RESULT_IGNORE,
} cef_permission_request_result_t;
///
// Certificate types supported by CefTestServer::CreateAndStart. The matching
// certificate file must exist in the "net/data/ssl/certificates" directory.
// See CefSetDataDirectoryForTests() for related configuration.
///
typedef enum {
// Valid certificate using the IP (127.0.0.1). Loads the "ok_cert.pem" file.
CEF_TEST_CERT_OK_IP,
// Valid certificate using the domain ("localhost"). Loads the
// "localhost_cert.pem" file.
CEF_TEST_CERT_OK_DOMAIN,
// Expired certificate. Loads the "expired_cert.pem" file.
CEF_TEST_CERT_EXPIRED,
} cef_test_cert_type_t;
#ifdef __cplusplus
}
#endif