Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: components/cronet/url_request_context_config_list.h

Issue 1407263010: [Cronet] Public key pinning for Java API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes and rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cronet/url_request_context_config_list.h
diff --git a/components/cronet/url_request_context_config_list.h b/components/cronet/url_request_context_config_list.h
index 7636e95f643113e7c5bf49f052f80fd8f5ba302a..53ded8b43ef0ccbce7b5e1deb0160d9a9ebf9dad 100644
--- a/components/cronet/url_request_context_config_list.h
+++ b/components/cronet/url_request_context_config_list.h
@@ -7,7 +7,8 @@
#ifndef DEFINE_CONTEXT_CONFIG
#error "DEFINE_CONTEXT_CONFIG should be defined before including this file"
#endif
-// See HttpUrlRequestFactoryConfig.java for description of these parameters.
+// See CronetEngine.Builder class in CronetEngine.java for description of these
+// parameters.
DEFINE_CONTEXT_CONFIG(USER_AGENT)
DEFINE_CONTEXT_CONFIG(STORAGE_PATH)
DEFINE_CONTEXT_CONFIG(ENABLE_LEGACY_MODE)
@@ -34,5 +35,22 @@ DEFINE_CONTEXT_CONFIG(QUIC_HINT_ALT_PORT)
DEFINE_CONTEXT_CONFIG(EXPERIMENTAL_OPTIONS)
+// The list of PKP info for multiple hosts. Each member of the list pins a
+// single host and contains the following nested JSON elements: PKP_HOST,
+// PKP_PIN_HASHES, PKP_INCLUDE_SUBDOMAINS and PKP_EXPIRATION_DATE.
+DEFINE_CONTEXT_CONFIG(PKP_LIST)
+// Name of the host to which public keys should be pinned. See PKP_LIST.
+DEFINE_CONTEXT_CONFIG(PKP_HOST)
+// The list of PKP pins. Each pin is BASE64 encoded SHA-256 cryptographic
+// hash of DER-encoded ASN.1 representation of Subject Public Key Info (SPKI)
+// of the host X.509 certificate. The pins are prepended with "sha256/" prefix.
+// See PKP_LIST.
+DEFINE_CONTEXT_CONFIG(PKP_PIN_HASHES)
+// Indicates whether the pinning policy should be applied to subdomains of
+// PKP_HOST. See PKP_LIST.
+DEFINE_CONTEXT_CONFIG(PKP_INCLUDE_SUBDOMAINS)
+// Specifies the expiration date for the pins. See PKP_LIST.
+DEFINE_CONTEXT_CONFIG(PKP_EXPIRATION_DATE)
+
// For Testing.
DEFINE_CONTEXT_CONFIG(MOCK_CERT_VERIFIER)
« no previous file with comments | « components/cronet/url_request_context_config.cc ('k') | net/android/javatests/src/org/chromium/net/X509UtilTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698