mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
Fix build warnings in session code.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@216 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -162,14 +162,17 @@ enum {
|
|||||||
void ssh_log(SSH_SESSION *session, int prioriry, char *format, ...);
|
void ssh_log(SSH_SESSION *session, int prioriry, char *format, ...);
|
||||||
|
|
||||||
/* session.c */
|
/* session.c */
|
||||||
SSH_SESSION *ssh_new();
|
SSH_SESSION *ssh_new(void);
|
||||||
void ssh_set_options(SSH_SESSION *session, SSH_OPTIONS *options);
|
|
||||||
socket_t ssh_get_fd(SSH_SESSION *session);
|
socket_t ssh_get_fd(SSH_SESSION *session);
|
||||||
void ssh_silent_disconnect(SSH_SESSION *session);
|
|
||||||
int ssh_get_version(SSH_SESSION *session);
|
int ssh_get_version(SSH_SESSION *session);
|
||||||
|
int ssh_get_status(SSH_SESSION *session){
|
||||||
|
const char *ssh_get_disconnect_message(SSH_SESSION *session);
|
||||||
|
void ssh_set_options(SSH_SESSION *session, SSH_OPTIONS *options);
|
||||||
void ssh_set_fd_toread(SSH_SESSION *session);
|
void ssh_set_fd_toread(SSH_SESSION *session);
|
||||||
void ssh_set_fd_towrite(SSH_SESSION *session);
|
void ssh_set_fd_towrite(SSH_SESSION *session);
|
||||||
void ssh_set_fd_except(SSH_SESSION *session);
|
void ssh_set_fd_except(SSH_SESSION *session);
|
||||||
|
void ssh_set_blocking(SSH_SESSION *session, int blocking);
|
||||||
|
void ssh_silent_disconnect(SSH_SESSION *session);
|
||||||
|
|
||||||
|
|
||||||
/* client.c */
|
/* client.c */
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
/** \brief creates a new ssh session
|
/** \brief creates a new ssh session
|
||||||
* \returns new ssh_session pointer
|
* \returns new ssh_session pointer
|
||||||
*/
|
*/
|
||||||
SSH_SESSION *ssh_new() {
|
SSH_SESSION *ssh_new(void) {
|
||||||
SSH_SESSION *session=malloc(sizeof (SSH_SESSION));
|
SSH_SESSION *session=malloc(sizeof (SSH_SESSION));
|
||||||
memset(session,0,sizeof(SSH_SESSION));
|
memset(session,0,sizeof(SSH_SESSION));
|
||||||
session->next_crypto=crypto_new();
|
session->next_crypto=crypto_new();
|
||||||
@@ -53,8 +53,9 @@ SSH_SESSION *ssh_new() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ssh_cleanup(SSH_SESSION *session){
|
void ssh_cleanup(SSH_SESSION *session){
|
||||||
enter_function();
|
|
||||||
int i;
|
int i;
|
||||||
|
enter_function();
|
||||||
|
|
||||||
if(session->serverbanner)
|
if(session->serverbanner)
|
||||||
free(session->serverbanner);
|
free(session->serverbanner);
|
||||||
if(session->clientbanner)
|
if(session->clientbanner)
|
||||||
|
|||||||
Reference in New Issue
Block a user