Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 1 | /* |
Sean Middleditch | 9de1598 | 2009-03-14 03:35:49 -0400 | [diff] [blame] | 2 | * Sean Middleditch |
| 3 | * sean@sourcemud.org |
| 4 | * |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 5 | * The author or authors of this code dedicate any and all copyright interest |
| 6 | * in this code to the public domain. We make this dedication for the benefit |
| 7 | * of the public at large and to the detriment of our heirs and successors. We |
| 8 | * intend this dedication to be an overt act of relinquishment in perpetuity of |
| 9 | * all present and future rights to this code under copyright law. |
| 10 | */ |
| 11 | |
Sean Middleditch | 6aef073 | 2009-03-12 23:27:35 -0400 | [diff] [blame] | 12 | #if !defined(LIBTELNET_INCLUDE) |
Sean Middleditch | aac2c12 | 2009-03-14 18:31:26 -0400 | [diff] [blame] | 13 | #define LIBTELNET_INCLUDE 1 |
Sean Middleditch | 6aef073 | 2009-03-12 23:27:35 -0400 | [diff] [blame] | 14 | |
Sean Middleditch | 3032302 | 2009-03-14 21:45:28 -0400 | [diff] [blame] | 15 | /* forward declarations */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 16 | typedef struct telnet_t telnet_t; |
| 17 | typedef struct telnet_event_t telnet_event_t; |
Sean Middleditch | 34bb099 | 2009-03-21 00:20:44 -0400 | [diff] [blame] | 18 | typedef struct telnet_telopt_t telnet_telopt_t; |
Sean Middleditch | 3032302 | 2009-03-14 21:45:28 -0400 | [diff] [blame] | 19 | |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 20 | /* telnet special values */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 21 | #define TELNET_IAC 255 |
| 22 | #define TELNET_DONT 254 |
| 23 | #define TELNET_DO 253 |
| 24 | #define TELNET_WONT 252 |
| 25 | #define TELNET_WILL 251 |
| 26 | #define TELNET_SB 250 |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 27 | #define TELNET_GA 249 |
| 28 | #define TELNET_EL 248 |
| 29 | #define TELNET_EC 247 |
| 30 | #define TELNET_AYT 246 |
| 31 | #define TELNET_AO 245 |
| 32 | #define TELNET_IP 244 |
| 33 | #define TELNET_BREAK 243 |
| 34 | #define TELNET_DM 242 |
| 35 | #define TELNET_NOP 241 |
| 36 | #define TELNET_SE 240 |
| 37 | #define TELNET_EOR 239 |
| 38 | #define TELNET_ABORT 238 |
| 39 | #define TELNET_SUSP 237 |
| 40 | #define TELNET_EOF 236 |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 41 | |
| 42 | /* telnet options */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 43 | #define TELNET_TELOPT_BINARY 0 |
| 44 | #define TELNET_TELOPT_ECHO 1 |
| 45 | #define TELNET_TELOPT_RCP 2 |
| 46 | #define TELNET_TELOPT_SGA 3 |
| 47 | #define TELNET_TELOPT_NAMS 4 |
| 48 | #define TELNET_TELOPT_STATUS 5 |
| 49 | #define TELNET_TELOPT_TM 6 |
| 50 | #define TELNET_TELOPT_RCTE 7 |
| 51 | #define TELNET_TELOPT_NAOL 8 |
| 52 | #define TELNET_TELOPT_NAOP 9 |
| 53 | #define TELNET_TELOPT_NAOCRD 10 |
| 54 | #define TELNET_TELOPT_NAOHTS 11 |
| 55 | #define TELNET_TELOPT_NAOHTD 12 |
| 56 | #define TELNET_TELOPT_NAOFFD 13 |
| 57 | #define TELNET_TELOPT_NAOVTS 14 |
| 58 | #define TELNET_TELOPT_NAOVTD 15 |
| 59 | #define TELNET_TELOPT_NAOLFD 16 |
| 60 | #define TELNET_TELOPT_XASCII 17 |
| 61 | #define TELNET_TELOPT_LOGOUT 18 |
| 62 | #define TELNET_TELOPT_BM 19 |
| 63 | #define TELNET_TELOPT_DET 20 |
| 64 | #define TELNET_TELOPT_SUPDUP 21 |
| 65 | #define TELNET_TELOPT_SUPDUPOUTPUT 22 |
| 66 | #define TELNET_TELOPT_SNDLOC 23 |
| 67 | #define TELNET_TELOPT_TTYPE 24 |
| 68 | #define TELNET_TELOPT_EOR 25 |
| 69 | #define TELNET_TELOPT_TUID 26 |
| 70 | #define TELNET_TELOPT_OUTMRK 27 |
| 71 | #define TELNET_TELOPT_TTYLOC 28 |
| 72 | #define TELNET_TELOPT_3270REGIME 29 |
| 73 | #define TELNET_TELOPT_X3PAD 30 |
| 74 | #define TELNET_TELOPT_NAWS 31 |
| 75 | #define TELNET_TELOPT_TSPEED 32 |
| 76 | #define TELNET_TELOPT_LFLOW 33 |
| 77 | #define TELNET_TELOPT_LINEMODE 34 |
| 78 | #define TELNET_TELOPT_XDISPLOC 35 |
| 79 | #define TELNET_TELOPT_ENVIRON 36 |
| 80 | #define TELNET_TELOPT_AUTHENTICATION 37 |
| 81 | #define TELNET_TELOPT_ENCRYPT 38 |
| 82 | #define TELNET_TELOPT_NEW_ENVIRON 39 |
Sean Middleditch | e2122b2 | 2009-03-20 23:55:09 -0400 | [diff] [blame] | 83 | #define TELNET_TELOPT_MSSP 70 |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 84 | #define TELNET_TELOPT_COMPRESS2 86 |
| 85 | #define TELNET_TELOPT_ZMP 93 |
| 86 | #define TELNET_TELOPT_EXOPL 255 |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 87 | |
Sean Middleditch | e2122b2 | 2009-03-20 23:55:09 -0400 | [diff] [blame] | 88 | #define TELNET_TELOPT_MCCP2 86 |
| 89 | |
Sean Middleditch | 08bb05f | 2009-03-15 23:29:46 -0400 | [diff] [blame] | 90 | /* libtelnet feature flags */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 91 | #define TELNET_FLAG_PROXY (1<<0) |
Sean Middleditch | 61f8eb6 | 2009-03-14 04:57:27 -0400 | [diff] [blame] | 92 | |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 93 | #define TELNET_PFLAG_DEFLATE (1<<7) |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 94 | |
| 95 | /* telnet states */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 96 | enum telnet_state_t { |
| 97 | TELNET_STATE_DATA = 0, |
| 98 | TELNET_STATE_IAC, |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 99 | TELNET_STATE_WILL, |
| 100 | TELNET_STATE_WONT, |
Sean Middleditch | 447d3ad | 2009-03-20 23:22:37 -0400 | [diff] [blame] | 101 | TELNET_STATE_DO, |
| 102 | TELNET_STATE_DONT, |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 103 | TELNET_STATE_SB, |
| 104 | TELNET_STATE_SB_DATA, |
| 105 | TELNET_STATE_SB_DATA_IAC |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 106 | }; |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 107 | typedef enum telnet_state_t telnet_state_t; |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 108 | |
| 109 | /* error codes */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 110 | enum telnet_error_t { |
| 111 | TELNET_EOK = 0, |
| 112 | TELNET_EBADVAL, /* invalid parameter, or API misuse */ |
| 113 | TELNET_ENOMEM, /* memory allocation failure */ |
| 114 | TELNET_EOVERFLOW, /* data exceeds buffer size */ |
| 115 | TELNET_EPROTOCOL, /* invalid sequence of special bytes */ |
| 116 | TELNET_ECOMPRESS /* error handling compressed streams */ |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 117 | }; |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 118 | typedef enum telnet_error_t telnet_error_t; |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 119 | |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 120 | /* event codes */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 121 | enum telnet_event_type_t { |
| 122 | TELNET_EV_DATA = 0, |
| 123 | TELNET_EV_SEND, |
| 124 | TELNET_EV_IAC, |
| 125 | TELNET_EV_WILL, |
| 126 | TELNET_EV_WONT, |
| 127 | TELNET_EV_DO, |
| 128 | TELNET_EV_DONT, |
| 129 | TELNET_EV_SUBNEGOTIATION, |
| 130 | TELNET_EV_COMPRESS, |
| 131 | TELNET_EV_WARNING, |
| 132 | TELNET_EV_ERROR |
Sean Middleditch | 3032302 | 2009-03-14 21:45:28 -0400 | [diff] [blame] | 133 | }; |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 134 | typedef enum telnet_event_type_t telnet_event_type_t; |
Sean Middleditch | 3032302 | 2009-03-14 21:45:28 -0400 | [diff] [blame] | 135 | |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 136 | /* event information */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 137 | struct telnet_event_t { |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 138 | /* data buffer: for DATA, SEND, SUBNEGOTIATION, and ERROR events */ |
Sean Middleditch | 8daf774 | 2009-03-19 02:05:24 -0400 | [diff] [blame] | 139 | const char *buffer; |
Sean Middleditch | 340a51b | 2009-03-19 02:08:46 -0400 | [diff] [blame] | 140 | size_t size; |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 141 | /* type of event */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 142 | enum telnet_event_type_t type; |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 143 | /* IAC command */ |
| 144 | unsigned char command; |
| 145 | /* telopt info: for negotiation events SUBNEGOTIATION */ |
| 146 | unsigned char telopt; |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 147 | }; |
| 148 | |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 149 | /* event handler declaration */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 150 | typedef void (*telnet_event_handler_t)(telnet_t *telnet, |
| 151 | telnet_event_t *event, void *user_data); |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 152 | |
Sean Middleditch | 34bb099 | 2009-03-21 00:20:44 -0400 | [diff] [blame] | 153 | /* telopt support table element; use telopt of -1 for end marker */ |
| 154 | struct telnet_telopt_t { |
Sean Middleditch | bfc641e | 2009-03-22 16:26:06 -0400 | [diff] [blame^] | 155 | short telopt; /* one of the TELOPT codes or -1 */ |
| 156 | unsigned char us; /* TELNET_WILL or TELNET_WONT */ |
| 157 | unsigned char him; /* TELNET_DO or TELNET_DONT */ |
Sean Middleditch | 34bb099 | 2009-03-21 00:20:44 -0400 | [diff] [blame] | 158 | }; |
| 159 | |
Sean Middleditch | 4d9444d | 2009-03-13 22:48:05 -0400 | [diff] [blame] | 160 | /* state tracker */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 161 | struct telnet_t { |
Sean Middleditch | 9f79cc5 | 2009-03-15 13:39:24 -0400 | [diff] [blame] | 162 | /* user data */ |
| 163 | void *ud; |
Sean Middleditch | 34bb099 | 2009-03-21 00:20:44 -0400 | [diff] [blame] | 164 | /* telopt support table */ |
| 165 | const telnet_telopt_t *telopts; |
Sean Middleditch | 637df7f | 2009-03-15 12:57:32 -0400 | [diff] [blame] | 166 | /* event handler */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 167 | telnet_event_handler_t eh; |
Sean Middleditch | 9de1598 | 2009-03-14 03:35:49 -0400 | [diff] [blame] | 168 | #ifdef HAVE_ZLIB |
Sean Middleditch | 3032302 | 2009-03-14 21:45:28 -0400 | [diff] [blame] | 169 | /* zlib (mccp2) compression */ |
Sean Middleditch | fbe93e3 | 2009-03-15 23:39:31 -0400 | [diff] [blame] | 170 | z_stream *z; |
Sean Middleditch | 9de1598 | 2009-03-14 03:35:49 -0400 | [diff] [blame] | 171 | #endif |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 172 | /* RFC1143 option negotiation states */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 173 | struct telnet_rfc1143_t *q; |
Sean Middleditch | 4d9444d | 2009-03-13 22:48:05 -0400 | [diff] [blame] | 174 | /* sub-request buffer */ |
Sean Middleditch | 8daf774 | 2009-03-19 02:05:24 -0400 | [diff] [blame] | 175 | char *buffer; |
Sean Middleditch | 4d9444d | 2009-03-13 22:48:05 -0400 | [diff] [blame] | 176 | /* current size of the buffer */ |
Sean Middleditch | 340a51b | 2009-03-19 02:08:46 -0400 | [diff] [blame] | 177 | size_t buffer_size; |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 178 | /* current buffer write position (also length of buffer data) */ |
Sean Middleditch | 340a51b | 2009-03-19 02:08:46 -0400 | [diff] [blame] | 179 | size_t buffer_pos; |
Sean Middleditch | 4d9444d | 2009-03-13 22:48:05 -0400 | [diff] [blame] | 180 | /* current state */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 181 | enum telnet_state_t state; |
Sean Middleditch | 08bb05f | 2009-03-15 23:29:46 -0400 | [diff] [blame] | 182 | /* option flags */ |
| 183 | unsigned char flags; |
Sean Middleditch | da0e695 | 2009-03-15 13:28:09 -0400 | [diff] [blame] | 184 | /* current subnegotiation telopt */ |
| 185 | unsigned char sb_telopt; |
Sean Middleditch | 5b5bc92 | 2009-03-15 23:02:10 -0400 | [diff] [blame] | 186 | /* length of RFC1143 queue */ |
| 187 | unsigned char q_size; |
Sean Middleditch | 4d9444d | 2009-03-13 22:48:05 -0400 | [diff] [blame] | 188 | }; |
| 189 | |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 190 | /* initialize a telnet state tracker */ |
Sean Middleditch | 34bb099 | 2009-03-21 00:20:44 -0400 | [diff] [blame] | 191 | extern void telnet_init(telnet_t *telnet, const telnet_telopt_t *telopts, |
| 192 | telnet_event_handler_t eh, unsigned char flags, void *user_data); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 193 | |
| 194 | /* free up any memory allocated by a state tracker */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 195 | extern void telnet_free(telnet_t *telnet); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 196 | |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 197 | /* push a byte buffer into the state tracker */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 198 | extern void telnet_recv(telnet_t *telnet, const char *buffer, |
Sean Middleditch | 340a51b | 2009-03-19 02:08:46 -0400 | [diff] [blame] | 199 | size_t size); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 200 | |
| 201 | /* send an iac command */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 202 | extern void telnet_iac(telnet_t *telnet, unsigned char cmd); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 203 | |
Sean Middleditch | 2b4bfc4 | 2009-03-16 01:25:52 -0400 | [diff] [blame] | 204 | /* send negotiation, with RFC1143 checking. |
| 205 | * will not actually send unless necessary, but will update internal |
| 206 | * negotiation queue. |
| 207 | */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 208 | extern void telnet_negotiate(telnet_t *telnet, unsigned char cmd, |
Sean Middleditch | 812358d | 2009-03-15 23:24:03 -0400 | [diff] [blame] | 209 | unsigned char opt); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 210 | |
| 211 | /* send non-command data (escapes IAC bytes) */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 212 | extern void telnet_send(telnet_t *telnet, |
Sean Middleditch | 340a51b | 2009-03-19 02:08:46 -0400 | [diff] [blame] | 213 | const char *buffer, size_t size); |
Sean Middleditch | 2914485 | 2009-03-12 23:14:47 -0400 | [diff] [blame] | 214 | |
Sean Middleditch | 90e79da | 2009-03-19 15:17:13 -0400 | [diff] [blame] | 215 | /* send IAC SB followed by the telopt code */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 216 | extern void telnet_begin_sb(telnet_t *telnet, |
Sean Middleditch | 90e79da | 2009-03-19 15:17:13 -0400 | [diff] [blame] | 217 | unsigned char telopt); |
| 218 | |
| 219 | /* send IAC SE */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 220 | #define telnet_finish_sb(telnet) telnet_iac((telnet), TELNET_SE) |
Sean Middleditch | 90e79da | 2009-03-19 15:17:13 -0400 | [diff] [blame] | 221 | |
| 222 | /* shortcut for sending a complete subnegotiation buffer. |
| 223 | * equivalent to: |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 224 | * telnet_begin_sb(telnet, telopt); |
| 225 | * telnet_send(telnet, buffer, size); |
| 226 | * telnet_finish_sb(telnet); |
Sean Middleditch | 2b4bfc4 | 2009-03-16 01:25:52 -0400 | [diff] [blame] | 227 | */ |
Sean Middleditch | 4f0c37f | 2009-03-20 23:08:55 -0400 | [diff] [blame] | 228 | extern void telnet_subnegotiation(telnet_t *telnet, unsigned char telopt, |
Sean Middleditch | 90e79da | 2009-03-19 15:17:13 -0400 | [diff] [blame] | 229 | const char *buffer, size_t size); |
Sean Middleditch | 6aef073 | 2009-03-12 23:27:35 -0400 | [diff] [blame] | 230 | |
Sean Middleditch | 124a1c2 | 2009-03-15 13:20:03 -0400 | [diff] [blame] | 231 | /* begin sending compressed data (server only) */ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 232 | extern void telnet_begin_compress2(telnet_t *telnet); |
Sean Middleditch | 124a1c2 | 2009-03-15 13:20:03 -0400 | [diff] [blame] | 233 | |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 234 | /* printf type checking feature in GCC and some other compilers */ |
Sean Middleditch | b7bf8f3 | 2009-03-19 18:18:22 -0400 | [diff] [blame] | 235 | #if __GNUC__ |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 236 | # define TELNET_GNU_PRINTF(f,a) __attribute__((printf(f, a))) |
Sean Middleditch | d58f49f | 2009-03-16 12:49:35 -0400 | [diff] [blame] | 237 | #else |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 238 | # define TELNET_GNU_PRINTF(f,a) |
Sean Middleditch | d58f49f | 2009-03-16 12:49:35 -0400 | [diff] [blame] | 239 | #endif |
| 240 | |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 241 | /* send formatted data with \r and \n translated, and IAC escaped */ |
| 242 | extern int telnet_printf(telnet_t *telnet, const char *fmt, ...); |
Sean Middleditch | 4a15604 | 2009-03-16 17:10:58 -0400 | [diff] [blame] | 243 | |
Sean Middleditch | f65f27d | 2009-03-19 02:32:04 -0400 | [diff] [blame] | 244 | /* send formatted data with just IAC escaped */ |
| 245 | extern int telnet_printf2(telnet_t *telnet, const char *fmt, ...); |
Sean Middleditch | d58f49f | 2009-03-16 12:49:35 -0400 | [diff] [blame] | 246 | |
Sean Middleditch | 6aef073 | 2009-03-12 23:27:35 -0400 | [diff] [blame] | 247 | #endif /* !defined(LIBTELNET_INCLUDE) */ |