diff options
author | trasz <trasz@FreeBSD.org> | 2014-03-25 12:22:30 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-03-25 12:22:30 +0000 |
commit | 5fb75e3b8f09c689ffcda3c05dad773f6f6625f2 (patch) | |
tree | e1b1ca58287cf781432e4c39bad08464dea2e932 /usr.sbin/ctld/ctld.h | |
parent | d3e539d4a4a3fa52420768795cc3944d48cc616a (diff) | |
download | FreeBSD-src-5fb75e3b8f09c689ffcda3c05dad773f6f6625f2.zip FreeBSD-src-5fb75e3b8f09c689ffcda3c05dad773f6f6625f2.tar.gz |
MFC r261763:
Use new auth-type "deny" instead of using "chap" with no chap entries;
it's cleaner this way, and gives better feedback to the user.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r-- | usr.sbin/ctld/ctld.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h index a4b1e4e..ae11922 100644 --- a/usr.sbin/ctld/ctld.h +++ b/usr.sbin/ctld/ctld.h @@ -66,9 +66,10 @@ struct auth_portal { }; #define AG_TYPE_UNKNOWN 0 -#define AG_TYPE_NO_AUTHENTICATION 1 -#define AG_TYPE_CHAP 2 -#define AG_TYPE_CHAP_MUTUAL 3 +#define AG_TYPE_DENY 1 +#define AG_TYPE_NO_AUTHENTICATION 2 +#define AG_TYPE_CHAP 3 +#define AG_TYPE_CHAP_MUTUAL 4 struct auth_group { TAILQ_ENTRY(auth_group) ag_next; |