summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-02-11 11:32:36 +0000
committertrasz <trasz@FreeBSD.org>2014-02-11 11:32:36 +0000
commitd2233667737fd4f8c08b7bd91b42dd5394f0f3c7 (patch)
tree63f71965ca64222f76bc030b2b9f04a88925c322 /usr.sbin/ctld/ctld.h
parent7f7fd0dbc0e0dff0202586fa4aa864c47f28bfd2 (diff)
downloadFreeBSD-src-d2233667737fd4f8c08b7bd91b42dd5394f0f3c7.zip
FreeBSD-src-d2233667737fd4f8c08b7bd91b42dd5394f0f3c7.tar.gz
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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h
index 0982ef1..ce161b6 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;
OpenPOWER on IntegriCloud