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
[email protected]
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}
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h
index d96e190..5e197e0e 100644
--- a/components/onc/onc_constants.h
+++ b/components/onc/onc_constants.h
@@ -328,6 +328,8 @@
ONC_EXPORT extern const char kNoInteract[];
ONC_EXPORT extern const char kNone[];
ONC_EXPORT extern const char kNsCertType[];
+ONC_EXPORT extern const char kOTP[];
+ONC_EXPORT extern const char kPassword[];
ONC_EXPORT extern const char kPort[];
ONC_EXPORT extern const char kProto[];
ONC_EXPORT extern const char kPushPeerInfo[];
@@ -346,11 +348,19 @@
ONC_EXPORT extern const char kStaticChallenge[];
ONC_EXPORT extern const char kTLSAuthContents[];
ONC_EXPORT extern const char kTLSRemote[];
+ONC_EXPORT extern const char kUserAuthenticationType[];
ONC_EXPORT extern const char kVerb[];
ONC_EXPORT extern const char kVerifyHash[];
ONC_EXPORT extern const char kVerifyX509[];
} // namespace openvpn
+namespace openvpn_user_auth_type {
+ONC_EXPORT extern const char kNone[];
+ONC_EXPORT extern const char kOTP[];
+ONC_EXPORT extern const char kPassword[];
+ONC_EXPORT extern const char kPasswordAndOTP[];
+} // openvpn_user_auth_type
+
namespace verify_x509 {
ONC_EXPORT extern const char kName[];
ONC_EXPORT extern const char kType[];