add server private signing keys to HostKey
This commit is contained in:
parent
c1762169b7
commit
f7de7ff592
|
@ -7,5 +7,9 @@ CREATE TABLE host_keys (
|
|||
client_dh_pub 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)
|
||||
);
|
|
@ -1,7 +1,7 @@
|
|||
use diesel::{Associations, Identifiable, Insertable, Queryable, Selectable};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
use std::ops::{Bound, Range};
|
||||
use std::ops::Bound;
|
||||
use std::time::SystemTime;
|
||||
|
||||
#[derive(
|
||||
|
@ -337,6 +337,10 @@ pub struct HostKey {
|
|||
pub client_ed_pub: Vec<u8>,
|
||||
pub client_dh_pub: Vec<u8>,
|
||||
pub client_cert: Vec<u8>,
|
||||
|
||||
pub salt: Vec<u8>,
|
||||
pub info: Vec<u8>,
|
||||
pub server_ed_priv: Vec<u8>
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
|
|
@ -24,6 +24,9 @@ diesel::table! {
|
|||
client_ed_pub -> Bytea,
|
||||
client_dh_pub -> Bytea,
|
||||
client_cert -> Bytea,
|
||||
salt -> Bytea,
|
||||
info -> Bytea,
|
||||
server_ed_priv -> Bytea,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue