Karolin Varner
2d6550da0f
chore(rp): Simplify peer configuration code
2025-08-04 08:44:15 +02:00
Karolin Varner
bae336d633
fix(rp): Make sure that the WG SK is erased ASAP
2025-08-04 08:44:15 +02:00
Karolin Varner
6c929f7ddc
chore(rp): Simplify error handling in exchange()
2025-08-04 08:44:15 +02:00
Karolin Varner
41eb620751
chore(rp): Simplify code to setup Rosenpass AppServer
2025-08-04 08:44:15 +02:00
Karolin Varner
8561aaf137
chore(rp): Move functionality to set wg sk and port into function
2025-08-04 08:44:15 +02:00
Karolin Varner
f0ee7a33c9
chore(rp): Make sure genetlink is cleaned up
2025-08-04 08:44:15 +02:00
Karolin Varner
1d4a70f863
fix(rp): Use async commands to set up ip addr
...
We don't want to block the tokio runtime.
2025-08-04 08:44:15 +02:00
Karolin Varner
f4e8e4314b
chore: Use RAII for erasing the WireGuard device in rp
...
This, for now, disables correct handling of program termination,
but not because the RAII does not work. Instead, we need to implement
a proper signal handling concept.
We also removed some teardown handlers which are not covered by RAII,
like removing the routes we set up. The reason for this is, that this
is going to be taken care of by removing the wireguard device anyway.
2025-08-04 08:44:15 +02:00
Karolin Varner
1b9be7519b
chore: Unnecessary string clone in rp
2025-08-04 08:44:15 +02:00
Karolin Varner
a85f9b8e63
chore: Better error handling in link_create_and_up in rp
2025-08-03 15:15:14 +02:00
Karolin Varner
21ea526435
chore: Restructure imports in rosenpass_rp::exchange
2025-08-03 15:15:14 +02:00
Karolin Varner
35e956e340
fix: Simplify structure of rp::exchange
...
Before this commit, there was a submodule rp::exchange::netlink
and there where platform checks, printing error messages on systems
other than freebsd and linux.
Neither is really necessary. If the application won't compile on other
systems it won't work, and if it happens to work then why give users a
spurious error message.
2025-08-03 15:15:14 +02:00
Karolin Varner
3371d7f00f
chore: Clippy fixes for rp crate
2025-08-03 15:15:14 +02:00
Karolin Varner
b1a7d94295
feat: Support for custom osk (output key) domain separators in Rosenpass app
...
This allows for custom protocol extensions with custom domain
separators to be used without modifying the Rosenpass source code
2025-06-25 19:48:29 +02:00
Karolin Varner
8bad02bcda
feat: Disallow unknown fields in rosenpass and rp configuration
2025-06-25 19:48:29 +02:00
Karolin Varner
4deee59e90
chore: Restructure imports in various places
2025-06-25 19:38:51 +02:00
Karolin Varner
9656fa7025
chore: Split basic types from protocol.rs into own file
2025-06-24 14:01:31 +02:00
Karolin Varner
54fc904c15
fix(rp): Protocol version field should be optional
2025-04-08 23:54:48 +02:00
David Niehues
b21a95dbbd
doc(rp+rosenpass+ciphers+cipher-traits): Apply cargo fmt formatting
2025-04-03 16:55:03 +02:00
David Niehues
944be10bd2
dev(rp): Adapt rp to include set a protocol version.
2025-04-03 16:55:03 +02:00
David Niehues
8805ef7c38
style: Ensure inline comments start upper case and end with a dot, and fix some overlong lines.
2024-12-12 21:14:02 +01:00
David Niehues
cca02dc8d1
add documentation for the rp crate
2024-12-12 21:14:02 +01:00
Karolin Varner
2d20ad6335
fix: CI issues under Darwin
2024-12-09 15:35:34 +01:00
Jacek Galowicz
cd7558594f
rp: Add exchange-config command
...
This is similar to `rosenpass exchange`/`rosenpass exchange-config`.
It's however slightly different to the configuration file models the `rp
exchange` command line.
2024-12-09 15:35:34 +01:00
Jacek Galowicz
022cdc4ffa
rp: set allowed-ips as routes
...
Prepare the rp app for a systemd unit file that sets up wireguard
connections.
2024-12-09 15:35:34 +01:00
Jacek Galowicz
06d4e289a5
rp: Add ip parameter to exchange command
...
Prepare the `rp` app for a systemd unit that sets up a wireguard connection.
2024-12-09 15:35:34 +01:00
Karolin Varner
d5a8c85abe
chore(API): Specifying a keypair should be opt. at startup
...
…so we can specify it later using the API.
2024-08-16 08:34:07 +02:00
Paul Spooren
79b634fadf
drop unused import of WG_B64_LEN
...
This causes warnings
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-07-08 13:48:00 +02:00
Prabhpreet Dua
c1abfbfd14
feat(rosenpass): Add wireguard-broker interface in AppServer ( #303 )
...
Dynamically dispatch WireguardBrokerMio trait in AppServer. Also allows for mio event registration and poll processing, logic from dev/broker-architecture branch
Co-authored-by: Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com >
Co-authored-by: Karolin Varner <karo@cupdev.net >
2024-05-20 18:12:42 +05:30
Prabhpreet Dua
4bb3153761
feat(deps): Change base64 to base64ct crate ( #295 )
2024-05-06 21:14:10 +05:30
Gergő Móricz
cc7e8dc510
feat(rp-rust): implement rp tool in Rust ( #235 )
2024-04-19 20:44:55 +02:00