add server private signing keys to HostKey

This commit is contained in:
core 2023-12-25 18:50:42 -05:00
parent c1762169b7
commit f7de7ff592
Signed by: core
GPG Key ID: FDBF740DADDCEECF
3 changed files with 12 additions and 1 deletions

View File

@ -7,5 +7,9 @@ CREATE TABLE host_keys (
client_dh_pub bytea NOT NULL, client_dh_pub bytea NOT NULL,
client_cert bytea NOT NULL, client_cert bytea NOT NULL,
salt bytea NOT NULL,
info bytea NOT NULL,
server_ed_priv bytea NOT NULL,
UNIQUE (host_id, counter) UNIQUE (host_id, counter)
); );

View File

@ -1,7 +1,7 @@
use diesel::{Associations, Identifiable, Insertable, Queryable, Selectable}; use diesel::{Associations, Identifiable, Insertable, Queryable, Selectable};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use serde_json::Value; use serde_json::Value;
use std::ops::{Bound, Range}; use std::ops::Bound;
use std::time::SystemTime; use std::time::SystemTime;
#[derive( #[derive(
@ -337,6 +337,10 @@ pub struct HostKey {
pub client_ed_pub: Vec<u8>, pub client_ed_pub: Vec<u8>,
pub client_dh_pub: Vec<u8>, pub client_dh_pub: Vec<u8>,
pub client_cert: Vec<u8>, pub client_cert: Vec<u8>,
pub salt: Vec<u8>,
pub info: Vec<u8>,
pub server_ed_priv: Vec<u8>
} }
#[derive( #[derive(

View File

@ -24,6 +24,9 @@ diesel::table! {
client_ed_pub -> Bytea, client_ed_pub -> Bytea,
client_dh_pub -> Bytea, client_dh_pub -> Bytea,
client_cert -> Bytea, client_cert -> Bytea,
salt -> Bytea,
info -> Bytea,
server_ed_priv -> Bytea,
} }
} }