2
* Copyright (c) 1991 The Regents of the University of California.
5
* Redistribution and use in source and binary forms are permitted provided
6
* that: (1) source distributions retain this entire copyright notice and
7
* comment, and (2) distributions including binaries display the following
8
* acknowledgement: ``This product includes software developed by the
9
* University of California, Berkeley and its contributors'' in the
10
* documentation or other materials provided with the distribution and in
11
* all advertising materials mentioning features or use of this software.
12
* Neither the name of the University nor the names of its contributors may
13
* be used to endorse or promote products derived from this software without
14
* specific prior written permission.
15
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
16
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
17
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23
* From: @(#)authenc.c 5.1 (Berkeley) 3/1/91
25
char authenc_rcsid[] =
26
"$Id: authenc.c,v 1.5 1999/12/12 14:59:44 dholland Exp $";
28
#if defined(ENCRYPT) || defined(AUTHENTICATE)
30
#include <libtelnet/misc.h>
37
if (nfrontp + len < netobuf + BUFSIZ) {
38
bcopy((void *)str, (void *)nfrontp, len);
49
char *s = (nclearto > nbackp) ? nclearto : nbackp;
50
if (s < nfrontp && encrypt_output) {
51
(*encrypt_output)((unsigned char *)s, nfrontp - s);
68
extern char *getenv();
73
telnet_gets(prompt, result, length, echo)