diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-05-02 19:35:39 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-05-02 19:35:39 -0400 |
commit | c16fa1c1e05f2586e2deca8faf32e519a9b50670 (patch) | |
tree | 09d9c8563a0b6f172c483c4e8a1046a7b7a80691 /src/protocol.rs | |
parent | 8a81e826f0ec61eab9737ca443197865324b52bd (diff) | |
download | rbw-c16fa1c1e05f2586e2deca8faf32e519a9b50670.tar.gz rbw-c16fa1c1e05f2586e2deca8faf32e519a9b50670.zip |
expand the protocol to allow decrypting with organization keys
not implemented yet, just changing the interface
Diffstat (limited to 'src/protocol.rs')
-rw-r--r-- | src/protocol.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 2ef99cd..0ab594c 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,4 +1,4 @@ -pub const VERSION: u32 = 1; +pub const VERSION: u32 = 2; #[derive(serde::Serialize, serde::Deserialize, Debug)] pub struct Request { @@ -13,8 +13,14 @@ pub enum Action { Unlock, Lock, Sync, - Decrypt { cipherstring: String }, - Encrypt { plaintext: String }, + Decrypt { + cipherstring: String, + org_id: Option<String>, + }, + Encrypt { + plaintext: String, + org_id: Option<String>, + }, Quit, Version, } |