Commit 4e52ead0 authored by Niels Möller's avatar Niels Möller
Browse files

Removed transport.c and transport.h.

Rev: src/format.h:1.7
Rev: src/parse.c:1.6
Rev: src/transport.c:1.6(DEAD)
Rev: src/transport.h:1.7(DEAD)
Rev: src/void.h:1.3
parent 834fdc43
......@@ -10,7 +10,6 @@
#include "atoms.h"
#include "bignum.h"
#include "transport.h"
/* Format strings can contain the following %-specifications:
*
......
......@@ -3,7 +3,6 @@
*/
#include "parse.h"
#include "transport.h"
void simple_buffer_init(struct simple_buffer *buffer,
UINT32 capacity, UINT8 *data)
......
/* transport.c
*
*/
#include "transport.h"
#include "xalloc.h"
int apply_processor(struct abstract_write *closure,
struct lsh_string *packet)
{
return closure->f(closure, packet);
}
/* transport.h
*
* ssh transport protocol, and supporting types
*/
#ifndef LSH_TRANSPORT_H_INCLUDED
#define LSH_TRANSPORT_H_INCLUDED
#include "lsh_types.h"
#if 0
struct ssh_packet
{
UINT32 packet_length; /* In network byteorder */
UINT8 padding_length;
UINT8 data[1]; /* Includes payload and padding */
};
#endif
#if 0
/* error codes, returned from packet processors. zero means ok,
* negative means a fatal protocol failure, and positive values are
* errors that should be reported to the otrher end. */
#define LSH_ERR_TOO_LARGE_PACKET -1
#define LSH_ERR_BAD_LENGTH -2
#define LSH_ERR_BAD_MAC -3
#endif
#endif /* LSH_TRANSPORT_H_INCLUDED */
......@@ -6,7 +6,7 @@
#ifndef LSH_VOID_H_INCLUDED
#define LSH_VOID_H_INCLUDED
#include "transport.h"
#include "abstract_io.h"
struct abstract_write *make_packet_void();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment