Jakub Jelen
aac975b7b2
Unbreak build on freebsd
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2021-06-07 11:28:29 +02:00
Andrew Wiley
6aa88e22d6
build samplesshd-cb example on Windows too
...
Signed-off-by: Andrew Wiley <wiley@outlook.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2021-06-04 22:27:51 -07:00
Xiang Xiao
a8a74a70fa
examples/ssh_server_fork: Support the multi-client through pthread
...
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
2021-05-31 12:21:42 +02:00
Heiko Thiery
bee8ed82ab
cmake: Add autogenerated libssh_version.h
...
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>
2020-05-06 13:02:32 +02:00
Andreas Schneider
4ab0fb2b48
cmake: Do not use cached LIBSSH_PUBLIC_INCLUDE_DIRS
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2019-11-07 14:01:01 +01:00
Andreas Schneider
82c57c1f36
cmake: Create ssh library directly as libssh
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2019-11-07 14:01:00 +01:00
Anderson Toshiyuki Sasaki
29d360dc70
examples: Build keygen2 only if argp is available
...
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-11-07 14:00:15 +01:00
Anderson Toshiyuki Sasaki
b30875c6c7
examples: Added keygen2 example
...
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-11-07 10:53:49 +01:00
Till Wimmer
881e1b4785
examples: Add direct-tcpip server sample
...
Signed-off-by: Till Wimmer <g4-lisz@tonarchiv.ch>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-02-20 16:39:31 +01:00
Jakub Jelen
5700477f3e
examples: Add simple way to generate key files from libssh
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-02-07 10:30:05 +01:00
Andreas Schneider
a9a99fb31f
cmake: Improve compiler flag detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20 18:42:03 +02:00
Andreas Schneider
01994ea302
examples: Build server examples on Linux too
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-11-08 16:28:35 +01:00
Andreas Schneider
2ec633f33d
examples: Rename samplessh to ssh-client
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-11-07 15:28:52 +01:00
Andreas Schneider
d5068ed07d
examples: Fix endif()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-04 14:25:46 +02:00
Andreas Schneider
d4e3401c23
examples: Fix building on FreeBSD
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-05-03 12:12:23 +02:00
Andreas Schneider
2384236849
cmake: Try to fix FindArgp module
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-17 10:42:52 +01:00
Aris Adamantiadis
5027627344
cmake: detect argp.h on osx
2016-03-14 22:27:06 +01:00
Andreas Schneider
7021a46617
cmake: Merge server examples.
2014-02-16 17:59:46 +01:00
Andreas Schneider
c7cb2d0657
examples: Remove old samplesshd-tty.
2014-02-16 17:58:55 +01:00
Andreas Schneider
fd50a4dd9f
examples: Remove old samplesshd.
2014-02-16 17:57:09 +01:00
Audrius Butkevicius
afe97d6cab
examples: Add ssh_server_fork example
...
Signed-off-by: Audrius Butkevicius <audrius.butkevicius@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2014-02-16 17:52:50 +01:00
Aris Adamantiadis
4f3ee2fc7e
Fix examples compilation on OSX (libargp)
2013-11-03 13:49:27 +01:00
Andreas Schneider
5ba88f01e8
cmake: Rewrote FindGSSAPI.cmake.
2013-07-24 20:48:14 +02:00
Andreas Schneider
e1576ef55a
cmake: Don't build examples on Windows but on Unix.
2013-07-23 10:44:51 +02:00
Andreas Schneider
1663917f71
cmake: Make GSSAPI optional.
2013-07-13 15:48:49 +02:00
Aris Adamantiadis
9bdb546852
Examples: Exemple of an SSH proxy
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13 14:51:00 +02:00
Aris Adamantiadis
212261bb10
examples:Compile samplessh on bsd too
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13 14:25:32 +02:00
Aris Adamantiadis
a34ad5825b
Added server example with callbacks impl
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13 14:10:03 +02:00
Aris Adamantiadis
4497cd9b43
Make examples more BSD friendly
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13 14:08:44 +02:00
Aris Adamantiadis
2b54db7603
Try to find ARGP on solaris, BSD
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-07-13 14:07:46 +02:00
milo
000d659ea2
examples: Added a event context based sshd example.
2011-02-20 14:37:43 +01:00
milo
cc76a192df
New example server for kbdint authentication.
2011-02-10 14:39:58 +01:00
Andreas Schneider
6a3cd6c20f
examples: enable exec and senddata on all plattforms.
2011-01-24 13:55:05 +01:00
Andreas Schneider
8abdaa7abf
examples: Start to build examples on more plattforms.
2011-01-23 18:57:35 +01:00
Aris Adamantiadis
1834ca3820
Added a SSH_NO_CPP_EXCEPTIONS mode to libsshpp.h
2010-08-27 11:53:38 +02:00
Aris Adamantiadis
a8efffa969
New example for port forwarding
...
Conflicts:
examples/CMakeLists.txt
2010-07-16 23:14:47 +02:00
Aris Adamantiadis
08bc076a0a
New sample that writes a lot of data on channel
2010-05-17 20:08:10 +02:00
Aris Adamantiadis
48ba9c9bc1
stub of C++ wrapper for libssh
2010-01-21 21:54:20 +01:00
Andreas Schneider
d0647afae5
Added an example for exec.
2009-12-22 18:34:23 +01:00
Aris Adamantiadis
3a95ecfe74
move authentication out of sampe.c
2009-11-07 03:45:27 +01:00
Aris Adamantiadis
14ae9a7f0c
Moved sftp parts into a new example
2009-11-06 19:21:18 +01:00
Aris Adamantiadis
43e0d73b63
sample.c compiles now
2009-10-09 22:04:56 +02:00
Aris Adamantiadis
58294442d3
Moved samples into examples directory
2009-10-09 21:44:05 +02:00
Aris Adamantiadis
480dfd9050
add scp_download.c example
2009-09-13 14:03:34 +03:00
Aris Adamantiadis
f90ae73b6d
Refactored the connect_ssh example function
...
into a new file
2009-09-13 14:03:34 +03:00
Andreas Schneider
28a7343320
Fix project name in examples.
2009-07-30 11:11:00 +02:00
Aris Adamantiadis
a935ad1857
New example directory with the begining of a scp
2009-07-25 17:03:01 +02:00