aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-04-18 01:28:48 -0400
committerJesse Luehrs <doy@tozt.net>2020-04-18 01:28:48 -0400
commit777b810db4675305854c373dcd57aedc40061e5d (patch)
treeed35c77e39416073fb5222aebdb5ef484c238dd3 /src/protocol.rs
parent3babc8801c0d09b7868be9be7751f7cfdf32c8bb (diff)
downloadrbw-777b810db4675305854c373dcd57aedc40061e5d.tar.gz
rbw-777b810db4675305854c373dcd57aedc40061e5d.zip
add encryption to the agent protocol
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index 8d7cd69..5d476ca 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -12,6 +12,7 @@ pub enum Action {
Lock,
Sync,
Decrypt { cipherstring: String },
+ Encrypt { plaintext: String },
// add
// update
// remove
@@ -24,4 +25,5 @@ pub enum Response {
Ack,
Error { error: String },
Decrypt { plaintext: String },
+ Encrypt { cipherstring: String },
}