summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-30 11:42:12 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-30 12:01:39 +0200
commit678d445075de396a1bc4937976b4a6de5b2f0baf (patch)
treef4b07b8a68f6de6e24edf9f42265d0dbd55d1cff
parent3558b9e6b6fb36fa2c77e604f9dd8591d3b1b0f4 (diff)
downloadlibssh-678d445075de396a1bc4937976b4a6de5b2f0baf.tar.gz
libssh-678d445075de396a1bc4937976b4a6de5b2f0baf.tar.xz
libssh-678d445075de396a1bc4937976b4a6de5b2f0baf.zip
Export public functions on Windows.
-rw-r--r--libssh/CMakeLists.txt7
-rw-r--r--libssh/libssh.def201
2 files changed, 208 insertions, 0 deletions
diff --git a/libssh/CMakeLists.txt b/libssh/CMakeLists.txt
index c890b94c..023759e1 100644
--- a/libssh/CMakeLists.txt
+++ b/libssh/CMakeLists.txt
@@ -135,6 +135,13 @@ if (WITH_SERVER)
)
endif (WITH_SERVER)
+if (MSVC)
+ set(libssh_SRCS
+ ${libssh_SRCS}
+ libssh.def
+ )
+endif (MSVC)
+
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${LIBSSH_PRIVATE_INCLUDE_DIRS}
diff --git a/libssh/libssh.def b/libssh/libssh.def
new file mode 100644
index 00000000..0989ec3a
--- /dev/null
+++ b/libssh/libssh.def
@@ -0,0 +1,201 @@
+LIBRARY libssh
+EXPORTS
+buffer_free
+buffer_get
+buffer_get_len
+buffer_new
+channel_change_pty_size
+channel_close
+channel_free
+channel_get_exit_status
+channel_get_session
+channel_is_closed
+channel_is_eof
+channel_is_open
+channel_new
+channel_open_forward
+channel_open_session
+channel_poll
+channel_read
+channel_read_buffer
+channel_read_nonblocking
+channel_request_env
+channel_request_exec
+channel_request_pty
+channel_request_pty_size
+channel_request_sftp
+channel_request_shell
+channel_request_subsystem
+channel_select
+channel_send_eof
+channel_set_blocking
+channel_write
+channel_write_stderr
+privatekey_free
+privatekey_from_file
+publickey_free
+publickey_from_file
+publickey_from_privatekey
+publickey_to_string
+sftp_async_read
+sftp_async_read_begin
+sftp_attributes_free
+sftp_canonicalize_path
+sftp_chmod
+sftp_chown
+sftp_close
+sftp_closedir
+sftp_dir_eof
+sftp_extensions_get_count
+sftp_extensions_get_data
+sftp_extensions_get_name
+sftp_file_set_blocking
+sftp_file_set_nonblocking
+sftp_free
+sftp_fstat
+sftp_get_error
+sftp_init
+sftp_lstat
+sftp_mkdir
+sftp_new
+sftp_open
+sftp_opendir
+sftp_read
+sftp_readdir
+sftp_readlink
+sftp_rename
+sftp_rewind
+sftp_rmdir
+sftp_seek
+sftp_seek64
+sftp_server_init
+sftp_server_new
+sftp_server_version
+sftp_setstat
+sftp_stat
+sftp_symlink
+sftp_tell
+sftp_tell64
+sftp_unlink
+sftp_utimes
+sftp_write
+ssh_accept
+ssh_auth_list
+ssh_bind_accept
+ssh_bind_fd_toaccept
+ssh_bind_free
+ssh_bind_get_fd
+ssh_bind_listen
+ssh_bind_new
+ssh_bind_set_blocking
+ssh_bind_set_fd
+ssh_bind_set_options
+ssh_clean_pubkey_hash
+ssh_connect
+ssh_copyright
+ssh_disconnect
+ssh_fd_poll
+ssh_finalize
+ssh_get_disconnect_message
+ssh_get_error
+ssh_get_error_code
+ssh_get_fd
+ssh_get_hexa
+ssh_get_issue_banner
+ssh_get_openssh_version
+ssh_get_pubkey
+ssh_get_pubkey_hash
+ssh_get_random
+ssh_get_status
+ssh_get_version
+ssh_init
+ssh_is_server_known
+ssh_log
+ssh_message_auth_password
+ssh_message_auth_publickey
+ssh_message_auth_reply_pk_ok
+ssh_message_auth_reply_success
+ssh_message_auth_set_methods
+ssh_message_auth_user
+ssh_message_channel_request_channel
+ssh_message_channel_request_command
+ssh_message_channel_request_env_name
+ssh_message_channel_request_env_value
+ssh_message_channel_request_open_destination
+ssh_message_channel_request_open_destination_port
+ssh_message_channel_request_open_originator
+ssh_message_channel_request_open_originator_port
+ssh_message_channel_request_open_reply_accept
+ssh_message_channel_request_pty_height
+ssh_message_channel_request_pty_pxheight
+ssh_message_channel_request_pty_pxwidth
+ssh_message_channel_request_pty_term
+ssh_message_channel_request_pty_width
+ssh_message_channel_request_reply_success
+ssh_message_channel_request_subsystem
+ssh_message_free
+ssh_message_get
+ssh_message_reply_default
+ssh_message_retrieve
+ssh_message_service_reply_success
+ssh_message_service_service
+ssh_message_subtype
+ssh_message_type
+ssh_new
+ssh_options_allow_ssh1
+ssh_options_allow_ssh2
+ssh_options_copy
+ssh_options_free
+ssh_options_getopt
+ssh_options_new
+ssh_options_set_auth_callback
+ssh_options_set_banner
+ssh_options_set_bind
+ssh_options_set_dsa_server_key
+ssh_options_set_fd
+ssh_options_set_host
+ssh_options_set_identity
+ssh_options_set_known_hosts_file
+ssh_options_set_log_function
+ssh_options_set_log_verbosity
+ssh_options_set_port
+ssh_options_set_rsa_server_key
+ssh_options_set_ssh_dir
+ssh_options_set_status_callback
+ssh_options_set_timeout
+ssh_options_set_username
+ssh_options_set_wanted_algos
+ssh_print_hexa
+ssh_select
+ssh_service_request
+ssh_set_blocking
+ssh_set_fd_except
+ssh_set_fd_toread
+ssh_set_fd_towrite
+ssh_set_message_callback
+ssh_set_options
+ssh_silent_disconnect
+ssh_userauth_agent_pubkey
+ssh_userauth_autopubkey
+ssh_userauth_kbdint
+ssh_userauth_kbdint_getinstruction
+ssh_userauth_kbdint_getname
+ssh_userauth_kbdint_getnprompts
+ssh_userauth_kbdint_getprompt
+ssh_userauth_kbdint_setanswer
+ssh_userauth_list
+ssh_userauth_none
+ssh_userauth_offer_pubkey
+ssh_userauth_password
+ssh_userauth_pubkey
+ssh_version
+ssh_write_knownhost
+string_burn
+string_copy
+string_data
+string_fill
+string_free
+string_from_char
+string_len
+string_new
+string_to_char