Path: blob/main/crypto/heimdal/appl/telnet/libtelnet/auth-proto.h
34907 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-proto.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#ifdef AUTHENTICATION58Authenticator *findauthenticator (int, int);5960int auth_wait (char *, size_t);61void auth_disable_name (char *);62void auth_finished (Authenticator *, int);63void auth_gen_printsub (unsigned char *, size_t, unsigned char *, size_t);64void auth_init (const char *, int);65void auth_is (unsigned char *, int);66void auth_name(unsigned char*, int);67void auth_reply (unsigned char *, int);68void auth_request (void);69void auth_send (unsigned char *, int);70void auth_send_retry (void);71void auth_printsub(unsigned char*, size_t, unsigned char*, size_t);72int getauthmask(char *type, int *maskp);73int auth_enable(char *type);74int auth_disable(char *type);75int auth_onoff(char *type, int on);76int auth_togdebug(int on);77int auth_status(void);78int auth_sendname(unsigned char *cp, int len);79void auth_debug(int mode);8081#ifdef UNSAFE82int unsafe_init (Authenticator *, int);83int unsafe_send (Authenticator *);84void unsafe_is (Authenticator *, unsigned char *, int);85void unsafe_reply (Authenticator *, unsigned char *, int);86int unsafe_status (Authenticator *, char *, int);87void unsafe_printsub (unsigned char *, size_t, unsigned char *, size_t);88#endif8990#ifdef SRA91int sra_init (Authenticator *, int);92int sra_send (Authenticator *);93void sra_is (Authenticator *, unsigned char *, int);94void sra_reply (Authenticator *, unsigned char *, int);95int sra_status (Authenticator *, char *, int);96void sra_printsub (unsigned char *, size_t, unsigned char *, size_t);97#endif9899#ifdef KRB5100int kerberos5_init (Authenticator *, int);101int kerberos5_send_mutual (Authenticator *);102int kerberos5_send_oneway (Authenticator *);103void kerberos5_is (Authenticator *, unsigned char *, int);104void kerberos5_reply (Authenticator *, unsigned char *, int);105int kerberos5_status (Authenticator *, char *, size_t, int);106void kerberos5_printsub (unsigned char *, size_t, unsigned char *, size_t);107int kerberos5_set_forward(int);108int kerberos5_set_forwardable(int);109#endif110#endif111112113