aboutsummaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
2023-06-06Unbreak the build example on alpineJakub Jelen1-1/+1
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2023-06-06examples: add sftpserver example and fix problemstatataeki1-0/+4
Signed-off-by: tatataeki <shengzeyu19_98@163.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2023-01-09cmake: Check for Argp also on Linux to fix alpine buildJakub Jelen1-10/+10
This adjusts also usage of ARGP_LIBRARY to use ARGP_LIBRARIES which is defined by the FindArgp module, unlike the former one in case it is provided by libc directly. Fixes: #167 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <npocs@redhat.com>
2022-06-08keygen2 requires also ${ARGP_LIBRARY}Carlo Bramini1-1/+1
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2022-05-02examples: Add 'ssh X11 client' sampleMarco Fortina1-0/+4
Signed-off-by: Marco Fortina <marco.fortina@atlantica.it> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2021-06-07Unbreak build on freebsdJakub Jelen1-1/+4
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2021-06-04build samplesshd-cb example on Windows tooAndrew Wiley1-4/+6
Signed-off-by: Andrew Wiley <wiley@outlook.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2021-05-31examples/ssh_server_fork: Support the multi-client through pthreadXiang Xiao1-2/+6
so the same code base demo both multi-process and multi-thread model Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Change-Id: I98554a99b7a31586be37abde7c357f81a05c3d6e
2020-05-06cmake: Add autogenerated libssh_version.hHeiko Thiery1-1/+1
Set the cmake project verision to the autogenerated file to have a single point to set the version. This will be included in the libssh.h file. Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-11-07cmake: Do not use cached LIBSSH_PUBLIC_INCLUDE_DIRSAndreas Schneider1-4/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2019-11-07cmake: Create ssh library directly as libsshAndreas Schneider1-16/+16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2019-11-07examples: Build keygen2 only if argp is availableAnderson Toshiyuki Sasaki1-4/+4
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-11-07examples: Added keygen2 exampleAnderson Toshiyuki Sasaki1-0/+4
The added example is an application which can generate keys of different types using libssh. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-02-20examples: Add direct-tcpip server sampleTill Wimmer1-0/+4
Signed-off-by: Till Wimmer <g4-lisz@tonarchiv.ch> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-02-07examples: Add simple way to generate key files from libsshJakub Jelen1-0/+4
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Improve compiler flag detectionAndreas Schneider1-0/+11
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-11-08examples: Build server examples on Linux tooAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-11-07examples: Rename samplessh to ssh-clientAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04examples: Fix endif()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03examples: Fix building on FreeBSDAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-17cmake: Try to fix FindArgp moduleAndreas Schneider1-5/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-14cmake: detect argp.h on osxAris Adamantiadis1-4/+1
2014-02-16cmake: Merge server examples.Andreas Schneider1-7/+5
2014-02-16examples: Remove old samplesshd-tty.Andreas Schneider1-3/+0
2014-02-16examples: Remove old samplesshd.Andreas Schneider1-3/+0
2014-02-16examples: Add ssh_server_fork exampleAudrius Butkevicius1-0/+3
Signed-off-by: Audrius Butkevicius <audrius.butkevicius@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-11-03Fix examples compilation on OSX (libargp)Aris Adamantiadis1-3/+3
2013-07-24cmake: Rewrote FindGSSAPI.cmake.Andreas Schneider1-2/+2
2013-07-23cmake: Don't build examples on Windows but on Unix.Andreas Schneider1-15/+14
2013-07-13cmake: Make GSSAPI optional.Andreas Schneider1-4/+6
2013-07-13Examples: Exemple of an SSH proxyAris Adamantiadis1-0/+3
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13examples:Compile samplessh on bsd tooAris Adamantiadis1-3/+3
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13Added server example with callbacks implAris Adamantiadis1-0/+2
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13Make examples more BSD friendlyAris Adamantiadis1-11/+15
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13Try to find ARGP on solaris, BSDAris Adamantiadis1-0/+4
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2011-02-20examples: Added a event context based sshd example.milo1-0/+6
2011-02-10New example server for kbdint authentication.milo1-0/+3
2011-01-24examples: enable exec and senddata on all plattforms.Andreas Schneider1-6/+6
2011-01-23examples: Start to build examples on more plattforms.Andreas Schneider1-29/+29
2010-08-27Added a SSH_NO_CPP_EXCEPTIONS mode to libsshpp.hAris Adamantiadis1-0/+2
2010-07-16New example for port forwardingAris Adamantiadis1-0/+3
Conflicts: examples/CMakeLists.txt
2010-05-17New sample that writes a lot of data on channelAris Adamantiadis1-0/+3
2010-01-21stub of C++ wrapper for libsshAris Adamantiadis1-1/+3
2009-12-22Added an example for exec.Andreas Schneider1-0/+2
2009-11-07move authentication out of sampe.cAris Adamantiadis1-1/+1
2009-11-06Moved sftp parts into a new exampleAris Adamantiadis1-2/+4
2009-10-09sample.c compiles nowAris Adamantiadis1-1/+1
2009-10-09Moved samples into examples directoryAris Adamantiadis1-0/+16
2009-09-13add scp_download.c exampleAris Adamantiadis1-2/+4
2009-09-13Refactored the connect_ssh example functionAris Adamantiadis1-0/+1
into a new file