资源简介
在网络上好不容易找到的telnet源码,和大家分享下,我没有什么分数,随便赚点分。
代码片段和文件信息
/*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted provided
* that: (1) source distributions retain this entire copyright notice and
* comment and (2) distributions including binaries display the following
* acknowledgement: ‘‘This product includes software developed by the
* University of California Berkeley and its contributors‘‘ in the
* documentation or other materials provided with the distribution and in
* all advertising materials mentioning features or use of this software.
* Neither the name of the University nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ‘‘AS IS‘‘ AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#if 0 /* dead code */
/*
* From: @(#)authenc.c 5.1 (Berkeley) 3/1/91
*/
char authenc_rcsid[] =
“$Id: authenc.cv 1.5 1999/12/12 14:59:44 dholland Exp $“;
#if defined(ENCRYPT) || defined(AUTHENTICATE)
#include “telnetd.h“
#include
int
net_write(str len)
unsigned char *str;
int len;
{
if (nfrontp + len < netobuf + BUFSIZ) {
bcopy((void *)str (void *)nfrontp len);
nfrontp += len;
return(len);
}
return(0);
}
void
net_encrypt()
{
#if defined(ENCRYPT)
char *s = (nclearto > nbackp) ? nclearto : nbackp;
if (s < nfrontp && encrypt_output) {
(*encrypt_output)((unsigned char *)s nfrontp - s);
}
nclearto = nfrontp;
#endif
}
int
telnet_spin()
{
ttloop();
return(0);
}
char *
telnet_getenv(val)
char *val;
{
extern char *getenv();
return(getenv(val));
}
char *
telnet_gets(prompt result length echo)
char *prompt;
char *result;
int length;
int echo;
{
return((char *)0);
}
#endif
#endif /* 0 */
相关资源
- 小记账本源码
- 博客《FlowLayout详解二——FlowLayout实现
- 冒险岛吸怪无敌 源码
- g2o源码阅读.docx
- c primer plus 第六版源码及习题参考代码
- 大鱼吃小鱼游戏源码
- XP版的变速齿轮+Delphi源码+的变速+工具
- 易语言 通过POST向网页上传文件 模块
- Head First设计模式官方源码
- 单词记忆工具源码
- 奶牛快传,一个不限速的临时网盘的
- 《实战OPENGL三维可视化系统开发与源
- 透视自瞄源码.7z
- 二次开发威客任务平台源码 粉丝关注
- as3.0 游戏源码——咋苹果,推箱子
- 惊天动地刷彩虹字的工具E源码
- 树莓派语音对话机器人源码
- Unity Svn 小工具
- DSDV协议源码
- 脱机手写签名识别-要求与源码
- Duilib ListUI扩展 源码
- onvif的经典,有客户端和服务器
- Loic源码-DDOS/DOS测试
- WINCE SD卡读写源码
- ymodem协议源码
- TI MSP430 SD卡 FAT16文件系统源码
- MT4本地跟单系统包含源码
- 型材套料源码,可以直接使用。
- Linux下的飞鸽传书源码(ipmsg、聊天、
- 51单片机A4988驱动源码
评论
共有 条评论