Deleted Added
full compact
kerberos5.c (29089) kerberos5.c (81965)
1/*
2 * $Source: /mit/krb5/.cvsroot/src/appl/telnet/libtelnet/kerberos5.c,v $
3 * $Author: tytso $
4 * $Id: kerberos5.c,v 1.1 1997/09/04 06:11:15 markm Exp $
5 */
6
7#if !defined(lint) && !defined(SABER)
8static
9#ifdef __STDC__
10const
11#endif
1/*
2 * $Source: /mit/krb5/.cvsroot/src/appl/telnet/libtelnet/kerberos5.c,v $
3 * $Author: tytso $
4 * $Id: kerberos5.c,v 1.1 1997/09/04 06:11:15 markm Exp $
5 */
6
7#if !defined(lint) && !defined(SABER)
8static
9#ifdef __STDC__
10const
11#endif
12char rcsid_kerberos5_c[] = "$Id: kerberos5.c,v 1.1 1997/09/04 06:11:15 markm Exp $";
12char rcsid_kerberos5_c[] = "$FreeBSD: head/contrib/telnet/libtelnet/kerberos5.c 81965 2001-08-20 12:28:40Z markm $";
13#endif /* lint */
14
15/*-
16 * Copyright (c) 1991, 1993
17 * The Regents of the University of California. All rights reserved.
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions

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

41 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
42 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 */
47
48#ifndef lint
13#endif /* lint */
14
15/*-
16 * Copyright (c) 1991, 1993
17 * The Regents of the University of California. All rights reserved.
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions

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

41 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
42 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 */
47
48#ifndef lint
49static char sccsid[] = "@(#)kerberos5.c 8.3 (Berkeley) 5/30/95";
49static const char sccsid[] = "@(#)kerberos5.c 8.3 (Berkeley) 5/30/95";
50#endif /* not lint */
51
52/*
53 * Copyright (C) 1990 by the Massachusetts Institute of Technology
54 *
55 * Export of this software from the United States of America may
56 * require a specific license from the United States Government.
57 * It is the responsibility of any person or organization contemplating

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

67 * permission. M.I.T. makes no representations about the suitability of
68 * this software for any purpose. It is provided "as is" without express
69 * or implied warranty.
70 */
71
72
73#ifdef KRB5
74#include <arpa/telnet.h>
50#endif /* not lint */
51
52/*
53 * Copyright (C) 1990 by the Massachusetts Institute of Technology
54 *
55 * Export of this software from the United States of America may
56 * require a specific license from the United States Government.
57 * It is the responsibility of any person or organization contemplating

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

67 * permission. M.I.T. makes no representations about the suitability of
68 * this software for any purpose. It is provided "as is" without express
69 * or implied warranty.
70 */
71
72
73#ifdef KRB5
74#include <arpa/telnet.h>
75#include <stdio.h>
76#include <krb5/krb5.h>
77#include <krb5/asn1.h>
78#include <krb5/crc-32.h>
79#include <krb5/los-proto.h>
80#include <krb5/ext-proto.h>
81#include <com_err.h>
75#include <com_err.h>
82#include <netdb.h>
83#include <ctype.h>
76#include <ctype.h>
77#include <krb5.h>
78#include <krb5_asn1.h>
79#include <netdb.h>
80#include <stdio.h>
81#include <stdlib.h>
82#include <string.h>
84
85/* kerberos 5 include files (ext-proto.h) will get an appropriate stdlib.h
86 and string.h/strings.h */
87
88#include "encrypt.h"
89#include "auth.h"
90#include "misc.h"
91
83
84/* kerberos 5 include files (ext-proto.h) will get an appropriate stdlib.h
85 and string.h/strings.h */
86
87#include "encrypt.h"
88#include "auth.h"
89#include "misc.h"
90
92extern auth_debug_mode;
91extern int auth_debug_mode;
93
94#ifdef FORWARD
95int forward_flags = 0; /* Flags get set in telnet/main.c on -f and -F */
96
97/* These values need to be the same as those defined in telnet/main.c. */
98/* Either define them in both places, or put in some common header file. */
99#define OPTS_FORWARD_CREDS 0x00000002
100#define OPTS_FORWARDABLE_CREDS 0x00000001

--- 664 unchanged lines hidden ---
92
93#ifdef FORWARD
94int forward_flags = 0; /* Flags get set in telnet/main.c on -f and -F */
95
96/* These values need to be the same as those defined in telnet/main.c. */
97/* Either define them in both places, or put in some common header file. */
98#define OPTS_FORWARD_CREDS 0x00000002
99#define OPTS_FORWARDABLE_CREDS 0x00000001

--- 664 unchanged lines hidden ---