mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-11 13:02:10 +10:00
migrate to new droplet ca system
This commit is contained in:
@ -25,7 +25,6 @@ struct HandshakeRequestBody {
|
|||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct HandshakeResponse {
|
struct HandshakeResponse {
|
||||||
private: String,
|
private: String,
|
||||||
public: String,
|
|
||||||
certificate: String,
|
certificate: String,
|
||||||
id: String,
|
id: String,
|
||||||
}
|
}
|
||||||
@ -74,7 +73,6 @@ pub fn recieve_handshake(app: AppHandle, path: String) {
|
|||||||
let mut handle = DB.borrow_data_mut().unwrap();
|
let mut handle = DB.borrow_data_mut().unwrap();
|
||||||
handle.certs = Some(DatabaseCerts {
|
handle.certs = Some(DatabaseCerts {
|
||||||
private: response_struct.private,
|
private: response_struct.private,
|
||||||
public: response_struct.public,
|
|
||||||
cert: response_struct.certificate,
|
cert: response_struct.certificate,
|
||||||
});
|
});
|
||||||
drop(handle);
|
drop(handle);
|
||||||
|
|||||||
@ -9,7 +9,6 @@ use crate::DB;
|
|||||||
#[derive(serde::Serialize, Clone, Deserialize)]
|
#[derive(serde::Serialize, Clone, Deserialize)]
|
||||||
pub struct DatabaseCerts {
|
pub struct DatabaseCerts {
|
||||||
pub private: String,
|
pub private: String,
|
||||||
pub public: String,
|
|
||||||
pub cert: String,
|
pub cert: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user