Pavol Žáčik
64680cff32
gssapi: export ssh_userauth_gssapi_keyex
...
Signed-off-by: Pavol Žáčik <pzacik@redhat.com >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
Merge-Request: <https://gitlab.com/libssh/libssh-mirror/-/merge_requests/866 >
(cherry picked from commit 6b4826c257 )
2026-07-28 13:40:56 +02:00
Navid Fayezi
8310b8cc2b
Remove redundant line and change strlen(buffer) to sizeof(buffer) in examples/authentication.c
...
Signed-off-by: Navid Fayezi <navidfayezi.98@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2025-07-01 20:47:55 +02:00
Jakub Jelen
2eb2af4426
CVE-2025-4878 Initialize pointers where possible
...
This is mostly mechanical change initializing all the pointers I was able to
find with some grep and manual review of sources and examples.
Used the following greps (which yield some false positives though):
git grep " \w* *\* *\w*;$"
git grep " ssh_session \w*;"
git grep " ssh_channel \w*;"
git grep " struct ssh_iterator \*\w*;"
git grep " ssh_bind \w*;"
git grep " ssh_key \w*;"
git grep " ssh_string \w*;"
git grep " ssh_buffer \w*;"
git grep " HMACCTX \w*;"
git grep " SHACTX \w*;"
grep -rinP '^(?!.*=)\s*(?:\w+\s+)*\w+\s*\*\s*\w+\s*;'
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2025-06-23 15:24:30 +02:00
AsadaShino
a93e84efb9
authenticate_console:Stop authentication after SSH session disconnection to avoid hanging up in poll
...
Signed-off-by: AsadaShino <1164429449@qq.com >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2025-03-20 15:29:59 +01:00
Andreas Schneider
0938d397be
examples: Use SSH_STRING_FREE_CHAR()
...
Fixes T183
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
Reviewed-by: Jakub Jelen <jjelen@redhat.com >
2019-12-09 16:08:03 +01:00
Eric Bentley
83d86ef6a5
examples: add public key auth for specific key
...
There was no example of using a specific key for authentication so I added
one.
Signed-off-by: Eric Bentley <ebentley66@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2019-01-24 17:48:08 +01:00
Andreas Schneider
4c47719d98
examples: Reformat authenticaton.c
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-09-20 15:37:23 +02:00
Andreas Schneider
2fe59071b2
src: Do not use deprecated functions.
2014-01-16 15:27:46 +01:00
Aris Adamantiadis
7cb6b15aaa
auth: implement client-side gssapi
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2013-07-13 14:41:20 +02:00
Andreas Schneider
ca74d91d50
example: Clear the password.
2012-10-07 21:49:45 +02:00
Oliver Stöneberg
525324b2f9
examples: Use the right cleanup functions.
2011-05-17 14:20:48 +02:00
Andreas Schneider
8a9ce6239a
examples: Remove unused header file.
2011-01-24 13:55:05 +01:00
Andreas Schneider
f3685f0f73
examples: Use ssh_getpass().
2011-01-24 13:55:05 +01:00
Andreas Schneider
d1e1103198
examples: Improve the authenticate_kbdint function.
...
The function excepts a predefined password now. It will try to use it if
the prompt is a Password prompt. This works in 80% of the cases.
2011-01-08 10:18:55 +01:00
Andreas Schneider
32ac1e04ec
Fixed build warnings of the ssh client example.
2010-03-29 22:44:20 +02:00
Aris Adamantiadis
46b2b99f63
Fix strange error message in sample authentication
2009-12-13 19:53:32 +01:00
Andreas Schneider
86620fc991
Improve example authentication.
2009-10-15 17:56:03 +02:00
Aris Adamantiadis
a935ad1857
New example directory with the begining of a scp
2009-07-25 17:03:01 +02:00