wireguard-tools/contrib/highlighter
Jason A. Donenfeld 20e28d2b0f highlighter: insist on 256-bit keys, not 257-bit or 258-bit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-04-03 23:14:07 -06:00
..
gui contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
fuzz.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlight.c global: bump copyright 2020-01-02 19:52:25 +01:00
highlighter.c highlighter: insist on 256-bit keys, not 257-bit or 258-bit 2020-04-03 23:14:07 -06:00
highlighter.h global: bump copyright 2020-01-02 19:52:25 +01:00
Makefile contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00
README contrib: introduce simple highlighter library 2019-01-23 14:29:44 +01:00

wg(8) and wg-quick(8) syntax highlighter library
================================================

highlighter.c contains a simple portable highlighter for the wg(8) and
wg-quick(8) configuration files. Simply copy `highlight.c` and
`highlight.h` into your project wholesale.

As a demo, a simple console highlighter program is included, alongside a
simple Qt5 GUI app to show its usage in realtime.

There is also a basic fuzzer, because why not?

Usage:

    $ make
    $ ./highlight < path/to/tunnel.conf

    $ make gui
    $ ./gui/highlight

    $ make fuzz
    $ ./fuzz -workers=$(nproc) -jobs=$(nproc) ./corpus