auth.h revision 87139
1316958Sdchagin/*- 259243Sobrien * Copyright (c) 1991, 1993 359243Sobrien * The Regents of the University of California. All rights reserved. 459243Sobrien * 559243Sobrien * Redistribution and use in source and binary forms, with or without 659243Sobrien * modification, are permitted provided that the following conditions 759243Sobrien * are met: 859243Sobrien * 1. Redistributions of source code must retain the above copyright 959243Sobrien * notice, this list of conditions and the following disclaimer. 1059243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1159243Sobrien * notice, this list of conditions and the following disclaimer in the 1259243Sobrien * documentation and/or other materials provided with the distribution. 1359243Sobrien * 3. All advertising materials mentioning features or use of this software 1459243Sobrien * must display the following acknowledgement: 1559243Sobrien * This product includes software developed by the University of 1659243Sobrien * California, Berkeley and its contributors. 1759243Sobrien * 4. Neither the name of the University nor the names of its contributors 1859243Sobrien * may be used to endorse or promote products derived from this software 1959243Sobrien * without specific prior written permission. 2059243Sobrien * 2159243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2259243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2359243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2459243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2559243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2659243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2759243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2859243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2959243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3059243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3159243Sobrien * SUCH DAMAGE. 3259243Sobrien * 3359243Sobrien * @(#)auth.h 8.1 (Berkeley) 6/4/93 3459243Sobrien * $FreeBSD: head/contrib/telnet/libtelnet/auth.h 87139 2001-11-30 21:06:38Z markm $ 3559243Sobrien */ 3659243Sobrien 3759243Sobrien/* 3859243Sobrien * Copyright (C) 1990 by the Massachusetts Institute of Technology 3959243Sobrien * 4059243Sobrien * Export of this software from the United States of America is assumed 4159243Sobrien * to require a specific license from the United States Government. 4259243Sobrien * It is the responsibility of any person or organization contemplating 4359243Sobrien * export to obtain such a license before exporting. 4459243Sobrien * 4559243Sobrien * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4659243Sobrien * distribute this software and its documentation for any purpose and 4759243Sobrien * without fee is hereby granted, provided that the above copyright 4859243Sobrien * notice appear in all copies and that both that copyright notice and 4959243Sobrien * this permission notice appear in supporting documentation, and that 5059243Sobrien * the name of M.I.T. not be used in advertising or publicity pertaining 5159243Sobrien * to distribution of the software without specific, written prior 5259243Sobrien * permission. M.I.T. makes no representations about the suitability of 5359243Sobrien * this software for any purpose. It is provided "as is" without express 5459243Sobrien * or implied warranty. 5559243Sobrien */ 5659243Sobrien 5759243Sobrien#ifndef __AUTH__ 5859243Sobrien#define __AUTH__ 5959243Sobrien 6059243Sobrien#define AUTH_REJECT 0 /* Rejected */ 6159243Sobrien#define AUTH_UNKNOWN 1 /* We don't know who he is, but he's okay */ 6259243Sobrien#define AUTH_OTHER 2 /* We know him, but not his name */ 6359243Sobrien#define AUTH_USER 3 /* We know he name */ 6459243Sobrien#define AUTH_VALID 4 /* We know him, and he needs no password */ 6559243Sobrien 6659243Sobrientypedef struct XauthP { 6759243Sobrien int type; 6859243Sobrien int way; 6959243Sobrien int (*init)(struct XauthP *, int); 7059243Sobrien int (*send)(struct XauthP *); 7159243Sobrien void (*is)(struct XauthP *, unsigned char *, int); 7259243Sobrien void (*reply)(struct XauthP *, unsigned char *, int); 73100616Smp int (*status)(struct XauthP *, char *, int); 7459243Sobrien void (*printsub)(unsigned char *, int, unsigned char *, int); 7559243Sobrien} Authenticator; 7659243Sobrien 7759243Sobrien#include "auth-proto.h" 7859243Sobrien 7959243Sobrienextern int auth_debug_mode; 8059243Sobrien#endif 8159243Sobrien