Path: blob/main/crypto/heimdal/appl/telnet/libtelnet/auth.h
34878 views
/*-1* Copyright (c) 1991, 19932* The Regents of the University of California. All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12* 3. All advertising materials mentioning features or use of this software13* must display the following acknowledgement:14* This product includes software developed by the University of15* California, Berkeley and its contributors.16* 4. Neither the name of the University nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*32* @(#)auth.h 8.1 (Berkeley) 6/4/9333*/3435/*36* Copyright (C) 1990 by the Massachusetts Institute of Technology37*38* Export of this software from the United States of America is assumed39* to require a specific license from the United States Government.40* It is the responsibility of any person or organization contemplating41* export to obtain such a license before exporting.42*43* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and44* distribute this software and its documentation for any purpose and45* without fee is hereby granted, provided that the above copyright46* notice appear in all copies and that both that copyright notice and47* this permission notice appear in supporting documentation, and that48* the name of M.I.T. not be used in advertising or publicity pertaining49* to distribution of the software without specific, written prior50* permission. M.I.T. makes no representations about the suitability of51* this software for any purpose. It is provided "as is" without express52* or implied warranty.53*/5455/* $Id$ */5657#ifndef __AUTH__58#define __AUTH__5960#define AUTH_REJECT 0 /* Rejected */61#define AUTH_UNKNOWN 1 /* We don't know who he is, but he's okay */62#define AUTH_OTHER 2 /* We know him, but not his name */63#define AUTH_USER 3 /* We know he name */64#define AUTH_VALID 4 /* We know him, and he needs no password */6566typedef struct XauthP {67int type;68int way;69int (*init) (struct XauthP *, int);70int (*send) (struct XauthP *);71void (*is) (struct XauthP *, unsigned char *, int);72void (*reply) (struct XauthP *, unsigned char *, int);73int (*status) (struct XauthP *, char *, size_t, int);74void (*printsub) (unsigned char *, size_t, unsigned char *, size_t);75} Authenticator;7677#include "auth-proto.h"7879extern int auth_debug_mode;80#endif818283