Compare commits

...

2 Commits

Author SHA1 Message Date
core 648ef9a38e
Merge branch 'master' of git.e3t.cc:core/trifid 2023-09-25 18:22:53 -04:00
core b96996952e
[stars] debugging! 2023-08-19 13:34:04 -04:00
5 changed files with 7 additions and 4 deletions

4
Cargo.lock generated
View File

@ -1214,7 +1214,7 @@ dependencies = [
[[package]] [[package]]
name = "dnapi-rs" name = "dnapi-rs"
version = "0.1.14" version = "0.1.15"
dependencies = [ dependencies = [
"base64 0.21.2", "base64 0.21.2",
"base64-serde", "base64-serde",
@ -3574,7 +3574,7 @@ dependencies = [
[[package]] [[package]]
name = "tfclient" name = "tfclient"
version = "0.2.3" version = "0.2.4"
dependencies = [ dependencies = [
"base64 0.21.2", "base64 0.21.2",
"base64-serde", "base64-serde",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "dnapi-rs" name = "dnapi-rs"
version = "0.1.14" version = "0.1.15"
edition = "2021" edition = "2021"
description = "A rust client for the Defined Networking API" description = "A rust client for the Defined Networking API"
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"

View File

@ -254,6 +254,7 @@ impl Client {
ed_privkey.verify(b64_msg_bytes, &Signature::from_slice(&signature)?)?; ed_privkey.verify(b64_msg_bytes, &Signature::from_slice(&signature)?)?;
debug!("signature valid via clientside check"); debug!("signature valid via clientside check");
debug!("signed with key: {:x?}", ed_privkey.verifying_key().as_bytes());
let body = RequestV1 { let body = RequestV1 {
version: 1, version: 1,

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tfclient" name = "tfclient"
version = "0.2.3" version = "0.2.4"
edition = "2021" edition = "2021"
description = "An open-source reimplementation of a Defined Networking-compatible client" description = "An open-source reimplementation of a Defined Networking-compatible client"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

View File

@ -103,6 +103,8 @@ pub async fn enroll(
} }
}; };
debug!("keys: DH: {:x?} ED: {:x?}", dh_pubkey, ed_pubkey);
// destroy the enrollment code before doing anything else // destroy the enrollment code before doing anything else
match enroll_info.clone().delete(&db.conn).await { match enroll_info.clone().delete(&db.conn).await {