Deleted Added
full compact
login.c (263723) login.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/login.c 263723 2014-03-25 12:10:30Z trasz $
29 * $FreeBSD: stable/10/usr.sbin/ctld/login.c 263729 2014-03-25 12:22:30Z trasz $
30 */
31
32#include <assert.h>
33#include <stdbool.h>
34#include <stdint.h>
35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>

--- 991 unchanged lines hidden (view full) ---

1029 keys_delete(response_keys);
1030 pdu_delete(request);
1031 keys_delete(request_keys);
1032
1033 login_negotiate(conn, NULL);
1034 return;
1035 }
1036
30 */
31
32#include <assert.h>
33#include <stdbool.h>
34#include <stdint.h>
35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>

--- 991 unchanged lines hidden (view full) ---

1029 keys_delete(response_keys);
1030 pdu_delete(request);
1031 keys_delete(request_keys);
1032
1033 login_negotiate(conn, NULL);
1034 return;
1035 }
1036
1037 if (ag->ag_type == AG_TYPE_DENY) {
1038 login_send_error(request, 0x02, 0x01);
1039 log_errx(1, "auth-group type is \"deny\"");
1040 }
1041
1037 if (ag->ag_type == AG_TYPE_UNKNOWN) {
1038 /*
1039 * This can happen with empty auth-group.
1040 */
1041 login_send_error(request, 0x02, 0x01);
1042 log_errx(1, "auth-group type not set, denying access");
1043 }
1044

--- 44 unchanged lines hidden ---
1042 if (ag->ag_type == AG_TYPE_UNKNOWN) {
1043 /*
1044 * This can happen with empty auth-group.
1045 */
1046 login_send_error(request, 0x02, 0x01);
1047 log_errx(1, "auth-group type not set, denying access");
1048 }
1049

--- 44 unchanged lines hidden ---