ctld.c (263728) | ctld.c (263729) |
---|---|
1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2012 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Edward Tomasz Napierala under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: stable/10/usr.sbin/ctld/ctld.c 263728 2014-03-25 12:20:29Z trasz $ | 29 * $FreeBSD: stable/10/usr.sbin/ctld/ctld.c 263729 2014-03-25 12:22:30Z trasz $ |
30 */ 31 32#include <sys/types.h> 33#include <sys/time.h> 34#include <sys/socket.h> 35#include <sys/wait.h> 36#include <netinet/in.h> 37#include <assert.h> --- 396 unchanged lines hidden (view full) --- 434 435int 436auth_group_set_type_str(struct auth_group *ag, const char *str) 437{ 438 int error, type; 439 440 if (strcmp(str, "none") == 0) { 441 type = AG_TYPE_NO_AUTHENTICATION; | 30 */ 31 32#include <sys/types.h> 33#include <sys/time.h> 34#include <sys/socket.h> 35#include <sys/wait.h> 36#include <netinet/in.h> 37#include <assert.h> --- 396 unchanged lines hidden (view full) --- 434 435int 436auth_group_set_type_str(struct auth_group *ag, const char *str) 437{ 438 int error, type; 439 440 if (strcmp(str, "none") == 0) { 441 type = AG_TYPE_NO_AUTHENTICATION; |
442 } else if (strcmp(str, "deny") == 0) { 443 type = AG_TYPE_DENY; |
|
442 } else if (strcmp(str, "chap") == 0) { 443 type = AG_TYPE_CHAP; 444 } else if (strcmp(str, "chap-mutual") == 0) { 445 type = AG_TYPE_CHAP_MUTUAL; 446 } else { 447 if (ag->ag_name != NULL) 448 log_warnx("invalid auth-type \"%s\" for auth-group " 449 "\"%s\"", str, ag->ag_name); --- 1433 unchanged lines hidden --- | 444 } else if (strcmp(str, "chap") == 0) { 445 type = AG_TYPE_CHAP; 446 } else if (strcmp(str, "chap-mutual") == 0) { 447 type = AG_TYPE_CHAP_MUTUAL; 448 } else { 449 if (ag->ag_name != NULL) 450 log_warnx("invalid auth-type \"%s\" for auth-group " 451 "\"%s\"", str, ag->ag_name); --- 1433 unchanged lines hidden --- |