aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs12
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,
}