diff options
author | Clavister OpenSource <opensource@clavister.com> | 2011-12-01 16:34:30 +0100 |
---|---|---|
committer | Clavister OpenSource <opensource@clavister.com> | 2012-03-20 17:31:11 +0100 |
commit | 4394d96844343ea0429a0ea285140b146aeef62a (patch) | |
tree | 9d0e39782b1db8ee751e8d7548d27c07106fbd0c /src/libstrongswan/xauth/xauth.c | |
parent | 9c5366446a335ca5b53ca3b8813a971ba2b01080 (diff) | |
download | strongswan-4394d96844343ea0429a0ea285140b146aeef62a.tar.bz2 strongswan-4394d96844343ea0429a0ea285140b146aeef62a.tar.xz |
IKEv1 XAuth: Added a "NULL" XAuth plugin which sends a hardcoded user/pass, and blindly accepts whatever user/pass is sent it. Changed the xauth_request task to use this new plugin. Add --enable-xauth-null to your configure line to build with the new plugin.
Diffstat (limited to 'src/libstrongswan/xauth/xauth.c')
-rw-r--r-- | src/libstrongswan/xauth/xauth.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/libstrongswan/xauth/xauth.c b/src/libstrongswan/xauth/xauth.c index 8c0046337..b2caf374a 100644 --- a/src/libstrongswan/xauth/xauth.c +++ b/src/libstrongswan/xauth/xauth.c @@ -15,13 +15,15 @@ #include "xauth.h" -ENUM_BEGIN(xauth_method_type_names, XAUTH_RADIUS, XAUTH_RADIUS, - "XAUTH_RADIUS"); -ENUM_END(xauth_method_type_names, XAUTH_RADIUS); +ENUM_BEGIN(xauth_method_type_names, XAUTH_RADIUS, XAUTH_NULL, + "XAUTH_RADIUS", + "XAUTH_NULL"); +ENUM_END(xauth_method_type_names, XAUTH_NULL); -ENUM_BEGIN(xauth_method_type_short_names, XAUTH_RADIUS, XAUTH_RADIUS, - "RAD"); -ENUM_END(xauth_method_type_short_names, XAUTH_RADIUS); +ENUM_BEGIN(xauth_method_type_short_names, XAUTH_RADIUS, XAUTH_NULL, + "RAD", + "NULL"); +ENUM_END(xauth_method_type_short_names, XAUTH_NULL); /* * See header @@ -34,6 +36,7 @@ xauth_type_t xauth_type_from_string(char *name) xauth_type_t type; } types[] = { {"radius", XAUTH_RADIUS}, + {"null", XAUTH_NULL}, }; for (i = 0; i < countof(types); i++) |