Compare commits
2 Commits
2a6945a534
...
648ef9a38e
Author | SHA1 | Date |
---|---|---|
core | 648ef9a38e | |
core | b96996952e |
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue