mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-01 11:26:53 +03:00
tidy-up: replace tabs and other whitespace (#885)
There are a few non-whitespace changes, see them here: https://github.com/libssh2/libssh2/pull/885/files?w=1
This commit is contained in:
89
Makefile.am
89
Makefile.am
@ -11,45 +11,45 @@ endif
|
|||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = libssh2.pc
|
pkgconfig_DATA = libssh2.pc
|
||||||
|
|
||||||
include_HEADERS = \
|
include_HEADERS = \
|
||||||
include/libssh2.h \
|
include/libssh2.h \
|
||||||
include/libssh2_publickey.h \
|
include/libssh2_publickey.h \
|
||||||
include/libssh2_sftp.h
|
include/libssh2_sftp.h
|
||||||
|
|
||||||
NETWAREFILES = nw/keepscreen.c \
|
NETWAREFILES = nw/keepscreen.c \
|
||||||
nw/nwlib.c \
|
nw/nwlib.c \
|
||||||
nw/GNUmakefile \
|
nw/GNUmakefile \
|
||||||
nw/test/GNUmakefile
|
nw/test/GNUmakefile
|
||||||
|
|
||||||
DSP = win32/libssh2.dsp
|
DSP = win32/libssh2.dsp
|
||||||
VCPROJ = win32/libssh2.vcproj
|
VCPROJ = win32/libssh2.vcproj
|
||||||
|
|
||||||
DISTCLEANFILES = $(DSP)
|
DISTCLEANFILES = $(DSP)
|
||||||
|
|
||||||
VMSFILES = vms/libssh2_make_example.dcl vms/libssh2_make_help.dcl \
|
VMSFILES = vms/libssh2_make_example.dcl vms/libssh2_make_help.dcl \
|
||||||
vms/libssh2_make_kit.dcl vms/libssh2_make_lib.dcl vms/man2help.c \
|
vms/libssh2_make_kit.dcl vms/libssh2_make_lib.dcl vms/man2help.c \
|
||||||
vms/readme.vms vms/libssh2_config.h
|
vms/readme.vms vms/libssh2_config.h
|
||||||
|
|
||||||
WIN32FILES = win32/GNUmakefile \
|
WIN32FILES = win32/GNUmakefile \
|
||||||
win32/libssh2_config.h win32/config.mk win32/rules.mk \
|
win32/libssh2_config.h win32/config.mk win32/rules.mk \
|
||||||
win32/Makefile.Watcom win32/libssh2.dsw win32/tests.dsp $(DSP) \
|
win32/Makefile.Watcom win32/libssh2.dsw win32/tests.dsp $(DSP) \
|
||||||
win32/msvcproj.head win32/msvcproj.foot win32/libssh2.rc
|
win32/msvcproj.head win32/msvcproj.foot win32/libssh2.rc
|
||||||
|
|
||||||
OS400FILES = os400/README400 os400/initscript.sh os400/make.sh \
|
OS400FILES = os400/README400 os400/initscript.sh os400/make.sh \
|
||||||
os400/make-src.sh os400/make-rpg.sh os400/make-include.sh \
|
os400/make-src.sh os400/make-rpg.sh os400/make-include.sh \
|
||||||
os400/os400sys.c os400/ccsid.c \
|
os400/os400sys.c os400/ccsid.c \
|
||||||
os400/libssh2_config.h os400/macros.h os400/libssh2_ccsid.h \
|
os400/libssh2_config.h os400/macros.h os400/libssh2_ccsid.h \
|
||||||
os400/include/alloca.h os400/include/sys/socket.h os400/include/stdio.h \
|
os400/include/alloca.h os400/include/sys/socket.h os400/include/stdio.h \
|
||||||
os400/libssh2rpg/libssh2.rpgle.in \
|
os400/libssh2rpg/libssh2.rpgle.in \
|
||||||
os400/libssh2rpg/libssh2_ccsid.rpgle.in \
|
os400/libssh2rpg/libssh2_ccsid.rpgle.in \
|
||||||
os400/libssh2rpg/libssh2_publickey.rpgle \
|
os400/libssh2rpg/libssh2_publickey.rpgle \
|
||||||
os400/libssh2rpg/libssh2_sftp.rpgle \
|
os400/libssh2rpg/libssh2_sftp.rpgle \
|
||||||
Makefile.os400qc3.inc
|
Makefile.os400qc3.inc
|
||||||
|
|
||||||
EXTRA_DIST = $(WIN32FILES) $(NETWAREFILES) get_ver.awk \
|
EXTRA_DIST = $(WIN32FILES) $(NETWAREFILES) get_ver.awk \
|
||||||
maketgz NMakefile RELEASE-NOTES libssh2.pc.in $(VMSFILES) config.rpath \
|
maketgz NMakefile RELEASE-NOTES libssh2.pc.in $(VMSFILES) config.rpath \
|
||||||
CMakeLists.txt cmake git2news.pl libssh2-style.el README.md $(OS400FILES) \
|
CMakeLists.txt cmake git2news.pl libssh2-style.el README.md $(OS400FILES) \
|
||||||
buildconf
|
buildconf
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
@ -110,10 +110,10 @@ $(DSP): win32/msvcproj.head win32/msvcproj.foot Makefile.am
|
|||||||
win32_srcs='$(WIN32SOURCES)'; \
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
for file in $$sorted_srcs; do \
|
for file in $$sorted_srcs; do \
|
||||||
echo "# Begin Source File"; \
|
echo "# Begin Source File"; \
|
||||||
echo ""; \
|
echo ""; \
|
||||||
echo "SOURCE=..\\src\\"$$file; \
|
echo "SOURCE=..\\src\\"$$file; \
|
||||||
echo "# End Source File"; \
|
echo "# End Source File"; \
|
||||||
done; \
|
done; \
|
||||||
echo "# End Group"; \
|
echo "# End Group"; \
|
||||||
echo "# Begin Group \"Header Files\""; \
|
echo "# Begin Group \"Header Files\""; \
|
||||||
@ -122,15 +122,14 @@ $(DSP): win32/msvcproj.head win32/msvcproj.foot Makefile.am
|
|||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
for file in $$sorted_hdrs; do \
|
for file in $$sorted_hdrs; do \
|
||||||
echo "# Begin Source File"; \
|
echo "# Begin Source File"; \
|
||||||
echo ""; \
|
echo ""; \
|
||||||
if [ "$$file" = "libssh2_config.h" ]; \
|
if [ "$$file" = "libssh2_config.h" ]; then \
|
||||||
then \
|
echo "SOURCE=.\\"$$file; \
|
||||||
echo "SOURCE=.\\"$$file; \
|
else \
|
||||||
else \
|
echo "SOURCE=..\\src\\"$$file; \
|
||||||
echo "SOURCE=..\\src\\"$$file; \
|
fi; \
|
||||||
fi; \
|
echo "# End Source File"; \
|
||||||
echo "# End Source File"; \
|
|
||||||
done; \
|
done; \
|
||||||
echo "# End Group"; \
|
echo "# End Group"; \
|
||||||
cat $(srcdir)/win32/msvcproj.foot) | \
|
cat $(srcdir)/win32/msvcproj.foot) | \
|
||||||
@ -142,18 +141,18 @@ $(VCPROJ): win32/vc8proj.head win32/vc8proj.foot Makefile.am
|
|||||||
win32_srcs='$(WIN32SOURCES)'; \
|
win32_srcs='$(WIN32SOURCES)'; \
|
||||||
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
|
||||||
for file in $$sorted_srcs; do \
|
for file in $$sorted_srcs; do \
|
||||||
echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
|
echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
|
||||||
done; \
|
done; \
|
||||||
echo "</Filter><Filter Name=\"Header Files\">"; \
|
echo "</Filter><Filter Name=\"Header Files\">"; \
|
||||||
win32_hdrs='$(WIN32HEADERS)'; \
|
win32_hdrs='$(WIN32HEADERS)'; \
|
||||||
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
|
||||||
for file in $$sorted_hdrs; do \
|
for file in $$sorted_hdrs; do \
|
||||||
echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
|
echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
|
||||||
done; \
|
done; \
|
||||||
cat $(srcdir)/vc8proj.foot) | \
|
cat $(srcdir)/vc8proj.foot) | \
|
||||||
awk '{printf("%s\r\n", gensub("\r", "", "g"))}' > $@ )
|
awk '{printf("%s\r\n", gensub("\r", "", "g"))}' > $@ )
|
||||||
|
|
||||||
checksrc:
|
checksrc:
|
||||||
perl src/checksrc.pl -i4 -m79 -ASIZEOFNOPAREN -ASNPRINTF -ACOPYRIGHT \
|
perl src/checksrc.pl -i4 -m79 -ASIZEOFNOPAREN -ASNPRINTF -ACOPYRIGHT \
|
||||||
-AFOPENMODE -Wsrc/libssh2_config.h src/*.[ch] include/*.h example/*.c \
|
-AFOPENMODE -Wsrc/libssh2_config.h src/*.[ch] include/*.h example/*.c \
|
||||||
tests/*.[ch]
|
tests/*.[ch]
|
||||||
|
12
Makefile.inc
12
Makefile.inc
@ -1,9 +1,9 @@
|
|||||||
CSOURCES = channel.c comp.c crypt.c hostkey.c kex.c mac.c misc.c \
|
CSOURCES = channel.c comp.c crypt.c hostkey.c kex.c mac.c misc.c \
|
||||||
packet.c publickey.c scp.c session.c sftp.c userauth.c transport.c \
|
packet.c publickey.c scp.c session.c sftp.c userauth.c transport.c \
|
||||||
userauth_kbd_packet.c \
|
userauth_kbd_packet.c \
|
||||||
version.c knownhost.c agent.c $(CRYPTO_CSOURCES) pem.c keepalive.c global.c \
|
version.c knownhost.c agent.c $(CRYPTO_CSOURCES) pem.c keepalive.c global.c \
|
||||||
blowfish.c bcrypt_pbkdf.c agent_win.c os400qc3.c
|
blowfish.c bcrypt_pbkdf.c agent_win.c os400qc3.c
|
||||||
|
|
||||||
HHEADERS = libssh2_priv.h $(CRYPTO_HHEADERS) transport.h channel.h comp.h \
|
HHEADERS = libssh2_priv.h $(CRYPTO_HHEADERS) transport.h channel.h comp.h \
|
||||||
mac.h misc.h packet.h userauth.h session.h sftp.h crypto.h blf.h agent.h \
|
mac.h misc.h packet.h userauth.h session.h sftp.h crypto.h blf.h agent.h \
|
||||||
userauth_kbd_packet.h os400qc3.h
|
userauth_kbd_packet.h os400qc3.h
|
||||||
|
@ -256,57 +256,57 @@ Some ./configure options deserve additional comments:
|
|||||||
|
|
||||||
* --enable-crypt-none
|
* --enable-crypt-none
|
||||||
|
|
||||||
The SSH2 Transport allows for unencrypted data
|
The SSH2 Transport allows for unencrypted data
|
||||||
transmission using the "none" cipher. Because this is
|
transmission using the "none" cipher. Because this is
|
||||||
such a huge security hole, it is typically disabled on
|
such a huge security hole, it is typically disabled on
|
||||||
SSH2 implementations and is disabled in libssh2 by
|
SSH2 implementations and is disabled in libssh2 by
|
||||||
default as well.
|
default as well.
|
||||||
|
|
||||||
Enabling this option will allow for "none" as a
|
Enabling this option will allow for "none" as a
|
||||||
negotiable method, however it still requires that the
|
negotiable method, however it still requires that the
|
||||||
method be advertized by the remote end and that no
|
method be advertized by the remote end and that no
|
||||||
more-preferable methods are available.
|
more-preferable methods are available.
|
||||||
|
|
||||||
* --enable-mac-none
|
* --enable-mac-none
|
||||||
|
|
||||||
The SSH2 Transport also allows implementations to
|
The SSH2 Transport also allows implementations to
|
||||||
forego a message authentication code. While this is
|
forego a message authentication code. While this is
|
||||||
less of a security risk than using a "none" cipher, it
|
less of a security risk than using a "none" cipher, it
|
||||||
is still not recommended as disabling MAC hashes
|
is still not recommended as disabling MAC hashes
|
||||||
removes a layer of security.
|
removes a layer of security.
|
||||||
|
|
||||||
Enabling this option will allow for "none" as a
|
Enabling this option will allow for "none" as a
|
||||||
negotiable method, however it still requires that the
|
negotiable method, however it still requires that the
|
||||||
method be advertized by the remote end and that no
|
method be advertized by the remote end and that no
|
||||||
more-preferable methods are available.
|
more-preferable methods are available.
|
||||||
|
|
||||||
* --with-libgcrypt
|
* --with-libgcrypt
|
||||||
* --without-libgcrypt
|
* --without-libgcrypt
|
||||||
* --with-libgcrypt-prefix=DIR
|
* --with-libgcrypt-prefix=DIR
|
||||||
|
|
||||||
libssh2 can use the Libgcrypt library
|
libssh2 can use the Libgcrypt library
|
||||||
(https://www.gnupg.org/) for cryptographic operations.
|
(https://www.gnupg.org/) for cryptographic operations.
|
||||||
One of the cryptographic libraries is required.
|
One of the cryptographic libraries is required.
|
||||||
|
|
||||||
Configure will attempt to locate Libgcrypt
|
Configure will attempt to locate Libgcrypt
|
||||||
automatically.
|
automatically.
|
||||||
|
|
||||||
If your installation of Libgcrypt is in another
|
If your installation of Libgcrypt is in another
|
||||||
location, specify it using --with-libgcrypt-prefix.
|
location, specify it using --with-libgcrypt-prefix.
|
||||||
|
|
||||||
* --with-openssl
|
* --with-openssl
|
||||||
* --without-openssl
|
* --without-openssl
|
||||||
* --with-libssl-prefix=[DIR]
|
* --with-libssl-prefix=[DIR]
|
||||||
|
|
||||||
libssh2 can use the OpenSSL library
|
libssh2 can use the OpenSSL library
|
||||||
(https://www.openssl.org) for cryptographic operations.
|
(https://www.openssl.org) for cryptographic operations.
|
||||||
One of the cryptographic libraries is required.
|
One of the cryptographic libraries is required.
|
||||||
|
|
||||||
Configure will attempt to locate OpenSSL in the
|
Configure will attempt to locate OpenSSL in the
|
||||||
default location.
|
default location.
|
||||||
|
|
||||||
If your installation of OpenSSL is in another
|
If your installation of OpenSSL is in another
|
||||||
location, specify it using --with-libssl-prefix.
|
location, specify it using --with-libssl-prefix.
|
||||||
|
|
||||||
* --with-mbedtls
|
* --with-mbedtls
|
||||||
* --without-mbedtls
|
* --without-mbedtls
|
||||||
@ -326,15 +326,15 @@ Some ./configure options deserve additional comments:
|
|||||||
* --without-libz
|
* --without-libz
|
||||||
* --with-libz-prefix=[DIR]
|
* --with-libz-prefix=[DIR]
|
||||||
|
|
||||||
If present, libssh2 will attempt to use the zlib
|
If present, libssh2 will attempt to use the zlib
|
||||||
(http://www.zlib.org) for payload compression, however
|
(http://www.zlib.org) for payload compression, however
|
||||||
zlib is not required.
|
zlib is not required.
|
||||||
|
|
||||||
If your installation of Libz is in another location,
|
If your installation of Libz is in another location,
|
||||||
specify it using --with-libz-prefix.
|
specify it using --with-libz-prefix.
|
||||||
|
|
||||||
* --enable-debug
|
* --enable-debug
|
||||||
|
|
||||||
Will make the build use more pedantic and strict compiler
|
Will make the build use more pedantic and strict compiler
|
||||||
options as well as enable the libssh2_trace() function (for
|
options as well as enable the libssh2_trace() function (for
|
||||||
showing debug traces).
|
showing debug traces).
|
||||||
|
352
docs/Makefile.am
352
docs/Makefile.am
@ -4,179 +4,179 @@ EXTRA_DIST = template.3 BINDINGS INSTALL_AUTOTOOLS INSTALL_CMAKE.md HACKING TODO
|
|||||||
AUTHORS CMakeLists.txt HACKING-CRYPTO SECURITY.md
|
AUTHORS CMakeLists.txt HACKING-CRYPTO SECURITY.md
|
||||||
|
|
||||||
dist_man_MANS = \
|
dist_man_MANS = \
|
||||||
libssh2_agent_connect.3 \
|
libssh2_agent_connect.3 \
|
||||||
libssh2_agent_disconnect.3 \
|
libssh2_agent_disconnect.3 \
|
||||||
libssh2_agent_free.3 \
|
libssh2_agent_free.3 \
|
||||||
libssh2_agent_get_identity.3 \
|
libssh2_agent_get_identity.3 \
|
||||||
libssh2_agent_get_identity_path.3 \
|
libssh2_agent_get_identity_path.3 \
|
||||||
libssh2_agent_init.3 \
|
libssh2_agent_init.3 \
|
||||||
libssh2_agent_list_identities.3 \
|
libssh2_agent_list_identities.3 \
|
||||||
libssh2_agent_set_identity_path.3 \
|
libssh2_agent_set_identity_path.3 \
|
||||||
libssh2_agent_userauth.3 \
|
libssh2_agent_userauth.3 \
|
||||||
libssh2_banner_set.3 \
|
libssh2_banner_set.3 \
|
||||||
libssh2_base64_decode.3 \
|
libssh2_base64_decode.3 \
|
||||||
libssh2_channel_close.3 \
|
libssh2_channel_close.3 \
|
||||||
libssh2_channel_direct_tcpip.3 \
|
libssh2_channel_direct_tcpip.3 \
|
||||||
libssh2_channel_direct_tcpip_ex.3 \
|
libssh2_channel_direct_tcpip_ex.3 \
|
||||||
libssh2_channel_eof.3 \
|
libssh2_channel_eof.3 \
|
||||||
libssh2_channel_exec.3 \
|
libssh2_channel_exec.3 \
|
||||||
libssh2_channel_flush.3 \
|
libssh2_channel_flush.3 \
|
||||||
libssh2_channel_flush_ex.3 \
|
libssh2_channel_flush_ex.3 \
|
||||||
libssh2_channel_flush_stderr.3 \
|
libssh2_channel_flush_stderr.3 \
|
||||||
libssh2_channel_forward_accept.3 \
|
libssh2_channel_forward_accept.3 \
|
||||||
libssh2_channel_forward_cancel.3 \
|
libssh2_channel_forward_cancel.3 \
|
||||||
libssh2_channel_forward_listen.3 \
|
libssh2_channel_forward_listen.3 \
|
||||||
libssh2_channel_forward_listen_ex.3 \
|
libssh2_channel_forward_listen_ex.3 \
|
||||||
libssh2_channel_free.3 \
|
libssh2_channel_free.3 \
|
||||||
libssh2_channel_get_exit_signal.3 \
|
libssh2_channel_get_exit_signal.3 \
|
||||||
libssh2_channel_get_exit_status.3 \
|
libssh2_channel_get_exit_status.3 \
|
||||||
libssh2_channel_handle_extended_data.3 \
|
libssh2_channel_handle_extended_data.3 \
|
||||||
libssh2_channel_handle_extended_data2.3 \
|
libssh2_channel_handle_extended_data2.3 \
|
||||||
libssh2_channel_ignore_extended_data.3 \
|
libssh2_channel_ignore_extended_data.3 \
|
||||||
libssh2_channel_open_ex.3 \
|
libssh2_channel_open_ex.3 \
|
||||||
libssh2_channel_open_session.3 \
|
libssh2_channel_open_session.3 \
|
||||||
libssh2_channel_process_startup.3 \
|
libssh2_channel_process_startup.3 \
|
||||||
libssh2_channel_read.3 \
|
libssh2_channel_read.3 \
|
||||||
libssh2_channel_read_ex.3 \
|
libssh2_channel_read_ex.3 \
|
||||||
libssh2_channel_read_stderr.3 \
|
libssh2_channel_read_stderr.3 \
|
||||||
libssh2_channel_receive_window_adjust.3 \
|
libssh2_channel_receive_window_adjust.3 \
|
||||||
libssh2_channel_receive_window_adjust2.3 \
|
libssh2_channel_receive_window_adjust2.3 \
|
||||||
libssh2_channel_request_auth_agent.3 \
|
libssh2_channel_request_auth_agent.3 \
|
||||||
libssh2_channel_request_pty.3 \
|
libssh2_channel_request_pty.3 \
|
||||||
libssh2_channel_request_pty_ex.3 \
|
libssh2_channel_request_pty_ex.3 \
|
||||||
libssh2_channel_request_pty_size.3 \
|
libssh2_channel_request_pty_size.3 \
|
||||||
libssh2_channel_request_pty_size_ex.3 \
|
libssh2_channel_request_pty_size_ex.3 \
|
||||||
libssh2_channel_send_eof.3 \
|
libssh2_channel_send_eof.3 \
|
||||||
libssh2_channel_set_blocking.3 \
|
libssh2_channel_set_blocking.3 \
|
||||||
libssh2_channel_setenv.3 \
|
libssh2_channel_setenv.3 \
|
||||||
libssh2_channel_setenv_ex.3 \
|
libssh2_channel_setenv_ex.3 \
|
||||||
libssh2_channel_shell.3 \
|
libssh2_channel_shell.3 \
|
||||||
libssh2_channel_subsystem.3 \
|
libssh2_channel_subsystem.3 \
|
||||||
libssh2_channel_wait_closed.3 \
|
libssh2_channel_wait_closed.3 \
|
||||||
libssh2_channel_wait_eof.3 \
|
libssh2_channel_wait_eof.3 \
|
||||||
libssh2_channel_window_read.3 \
|
libssh2_channel_window_read.3 \
|
||||||
libssh2_channel_window_read_ex.3 \
|
libssh2_channel_window_read_ex.3 \
|
||||||
libssh2_channel_window_write.3 \
|
libssh2_channel_window_write.3 \
|
||||||
libssh2_channel_window_write_ex.3 \
|
libssh2_channel_window_write_ex.3 \
|
||||||
libssh2_channel_write.3 \
|
libssh2_channel_write.3 \
|
||||||
libssh2_channel_write_ex.3 \
|
libssh2_channel_write_ex.3 \
|
||||||
libssh2_channel_write_stderr.3 \
|
libssh2_channel_write_stderr.3 \
|
||||||
libssh2_channel_x11_req.3 \
|
libssh2_channel_x11_req.3 \
|
||||||
libssh2_channel_x11_req_ex.3 \
|
libssh2_channel_x11_req_ex.3 \
|
||||||
libssh2_crypto_engine.3 \
|
libssh2_crypto_engine.3 \
|
||||||
libssh2_exit.3 \
|
libssh2_exit.3 \
|
||||||
libssh2_free.3 \
|
libssh2_free.3 \
|
||||||
libssh2_hostkey_hash.3 \
|
libssh2_hostkey_hash.3 \
|
||||||
libssh2_init.3 \
|
libssh2_init.3 \
|
||||||
libssh2_keepalive_config.3 \
|
libssh2_keepalive_config.3 \
|
||||||
libssh2_keepalive_send.3 \
|
libssh2_keepalive_send.3 \
|
||||||
libssh2_knownhost_add.3 \
|
libssh2_knownhost_add.3 \
|
||||||
libssh2_knownhost_addc.3 \
|
libssh2_knownhost_addc.3 \
|
||||||
libssh2_knownhost_check.3 \
|
libssh2_knownhost_check.3 \
|
||||||
libssh2_knownhost_checkp.3 \
|
libssh2_knownhost_checkp.3 \
|
||||||
libssh2_knownhost_del.3 \
|
libssh2_knownhost_del.3 \
|
||||||
libssh2_knownhost_free.3 \
|
libssh2_knownhost_free.3 \
|
||||||
libssh2_knownhost_get.3 \
|
libssh2_knownhost_get.3 \
|
||||||
libssh2_knownhost_init.3 \
|
libssh2_knownhost_init.3 \
|
||||||
libssh2_knownhost_readfile.3 \
|
libssh2_knownhost_readfile.3 \
|
||||||
libssh2_knownhost_readline.3 \
|
libssh2_knownhost_readline.3 \
|
||||||
libssh2_knownhost_writefile.3 \
|
libssh2_knownhost_writefile.3 \
|
||||||
libssh2_knownhost_writeline.3 \
|
libssh2_knownhost_writeline.3 \
|
||||||
libssh2_poll.3 \
|
libssh2_poll.3 \
|
||||||
libssh2_poll_channel_read.3 \
|
libssh2_poll_channel_read.3 \
|
||||||
libssh2_publickey_add.3 \
|
libssh2_publickey_add.3 \
|
||||||
libssh2_publickey_add_ex.3 \
|
libssh2_publickey_add_ex.3 \
|
||||||
libssh2_publickey_init.3 \
|
libssh2_publickey_init.3 \
|
||||||
libssh2_publickey_list_fetch.3 \
|
libssh2_publickey_list_fetch.3 \
|
||||||
libssh2_publickey_list_free.3 \
|
libssh2_publickey_list_free.3 \
|
||||||
libssh2_publickey_remove.3 \
|
libssh2_publickey_remove.3 \
|
||||||
libssh2_publickey_remove_ex.3 \
|
libssh2_publickey_remove_ex.3 \
|
||||||
libssh2_publickey_shutdown.3 \
|
libssh2_publickey_shutdown.3 \
|
||||||
libssh2_scp_recv.3 \
|
libssh2_scp_recv.3 \
|
||||||
libssh2_scp_recv2.3 \
|
libssh2_scp_recv2.3 \
|
||||||
libssh2_scp_send.3 \
|
libssh2_scp_send.3 \
|
||||||
libssh2_scp_send64.3 \
|
libssh2_scp_send64.3 \
|
||||||
libssh2_scp_send_ex.3 \
|
libssh2_scp_send_ex.3 \
|
||||||
libssh2_session_abstract.3 \
|
libssh2_session_abstract.3 \
|
||||||
libssh2_session_banner_get.3 \
|
libssh2_session_banner_get.3 \
|
||||||
libssh2_session_banner_set.3 \
|
libssh2_session_banner_set.3 \
|
||||||
libssh2_session_block_directions.3 \
|
libssh2_session_block_directions.3 \
|
||||||
libssh2_session_callback_set.3 \
|
libssh2_session_callback_set.3 \
|
||||||
libssh2_session_disconnect.3 \
|
libssh2_session_disconnect.3 \
|
||||||
libssh2_session_disconnect_ex.3 \
|
libssh2_session_disconnect_ex.3 \
|
||||||
libssh2_session_flag.3 \
|
libssh2_session_flag.3 \
|
||||||
libssh2_session_free.3 \
|
libssh2_session_free.3 \
|
||||||
libssh2_session_get_blocking.3 \
|
libssh2_session_get_blocking.3 \
|
||||||
libssh2_session_get_timeout.3 \
|
libssh2_session_get_timeout.3 \
|
||||||
libssh2_session_handshake.3 \
|
libssh2_session_handshake.3 \
|
||||||
libssh2_session_hostkey.3 \
|
libssh2_session_hostkey.3 \
|
||||||
libssh2_session_init.3 \
|
libssh2_session_init.3 \
|
||||||
libssh2_session_init_ex.3 \
|
libssh2_session_init_ex.3 \
|
||||||
libssh2_session_last_errno.3 \
|
libssh2_session_last_errno.3 \
|
||||||
libssh2_session_last_error.3 \
|
libssh2_session_last_error.3 \
|
||||||
libssh2_session_set_last_error.3 \
|
libssh2_session_set_last_error.3 \
|
||||||
libssh2_session_method_pref.3 \
|
libssh2_session_method_pref.3 \
|
||||||
libssh2_session_methods.3 \
|
libssh2_session_methods.3 \
|
||||||
libssh2_session_set_blocking.3 \
|
libssh2_session_set_blocking.3 \
|
||||||
libssh2_session_set_timeout.3 \
|
libssh2_session_set_timeout.3 \
|
||||||
libssh2_session_startup.3 \
|
libssh2_session_startup.3 \
|
||||||
libssh2_session_supported_algs.3 \
|
libssh2_session_supported_algs.3 \
|
||||||
libssh2_sftp_close.3 \
|
libssh2_sftp_close.3 \
|
||||||
libssh2_sftp_close_handle.3 \
|
libssh2_sftp_close_handle.3 \
|
||||||
libssh2_sftp_closedir.3 \
|
libssh2_sftp_closedir.3 \
|
||||||
libssh2_sftp_fsetstat.3 \
|
libssh2_sftp_fsetstat.3 \
|
||||||
libssh2_sftp_fstat.3 \
|
libssh2_sftp_fstat.3 \
|
||||||
libssh2_sftp_fstat_ex.3 \
|
libssh2_sftp_fstat_ex.3 \
|
||||||
libssh2_sftp_fstatvfs.3 \
|
libssh2_sftp_fstatvfs.3 \
|
||||||
libssh2_sftp_fsync.3 \
|
libssh2_sftp_fsync.3 \
|
||||||
libssh2_sftp_get_channel.3 \
|
libssh2_sftp_get_channel.3 \
|
||||||
libssh2_sftp_init.3 \
|
libssh2_sftp_init.3 \
|
||||||
libssh2_sftp_last_error.3 \
|
libssh2_sftp_last_error.3 \
|
||||||
libssh2_sftp_lstat.3 \
|
libssh2_sftp_lstat.3 \
|
||||||
libssh2_sftp_mkdir.3 \
|
libssh2_sftp_mkdir.3 \
|
||||||
libssh2_sftp_mkdir_ex.3 \
|
libssh2_sftp_mkdir_ex.3 \
|
||||||
libssh2_sftp_open.3 \
|
libssh2_sftp_open.3 \
|
||||||
libssh2_sftp_open_ex.3 \
|
libssh2_sftp_open_ex.3 \
|
||||||
libssh2_sftp_opendir.3 \
|
libssh2_sftp_opendir.3 \
|
||||||
libssh2_sftp_read.3 \
|
libssh2_sftp_read.3 \
|
||||||
libssh2_sftp_readdir.3 \
|
libssh2_sftp_readdir.3 \
|
||||||
libssh2_sftp_readdir_ex.3 \
|
libssh2_sftp_readdir_ex.3 \
|
||||||
libssh2_sftp_readlink.3 \
|
libssh2_sftp_readlink.3 \
|
||||||
libssh2_sftp_realpath.3 \
|
libssh2_sftp_realpath.3 \
|
||||||
libssh2_sftp_rename.3 \
|
libssh2_sftp_rename.3 \
|
||||||
libssh2_sftp_rename_ex.3 \
|
libssh2_sftp_rename_ex.3 \
|
||||||
libssh2_sftp_rewind.3 \
|
libssh2_sftp_rewind.3 \
|
||||||
libssh2_sftp_rmdir.3 \
|
libssh2_sftp_rmdir.3 \
|
||||||
libssh2_sftp_rmdir_ex.3 \
|
libssh2_sftp_rmdir_ex.3 \
|
||||||
libssh2_sftp_seek.3 \
|
libssh2_sftp_seek.3 \
|
||||||
libssh2_sftp_seek64.3 \
|
libssh2_sftp_seek64.3 \
|
||||||
libssh2_sftp_setstat.3 \
|
libssh2_sftp_setstat.3 \
|
||||||
libssh2_sftp_shutdown.3 \
|
libssh2_sftp_shutdown.3 \
|
||||||
libssh2_sftp_stat.3 \
|
libssh2_sftp_stat.3 \
|
||||||
libssh2_sftp_stat_ex.3 \
|
libssh2_sftp_stat_ex.3 \
|
||||||
libssh2_sftp_statvfs.3 \
|
libssh2_sftp_statvfs.3 \
|
||||||
libssh2_sftp_symlink.3 \
|
libssh2_sftp_symlink.3 \
|
||||||
libssh2_sftp_symlink_ex.3 \
|
libssh2_sftp_symlink_ex.3 \
|
||||||
libssh2_sftp_tell.3 \
|
libssh2_sftp_tell.3 \
|
||||||
libssh2_sftp_tell64.3 \
|
libssh2_sftp_tell64.3 \
|
||||||
libssh2_sftp_unlink.3 \
|
libssh2_sftp_unlink.3 \
|
||||||
libssh2_sftp_unlink_ex.3 \
|
libssh2_sftp_unlink_ex.3 \
|
||||||
libssh2_sftp_write.3 \
|
libssh2_sftp_write.3 \
|
||||||
libssh2_sign_sk.3 \
|
libssh2_sign_sk.3 \
|
||||||
libssh2_trace.3 \
|
libssh2_trace.3 \
|
||||||
libssh2_trace_sethandler.3 \
|
libssh2_trace_sethandler.3 \
|
||||||
libssh2_userauth_authenticated.3 \
|
libssh2_userauth_authenticated.3 \
|
||||||
libssh2_userauth_banner.3 \
|
libssh2_userauth_banner.3 \
|
||||||
libssh2_userauth_hostbased_fromfile.3 \
|
libssh2_userauth_hostbased_fromfile.3 \
|
||||||
libssh2_userauth_hostbased_fromfile_ex.3 \
|
libssh2_userauth_hostbased_fromfile_ex.3 \
|
||||||
libssh2_userauth_keyboard_interactive.3 \
|
libssh2_userauth_keyboard_interactive.3 \
|
||||||
libssh2_userauth_keyboard_interactive_ex.3 \
|
libssh2_userauth_keyboard_interactive_ex.3 \
|
||||||
libssh2_userauth_list.3 \
|
libssh2_userauth_list.3 \
|
||||||
libssh2_userauth_password.3 \
|
libssh2_userauth_password.3 \
|
||||||
libssh2_userauth_password_ex.3 \
|
libssh2_userauth_password_ex.3 \
|
||||||
libssh2_userauth_publickey.3 \
|
libssh2_userauth_publickey.3 \
|
||||||
libssh2_userauth_publickey_fromfile.3 \
|
libssh2_userauth_publickey_fromfile.3 \
|
||||||
libssh2_userauth_publickey_fromfile_ex.3 \
|
libssh2_userauth_publickey_fromfile_ex.3 \
|
||||||
libssh2_userauth_publickey_frommemory.3 \
|
libssh2_userauth_publickey_frommemory.3 \
|
||||||
libssh2_userauth_publickey_sk.3 \
|
libssh2_userauth_publickey_sk.3 \
|
||||||
libssh2_version.3
|
libssh2_version.3
|
||||||
|
@ -20,4 +20,3 @@ Added in libssh2 1.2
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_agent_init(3)
|
.BR libssh2_agent_init(3)
|
||||||
.BR libssh2_agent_disconnect(3)
|
.BR libssh2_agent_disconnect(3)
|
||||||
|
|
||||||
|
@ -19,4 +19,3 @@ Added in libssh2 1.9
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_agent_init(3)
|
.BR libssh2_agent_init(3)
|
||||||
.BR libssh2_agent_set_identity_path(3)
|
.BR libssh2_agent_set_identity_path(3)
|
||||||
|
|
||||||
|
@ -21,4 +21,3 @@ Added in libssh2 1.2
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_agent_connect(3)
|
.BR libssh2_agent_connect(3)
|
||||||
.BR libssh2_agent_get_identity(3)
|
.BR libssh2_agent_get_identity(3)
|
||||||
|
|
||||||
|
@ -19,4 +19,3 @@ Added in libssh2 1.9
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_agent_init(3)
|
.BR libssh2_agent_init(3)
|
||||||
.BR libssh2_agent_get_identity_path(3)
|
.BR libssh2_agent_get_identity_path(3)
|
||||||
|
|
||||||
|
@ -24,4 +24,3 @@ Nothing
|
|||||||
Added in libssh2 1.2.5
|
Added in libssh2 1.2.5
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_keepalive_send(3)
|
.BR libssh2_keepalive_send(3)
|
||||||
|
|
||||||
|
@ -26,4 +26,3 @@ Added in libssh2 1.2
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_knownhost_readfile(3)
|
.BR libssh2_knownhost_readfile(3)
|
||||||
.BR libssh2_knownhost_add(3)
|
.BR libssh2_knownhost_add(3)
|
||||||
|
|
||||||
|
@ -43,4 +43,3 @@ Added in libssh2 1.2
|
|||||||
.BR libssh2_knownhost_get(3)
|
.BR libssh2_knownhost_get(3)
|
||||||
.BR libssh2_knownhost_readline(3)
|
.BR libssh2_knownhost_readline(3)
|
||||||
.BR libssh2_knownhost_writefile(3)
|
.BR libssh2_knownhost_writefile(3)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ libssh2_publickey_add - convenience macro for \fIlibssh2_publickey_add_ex(3)\fP
|
|||||||
#include <libssh2.h>
|
#include <libssh2.h>
|
||||||
|
|
||||||
int libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey,
|
int libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey,
|
||||||
const unsigned char *name,
|
const unsigned char *name,
|
||||||
const unsigned char *blob, unsigned long blob_len, char overwrite,
|
const unsigned char *blob, unsigned long blob_len, char overwrite,
|
||||||
unsigned long num_attrs, const libssh2_publickey_attribute attrs[]);
|
unsigned long num_attrs, const libssh2_publickey_attribute attrs[]);
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ libssh2_publickey_remove - convenience macro for \fIlibssh2_publickey_remove_ex(
|
|||||||
#include <libssh2.h>
|
#include <libssh2.h>
|
||||||
|
|
||||||
int libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey,
|
int libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey,
|
||||||
const unsigned char *name, unsigned long name_len,
|
const unsigned char *name, unsigned long name_len,
|
||||||
const unsigned char *blob, unsigned long blob_len);
|
const unsigned char *blob, unsigned long blob_len);
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This is a macro defined in a public libssh2 header file that is using the
|
This is a macro defined in a public libssh2 header file that is using the
|
||||||
|
@ -32,4 +32,3 @@ block.
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_session_init_ex(3)
|
.BR libssh2_session_init_ex(3)
|
||||||
.BR libssh2_channel_open_ex(3)
|
.BR libssh2_channel_open_ex(3)
|
||||||
|
|
||||||
|
@ -29,4 +29,3 @@ block.
|
|||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_session_init_ex(3)
|
.BR libssh2_session_init_ex(3)
|
||||||
.BR libssh2_channel_open_ex(3)
|
.BR libssh2_channel_open_ex(3)
|
||||||
|
|
||||||
|
@ -62,4 +62,3 @@ returned by the server.
|
|||||||
block.
|
block.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_sftp_close_handle(3)
|
.BR libssh2_sftp_close_handle(3)
|
||||||
|
|
||||||
|
@ -2,12 +2,31 @@ AUTOMAKE_OPTIONS = foreign nostdinc
|
|||||||
|
|
||||||
EXTRA_DIST = libssh2_config_cmake.h.in CMakeLists.txt
|
EXTRA_DIST = libssh2_config_cmake.h.in CMakeLists.txt
|
||||||
|
|
||||||
# samples
|
# examples
|
||||||
noinst_PROGRAMS = direct_tcpip ssh2 scp scp_nonblock scp_write \
|
noinst_PROGRAMS = \
|
||||||
scp_write_nonblock sftp sftp_nonblock sftp_write sftp_write_nonblock \
|
direct_tcpip \
|
||||||
sftp_mkdir sftp_mkdir_nonblock sftp_RW_nonblock sftp_write_sliding \
|
scp \
|
||||||
sftpdir sftpdir_nonblock ssh2_exec ssh2_agent ssh2_agent_forwarding \
|
scp_nonblock \
|
||||||
ssh2_echo sftp_append subsystem_netconf tcpip-forward
|
scp_write \
|
||||||
|
scp_write_nonblock \
|
||||||
|
sftp \
|
||||||
|
sftp_RW_nonblock \
|
||||||
|
sftp_append \
|
||||||
|
sftp_mkdir \
|
||||||
|
sftp_mkdir_nonblock \
|
||||||
|
sftp_nonblock \
|
||||||
|
sftp_write \
|
||||||
|
sftp_write_nonblock \
|
||||||
|
sftp_write_sliding \
|
||||||
|
sftpdir \
|
||||||
|
sftpdir_nonblock \
|
||||||
|
ssh2 \
|
||||||
|
ssh2_agent \
|
||||||
|
ssh2_agent_forwarding \
|
||||||
|
ssh2_echo \
|
||||||
|
ssh2_exec \
|
||||||
|
subsystem_netconf \
|
||||||
|
tcpip-forward
|
||||||
|
|
||||||
if HAVE_SYS_UN_H
|
if HAVE_SYS_UN_H
|
||||||
noinst_PROGRAMS += x11
|
noinst_PROGRAMS += x11
|
||||||
|
@ -10,13 +10,13 @@
|
|||||||
(c-comment-only-line-offset . 0)
|
(c-comment-only-line-offset . 0)
|
||||||
(c-hanging-braces-alist . ((substatement-open before after)))
|
(c-hanging-braces-alist . ((substatement-open before after)))
|
||||||
(c-offsets-alist . ((topmost-intro . 0)
|
(c-offsets-alist . ((topmost-intro . 0)
|
||||||
(topmost-intro-cont . 0)
|
(topmost-intro-cont . 0)
|
||||||
(substatement . +)
|
(substatement . +)
|
||||||
(substatement-open . 0)
|
(substatement-open . 0)
|
||||||
(statement-case-intro . +)
|
(statement-case-intro . +)
|
||||||
(statement-case-open . 0)
|
(statement-case-open . 0)
|
||||||
(case-label . 0)
|
(case-label . 0)
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
"Libssh2 C Programming Style")
|
"Libssh2 C Programming Style")
|
||||||
|
|
||||||
@ -33,10 +33,10 @@
|
|||||||
;; add libssh2 style and set it for the current buffer
|
;; add libssh2 style and set it for the current buffer
|
||||||
(c-add-style "libssh2" libssh2-c-style t)
|
(c-add-style "libssh2" libssh2-c-style t)
|
||||||
(setq tab-width 8
|
(setq tab-width 8
|
||||||
indent-tabs-mode nil ; Use spaces, not tabs.
|
indent-tabs-mode nil ; Use spaces, not tabs.
|
||||||
comment-column 40
|
comment-column 40
|
||||||
c-font-lock-extra-types (append '("libssh2_int64_t" "LIBSSH2_USERAUTH_KBDINT_PROMPT" "LIBSSH2_SESSION" "LIBSSH2_CHANNEL" "ssize_t" "size_t" "uint32_t" "LIBSSH2_LISTENER" "LIBSSH2_POLLFD"))
|
c-font-lock-extra-types (append '("libssh2_int64_t" "LIBSSH2_USERAUTH_KBDINT_PROMPT" "LIBSSH2_SESSION" "LIBSSH2_CHANNEL" "ssize_t" "size_t" "uint32_t" "LIBSSH2_LISTENER" "LIBSSH2_POLLFD"))
|
||||||
)
|
)
|
||||||
;; keybindings for C, C++, and Objective-C. We can put these in
|
;; keybindings for C, C++, and Objective-C. We can put these in
|
||||||
;; c-mode-base-map because of inheritance ...
|
;; c-mode-base-map because of inheritance ...
|
||||||
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
|
(define-key c-mode-base-map "\M-q" 'c-fill-paragraph)
|
||||||
|
@ -14,31 +14,31 @@
|
|||||||
# Usage: AB_INIT([MODE]).
|
# Usage: AB_INIT([MODE]).
|
||||||
AC_DEFUN([AB_INIT],
|
AC_DEFUN([AB_INIT],
|
||||||
[
|
[
|
||||||
AC_REQUIRE([AC_CANONICAL_BUILD])
|
AC_REQUIRE([AC_CANONICAL_BUILD])
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
|
||||||
if test -z "$AB_PACKAGE"; then
|
if test -z "$AB_PACKAGE"; then
|
||||||
AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
|
AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
|
||||||
fi
|
fi
|
||||||
AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
|
AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
|
||||||
|
|
||||||
if test -z "$AB_VERSION"; then
|
if test -z "$AB_VERSION"; then
|
||||||
AB_VERSION=${PACKAGE_VERSION:-$VERSION}
|
AB_VERSION=${PACKAGE_VERSION:-$VERSION}
|
||||||
fi
|
fi
|
||||||
AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
|
AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
|
||||||
|
|
||||||
hostname=`hostname`
|
hostname=`hostname`
|
||||||
if test "$hostname"; then
|
if test "$hostname"; then
|
||||||
AC_MSG_NOTICE([autobuild hostname... $hostname])
|
AC_MSG_NOTICE([autobuild hostname... $hostname])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
|
ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
|
||||||
|
|
||||||
date=`date +%Y%m%d-%H%M%S`
|
date=`date +%Y%m%d-%H%M%S`
|
||||||
if test "$?" != 0; then
|
if test "$?" != 0; then
|
||||||
date=`date`
|
date=`date`
|
||||||
fi
|
fi
|
||||||
if test "$date"; then
|
if test "$date"; then
|
||||||
AC_MSG_NOTICE([autobuild timestamp... $date])
|
AC_MSG_NOTICE([autobuild timestamp... $date])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
@ -59,7 +59,7 @@ if test "$GCC" = yes; then
|
|||||||
# Canonicalize the path of ld
|
# Canonicalize the path of ld
|
||||||
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
||||||
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
||||||
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
||||||
done
|
done
|
||||||
test -z "$LD" && LD="$ac_prog"
|
test -z "$LD" && LD="$ac_prog"
|
||||||
;;
|
;;
|
||||||
@ -89,9 +89,9 @@ AC_CACHE_VAL(acl_cv_path_LD,
|
|||||||
# Break only if it was the GNU/non-GNU ld that we prefer.
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||||
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
||||||
*GNU* | *'with BFD'*)
|
*GNU* | *'with BFD'*)
|
||||||
test "$with_gnu_ld" != no && break ;;
|
test "$with_gnu_ld" != no && break ;;
|
||||||
*)
|
*)
|
||||||
test "$with_gnu_ld" != yes && break ;;
|
test "$with_gnu_ld" != yes && break ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
38
maketgz
38
maketgz
@ -10,8 +10,8 @@ if [ -z "$version" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "xonly" = "x$2" ]; then
|
if [ "xonly" = "x$2" ]; then
|
||||||
echo "Setup version number only!"
|
echo "Setup version number only!"
|
||||||
only=1
|
only=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libversion="$version"
|
libversion="$version"
|
||||||
@ -25,25 +25,26 @@ numeric=`perl -e 'printf("%02x%02x%02x\n", '"$major, $minor, $patch);"`
|
|||||||
HEADER=include/libssh2.h
|
HEADER=include/libssh2.h
|
||||||
|
|
||||||
if test -z "$only"; then
|
if test -z "$only"; then
|
||||||
ext=".dist"
|
ext=".dist"
|
||||||
# when not setting up version numbers locally
|
# when not setting up version numbers locally
|
||||||
for a in $HEADER; do
|
for a in $HEADER; do
|
||||||
cp $a "$a$ext"
|
cp $a "$a$ext"
|
||||||
done
|
done
|
||||||
HEADER="$HEADER$ext"
|
HEADER="$HEADER$ext"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# requires a date command that knows -u for UTC time zone
|
# requires a date command that knows -u for UTC time zone
|
||||||
datestamp=`LC_TIME=C date -u`
|
datestamp=`LC_TIME=C date -u`
|
||||||
|
|
||||||
# Replace in-place version number in header file:
|
# Replace in-place version number in header file:
|
||||||
sed -i.bak -e 's/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "'$libversion'"/g' \
|
sed -i.bak \
|
||||||
-e 's/^#define LIBSSH2_VERSION_NUM .*/#define LIBSSH2_VERSION_NUM 0x'$numeric'/g' \
|
-e 's/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "'$libversion'"/g' \
|
||||||
-e 's/^#define LIBSSH2_VERSION_MAJOR .*/#define LIBSSH2_VERSION_MAJOR '$major'/g' \
|
-e 's/^#define LIBSSH2_VERSION_NUM .*/#define LIBSSH2_VERSION_NUM 0x'$numeric'/g' \
|
||||||
-e 's/^#define LIBSSH2_VERSION_MINOR .*/#define LIBSSH2_VERSION_MINOR '$minor'/g' \
|
-e 's/^#define LIBSSH2_VERSION_MAJOR .*/#define LIBSSH2_VERSION_MAJOR '$major'/g' \
|
||||||
-e 's/^#define LIBSSH2_VERSION_PATCH .*/#define LIBSSH2_VERSION_PATCH '$patch'/g' \
|
-e 's/^#define LIBSSH2_VERSION_MINOR .*/#define LIBSSH2_VERSION_MINOR '$minor'/g' \
|
||||||
-e "s/^#define LIBSSH2_TIMESTAMP .*/#define LIBSSH2_TIMESTAMP \"$datestamp\"/g" \
|
-e 's/^#define LIBSSH2_VERSION_PATCH .*/#define LIBSSH2_VERSION_PATCH '$patch'/g' \
|
||||||
$HEADER
|
-e "s/^#define LIBSSH2_TIMESTAMP .*/#define LIBSSH2_TIMESTAMP \"$datestamp\"/g" \
|
||||||
|
$HEADER
|
||||||
|
|
||||||
rm -f "$HEADER.bak"
|
rm -f "$HEADER.bak"
|
||||||
|
|
||||||
@ -52,12 +53,11 @@ echo "libssh2 numerical $numeric"
|
|||||||
echo "datestamp $datestamp"
|
echo "datestamp $datestamp"
|
||||||
|
|
||||||
if test -n "$only"; then
|
if test -n "$only"; then
|
||||||
# done!
|
# done!
|
||||||
exit;
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
findprog()
|
findprog() {
|
||||||
{
|
|
||||||
file="$1"
|
file="$1"
|
||||||
for part in `echo $PATH| tr ':' ' '`; do
|
for part in `echo $PATH| tr ':' ' '`; do
|
||||||
path="$part/$file"
|
path="$part/$file"
|
||||||
|
202
nw/GNUmakefile
202
nw/GNUmakefile
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your Novell NDK.
|
# Edit the path below to point to the base of your Novell NDK.
|
||||||
ifndef NDKBASE
|
ifndef NDKBASE
|
||||||
NDKBASE = c:/novell
|
NDKBASE = c:/novell
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your Zlib sources.
|
# Edit the path below to point to the base of your Zlib sources.
|
||||||
@ -24,26 +24,26 @@ endif
|
|||||||
|
|
||||||
# Edit the path below to point to your Distribution folder.
|
# Edit the path below to point to your Distribution folder.
|
||||||
ifndef DISTDIR
|
ifndef DISTDIR
|
||||||
DISTDIR = libssh2-$(LIBSSH2_VERSION_STR)-bin-nw
|
DISTDIR = libssh2-$(LIBSSH2_VERSION_STR)-bin-nw
|
||||||
endif
|
endif
|
||||||
DISTARC = $(DISTDIR).zip
|
DISTARC = $(DISTDIR).zip
|
||||||
|
|
||||||
# Edit the path below to point to your Development folder.
|
# Edit the path below to point to your Development folder.
|
||||||
ifndef DEVLDIR
|
ifndef DEVLDIR
|
||||||
DEVLDIR = libssh2-$(LIBSSH2_VERSION_STR)-dev-nw
|
DEVLDIR = libssh2-$(LIBSSH2_VERSION_STR)-dev-nw
|
||||||
endif
|
endif
|
||||||
DEVLARC = $(DEVLDIR).zip
|
DEVLARC = $(DEVLDIR).zip
|
||||||
|
|
||||||
# Edit the vars below to change NLM target settings.
|
# Edit the vars below to change NLM target settings.
|
||||||
TARGET = libssh2
|
TARGET = libssh2
|
||||||
VERSION = $(LIBSSH2_VERSION)
|
VERSION = $(LIBSSH2_VERSION)
|
||||||
CPRIGHT = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
|
CPRIGHT = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
|
||||||
WWWURL = https://www.libssh2.org/
|
WWWURL = https://www.libssh2.org/
|
||||||
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
||||||
MTSAFE = YES
|
MTSAFE = YES
|
||||||
STACK = 64000
|
STACK = 64000
|
||||||
SCREEN = none
|
SCREEN = none
|
||||||
EXPORTS = @$(TARGET).imp
|
EXPORTS = @$(TARGET).imp
|
||||||
|
|
||||||
# Edit the var below to point to your lib architecture.
|
# Edit the var below to point to your lib architecture.
|
||||||
ifndef LIBARCH
|
ifndef LIBARCH
|
||||||
@ -52,66 +52,66 @@ endif
|
|||||||
|
|
||||||
# must be equal to DEBUG or NDEBUG
|
# must be equal to DEBUG or NDEBUG
|
||||||
ifndef DB
|
ifndef DB
|
||||||
DB = NDEBUG
|
DB = NDEBUG
|
||||||
# DB = DEBUG
|
# DB = DEBUG
|
||||||
endif
|
endif
|
||||||
# Optimization: -O<n> or debugging: -g
|
# Optimization: -O<n> or debugging: -g
|
||||||
ifeq ($(DB),NDEBUG)
|
ifeq ($(DB),NDEBUG)
|
||||||
OPT = -O2
|
OPT = -O2
|
||||||
OBJDIR = release
|
OBJDIR = release
|
||||||
else
|
else
|
||||||
OPT = -g
|
OPT = -g
|
||||||
OPT += -DLIBSSH2DEBUG
|
OPT += -DLIBSSH2DEBUG
|
||||||
OBJDIR = debug
|
OBJDIR = debug
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The following lines defines your compiler.
|
# The following lines defines your compiler.
|
||||||
ifdef CWFolder
|
ifdef CWFolder
|
||||||
METROWERKS = $(CWFolder)
|
METROWERKS = $(CWFolder)
|
||||||
endif
|
endif
|
||||||
ifdef METROWERKS
|
ifdef METROWERKS
|
||||||
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
|
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
|
||||||
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
|
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
|
||||||
CC = mwccnlm
|
CC = mwccnlm
|
||||||
else
|
else
|
||||||
CC = $(CROSSPREFIX)gcc
|
CC = $(CROSSPREFIX)gcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Here you can find a native Win32 binary of the original awk:
|
# Here you can find a native Win32 binary of the original awk:
|
||||||
# http://www.gknw.net/development/prgtools/awk-20100523.zip
|
# http://www.gknw.net/development/prgtools/awk-20100523.zip
|
||||||
AWK = awk
|
AWK = awk
|
||||||
# If you want to mark the target as MTSAFE you will need a tool for
|
# If you want to mark the target as MTSAFE you will need a tool for
|
||||||
# generating the xdc data for the linker; here's a minimal tool:
|
# generating the xdc data for the linker; here's a minimal tool:
|
||||||
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
||||||
MPKXDC = mkxdc
|
MPKXDC = mkxdc
|
||||||
ZIP = zip -qzr9
|
ZIP = zip -qzr9
|
||||||
|
|
||||||
# Platform-dependent helper tool macros
|
# Platform-dependent helper tool macros
|
||||||
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
||||||
DEL = rm -f $1
|
DEL = rm -f $1
|
||||||
RMDIR = rm -fr $1
|
RMDIR = rm -fr $1
|
||||||
MKDIR = mkdir -p $1
|
MKDIR = mkdir -p $1
|
||||||
COPY = -cp -afv $1 $2
|
COPY = -cp -afv $1 $2
|
||||||
#COPYR = -cp -afr $1/* $2
|
#COPYR = -cp -afr $1/* $2
|
||||||
COPYR = -rsync -aC $1/* $2
|
COPYR = -rsync -aC $1/* $2
|
||||||
TOUCH = touch $1
|
TOUCH = touch $1
|
||||||
CAT = cat
|
CAT = cat
|
||||||
ECHONL = echo ""
|
ECHONL = echo ""
|
||||||
DL = '
|
DL = '
|
||||||
else
|
else
|
||||||
ifeq "$(OS)" "Windows_NT"
|
ifeq "$(OS)" "Windows_NT"
|
||||||
DEL = -del 2>NUL /q /f $(subst /,\,$1)
|
DEL = -del 2>NUL /q /f $(subst /,\,$1)
|
||||||
RMDIR = -rd 2>NUL /q /s $(subst /,\,$1)
|
RMDIR = -rd 2>NUL /q /s $(subst /,\,$1)
|
||||||
else
|
else
|
||||||
DEL = -del 2>NUL $(subst /,\,$1)
|
DEL = -del 2>NUL $(subst /,\,$1)
|
||||||
RMDIR = -deltree 2>NUL /y $(subst /,\,$1)
|
RMDIR = -deltree 2>NUL /y $(subst /,\,$1)
|
||||||
endif
|
endif
|
||||||
MKDIR = -md 2>NUL $(subst /,\,$1)
|
MKDIR = -md 2>NUL $(subst /,\,$1)
|
||||||
COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2)
|
COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2)
|
||||||
COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2)
|
COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2)
|
||||||
TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,,
|
TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,,
|
||||||
CAT = type
|
CAT = type
|
||||||
ECHONL = $(ComSpec) /c echo.
|
ECHONL = $(ComSpec) /c echo.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH))
|
# LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH))
|
||||||
@ -121,52 +121,52 @@ LIBARCH_L = $(shell $(AWK) 'BEGIN {print tolower(ARGV[1])}' $(LIBARCH))
|
|||||||
-include $(OBJDIR)/version.inc
|
-include $(OBJDIR)/version.inc
|
||||||
|
|
||||||
# Global flags for all compilers
|
# Global flags for all compilers
|
||||||
CFLAGS += $(OPT) -D$(DB) -DNETWARE -nostdinc
|
CFLAGS += $(OPT) -D$(DB) -DNETWARE -nostdinc
|
||||||
#CFLAGS += -DHAVE_CONFIG_H
|
#CFLAGS += -DHAVE_CONFIG_H
|
||||||
|
|
||||||
ifeq ($(CC),mwccnlm)
|
ifeq ($(CC),mwccnlm)
|
||||||
LD = mwldnlm
|
LD = mwldnlm
|
||||||
LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $@ -commandfile
|
LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $@ -commandfile
|
||||||
AR = mwldnlm
|
AR = mwldnlm
|
||||||
ARFLAGS = -nostdlib -type library -o
|
ARFLAGS = -nostdlib -type library -o
|
||||||
LIBEXT = lib
|
LIBEXT = lib
|
||||||
CFLAGS += -msgstyle gcc -gccinc -inline on -opt nointrinsics -proc 586
|
CFLAGS += -msgstyle gcc -gccinc -inline on -opt nointrinsics -proc 586
|
||||||
CFLAGS += -relax_pointers
|
CFLAGS += -relax_pointers
|
||||||
#CFLAGS += -w on
|
#CFLAGS += -w on
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
|
||||||
CFLAGS += -align 4
|
CFLAGS += -align 4
|
||||||
else
|
else
|
||||||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
|
||||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||||
CFLAGS += -align 1
|
CFLAGS += -align 1
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
LD = $(CROSSPREFIX)nlmconv
|
LD = $(CROSSPREFIX)nlmconv
|
||||||
LDFLAGS = -UT
|
LDFLAGS = -UT
|
||||||
AR = $(CROSSPREFIX)ar
|
AR = $(CROSSPREFIX)ar
|
||||||
ARFLAGS = -cq
|
ARFLAGS = -cq
|
||||||
LIBEXT = a
|
LIBEXT = a
|
||||||
RANLIB = $(CROSSPREFIX)ranlib
|
RANLIB = $(CROSSPREFIX)ranlib
|
||||||
CFLAGS += -m32
|
CFLAGS += -m32
|
||||||
CFLAGS += -fno-builtin -fpcc-struct-return
|
CFLAGS += -fno-builtin -fpcc-struct-return
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CFLAGS += -Wall # -pedantic
|
CFLAGS += -Wall # -pedantic
|
||||||
#CFLAGS += -Wno-pointer-sign
|
#CFLAGS += -Wno-pointer-sign
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
|
||||||
else
|
else
|
||||||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
|
||||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||||
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS =
|
LDLIBS =
|
||||||
|
|
||||||
NDK_ROOT = $(NDKBASE)/ndk
|
NDK_ROOT = $(NDKBASE)/ndk
|
||||||
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
SDK_CLIB = $(NDK_ROOT)/nwsdk
|
||||||
@ -176,12 +176,12 @@ SNPRINTF = $(NDKBASE)/snprintf
|
|||||||
INCLUDES = -I. -I../include
|
INCLUDES = -I. -I../include
|
||||||
|
|
||||||
ifdef WITH_ZLIB
|
ifdef WITH_ZLIB
|
||||||
INCLUDES += -I$(ZLIB_PATH)
|
INCLUDES += -I$(ZLIB_PATH)
|
||||||
ifdef LINK_STATIC
|
ifdef LINK_STATIC
|
||||||
LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT)
|
LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT)
|
||||||
else
|
else
|
||||||
MODULES += libz.nlm
|
MODULES += libz.nlm
|
||||||
IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
|
IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
|
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
|
||||||
@ -190,25 +190,25 @@ LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
|||||||
IMPORTS += GetProcessSwitchCount RunningProcess
|
IMPORTS += GetProcessSwitchCount RunningProcess
|
||||||
|
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
INCLUDES += -I$(SDK_LIBC)/include
|
INCLUDES += -I$(SDK_LIBC)/include
|
||||||
# INCLUDES += -I$(SDK_LIBC)/include/nks
|
# INCLUDES += -I$(SDK_LIBC)/include/nks
|
||||||
# INCLUDES += -I$(SDK_LIBC)/include/winsock
|
# INCLUDES += -I$(SDK_LIBC)/include/winsock
|
||||||
CFLAGS += -D_POSIX_SOURCE
|
CFLAGS += -D_POSIX_SOURCE
|
||||||
else
|
else
|
||||||
INCLUDES += -I$(SDK_CLIB)/include/nlm
|
INCLUDES += -I$(SDK_CLIB)/include/nlm
|
||||||
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
|
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
|
||||||
# INCLUDES += -I$(SDK_CLIB)/include
|
# INCLUDES += -I$(SDK_CLIB)/include
|
||||||
endif
|
endif
|
||||||
CFLAGS += $(INCLUDES)
|
CFLAGS += $(INCLUDES)
|
||||||
|
|
||||||
ifeq ($(MTSAFE),YES)
|
ifeq ($(MTSAFE),YES)
|
||||||
XDCOPT = -n
|
XDCOPT = -n
|
||||||
endif
|
endif
|
||||||
ifeq ($(MTSAFE),NO)
|
ifeq ($(MTSAFE),NO)
|
||||||
XDCOPT = -u
|
XDCOPT = -u
|
||||||
endif
|
endif
|
||||||
ifdef XDCOPT
|
ifdef XDCOPT
|
||||||
XDCDATA = $(OBJDIR)/$(TARGET).xdc
|
XDCDATA = $(OBJDIR)/$(TARGET).xdc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
vpath %.c . ../src
|
vpath %.c . ../src
|
||||||
@ -228,8 +228,8 @@ OBJECTS += snprintf.o
|
|||||||
vpath %.c $(SNPRINTF)
|
vpath %.c $(SNPRINTF)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS := $(addprefix $(OBJDIR)/,$(OBJECTS))
|
OBJS := $(addprefix $(OBJDIR)/,$(OBJECTS))
|
||||||
OBJL = $(OBJS) $(OBJDIR)/nwlib.o $(LDLIBS)
|
OBJL = $(OBJS) $(OBJDIR)/nwlib.o $(LDLIBS)
|
||||||
|
|
||||||
all: lib nlm
|
all: lib nlm
|
||||||
|
|
||||||
|
@ -21,5 +21,3 @@ void _NonAppStop()
|
|||||||
printf("<Press any key to close screen> ");
|
printf("<Press any key to close screen> ");
|
||||||
getcharacter();
|
getcharacter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -300,5 +300,3 @@ int main ( void )
|
|||||||
#endif /* __NOVELL_LIBC__ */
|
#endif /* __NOVELL_LIBC__ */
|
||||||
|
|
||||||
#endif /* NETWARE */
|
#endif /* NETWARE */
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# Edit the path below to point to the base of your Novell NDK.
|
# Edit the path below to point to the base of your Novell NDK.
|
||||||
ifndef NDKBASE
|
ifndef NDKBASE
|
||||||
NDKBASE = c:/novell
|
NDKBASE = c:/novell
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Edit the path below to point to the base of your Zlib sources.
|
# Edit the path below to point to the base of your Zlib sources.
|
||||||
@ -25,18 +25,18 @@ endif
|
|||||||
LINK_STATIC = 1
|
LINK_STATIC = 1
|
||||||
|
|
||||||
# Edit the vars below to change NLM target settings.
|
# Edit the vars below to change NLM target settings.
|
||||||
SAMPLES = ../../example
|
SAMPLES = ../../example
|
||||||
TARGETS := $(filter-out x11.nlm,$(patsubst $(SAMPLES)/%.c,%.nlm,$(strip $(wildcard $(SAMPLES)/*.c))))
|
TARGETS := $(filter-out x11.nlm,$(patsubst $(SAMPLES)/%.c,%.nlm,$(strip $(wildcard $(SAMPLES)/*.c))))
|
||||||
VERSION = $(LIBSSH2_VERSION)
|
VERSION = $(LIBSSH2_VERSION)
|
||||||
COPYR = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
|
COPYR = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
|
||||||
WWWURL = http://www.libssh2.org/
|
WWWURL = http://www.libssh2.org/
|
||||||
DESCR = libssh2 $(notdir $(@:.def=)) $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
DESCR = libssh2 $(notdir $(@:.def=)) $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
||||||
MTSAFE = YES
|
MTSAFE = YES
|
||||||
STACK = 64000
|
STACK = 64000
|
||||||
SCREEN = NONE
|
SCREEN = NONE
|
||||||
#SCREEN = libssh2 $(notdir $(@:.def=))
|
#SCREEN = libssh2 $(notdir $(@:.def=))
|
||||||
# Comment the line below if you dont want to load protected automatically.
|
# Comment the line below if you dont want to load protected automatically.
|
||||||
#LDRING = 3
|
#LDRING = 3
|
||||||
|
|
||||||
# Edit the var below to point to your lib architecture.
|
# Edit the var below to point to your lib architecture.
|
||||||
ifndef LIBARCH
|
ifndef LIBARCH
|
||||||
@ -45,65 +45,65 @@ endif
|
|||||||
|
|
||||||
# must be equal to DEBUG or NDEBUG
|
# must be equal to DEBUG or NDEBUG
|
||||||
ifndef DB
|
ifndef DB
|
||||||
DB = NDEBUG
|
DB = NDEBUG
|
||||||
# DB = DEBUG
|
# DB = DEBUG
|
||||||
endif
|
endif
|
||||||
# Optimization: -O<n> or debugging: -g
|
# Optimization: -O<n> or debugging: -g
|
||||||
ifeq ($(DB),NDEBUG)
|
ifeq ($(DB),NDEBUG)
|
||||||
OPT = -O2
|
OPT = -O2
|
||||||
OBJDIR = release
|
OBJDIR = release
|
||||||
else
|
else
|
||||||
OPT = -g
|
OPT = -g
|
||||||
OPT += -DLIBSSH2DEBUG
|
OPT += -DLIBSSH2DEBUG
|
||||||
OBJDIR = debug
|
OBJDIR = debug
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The following lines defines your compiler.
|
# The following lines defines your compiler.
|
||||||
ifdef CWFolder
|
ifdef CWFolder
|
||||||
METROWERKS = $(CWFolder)
|
METROWERKS = $(CWFolder)
|
||||||
endif
|
endif
|
||||||
ifdef METROWERKS
|
ifdef METROWERKS
|
||||||
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
|
# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
|
||||||
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
|
MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
|
||||||
CC = mwccnlm
|
CC = mwccnlm
|
||||||
else
|
else
|
||||||
CC = $(CROSSPREFIX)gcc
|
CC = $(CROSSPREFIX)gcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Here you can find a native Win32 binary of the original awk:
|
# Here you can find a native Win32 binary of the original awk:
|
||||||
# http://www.gknw.net/development/prgtools/awk-20100523.zip
|
# http://www.gknw.net/development/prgtools/awk-20100523.zip
|
||||||
AWK = awk
|
AWK = awk
|
||||||
# If you want to mark the target as MTSAFE you will need a tool for
|
# If you want to mark the target as MTSAFE you will need a tool for
|
||||||
# generating the xdc data for the linker; here's a minimal tool:
|
# generating the xdc data for the linker; here's a minimal tool:
|
||||||
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
# http://www.gknw.net/development/prgtools/mkxdc.zip
|
||||||
MPKXDC = mkxdc
|
MPKXDC = mkxdc
|
||||||
|
|
||||||
# Platform-dependent helper tool macros
|
# Platform-dependent helper tool macros
|
||||||
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
||||||
DEL = rm -f $1
|
DEL = rm -f $1
|
||||||
RMDIR = rm -fr $1
|
RMDIR = rm -fr $1
|
||||||
MKDIR = mkdir -p $1
|
MKDIR = mkdir -p $1
|
||||||
COPY = -cp -afv $1 $2
|
COPY = -cp -afv $1 $2
|
||||||
#COPYR = -cp -afr $1/* $2
|
#COPYR = -cp -afr $1/* $2
|
||||||
COPYR = -rsync -aC $1/* $2
|
COPYR = -rsync -aC $1/* $2
|
||||||
TOUCH = touch $1
|
TOUCH = touch $1
|
||||||
CAT = cat
|
CAT = cat
|
||||||
ECHONL = echo ""
|
ECHONL = echo ""
|
||||||
DL = '
|
DL = '
|
||||||
else
|
else
|
||||||
ifeq "$(OS)" "Windows_NT"
|
ifeq "$(OS)" "Windows_NT"
|
||||||
DEL = -del 2>NUL /q /f $(subst /,\,$1)
|
DEL = -del 2>NUL /q /f $(subst /,\,$1)
|
||||||
RMDIR = -rd 2>NUL /q /s $(subst /,\,$1)
|
RMDIR = -rd 2>NUL /q /s $(subst /,\,$1)
|
||||||
else
|
else
|
||||||
DEL = -del 2>NUL $(subst /,\,$1)
|
DEL = -del 2>NUL $(subst /,\,$1)
|
||||||
RMDIR = -deltree 2>NUL /y $(subst /,\,$1)
|
RMDIR = -deltree 2>NUL /y $(subst /,\,$1)
|
||||||
endif
|
endif
|
||||||
MKDIR = -md 2>NUL $(subst /,\,$1)
|
MKDIR = -md 2>NUL $(subst /,\,$1)
|
||||||
COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2)
|
COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2)
|
||||||
COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2)
|
COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2)
|
||||||
TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,,
|
TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,,
|
||||||
CAT = type
|
CAT = type
|
||||||
ECHONL = $(ComSpec) /c echo.
|
ECHONL = $(ComSpec) /c echo.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH))
|
# LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH))
|
||||||
@ -113,45 +113,45 @@ LIBARCH_L = $(shell $(AWK) 'BEGIN {print tolower(ARGV[1])}' $(LIBARCH))
|
|||||||
-include $(OBJDIR)/version.inc
|
-include $(OBJDIR)/version.inc
|
||||||
|
|
||||||
# Global flags for all compilers
|
# Global flags for all compilers
|
||||||
CFLAGS += $(OPT) -D$(DB) -DNETWARE -nostdinc
|
CFLAGS += $(OPT) -D$(DB) -DNETWARE -nostdinc
|
||||||
|
|
||||||
ifeq ($(CC),mwccnlm)
|
ifeq ($(CC),mwccnlm)
|
||||||
LD = mwldnlm
|
LD = mwldnlm
|
||||||
LDFLAGS = -nostdlib $(<:.def=.o) $(PRELUDE) $(LDLIBS) -o $@ -commandfile
|
LDFLAGS = -nostdlib $(<:.def=.o) $(PRELUDE) $(LDLIBS) -o $@ -commandfile
|
||||||
AR = mwldnlm
|
AR = mwldnlm
|
||||||
ARFLAGS = -type library -w nocmdline $(OBJS) -o
|
ARFLAGS = -type library -w nocmdline $(OBJS) -o
|
||||||
LIBEXT = lib
|
LIBEXT = lib
|
||||||
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
|
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
|
||||||
CFLAGS += -relax_pointers
|
CFLAGS += -relax_pointers
|
||||||
#CFLAGS += -w on
|
#CFLAGS += -w on
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.o
|
||||||
CFLAGS += -align 4
|
CFLAGS += -align 4
|
||||||
else
|
else
|
||||||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
|
||||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||||
CFLAGS += -align 1
|
CFLAGS += -align 1
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
LD = nlmconv
|
LD = nlmconv
|
||||||
LDFLAGS = -UT
|
LDFLAGS = -UT
|
||||||
AR = ar
|
AR = ar
|
||||||
ARFLAGS = -cq
|
ARFLAGS = -cq
|
||||||
LIBEXT = a
|
LIBEXT = a
|
||||||
CFLAGS += -m32
|
CFLAGS += -m32
|
||||||
CFLAGS += -fno-builtin -fpcc-struct-return
|
CFLAGS += -fno-builtin -fpcc-struct-return
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
CFLAGS += -Wall # -pedantic
|
CFLAGS += -Wall # -pedantic
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
|
PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
|
||||||
else
|
else
|
||||||
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
|
# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
|
||||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||||
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -165,10 +165,10 @@ INCLUDES = -I.. -I../../include
|
|||||||
LDLIBS =
|
LDLIBS =
|
||||||
|
|
||||||
ifdef LINK_STATIC
|
ifdef LINK_STATIC
|
||||||
LDLIBS += ../libssh2.$(LIBEXT)
|
LDLIBS += ../libssh2.$(LIBEXT)
|
||||||
else
|
else
|
||||||
IMPORTS += @../libssh2.imp
|
IMPORTS += @../libssh2.imp
|
||||||
MODULES += libssh2.nlm
|
MODULES += libssh2.nlm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
|
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
|
||||||
@ -177,33 +177,33 @@ LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
|
|||||||
IMPORTS += GetProcessSwitchCount RunningProcess
|
IMPORTS += GetProcessSwitchCount RunningProcess
|
||||||
|
|
||||||
ifdef WITH_ZLIB
|
ifdef WITH_ZLIB
|
||||||
INCLUDES += -I$(ZLIB_PATH)
|
INCLUDES += -I$(ZLIB_PATH)
|
||||||
ifdef LINK_STATIC
|
ifdef LINK_STATIC
|
||||||
LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT)
|
LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT)
|
||||||
else
|
else
|
||||||
MODULES += libz.nlm
|
MODULES += libz.nlm
|
||||||
IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
|
IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LIBARCH),LIBC)
|
ifeq ($(LIBARCH),LIBC)
|
||||||
INCLUDES += -I$(SDK_LIBC)/include
|
INCLUDES += -I$(SDK_LIBC)/include
|
||||||
# INCLUDES += -I$(SDK_LIBC)/include/nks
|
# INCLUDES += -I$(SDK_LIBC)/include/nks
|
||||||
# INCLUDES += -I$(SDK_LIBC)/include/winsock
|
# INCLUDES += -I$(SDK_LIBC)/include/winsock
|
||||||
CFLAGS += -D_POSIX_SOURCE
|
CFLAGS += -D_POSIX_SOURCE
|
||||||
else
|
else
|
||||||
INCLUDES += -I$(SDK_CLIB)/include/nlm
|
INCLUDES += -I$(SDK_CLIB)/include/nlm
|
||||||
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
|
# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
|
||||||
# INCLUDES += -I$(SDK_CLIB)/include
|
# INCLUDES += -I$(SDK_CLIB)/include
|
||||||
# CFLAGS += -DNETDB_USE_INTERNET
|
# CFLAGS += -DNETDB_USE_INTERNET
|
||||||
endif
|
endif
|
||||||
CFLAGS += $(INCLUDES)
|
CFLAGS += $(INCLUDES)
|
||||||
|
|
||||||
ifeq ($(MTSAFE),YES)
|
ifeq ($(MTSAFE),YES)
|
||||||
XDCOPT = -n
|
XDCOPT = -n
|
||||||
endif
|
endif
|
||||||
ifeq ($(MTSAFE),NO)
|
ifeq ($(MTSAFE),NO)
|
||||||
XDCOPT = -u
|
XDCOPT = -u
|
||||||
endif
|
endif
|
||||||
|
|
||||||
vpath %.c $(SAMPLES)
|
vpath %.c $(SAMPLES)
|
||||||
|
@ -193,9 +193,9 @@
|
|||||||
/* If using the C implementation of alloca, define if you know the
|
/* If using the C implementation of alloca, define if you know the
|
||||||
direction of stack growth for your system; otherwise it will be
|
direction of stack growth for your system; otherwise it will be
|
||||||
automatically deduced at runtime.
|
automatically deduced at runtime.
|
||||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||||
#undef STACK_DIRECTION
|
#undef STACK_DIRECTION
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
@ -116,9 +116,9 @@ libssh2_scp_send(LIBSSH2_SESSION *session,
|
|||||||
|
|
||||||
LIBSSH2_API int
|
LIBSSH2_API int
|
||||||
libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey, const unsigned char *name,
|
libssh2_publickey_add(LIBSSH2_PUBLICKEY *pkey, const unsigned char *name,
|
||||||
const unsigned char *blob, unsigned long blob_len,
|
const unsigned char *blob, unsigned long blob_len,
|
||||||
char overwrite, unsigned long num_attrs,
|
char overwrite, unsigned long num_attrs,
|
||||||
const libssh2_publickey_attribute attrs[]);
|
const libssh2_publickey_attribute attrs[]);
|
||||||
LIBSSH2_API int
|
LIBSSH2_API int
|
||||||
libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey, const unsigned char *name,
|
libssh2_publickey_remove(LIBSSH2_PUBLICKEY *pkey, const unsigned char *name,
|
||||||
const unsigned char *blob, unsigned long blob_len);
|
const unsigned char *blob, unsigned long blob_len);
|
||||||
|
@ -64,5 +64,5 @@ VERSION=-version-info 1:1:0
|
|||||||
#
|
#
|
||||||
|
|
||||||
libssh2_la_LDFLAGS = $(VERSION) -no-undefined \
|
libssh2_la_LDFLAGS = $(VERSION) -no-undefined \
|
||||||
-export-symbols-regex '^libssh2_.*' \
|
-export-symbols-regex '^libssh2_.*' \
|
||||||
$(CRYPTO_LTLIBS) $(LTLIBZ)
|
$(CRYPTO_LTLIBS) $(LTLIBZ)
|
||||||
|
@ -39,9 +39,10 @@ INTEGRATION_TESTS = \
|
|||||||
# Enable this once the tests are working
|
# Enable this once the tests are working
|
||||||
#TESTS += $(INTEGRATION_TESTS)
|
#TESTS += $(INTEGRATION_TESTS)
|
||||||
check_PROGRAMS += $(INTEGRATION_TESTS)
|
check_PROGRAMS += $(INTEGRATION_TESTS)
|
||||||
librunner_la_SOURCES = runner.c runner.h \
|
librunner_la_SOURCES = \
|
||||||
session_fixture.c session_fixture.h \
|
runner.c runner.h \
|
||||||
openssh_fixture.c openssh_fixture.h
|
session_fixture.c session_fixture.h \
|
||||||
|
openssh_fixture.c openssh_fixture.h
|
||||||
LDADD = librunner.la
|
LDADD = librunner.la
|
||||||
check_LTLIBRARIES = librunner.la
|
check_LTLIBRARIES = librunner.la
|
||||||
|
|
||||||
@ -55,62 +56,62 @@ LDADD += ../src/libssh2.la
|
|||||||
TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT)
|
TESTS_ENVIRONMENT = SSHD=$(SSHD) EXEEXT=$(EXEEXT)
|
||||||
TESTS_ENVIRONMENT += srcdir=$(top_srcdir)/tests builddir=$(top_builddir)/tests
|
TESTS_ENVIRONMENT += srcdir=$(top_srcdir)/tests builddir=$(top_builddir)/tests
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
CMakeLists.txt \
|
CMakeLists.txt \
|
||||||
etc/host \
|
etc/host \
|
||||||
etc/host.pub \
|
etc/host.pub \
|
||||||
etc/sshd_config \
|
etc/sshd_config \
|
||||||
etc/user \
|
etc/user \
|
||||||
etc/user.pub \
|
etc/user.pub \
|
||||||
key_dsa \
|
key_dsa \
|
||||||
key_dsa.pub \
|
key_dsa.pub \
|
||||||
key_dsa_wrong \
|
key_dsa_wrong \
|
||||||
key_dsa_wrong.pub \
|
key_dsa_wrong.pub \
|
||||||
key_ecdsa \
|
key_ecdsa \
|
||||||
key_ecdsa.pub \
|
key_ecdsa.pub \
|
||||||
signed_key_ecdsa \
|
signed_key_ecdsa \
|
||||||
signed_key_ecdsa.pub \
|
signed_key_ecdsa.pub \
|
||||||
signed_key_ecdsa-cert.pub \
|
signed_key_ecdsa-cert.pub \
|
||||||
signed_key_rsa \
|
signed_key_rsa \
|
||||||
signed_key_rsa-cert.pub \
|
signed_key_rsa-cert.pub \
|
||||||
signed_key_rsa.pub \
|
signed_key_rsa.pub \
|
||||||
key_ed25519 \
|
key_ed25519 \
|
||||||
key_ed25519.pub \
|
key_ed25519.pub \
|
||||||
key_ed25519_encrypted \
|
key_ed25519_encrypted \
|
||||||
key_ed25519_encrypted.pub \
|
key_ed25519_encrypted.pub \
|
||||||
key_rsa \
|
key_rsa \
|
||||||
key_rsa.pub \
|
key_rsa.pub \
|
||||||
key_rsa_encrypted \
|
key_rsa_encrypted \
|
||||||
key_rsa_encrypted.pub \
|
key_rsa_encrypted.pub \
|
||||||
key_rsa_openssh \
|
key_rsa_openssh \
|
||||||
key_rsa_openssh.pub \
|
key_rsa_openssh.pub \
|
||||||
libssh2_config_cmake.h.in \
|
libssh2_config_cmake.h.in \
|
||||||
mansyntax.sh \
|
mansyntax.sh \
|
||||||
openssh_server/Dockerfile \
|
openssh_server/Dockerfile \
|
||||||
openssh_server/authorized_keys \
|
openssh_server/authorized_keys \
|
||||||
openssh_server/ca_rsa \
|
openssh_server/ca_rsa \
|
||||||
openssh_server/ca_rsa.pub \
|
openssh_server/ca_rsa.pub \
|
||||||
openssh_server/ca_ecdsa \
|
openssh_server/ca_ecdsa \
|
||||||
openssh_server/ca_ecdsa.pub \
|
openssh_server/ca_ecdsa.pub \
|
||||||
openssh_server/ssh_host_ecdsa_key \
|
openssh_server/ssh_host_ecdsa_key \
|
||||||
openssh_server/ssh_host_ed25519_key \
|
openssh_server/ssh_host_ed25519_key \
|
||||||
openssh_server/ssh_host_rsa_key \
|
openssh_server/ssh_host_rsa_key \
|
||||||
simple.c \
|
simple.c \
|
||||||
sshdwrap \
|
sshdwrap \
|
||||||
ssh2.c \
|
ssh2.c \
|
||||||
ssh2.sh \
|
ssh2.sh \
|
||||||
sshd_fixture.sh.in \
|
sshd_fixture.sh.in \
|
||||||
test_read_3des-cbc \
|
test_read_3des-cbc \
|
||||||
test_read_aes128-cbc \
|
test_read_aes128-cbc \
|
||||||
test_read_aes128-ctr \
|
test_read_aes128-ctr \
|
||||||
test_read_aes192-cbc \
|
test_read_aes192-cbc \
|
||||||
test_read_aes192-ctr \
|
test_read_aes192-ctr \
|
||||||
test_read_aes256-cbc \
|
test_read_aes256-cbc \
|
||||||
test_read_aes256-ctr \
|
test_read_aes256-ctr \
|
||||||
test_read_hmac-md5 \
|
test_read_hmac-md5 \
|
||||||
test_read_hmac-md5-96 \
|
test_read_hmac-md5-96 \
|
||||||
test_read_hmac-sha1 \
|
test_read_hmac-sha1 \
|
||||||
test_read_hmac-sha1-96 \
|
test_read_hmac-sha1-96 \
|
||||||
test_read_hmac-sha2-256 \
|
test_read_hmac-sha2-256 \
|
||||||
test_read_hmac-sha2-512 \
|
test_read_hmac-sha2-512 \
|
||||||
test_read_rijndael-cbc
|
test_read_rijndael-cbc
|
||||||
|
@ -18,10 +18,10 @@ noinst_LIBRARIES =
|
|||||||
|
|
||||||
if USE_OSSFUZZERS
|
if USE_OSSFUZZERS
|
||||||
noinst_PROGRAMS += \
|
noinst_PROGRAMS += \
|
||||||
ssh2_client_fuzzer
|
ssh2_client_fuzzer
|
||||||
|
|
||||||
noinst_LIBRARIES += \
|
noinst_LIBRARIES += \
|
||||||
libstandaloneengine.a
|
libstandaloneengine.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ssh2_client_fuzzer_SOURCES = ssh2_client_fuzzer.cc testinput.h
|
ssh2_client_fuzzer_SOURCES = ssh2_client_fuzzer.cc testinput.h
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#define ssize_t SSIZE_T
|
#define ssize_t SSIZE_T
|
||||||
|
|
||||||
typedef unsigned int uint32_t ;
|
typedef unsigned int uint32_t;
|
||||||
typedef unsigned int socklen_t; /* missing in headers on VMS */
|
typedef unsigned int socklen_t; /* missing in headers on VMS */
|
||||||
|
|
||||||
/* Have's */
|
/* Have's */
|
||||||
|
@ -8,9 +8,9 @@ $ if .not. init_status then goto YExit
|
|||||||
$!
|
$!
|
||||||
$ if what .eqs. "ALL"
|
$ if what .eqs. "ALL"
|
||||||
$ then
|
$ then
|
||||||
$ call MakeAll
|
$ call MakeAll
|
||||||
$ else
|
$ else
|
||||||
$ call Make
|
$ call Make
|
||||||
$endif
|
$endif
|
||||||
$!
|
$!
|
||||||
$YExit:
|
$YExit:
|
||||||
@ -47,12 +47,12 @@ $ cc 'cc_include' 'cc_flags'/object=objdir:'what' exadir:'what'
|
|||||||
$ sev = $severity
|
$ sev = $severity
|
||||||
$ if sev .and. 2
|
$ if sev .and. 2
|
||||||
$ then
|
$ then
|
||||||
$ say "Error compiling ''what', not linked."
|
$ say "Error compiling ''what', not linked."
|
||||||
$ else
|
$ else
|
||||||
$ if .not. (sev .and. 1)
|
$ if .not. (sev .and. 1)
|
||||||
$ then
|
$ then
|
||||||
$ say "Compile warnings in ''what'"
|
$ say "Compile warnings in ''what'"
|
||||||
$ endif
|
$ endif
|
||||||
$ link/exe='what'.exe objdir:'what'.obj, 'link_opts'/opt
|
$ link/exe='what'.exe objdir:'what'.obj, 'link_opts'/opt
|
||||||
$ endif
|
$ endif
|
||||||
$!
|
$!
|
||||||
@ -78,7 +78,7 @@ $!
|
|||||||
$ objdirfile = objdir - "[." - "]" + ".dir"
|
$ objdirfile = objdir - "[." - "]" + ".dir"
|
||||||
$ if f$search( objdirfile ) .eqs. ""
|
$ if f$search( objdirfile ) .eqs. ""
|
||||||
$ then
|
$ then
|
||||||
$ create/directory 'objdir'
|
$ create/directory 'objdir'
|
||||||
$ endif
|
$ endif
|
||||||
$!
|
$!
|
||||||
$ define objdir 'objdir'
|
$ define objdir 'objdir'
|
||||||
@ -92,14 +92,14 @@ $!
|
|||||||
$ what = "''p1'"
|
$ what = "''p1'"
|
||||||
$ if what .eqs. "" .or. f$edit(p1,"trim,collapse,upcase") .eqs. "ALL"
|
$ if what .eqs. "" .or. f$edit(p1,"trim,collapse,upcase") .eqs. "ALL"
|
||||||
$ then
|
$ then
|
||||||
$ what = "ALL"
|
$ what = "ALL"
|
||||||
$ else
|
$ else
|
||||||
$ what = f$parse(what,,,"name")
|
$ what = f$parse(what,,,"name")
|
||||||
$ if f$search("exadir:''what'.c") .eqs. ""
|
$ if f$search("exadir:''what'.c") .eqs. ""
|
||||||
$ then
|
$ then
|
||||||
$ write sys$output "Can't make ''what'"
|
$ write sys$output "Can't make ''what'"
|
||||||
$ init_status = 0
|
$ init_status = 0
|
||||||
$ endif
|
$ endif
|
||||||
$ endif
|
$ endif
|
||||||
$!
|
$!
|
||||||
$ currentlib = f$search("libssh2*.exe")
|
$ currentlib = f$search("libssh2*.exe")
|
||||||
@ -109,17 +109,17 @@ $!
|
|||||||
$ how = "''p2'"
|
$ how = "''p2'"
|
||||||
$ if how .eqs. "" .or. f$edit(p2,"trim,collapse,upcase") .eqs. "STATIC"
|
$ if how .eqs. "" .or. f$edit(p2,"trim,collapse,upcase") .eqs. "STATIC"
|
||||||
$ then
|
$ then
|
||||||
$ open/write lout 'link_opts'
|
$ open/write lout 'link_opts'
|
||||||
$ write lout "libssh2.olb/lib"
|
$ write lout "libssh2.olb/lib"
|
||||||
$ write lout "sys$share:ssl$libcrypto_shr32.exe/share"
|
$ write lout "sys$share:ssl$libcrypto_shr32.exe/share"
|
||||||
$ write lout "sys$share:ssl$libssl_shr32.exe/share"
|
$ write lout "sys$share:ssl$libssl_shr32.exe/share"
|
||||||
$ write lout "gnv$libzshr/share"
|
$ write lout "gnv$libzshr/share"
|
||||||
$ close lout
|
$ close lout
|
||||||
$ else
|
$ else
|
||||||
$ how = "SHARED"
|
$ how = "SHARED"
|
||||||
$ open/write lout 'link_opts'
|
$ open/write lout 'link_opts'
|
||||||
$ write lout "libssh2/share"
|
$ write lout "libssh2/share"
|
||||||
$ close lout
|
$ close lout
|
||||||
$ endif
|
$ endif
|
||||||
$!
|
$!
|
||||||
$return
|
$return
|
||||||
|
@ -219,4 +219,3 @@ $ write pt "[gnv.common_src]libssh2_''versionname'''datename'_src.bck"
|
|||||||
$close pt
|
$close pt
|
||||||
$exit
|
$exit
|
||||||
$ endsubroutine
|
$ endsubroutine
|
||||||
|
|
||||||
|
@ -341,10 +341,10 @@ for ( mode = 0, bol = 1 ; *m; ++m ){
|
|||||||
for ( m = m + 3; *m != ' ' && *m ; ++m, ++h ){
|
for ( m = m + 3; *m != ' ' && *m ; ++m, ++h ){
|
||||||
*h = *m;
|
*h = *m;
|
||||||
}
|
}
|
||||||
if ( add_parentheses ){
|
if ( add_parentheses ){
|
||||||
*h = '(';++h;
|
*h = '(';++h;
|
||||||
*h = ')';++h;
|
*h = ')';++h;
|
||||||
}
|
}
|
||||||
while( *m != '\n' && *m != '\r' && *m )++m;
|
while( *m != '\n' && *m != '\r' && *m )++m;
|
||||||
mode = 0;
|
mode = 0;
|
||||||
}
|
}
|
||||||
@ -512,5 +512,3 @@ free( helpfile );
|
|||||||
|
|
||||||
return( status );
|
return( status );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -312,8 +312,3 @@ When you have built the shared library and the help library,
|
|||||||
you can build a PCSI kit by issueing this command:
|
you can build a PCSI kit by issueing this command:
|
||||||
|
|
||||||
@libssh2_make_kit.dcl
|
@libssh2_make_kit.dcl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user