aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/misc.h
diff options
context:
space:
mode:
authorJames Yonan2016-03-03 01:19:05 -0700
committerGert Doering2016-06-20 20:15:47 +0200
commitc9a35a20812aafdacc3682a0379f52126bd567ae (patch)
tree5d5d65e27c549f4246a7e76cc18094129b6828d6 /src/openvpn/misc.h
parentb63f98633dbe2ca92cd43fc6f8597ab283a600bf (diff)
downloadopenvpn-c9a35a20812aafdacc3682a0379f52126bd567ae.zip
openvpn-c9a35a20812aafdacc3682a0379f52126bd567ae.tar.gz
Added directive to specify HTTP proxy credentials in config.
The inline directive http-proxy-user-pass can be used to specify proxy credentials in config, e.g.: http-proxy proxy.tld 3128 auto-nct <http-proxy-user-pass> foo bar </http-proxy-user-pass> This usage is already supported by OpenVPN 3. Signed-off-by: James Yonan <james@openvpn.net> Acked-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1456993146-63968-9-git-send-email-james@openvpn.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/11283 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/misc.h')
-rw-r--r--src/openvpn/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openvpn/misc.h b/src/openvpn/misc.h
index 65a6e55..b694096 100644
--- a/src/openvpn/misc.h
+++ b/src/openvpn/misc.h
@@ -256,6 +256,8 @@ struct static_challenge_info {};
#define GET_USER_PASS_STATIC_CHALLENGE (1<<8) /* SCRV1 protocol -- static challenge */
#define GET_USER_PASS_STATIC_CHALLENGE_ECHO (1<<9) /* SCRV1 protocol -- echo response */
+#define GET_USER_PASS_INLINE_CREDS (1<<10) /* indicates that auth_file is actually inline creds */
+
bool get_user_pass_cr (struct user_pass *up,
const char *auth_file,
const char *prefix,