diff options
author | pneubeck <pneubeck@chromium.org> | 2014-10-07 02:17:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 09:17:55 +0000 |
commit | 5a85abfe99e683da34ba16115f063241fdae2acb (patch) | |
tree | 882659078feefae631eca6dc187b82450081a6ee /components/onc/onc_constants.cc | |
parent | fb66cb4f9b6e380fa4b52301dee993b0b7b3b994 (diff) | |
download | chromium_src-5a85abfe99e683da34ba16115f063241fdae2acb.zip chromium_src-5a85abfe99e683da34ba16115f063241fdae2acb.tar.gz chromium_src-5a85abfe99e683da34ba16115f063241fdae2acb.tar.bz2 |
Add OpenVPN OTP and UserAuthenticationType fields to ONC.
Reland of https://codereview.chromium.org/560863002/ which the CQ failed to commit correctly.
This does not adapt the UI to respect the policy's UserAuthenticationType, yet.
BUG=347916
TBR=stevenjb@chromium.org
TEST=Ensured that a previously working policy pushed OpenVPN network still works.
Review URL: https://codereview.chromium.org/632223002
Cr-Commit-Position: refs/heads/master@{#298431}
Diffstat (limited to 'components/onc/onc_constants.cc')
-rw-r--r-- | components/onc/onc_constants.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc index f8798a3..06342dfa 100644 --- a/components/onc/onc_constants.cc +++ b/components/onc/onc_constants.cc @@ -310,6 +310,8 @@ const char kKeyDirection[] = "KeyDirection"; const char kNoInteract[] = "nointeract"; const char kNone[] = "none"; const char kNsCertType[] = "NsCertType"; +const char kOTP[] = "OTP"; +const char kPassword[] = "Password"; const char kPort[] = "Port"; const char kProto[] = "Proto"; const char kPushPeerInfo[] = "PushPeerInfo"; @@ -328,11 +330,19 @@ const char kShaper[] = "Shaper"; const char kStaticChallenge[] = "StaticChallenge"; const char kTLSAuthContents[] = "TLSAuthContents"; const char kTLSRemote[] = "TLSRemote"; +const char kUserAuthenticationType[] = "UserAuthenticationType"; const char kVerb[] = "Verb"; const char kVerifyHash[] = "VerifyHash"; const char kVerifyX509[] = "VerifyX509"; } // namespace openvpn +namespace openvpn_user_auth_type { +const char kNone[] = "None"; +const char kOTP[] = "OTP"; +const char kPassword[] = "Password"; +const char kPasswordAndOTP[] = "PasswordAndOTP"; +} // openvpn_user_auth_type + namespace verify_x509 { const char kName[] = "Name"; const char kType[] = "Type"; |