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

Renamed session.h and session.c

Rev: src/connection.c:1.1
Rev: src/connection.h:1.1
Rev: src/session.c:1.2(DEAD)
Rev: src/session.h:1.4(DEAD)
parent be01d7b0
/* 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;
}
/* session.h
/* connection.h
*
*/
#ifndef LSH_SESSION_H_INCLUDED
#define LSH_SESSION_H_INCLUDED
#ifndef LSH_CONNECTION_H_INCLUDED
#define LSH_CONNECTION_H_INCLUDED
struct ssh_session
#include "lsh_types.h"
struct ssh_connection
{
/* Sent and recieved version strings */
struct lsh_string *client_version;
......@@ -20,6 +22,6 @@ struct ssh_session
int provides_integrity;
};
struct ssh_session *ssh_session_alloc();
struct ssh_connection *ssh_connection_alloc();
#endif /* LSH_SESSION_H_INCLUDED */
#endif /* LSH_CONNECTION_H_INCLUDED */
/* session.c
*
*/
#include "session.h"
struct session *ssh_session_alloc()
{
struct ssh_session *session = xalloc(sizeof(struct ssh_session));
memset(session, 0, sizeof(struct ssh_Session));
session->max_packet = 0x8000;
return session;
}
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