libssh-0.1.0.0: libssh bindings
Maintainerdefanor <[email protected]>
Stabilityunstable
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Network.LibSSH.Core

Description

See the libssh topics for a reference.

Synopsis

Types

type SSHAuthCallback = FunPtr (CString -> CString -> CSize -> CInt -> CInt -> Ptr CChar -> CInt) Source #

Option codes

type SSHOptionCode = CInt Source #

Authentication method codes

Key types

type SSHKeyType = CInt Source #

The libssh SFTP API

sftp_extensions_get_name :: SFTPSession -> CUInt -> IO CString Source #

sftp_extensions_get_data :: SFTPSession -> CUInt -> IO CString Source #

sftp_extension_extension_supported :: SFTPSession -> CString -> CString -> IO CInt Source #

sftp_close :: SFTPFile -> IO CInt Source #

sftp_open :: SFTPSession -> CString -> CInt -> CInt -> IO SFTPFile Source #

sftp_read :: SFTPFile -> CString -> CSize -> IO CInt Source #

sftp_async_read_begin :: SFTPFile -> CUInt -> IO CInt Source #

sftp_async_read :: SFTPFile -> CString -> CUInt -> CUInt -> IO CInt Source #

sftp_write :: SFTPFile -> CString -> CSize -> IO CInt Source #

sftp_seek :: SFTPFile -> CUInt -> IO CInt Source #

sftp_seek64 :: SFTPFile -> CULLong -> IO CInt Source #

sftp_tell :: SFTPFile -> IO CUInt Source #

sftp_tell64 :: SFTPFile -> IO CULLong Source #

sftp_unlink :: SFTPSession -> CString -> IO CInt Source #

sftp_rmdir :: SFTPSession -> CString -> IO CInt Source #

sftp_mkdir :: SFTPSession -> CString -> CInt -> IO CInt Source #

sftp_rename :: SFTPSession -> CString -> CString -> IO CInt Source #

sftp_setstat :: SFTPSession -> CString -> SFTPAttributes -> IO CInt Source #

sftp_chown :: SFTPSession -> CString -> CInt -> CInt -> IO CInt Source #

sftp_chmod :: SFTPSession -> CString -> CInt -> IO CInt Source #

sftp_symlink :: SFTPSession -> CString -> CString -> IO CInt Source #

sftp_readlink :: SFTPSession -> CString -> IO CString Source #

sftp_fsync :: SFTPFile -> IO CInt Source #

The libssh API

ssh_init :: IO CInt Source #

ssh_finalize :: IO CInt Source #

The SSH authentication functions

ssh_set_agent_socket :: SSHSession -> CInt -> IO CInt Source #

ssh_userauth_none :: SSHSession -> CString -> IO CInt Source #

ssh_userauth_publickey :: SSHSession -> CString -> SSHKey -> IO CInt Source #

ssh_userauth_agent :: SSHSession -> CString -> IO CInt Source #

ssh_userauth_publickey_auto :: SSHSession -> CString -> CString -> IO CInt Source #

ssh_userauth_password :: SSHSession -> CString -> CString -> IO CInt Source #

The SSH channel functions

ssh_channel_write :: SSHChannel -> CString -> CUInt -> IO CInt Source #

ssh_channel_request_exec :: SSHChannel -> CString -> IO CInt Source #

ssh_channel_read :: SSHChannel -> CString -> CUInt -> CInt -> IO CInt Source #

ssh_channel_read_timeout :: SSHChannel -> CString -> CUInt -> CInt -> CInt -> IO CInt Source #

ssh_channel_read_nonblocking :: SSHChannel -> CString -> CUInt -> CInt -> IO CInt Source #

ssh_channel_poll :: SSHChannel -> CInt -> IO CInt Source #

ssh_channel_poll_timeout :: SSHChannel -> CInt -> CInt -> IO CInt Source #

The SSH error functions

ssh_get_error :: Ptr () -> IO CString Source #

ssh_get_error_code :: Ptr () -> IO CInt Source #

The SSH logging functions

ssh_set_log_level :: CInt -> IO CInt Source #

The SSH helper functions

ssh_version :: CInt -> IO CString Source #

The SSH Public Key Infrastructure

ssh_pki_import_privkey_base64 :: CString -> CString -> SSHAuthCallback -> Ptr () -> Ptr SSHKey -> IO CInt Source #

ssh_pki_import_privkey_file :: CString -> CString -> SSHAuthCallback -> Ptr () -> Ptr SSHKey -> IO CInt Source #

ssh_pki_import_pubkey_base64 :: CString -> SSHKeyType -> Ptr SSHKey -> IO CInt Source #

ssh_pki_import_pubkey_file :: CString -> Ptr SSHKey -> IO CInt Source #

ssh_pki_import_cert_base64 :: CString -> SSHKeyType -> Ptr SSHKey -> IO CInt Source #

ssh_pki_import_cert_file :: CString -> Ptr SSHKey -> IO CInt Source #

ssh_pki_generate :: SSHKeyType -> CInt -> Ptr SSHKey -> IO CInt Source #

The SSH session functions

ssh_service_request :: SSHSession -> CString -> IO CInt Source #

ssh_copyright :: IO CString Source #

ssh_options_set :: SSHSession -> SSHOptionCode -> Ptr () -> IO CInt Source #

ssh_options_parse_config :: SSHSession -> CString -> IO CInt Source #

ssh_set_blocking :: SSHSession -> CInt -> IO () Source #

ssh_blocking_flush :: SSHSession -> CInt -> IO CInt Source #

ssh_send_ignore :: SSHSession -> CString -> IO CInt Source #

ssh_send_debug :: SSHSession -> CString -> CInt -> IO CInt Source #