struct ssh_session_struct
#include <include/libssh/session.h> struct ssh_session_struct { // fields ssh_agent agent; struct ssh_agent_state_struct* agent_state; int alive; struct ssh_auth_auto_state_struct* auth_auto_state; int auth_methods; enum ssh_auth_service_state_e auth_service_state; enum ssh_auth_state_e auth_state; ssh_string banner; char* bindaddr; struct ssh_list* channels; int client; char* clientbanner; struct ssh_common_struct common; char compressionlevel; int connected; struct ssh_crypto_struct* current_crypto; char* custombanner; struct ssh_packet_callbacks_struct default_packet_callbacks; ssh_poll_ctx default_poll_ctx; enum ssh_dh_state_e dh_handshake_state; char* discon_msg; ssh_key dsa_key; ssh_key ecdsa_key; ssh_key ed25519_key; int exec_channel_opened; socket_t fd; int first_kex_follows_guess_wrong; int flags; enum ssh_channel_request_state_e global_req_state; char* gss_client_identity; int gss_delegate_creds; char* gss_server_identity; struct ssh_gssapi_struct* gssapi; char* host; enum ssh_keytypes_e hostkey; struct ssh_list* identity; ssh_buffer in_buffer; ssh_buffer in_hashbuf; PACKET in_packet; struct ssh_kbdint_struct* kbdint; char* knownhosts; int maxchannel; struct ssh_crypto_struct* next_crypto; int openssh; struct ssh_session_struct::@3 opts; ssh_buffer out_buffer; ssh_buffer out_hashbuf; struct ssh_list* packet_callbacks; int packet_state; ssh_pcap_context pcap_ctx; enum ssh_pending_call_e pending_call_state; unsigned int port; int protoversion; char* ProxyCommand; ssh_counter raw_counter; uint32_t recv_seq; ssh_key rsa_key; uint32_t send_seq; int server; ssh_server_callbacks server_callbacks; char* serverbanner; enum ssh_session_state_e session_state; struct ssh_socket_struct* socket; struct ssh_socket_callbacks_struct socket_callbacks; ssh_counter socket_counter; struct ssh_session_struct::@2 srv; int ssh1; int ssh2; void(* ssh_connection_callback)(struct ssh_session_struct *session); int(* ssh_message_callback)(struct ssh_session_struct *session, ssh_message msg, void *userdata); void* ssh_message_callback_data; struct ssh_list* ssh_message_list; char* sshdir; int StrictHostKeyChecking; unsigned long timeout; unsigned long timeout_usec; char* username; int version; char* wanted_methods[10]; };