资源简介
本源码包含客户端 服务端 和登录进程源代码 可编译执行 是学习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 */
- 上一篇:2018最完整全球国家区号、国家手机号正则
- 下一篇:高分一号/二号数据批量解压
相关资源
- FTP课程设计(服务端+客户端)
- 编写简单的RMI程序 多线程web 服务器
- IOCP 类 简单的IOCP(IO完成端口)服务
- CVI下的TCP服务器和客户端
- SOCKET 网络编程 计算机网络 作业 客户
- 用Socket写的简易FTP服务器和客户端
- 基于C 的简易FTP客户端(带源码)
- jar转exe工具 教程,exe能在客户端没有
- socket小工具(可方便建立TCP UDP的soc
- socket客户端源码
- vc 编写的基于TCP协议的客户/服务器
- 61850客户端服务端测试程序
- 简单服务器端口监听和显示客户端发
- radmin服务端win10亲测可用,带破解方法
- 华为光猫破解telnet开启工具 ONT维修使
- Linux版的telnet安装包telnet、telnet-serv
- HP用SOCKET实现(客户端---服务端)
- 一个简单方便的服务端ftp搭建工具
- Symantec AntiVirus 9.0防病毒客户端部署注
- Apache Subversion1.10.3服务端SVN
- win 10 telnet客户端
- 易语言cmd服务端源码易语言cmd远程服
- linux telnet服务安装包
- telnet-0.17-47.el6.x86_64.rpm
- telnet-server-0.17-25.i386.rpm
- 易语言客户端模块源码易语言服务器
- 易语言猜拳游戏客户端源码易语言猜
- 易语言客户端源码易语言服务器源码
- rabbitMq客户端服务
- telnet监视器
川公网安备 51152502000135号
评论
共有 条评论