connection.c 311 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* connection.c
 *
 */

#include "connection.h"
#include "xalloc.h"

struct ssh_connection *ssh_connection_alloc()
{
  struct ssh_connection *connection = xalloc(sizeof(struct ssh_connection));

  memset(connection, 0, sizeof(struct ssh_connection));

  connection->max_packet = 0x8000;

  return connection;
}