129088Smarkm/*- 229088Smarkm * Copyright (c) 1991, 1993 329088Smarkm * The Regents of the University of California. All rights reserved. 429088Smarkm * 529088Smarkm * Redistribution and use in source and binary forms, with or without 629088Smarkm * modification, are permitted provided that the following conditions 729088Smarkm * are met: 829088Smarkm * 1. Redistributions of source code must retain the above copyright 929088Smarkm * notice, this list of conditions and the following disclaimer. 1029088Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1129088Smarkm * notice, this list of conditions and the following disclaimer in the 1229088Smarkm * documentation and/or other materials provided with the distribution. 13351432Semaste * 3. Neither the name of the University nor the names of its contributors 1429088Smarkm * may be used to endorse or promote products derived from this software 1529088Smarkm * without specific prior written permission. 1629088Smarkm * 1729088Smarkm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1829088Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1929088Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2029088Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2129088Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2229088Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2329088Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2429088Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2529088Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2629088Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2729088Smarkm * SUCH DAMAGE. 2829088Smarkm * 2929088Smarkm * @(#)auth-proto.h 8.1 (Berkeley) 6/4/93 3063248Speter * $FreeBSD: stable/11/contrib/telnet/libtelnet/auth-proto.h 351432 2019-08-23 17:40:47Z emaste $ 3129088Smarkm */ 3229088Smarkm 3329088Smarkm/* 3429088Smarkm * Copyright (C) 1990 by the Massachusetts Institute of Technology 3529088Smarkm * 3629088Smarkm * Export of this software from the United States of America is assumed 3729088Smarkm * to require a specific license from the United States Government. 3829088Smarkm * It is the responsibility of any person or organization contemplating 3929088Smarkm * export to obtain such a license before exporting. 4029088Smarkm * 4129088Smarkm * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4229088Smarkm * distribute this software and its documentation for any purpose and 4329088Smarkm * without fee is hereby granted, provided that the above copyright 4429088Smarkm * notice appear in all copies and that both that copyright notice and 4529088Smarkm * this permission notice appear in supporting documentation, and that 4629088Smarkm * the name of M.I.T. not be used in advertising or publicity pertaining 4729088Smarkm * to distribution of the software without specific, written prior 4829088Smarkm * permission. M.I.T. makes no representations about the suitability of 4929088Smarkm * this software for any purpose. It is provided "as is" without express 5029088Smarkm * or implied warranty. 5129088Smarkm */ 5229088Smarkm 5387139Smarkm#ifdef AUTHENTICATION 5429088Smarkm 5587139SmarkmAuthenticator *findauthenticator(int, int); 5629088Smarkm 5787139Smarkmvoid auth_init(const char *, int); 5887139Smarkmint auth_cmd(int, char **); 5987139Smarkmvoid auth_request(void); 6087139Smarkmvoid auth_send(unsigned char *, int); 6187139Smarkmvoid auth_send_retry(void); 6287139Smarkmvoid auth_is(unsigned char *, int); 6387139Smarkmvoid auth_reply(unsigned char *, int); 6487139Smarkmvoid auth_finished(Authenticator *, int); 6587139Smarkmint auth_wait(char *); 6687139Smarkmvoid auth_disable_name(char *); 6787139Smarkmvoid auth_gen_printsub(unsigned char *, int, unsigned char *, int); 6887139Smarkmvoid auth_name(unsigned char *, int); 6987139Smarkmvoid auth_printsub(unsigned char *, int, unsigned char *, int); 7087139Smarkmint auth_sendname(unsigned char *, int); 7187139Smarkmvoid auth_encrypt_user(char *); 7287139Smarkmint auth_disable(char *); 7387139Smarkmint auth_enable(char *); 7487139Smarkmint auth_togdebug(int); 7587139Smarkmint auth_status(void); 7687139Smarkm 7787139Smarkmint getauthmask(char *, int *); 7887139Smarkm 7929088Smarkm#ifdef KRB4 8087139Smarkmint kerberos4_init(Authenticator *, int); 8187139Smarkmint kerberos4_send(Authenticator *); 8287139Smarkmvoid kerberos4_is(Authenticator *, unsigned char *, int); 8387139Smarkmvoid kerberos4_reply(Authenticator *, unsigned char *, int); 8487139Smarkmint kerberos4_status(Authenticator *, char *, int); 8587139Smarkmvoid kerberos4_printsub(unsigned char *, int, unsigned char *, int); 8629088Smarkm#endif 8729088Smarkm 8829088Smarkm#ifdef KRB5 8987139Smarkmint kerberos5_init(Authenticator *, int); 9087139Smarkmint kerberos5_send_mutual(Authenticator *); 9187139Smarkmint kerberos5_send_oneway(Authenticator *); 9287139Smarkmvoid kerberos5_is(Authenticator *, unsigned char *, int); 9387139Smarkmvoid kerberos5_reply(Authenticator *, unsigned char *, int); 9487139Smarkmint kerberos5_status(Authenticator *, char *, int level); 9587139Smarkmvoid kerberos5_printsub(unsigned char *, int, unsigned char *, int); 9629088Smarkm#endif 9787139Smarkm 9849887Snsayer#ifdef SRA 9987139Smarkmint sra_init(Authenticator *, int); 10087139Smarkmint sra_send(Authenticator *); 10187139Smarkmvoid sra_is(Authenticator *, unsigned char *, int); 10287139Smarkmvoid sra_reply(Authenticator *, unsigned char *, int); 10387139Smarkmint sra_status(Authenticator *, char *, int); 10487139Smarkmvoid sra_printsub(unsigned char *, int, unsigned char *, int); 10529088Smarkm#endif 10687139Smarkm 10749887Snsayer#endif 108