Home | History | Annotate | Line # | Download | only in libtelnet
enc-proto.h revision 1.4
      1 /*	$NetBSD: enc-proto.h,v 1.4 2000/06/22 06:47:42 thorpej Exp $	*/
      2 
      3 /*-
      4  * Copyright (c) 1991, 1993
      5  *	The Regents of the University of California.  All rights reserved.
      6  *
      7  * Redistribution and use in source and binary forms, with or without
      8  * modification, are permitted provided that the following conditions
      9  * are met:
     10  * 1. Redistributions of source code must retain the above copyright
     11  *    notice, this list of conditions and the following disclaimer.
     12  * 2. Redistributions in binary form must reproduce the above copyright
     13  *    notice, this list of conditions and the following disclaimer in the
     14  *    documentation and/or other materials provided with the distribution.
     15  * 3. All advertising materials mentioning features or use of this software
     16  *    must display the following acknowledgement:
     17  *	This product includes software developed by the University of
     18  *	California, Berkeley and its contributors.
     19  * 4. Neither the name of the University nor the names of its contributors
     20  *    may be used to endorse or promote products derived from this software
     21  *    without specific prior written permission.
     22  *
     23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  * SUCH DAMAGE.
     34  *
     35  *	from: @(#)enc-proto.h	8.1 (Berkeley) 6/4/93
     36  */
     37 
     38 /*
     39  * Copyright (C) 1990 by the Massachusetts Institute of Technology
     40  *
     41  * Export of this software from the United States of America is assumed
     42  * to require a specific license from the United States Government.
     43  * It is the responsibility of any person or organization contemplating
     44  * export to obtain such a license before exporting.
     45  *
     46  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
     47  * distribute this software and its documentation for any purpose and
     48  * without fee is hereby granted, provided that the above copyright
     49  * notice appear in all copies and that both that copyright notice and
     50  * this permission notice appear in supporting documentation, and that
     51  * the name of M.I.T. not be used in advertising or publicity pertaining
     52  * to distribution of the software without specific, written prior
     53  * permission.  M.I.T. makes no representations about the suitability of
     54  * this software for any purpose.  It is provided "as is" without express
     55  * or implied warranty.
     56  */
     57 
     58 #ifdef	ENCRYPTION
     59 #include <sys/cdefs.h>
     60 #define P __P
     61 
     62 Encryptions *findencryption P((int));
     63 Encryptions *finddecryption P((int));
     64 void encrypt_init P((const char *, int));
     65 void encrypt_list_types P((void));
     66 int EncryptEnable P((char *, char *));
     67 int EncryptDisable P((char *, char *));
     68 int EncryptType P((char *, char *));
     69 int EncryptStart P((char *));
     70 int EncryptStartInput P((void));
     71 int EncryptStartOutput P((void));
     72 int EncryptStop P((char *));
     73 int EncryptStopInput P((void));
     74 int EncryptStopOutput P((void));
     75 int EncryptStatus P((void));
     76 void encrypt_send_support P((void));
     77 int EncryptDebug P((int));
     78 int EncryptVerbose P((int));
     79 int EncryptAutoEnc P((int));
     80 int EncryptAutoDec P((int));
     81 void encrypt_support P((unsigned char *, int));
     82 void encrypt_is P((unsigned char *, int));
     83 void encrypt_reply P((unsigned char *, int));
     84 void encrypt_start P((unsigned char *, int));
     85 void encrypt_session_key P((Session_Key *, int));
     86 void encrypt_end P((void));
     87 void encrypt_request_end P((void));
     88 void encrypt_request_start P((unsigned char *, int));
     89 void encrypt_enc_keyid P((unsigned char *, int));
     90 void encrypt_dec_keyid P((unsigned char *, int));
     91 struct key_info;
     92 void encrypt_keyid P((struct key_info *, unsigned char *, int));
     93 void encrypt_send_keyid P((int, unsigned char *, int, int));
     94 void encrypt_auto P((int));
     95 void decrypt_auto P((int));
     96 void encrypt_start_output P((int));
     97 void encrypt_send_end P((void));
     98 void encrypt_send_request_start P((void));
     99 void encrypt_send_request_end P((void));
    100 void encrypt_wait P((void));
    101 void encrypt_debug P((int));
    102 void encrypt_gen_printsub P((unsigned char *, int, unsigned char *, int ));
    103 void encrypt_printsub P((unsigned char *, int, unsigned char *, int ));
    104 
    105 #ifdef	TELENTD
    106 void encrypt_wait P((void));
    107 #else
    108 void printsub P((int, unsigned char *, int));
    109 int encrypt_cmd P((int, char **));
    110 void encrypt_display P((void));
    111 #endif
    112 
    113 void krbdes_encrypt P((unsigned char *, int));
    114 int krbdes_decrypt P((int));
    115 int krbdes_is P((unsigned char *, int));
    116 int krbdes_reply P((unsigned char *, int));
    117 void krbdes_init P((int));
    118 int krbdes_start P((int, int));
    119 void krbdes_session P((Session_Key *, int));
    120 void krbdes_printsub P((unsigned char *, int, unsigned char *, int));
    121 
    122 void cfb64_encrypt P((unsigned char *, int));
    123 int cfb64_decrypt P((int));
    124 void cfb64_init P((int));
    125 int cfb64_start P((int, int));
    126 int cfb64_is P((unsigned char *, int));
    127 int cfb64_reply P((unsigned char *, int));
    128 void cfb64_session P((Session_Key *, int));
    129 int cfb64_keyid P((int, unsigned char *, int *));
    130 void cfb64_printsub P((unsigned char *, int, unsigned char *, int));
    131 
    132 void ofb64_encrypt P((unsigned char *, int));
    133 int ofb64_decrypt P((int));
    134 void ofb64_init P((int));
    135 int ofb64_start P((int, int));
    136 int ofb64_is P((unsigned char *, int));
    137 int ofb64_reply P((unsigned char *, int));
    138 void ofb64_session P((Session_Key *, int));
    139 int ofb64_keyid P((int, unsigned char *, int *));
    140 void ofb64_printsub P((unsigned char *, int, unsigned char *, int));
    141 
    142 void fb64_printsub P((unsigned char *, int, unsigned char *, int,
    143     unsigned char *));
    144 
    145 #endif	/* ENCRYPTION */
    146