-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support secure client validation by exposing the audit token (#32)
* Support validating clients * Fix deprecated bindgen warnings (whitelist/allowlist)
- Loading branch information
Steven Joruk
authored
Jun 7, 2021
1 parent
cfbdc8d
commit 7158124
Showing
10 changed files
with
113 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ authors = ["Steven Joruk <[email protected]>"] | |
edition = "2018" | ||
publish = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
futures = { version = "0.3" } | ||
tokio = { version = "1", features = ["macros", "rt-multi-thread"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
CFLAGS+=-O2 | ||
all: ../../target/debug/echo-server | ||
|
||
all: ../../target/release/echo-server | ||
../../target/debug/echo-server: | ||
cargo build | ||
|
||
../../target/release/echo-server: src/main.rs | ||
cargo build --release | ||
|
||
install: ../../target/release/echo-server | ||
cp ../../target/release/echo-server /Library/PrivilegedHelperTools/com.example.echo | ||
cp com.example.echo.plist /Library/LaunchDaemons/ | ||
launchctl load /Library/LaunchDaemons/com.example.echo.plist | ||
install: ../../target/debug/echo-server | ||
sudo cp ../../target/debug/echo-server /Library/PrivilegedHelperTools/com.example.echo | ||
sudo cp com.example.echo.plist /Library/LaunchDaemons/ | ||
sudo launchctl load /Library/LaunchDaemons/com.example.echo.plist | ||
|
||
uninstall: | ||
launchctl unload /Library/LaunchDaemons/com.example.echo.plist | ||
rm /Library/PrivilegedHelperTools/com.example.echo | ||
rm /Library/LaunchDaemons/com.example.echo.plist | ||
sudo launchctl unload /Library/LaunchDaemons/com.example.echo.plist | ||
sudo rm /Library/PrivilegedHelperTools/com.example.echo | ||
sudo rm /Library/LaunchDaemons/com.example.echo.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters