Set binary install target, update doc

This commit is contained in:
William Robinet 2023-08-10 12:07:09 +02:00
parent 6937dbc3fa
commit 7af04ca7ea
No known key found for this signature in database
GPG key ID: 003FA3DF74C7A949
4 changed files with 14 additions and 8 deletions

View file

@ -111,3 +111,6 @@ target_link_libraries(ssldump
${JSONC_LIBRARIES} ${JSONC_LIBRARIES}
) )
set(CMAKE_INSTALL_PREFIX "/usr/local")
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

View file

@ -53,22 +53,23 @@ other too (but this is just a collateral damage).
# Build instructions # Build instructions
On Debian & Ubuntu: Install dependencies on Debian & Ubuntu (as root):
``` ```
apt install build-essential cmake ninja-build libssl-dev libpcap-dev libnet1-dev libjson-c-dev apt install build-essential cmake ninja-build libssl-dev libpcap-dev libnet1-dev libjson-c-dev
cmake -G Ninja -B build
ninja -C build
./build/ssldump -v
``` ```
On Fedora, CentOS, RHEL & Rocky: On Fedora, CentOS, RHEL & Rocky (as root):
``` ```
dnf install cmake ninja-build gcc openssl-devel libpcap-devel libnet-devel json-c-devel dnf install cmake ninja-build gcc openssl-devel libpcap-devel libnet-devel json-c-devel
```
Compile & install:
```
cmake -G Ninja -B build cmake -G Ninja -B build
ninja -C build ninja -C build
./build/ssldump -v ./build/ssldump -v
(optional, as root) ninja -C build install
``` ```
# Notes # Notes
The "save to pcap" (-w) option by @ryabkov, is heavily based on the work of The "save to pcap" (-w) option by @ryabkov, is heavily based on the work of

View file

@ -61,7 +61,7 @@ ssldump \- dump SSL traffic on a network
.na .na
.B ssldump .B ssldump
[ [
.B \-aAdeFHjnNPqtTvxXy .B \-aAdeFHjnNPqtTvxXyz
] [ ] [
.B \-i .B \-i
.I interface .I interface

View file

@ -3,7 +3,7 @@
9th April 2023 - version 1.7 9th April 2023 - version 1.7
``` ```
.na ssldump [ -aAdeFHjnNPqtTvxXy ] [ -i interface ] .na ssldump [ -aAdeFHjnNPqtTvxXyz ] [ -i interface ]
.ti +8 [ -k keyfile ] [ -l sslkeylogfile ] [ -p password ] [ -r dumpfile ] [ -w outputpcap ] .ti +8 [ -k keyfile ] [ -l sslkeylogfile ] [ -p password ] [ -r dumpfile ] [ -w outputpcap ]
.ti +8 [ -S [crypto|d|ht|H|nroff] ] [ expression ] .ti +8 [ -S [crypto|d|ht|H|nroff] ] [ expression ]
@ -138,6 +138,8 @@ _/dev/bpf*_.
* **-y** * **-y**
Decorate the output for processing with nroff/troff. Not very Decorate the output for processing with nroff/troff. Not very
useful for the average user. useful for the average user.
* **-z**
Add timestamp in front of TCP packet description (-T)
* _expression_ * _expression_
Selects what packets _ssldump_ will examine. Technically speaking, Selects what packets _ssldump_ will examine. Technically speaking,
_ssldump_ supports the full expression syntax from PCAP and tcpdump. _ssldump_ supports the full expression syntax from PCAP and tcpdump.