trifid-api 0.3.0-alpha1 and some work on a tfweb rewrite #6

Merged
core merged 12 commits from api-and-web-rewrite into master 2023-12-28 05:44:29 +00:00
3 changed files with 12 additions and 1 deletions
Showing only changes of commit f7de7ff592 - Show all commits

View File

@ -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)
);

View File

@ -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(

View File

@ -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,
}
}