summaryrefslogtreecommitdiffstats
path: root/components/onc/onc_constants.h
diff options
context:
space:
mode:
authorpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 13:19:14 +0000
committerpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-12 13:19:14 +0000
commite3a46c6babaf4f26a5ab606cd2eea735ae06ae93 (patch)
treec3a4b752b13a106921be5fb93172f404cb6f5f90 /components/onc/onc_constants.h
parent80da61e18ab0c93c7fd5d9816979e155db8c3dbe (diff)
downloadchromium_src-e3a46c6babaf4f26a5ab606cd2eea735ae06ae93.zip
chromium_src-e3a46c6babaf4f26a5ab606cd2eea735ae06ae93.tar.gz
chromium_src-e3a46c6babaf4f26a5ab606cd2eea735ae06ae93.tar.bz2
ChromeOS: Add more host verification options for OpenVpn.
Support the --verify-hash and --verify-x509-name options of OpenVPN via ONC. Note that the ONC validator restricts the possible types passable to --verify-x509-name to "name", "name-prefix" and "subject". See also https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage . BUG=276291 R=armansito@chromium.org, bartfab@chromium.org, pstew@chromium.org Review URL: https://codereview.chromium.org/61903002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/onc/onc_constants.h')
-rw-r--r--components/onc/onc_constants.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h
index b114177..21c6b5a 100644
--- a/components/onc/onc_constants.h
+++ b/components/onc/onc_constants.h
@@ -288,8 +288,21 @@ ONC_EXPORT extern const char kStaticChallenge[];
ONC_EXPORT extern const char kTLSAuthContents[];
ONC_EXPORT extern const char kTLSRemote[];
ONC_EXPORT extern const char kVerb[];
+ONC_EXPORT extern const char kVerifyHash[];
+ONC_EXPORT extern const char kVerifyX509[];
} // namespace openvpn
+namespace verify_x509 {
+ONC_EXPORT extern const char kName[];
+ONC_EXPORT extern const char kType[];
+
+namespace types {
+ONC_EXPORT extern const char kName[];
+ONC_EXPORT extern const char kNamePrefix[];
+ONC_EXPORT extern const char kSubject[];
+} // namespace types
+} // namespace verify_x509
+
namespace substitutes {
ONC_EXPORT extern const char kEmailField[];
ONC_EXPORT extern const char kLoginIDField[];