]> git.corax.cc Git - toolbox-goodies/log
toolbox-goodies
3 years agoinclude/ipsec: Add functions for certificate management in IPsec VPNs unstable
Matthias Kruk [Sat, 16 Jul 2022 04:45:44 +0000 (13:45 +0900)]
include/ipsec: Add functions for certificate management in IPsec VPNs

This commit adds the ipsec group of modules, which implements functions
for easy management of certificate authorities for IPsec VPNs.

The following modules are included in the ipsec group:
 - ipsec/key: Generation of RSA/ECDSA/Ed25519 keys
 - ipsec/ca: Generation of CAs and server/client certificates

3 years agoMakefile: Remove `deb` rule and use `find` to set permissions stable
Matthias Kruk [Mon, 24 Jan 2022 03:01:31 +0000 (12:01 +0900)]
Makefile: Remove `deb` rule and use `find` to set permissions

The `deb` rule provided by the Makefile is not necessary for builds
using foundry and can be removed. Further, the Makefile does not use
`find` for setting permissions during installation, making changes
necessary when new modules are added.

This commit removes the `deb` rule from the Makefile and changes the
`install` rule to make use of `find` to set permissions on files and
directories.

3 years agodebian: Fix package name in control file
Matthias Kruk [Mon, 24 Jan 2022 02:56:50 +0000 (11:56 +0900)]
debian: Fix package name in control file

The package name in debian/control is incorrect, causing problems
during package builds.

This commit changes the package name in debian/control to
toolbox-goodies.

4 years agoMakefile: Add rules for installing and building deb packages
Matthias Kruk [Wed, 11 Aug 2021 06:50:32 +0000 (15:50 +0900)]
Makefile: Add rules for installing and building deb packages

This repository currently comes with nothing but the modules in the
include directory, making it hard to use for people who don't know
how toolbox works.
This commit adds a Makefile with rules for installing/uninstalling,
and for creating Debian packages from this repository.

4 years agoinclude/ssh: Make sure handles don't contain line breaks
Matthias Kruk [Mon, 26 Jul 2021 06:49:50 +0000 (15:49 +0900)]
include/ssh: Make sure handles don't contain line breaks

Handles returned by ssh_tunnel_open() and ssh_proxy_open() are base64
encoded using the base64 commandline tool. However, base64 inserts line
breaks into long outputs, causing line breaks to be inserted into long
handles, and the returned handles to become unusable.
This commit changes the parameters passed tp base64 so that no line
breaks are inserted into the handles.

4 years agoinclude/ssh: Add functions to list running tunnels and proxies
Matthias Kruk [Mon, 26 Jul 2021 02:40:33 +0000 (11:40 +0900)]
include/ssh: Add functions to list running tunnels and proxies

The ssh module does not provide any means to figure out what tunnels
and proxies have been established, making it hard to automate ssh
connections.
This commit adds the ssh_tunnel_list() and ssh_proxy_list() functions
which may be used to list the established tunnels and proxies,
respectively.

4 years agoinclude/ssh: Fix invalid function reference
Matthias Kruk [Tue, 20 Jul 2021 01:23:07 +0000 (10:23 +0900)]
include/ssh: Fix invalid function reference

The ssh module makes a call to error() in order to log an error message,
however that function does not exist (anymore).
This commit changes the call to reference log_error() instead.

4 years agoinclude/ssh: Import ssh module from toolbox
Matthias Kruk [Tue, 20 Jul 2021 01:04:02 +0000 (10:04 +0900)]
include/ssh: Import ssh module from toolbox

This commit imports the ssh module that has previously been removed
from the toolbox core package.