[stars] debugging!

This commit is contained in:
core 2023-08-19 13:34:04 -04:00
parent 9665fda815
commit b96996952e
Signed by: core
GPG Key ID: FDBF740DADDCEECF
5 changed files with 7 additions and 4 deletions

4
Cargo.lock generated
View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
[package]
name = "tfclient"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
description = "An open-source reimplementation of a Defined Networking-compatible client"
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
match enroll_info.clone().delete(&db.conn).await {