aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/ssh-base.h
AgeCommit message (Collapse)AuthorFilesLines
2024-01-19extcap: Set matching libssh log levelJohn Thacker1-1/+4
Instead of always setting the libssh log level to SSH_LOG_INFO when an extcap has a ws log level of LOG_LEVEL_DEBUG or lower, set the libssh log level to a corresponding log level (NOISY/TRACE, DEBUG/DEBUG, INFO/INFO, MESSAGE and above/WARN). Format the libssh logging messages more similar to our normal logging messages, with a libssh domain and using the libssh priority. Prior to 0.11.0 (that is, this commit: https://gitlab.com/libssh/libssh-mirror/-/commit/657d9143d121dfff74f5a63f734d0096c7f37194 ) libssh sends some merely informational messages at their WARN level, so lower that down to INFO, which isn't printed by default and doesn't get printed in the GUI. Related to #17888
2024-01-15extcap: Add ability to enable SHA-1 algorithmsJohn Thacker1-1/+3
libssh 0.10.0 removed SHA-1 based keys and algorithms from its default configuration, though they are still supported. We ship with 0.10.5 in Windows and macOS now, and many Linux distributions are on 0.10.x as well. Add the ability to re-enable SHA-1 RSA keys, MAC, and KEX algorithms with a preference to ciscodump, sshdump, and wifidump. This will be a little easier in 0.11.0, where it's possible to just specify the algorithms you want to add to the default list, instead of having to specify the entire list. Fix #19510. Fix #19594
2023-06-15Convert our extcaps to C99 typesGerald Combs1-8/+8
Convert our extcaps to C99 types. Try to preserve padding in convert-glib-types.py and add globbing support on Windows. Ping #19116
2021-11-30extcap: Add header files to DoxygenMoshe Kaplan1-1/+2
Add @file markers for extcap headers so that Doxygen will generate documentation for them.
2021-09-30ws_getopt: Rename struct and macrosJoão Valverde1-10/+10
This is part of the API and should also be renamed to avoid conflicts.
2020-07-16extcap: put the code to add lissh version information into a common routine.Guy Harris1-0/+5
add_libssh_info() can be used by ciscodump, sshdump. and any other extcap program that uses libssh. Change-Id: I60474bd610eeb7dfb6ec07fc1aaaf19c4f745cdd Reviewed-on: https://code.wireshark.org/review/37882 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-16extcap: assume we're using libssh 0.6 or later.Guy Harris1-19/+0
We require 0.6 or later in CMakeLists.txt, and both ssh_version() and LIBSSH_VERSION having to be fed to SSH_STRINGIFY() date back before 0.5, so just assume ssh_version() is available and LIBSSH_VERSION has to be fed to SSH_STRINGIFY(). Change-Id: I4f62a720424383f88e0410cad07dbe67d0c69297 Reviewed-on: https://code.wireshark.org/review/37881 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-16extcap: get the libssh version string from the libssh.h header.Guy Harris1-0/+19
Thanks, libssh developers, for making it so straightforward! This means we don't need to construct it in the CMake module that finds libssh. Change-Id: I6c173bf7c0671dfdfac423a7d01ecced7b69e851 Reviewed-on: https://code.wireshark.org/review/37878 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-14extcap: save debug flag and use it to activate ssh debug.Dario Lombardo1-0/+1
Change-Id: Ida32834f8c0838f1d815f7e33116b6a6161acf34 Reviewed-on: https://code.wireshark.org/review/30572 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-14ssh-base: define a struct for storing ssh parameters.Dario Lombardo1-3/+17
Update sshdump and ciscodump to use it. Change-Id: I5fbb9e3a870ec8baa0f326ad34733743cbb981f3 Reviewed-on: https://code.wireshark.org/review/30571 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-11-10ssh-base: fix wrong type for ssh port.Dario Lombardo1-1/+1
According to documentation: http://api.libssh.org/master/group__libssh__session.html#ga82371e723260c7572ea061edecc2e9f1 Change-Id: I788f909efdb263d645bf402ad5a293a4b3e8d089 Reviewed-on: https://code.wireshark.org/review/30555 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2018-11-05extcap: add option to set proxycommand to ssh sessions.Dario Lombardo1-2/+4
sshdump and ciscodump have been updated to use it. Change-Id: I4e1e0d35f086d76c13264939bc4f14308cc88cfb Reviewed-on: https://code.wireshark.org/review/30496 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-08replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.Dario Lombardo1-1/+1
The first is deprecated, as per https://spdx.org/licenses/. Change-Id: I8e21e1d32d09b8b94b93a2dc9fbdde5ffeba6bed Reviewed-on: https://code.wireshark.org/review/25661 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-11-12extcap: use SPDX identifiers for licences.Dario Lombardo1-13/+1
Change-Id: Id56687f86f4c60494dad0b6d58550ee45b0b203c Reviewed-on: https://code.wireshark.org/review/24381 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-09-16extcap: make extcap use the ws_strtoi/u functions.Dario Lombardo1-1/+3
Change-Id: Id75c72eba869c8a0f413ce8b5d6329ce172aed1f Reviewed-on: https://code.wireshark.org/review/17415 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
2016-08-06extcap: move defines from sshdump & ciscodump to ssh-base.Dario Lombardo1-0/+8
Change-Id: I51769e2427b0119aefe57ebcc08406434ffbfead Reviewed-on: https://code.wireshark.org/review/16918 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-05-03ssh-base(.h) : fix no newline at end of file [-Wnewline-eof]Alexis La Goutte1-1/+1
Change-Id: I0e5898a0b0a48dd777c3ac249a23c872ff45df80 Reviewed-on: https://code.wireshark.org/review/15253 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Roland Knall <rknall@gmail.com>
2016-03-24extcap: add ciscodump.Dario Lombardo1-0/+14
Ciscodump is a new extcap that allows packet capture on Cisco routers (IOS 12.4 and later) through SSH. Change-Id: Ic9c5be01d3bd0112116f7fc9fa10e26c1552b007 Reviewed-on: https://code.wireshark.org/review/13886 Reviewed-by: Roland Knall <rknall@gmail.com>
2016-03-04extcap: move ssh common functions to ssh-base.Dario Lombardo1-0/+50
Change-Id: Ic06882a4f914b4f89d936d5d942b50552ae4abb3 Reviewed-on: https://code.wireshark.org/review/14264 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>