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[] = "$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 |
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> |
75#include <com_err.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> |
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 |
91extern int auth_debug_mode; |
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 --- |