Andreas Schneider
04d86aeeae
channels: Implement better ssh_channel_get_exit_state() variant
...
This way we will get errors as return code else we don't know if the
function failed (SSH_ERROR) or the exit_status is -1 which would
correspond to SSH_ERROR.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2024-05-13 15:41:54 +02:00
Daniel Evers
1291ceb17d
Fix #157 : Allow to set terminal modes for PTYs
...
Added the new function `ssh_channel_request_pty_size_modes` which allows
to pass additional encoded SSH terminal modes (see opcodes in RFC 4245).
Signed-off-by: Daniel Evers (daniel.evers@utimaco.com )
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2024-03-06 14:01:36 +01:00
Andreas Schneider
a889527c1b
libsshpp: Fix openForward to not set sourcehost to NULL by default
...
This parameter is required.
Fixes #25
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2022-06-15 16:19:56 +02:00
Sahana Prasad
4b3a6342db
Deprecate duplicate/ unused functions
...
and fix obvious naming mistakes, mostly in documentation
Signed-off-by: Sahana Prasad <sahana@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2022-06-09 09:08:02 +02:00
Jakub Jelen
100017982d
Avoid usage of deprecated functions and whitespace cleanup
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
2022-06-07 14:16:59 +02:00
Xiang Xiao
14276f0b51
log: add ssh_vlog to save the stack space
...
and add LOG_SIZE macro to control the buffer size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
Change-Id: I3eaeea001fc531fdb55074fc3a9d140b27847c1f
2021-06-10 14:56:29 +02:00
Andreas Schneider
480915c07d
libsshpp: Pass username and submethods to ssh_userauth_kbdint()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-10-24 09:48:35 +02:00
Andreas Schneider
91f35eca4d
libsshpp: Use ssh_session_update_known_hosts()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-10-19 17:42:02 +02:00
Andreas Schneider
ba1ff992ce
libsshpp: Initialize the string returned by getIssueBanner()
...
Fixes T13
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-09-04 20:52:31 +02:00
Andreas Schneider
49f92cf5cd
libsshpp: Match documentation with the code
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-22 09:08:39 +02:00
Andreas Schneider
dad456a1ee
include: Fix shadow variables in libsshpp
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-20 18:42:03 +02:00
Marcin Szalowicz
5ea81166bf
include: Fix segfault in getIssueBanner, add missing wrappers in libsshpp
...
Also make some private properties protected
Signed-off-by: Marcin Szalowicz <marcin.szalowicz@oracle.com >
2018-08-07 14:31:55 +02:00
Andreas Schneider
1369559385
include: Fix reference to ssh_session_update_known_hosts
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-06-27 09:45:35 +02:00
Andreas Schneider
93781f9d5a
libsshpp: Use new known hosts functions
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-06-04 11:20:28 +02:00
Petar Koretic
89e154f78c
libsshpp: include required <string> header for std::string
...
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-04-09 10:59:59 +02:00
Petar Koretic
8e2590b535
libssh: libhpp: overload read function to support timeout parameter
...
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-03-27 10:48:13 +01:00
Petar Koretic
c51f42a566
libssh: libhpp: avoid unnecessary call to ssh_channel_read
...
ssh_channel_read is a wrapper for ssh_channel_read_timeout with timeout
-1 (infinite) so we call that directly.
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-03-27 10:46:21 +01:00
Petar Koretic
00d4fbe753
libssh: libhpp: fix multiple definitions for acceptForward function
...
Defining a non inlined class function in a header will cause multiple
definitions when header is included in more that one file since for each
file function will get defined.
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2014-03-27 10:45:54 +01:00
Andreas Schneider
5229253f86
channel: Fix the name scheme of the forward functions.
2014-01-16 09:13:06 +01:00
Andreas Schneider
20312e23b7
log: Make _ssh_log() public.
2013-07-21 11:53:55 +02:00
Andreas Schneider
b2f52799c2
include: Fix the LGPL header.
...
This has been reported by rpmlint:
libssh-devel.x86_64: W: incorrect-fsf-address libssh.h
2013-01-23 00:22:46 +01:00
Andreas Schneider
98ada12f66
libsshpp: Remove type argument from doc.
2011-08-27 13:58:53 +02:00
Andreas Schneider
89253fd22a
auth: Make ssh_userauth_autopubkey legacy.
2011-08-25 10:19:09 +02:00
Andreas Schneider
4c1d3b708c
auth: Make ssh_userauth_pubkey legacy.
2011-08-23 21:54:02 +02:00
Andreas Schneider
aa018c1484
auth: Make ssh_userauth_try_publickey() legacy.
2011-08-23 21:54:02 +02:00
Andreas Schneider
5c581f8a4c
libsshpp: Removed unused variable.
2011-01-24 15:25:50 +01:00
Aris Adamantiadis
e57d5a45b9
Fix the missing returns in C++ wrapper
2011-01-05 21:14:27 +01:00
Andreas Schneider
33c41074a7
libsshpp: Fixed return of non-void function.
2010-12-23 08:54:39 +01:00
Andreas Schneider
038c764055
server: Remove channel_write_stderr.
2010-12-08 10:52:15 +01:00
Aris Adamantiadis
1fa9409554
ssh_channel_forward_* -> ssh_forward_*
...
Fixes bug #108
2010-08-28 23:31:07 +02:00
Aris Adamantiadis
adcd2e38e9
libsshpp: do not use deprecated functions
2010-08-28 22:53:18 +02:00
Aris Adamantiadis
c19fb5656b
Fixed missing libsshpp methods
2010-08-28 22:51:23 +02:00
Aris Adamantiadis
29a229724b
Fix a few documentation issues
2010-08-28 21:05:24 +02:00
Aris Adamantiadis
a9fafc32a8
Near to end of implementation of the C++ wrapper
2010-08-28 13:59:24 +02:00
Aris Adamantiadis
bcf4e56fe0
Fix C++ documentation about the exceptions
2010-08-27 12:01:42 +02:00
Aris Adamantiadis
1834ca3820
Added a SSH_NO_CPP_EXCEPTIONS mode to libsshpp.h
2010-08-27 11:53:38 +02:00
Aris Adamantiadis
8066100f53
Doxygen fixes
2010-08-23 20:48:30 +02:00
Aris Adamantiadis
f60c22628a
lot of C++ wrapper work
2010-08-23 20:34:17 +02:00
Andreas Schneider
8f0d40a1dd
cpp: Fixed return value of userauthAutopubkey.
2010-06-02 10:01:46 +02:00
Aris Adamantiadis
b23b3f1d99
Sanitize libssh namespace + legacy wrappers
2010-05-14 00:51:08 +02:00
Andreas Schneider
dab450be32
Fixed the doxygen group of the libssh c++ wrapper.
2010-04-04 17:37:05 +02:00
Aris Adamantiadis
60e5a32d27
Small doc fix
2010-02-12 23:29:24 +01:00
Aris Adamantiadis
f8d0055503
More C++ work
2010-02-12 22:17:50 +01:00
Aris Adamantiadis
92ca76721a
More C++ wrapper work.
...
Wrote stubs of functions needed in the wrapper
Created an Exception class which greatly simplifies
the use of libssh in C++
2010-02-11 23:08:07 +01:00
Aris Adamantiadis
6b703b8d6a
Update c++ prototypes
2010-02-02 18:30:26 +01:00
Aris Adamantiadis
48ba9c9bc1
stub of C++ wrapper for libssh
2010-01-21 21:54:20 +01:00