summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-08 21:43:47 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-08 21:43:47 +0800
commite5371ff83e8481cb29f3b9dc1afcfbfa9178c06a (patch)
tree9d9aee81cb42ce7aab590706dc05f640f9ce6bca /include
parent0666dd02983c5a7ad580a29d7d6deec1cbcd80b5 (diff)
downloadpttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar.gz
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar.bz2
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar.lz
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar.xz
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.tar.zst
pttbbs-e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a.zip
"Bye-Bye Flying Horse" patch
- a robust and clean TELNET protocol implementation - fixed hz lib (autoconvert) utf8 buffer overflow exploit - enabled term resizing in runtime, and even AYT! - eliminated the flying-horse delay in connecting stage git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2691 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/convert.h3
-rw-r--r--include/proto.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/convert.h b/include/convert.h
index 9ce0b75a..cafa08b7 100644
--- a/include/convert.h
+++ b/include/convert.h
@@ -6,6 +6,7 @@
#define CONV_GB 1
#define CONV_UTF8 2
-typedef ssize_t (* read_write_type)(int, void *, size_t);
+typedef ssize_t (*read_write_type)(int, void *, size_t);
+typedef ssize_t (*convert_type)(void *, ssize_t);
#endif
diff --git a/include/proto.h b/include/proto.h
index d0544240..7daa496d 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -359,6 +359,7 @@ void talk_request(int sig);
int reply_connection_request(const userinfo_t *uip);
int establish_talk_connection(const userinfo_t *uip);
void my_talk(userinfo_t * uin, int fri_stat, char defact);
+ssize_t tty_read(unsigned char *buf, size_t max);
/* menu */
void showtitle(const char *title, const char *mid);