misc-proto.h revision 256281
1153761Swollman/*- 2197597Sedwin * Copyright (c) 1991, 1993 3192886Sedwin * The Regents of the University of California. All rights reserved. 4192886Sedwin * 564499Swollman * Redistribution and use in source and binary forms, with or without 62742Swollman * modification, are permitted provided that the following conditions 72742Swollman * are met: 82742Swollman * 1. Redistributions of source code must retain the above copyright 92742Swollman * notice, this list of conditions and the following disclaimer. 10158421Swollman * 2. Redistributions in binary form must reproduce the above copyright 112742Swollman * notice, this list of conditions and the following disclaimer in the 12158421Swollman * documentation and/or other materials provided with the distribution. 13158421Swollman * 3. All advertising materials mentioning features or use of this software 142742Swollman * must display the following acknowledgement: 1586222Swollman * This product includes software developed by the University of 1620094Swollman * California, Berkeley and its contributors. 1720094Swollman * 4. Neither the name of the University nor the names of its contributors 1820094Swollman * may be used to endorse or promote products derived from this software 1920094Swollman * without specific prior written permission. 2020094Swollman * 21158421Swollman * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22158421Swollman * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2320094Swollman * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2419878Swollman * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2519878Swollman * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2619878Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2719878Swollman * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2819878Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2919878Swollman * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3019878Swollman * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3119878Swollman * SUCH DAMAGE. 3258787Sru * 3358787Sru * @(#)misc-proto.h 8.1 (Berkeley) 6/4/93 3458787Sru * $FreeBSD: stable/10/contrib/telnet/libtelnet/misc-proto.h 87155 2001-11-30 22:28:07Z markm $ 3558787Sru */ 3658787Sru 3758787Sru/* 3858787Sru * Copyright (C) 1990 by the Massachusetts Institute of Technology 3958787Sru * 4058787Sru * Export of this software from the United States of America is assumed 4158787Sru * to require a specific license from the United States Government. 4258787Sru * It is the responsibility of any person or organization contemplating 4358787Sru * export to obtain such a license before exporting. 4458787Sru * 4558787Sru * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4658787Sru * distribute this software and its documentation for any purpose and 4758787Sru * without fee is hereby granted, provided that the above copyright 4858787Sru * notice appear in all copies and that both that copyright notice and 4958787Sru * this permission notice appear in supporting documentation, and that 502742Swollman * the name of M.I.T. not be used in advertising or publicity pertaining 512742Swollman * to distribution of the software without specific, written prior 522742Swollman * permission. M.I.T. makes no representations about the suitability of 532742Swollman * this software for any purpose. It is provided "as is" without express 542742Swollman * or implied warranty. 552742Swollman */ 562742Swollman 5719878Swollman#ifndef __MISC_PROTO__ 582742Swollman#define __MISC_PROTO__ 592742Swollman 602742Swollmanvoid auth_encrypt_init(char *, char *, const char *, int); 6119878Swollmanvoid auth_encrypt_connect(int); 622742Swollmanvoid printd(const unsigned char *, int); 632742Swollman 64149514Swollmanint isprefix(char *, const char *); 6521217Swollmanchar **genget(char *, char **, int); 669908Swollmanint Ambiguous(char **); 679908Swollman 682742Swollmanint getent(char *, const char *); 6919878Swollmanchar *Getstr(const char *, char **); 7019878Swollman 7119878Swollman/* 7219878Swollman * These functions are imported from the application 7319878Swollman */ 7419878Swollmanint net_write(unsigned char *, int); 7519878Swollmanvoid net_encrypt(void); 7619878Swollmanint telnet_spin(void); 7719878Swollmanchar *telnet_getenv(char *); 7819878Swollmanchar *telnet_gets(const char *, char *, int, int); 7919878Swollmanvoid printsub(char, unsigned char *, int); 8019878Swollman#endif 8119878Swollman