Archived
1
0
Fork 0
This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
bastion/src/session.h

19 lines
388 B
C
Raw Normal View History

2018-06-20 13:23:48 +02:00
#ifndef SESSION_H_
#define SESSION_H_
#include <libssh/libssh.h>
2018-06-20 13:23:48 +02:00
#define SESSION_END (SSH_CLOSED | SSH_CLOSED_ERROR)
/* A userdata struct for session. */
struct session_data_struct {
/* Pointer to the channel the session will allocate. */
ssh_channel channel;
int auth_attempts;
int authenticated;
};
void handle_session(ssh_event event, ssh_session session);
#endif