diff --git a/Cargo.lock b/Cargo.lock index 759a64b0..473818ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1707,24 +1707,24 @@ dependencies = [ [[package]] name = "protobuf" -version = "2.18.0" +version = "2.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d147edb77bcccbfc81fabffdc7bd50c13e103b15ca1e27515fe40de69a5776b" +checksum = "73f72884896d22e0da0e5b266cb9a780b791f6c3b2f5beab6368d6cd4f0dbb86" [[package]] name = "protobuf-codegen" -version = "2.18.0" +version = "2.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e81f70c25aab9506f87253c55f7cdcd8917635d5597382958d20025c211bbbd" +checksum = "e8217a1652dbc91d19c509c558234145faed729191a966896414e5889f62d543" dependencies = [ "protobuf", ] [[package]] name = "protoc" -version = "2.18.0" +version = "2.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57408af2c106a7f08cc61e15be6a31e3ace8ea26f90dd1be1ad19abf1073d36a" +checksum = "57628f7456fe5fff1591901fb8b594e1584750cb857da23b65c456b42670524d" dependencies = [ "log 0.4.11", "which", @@ -1732,9 +1732,9 @@ dependencies = [ [[package]] name = "protoc-rust" -version = "2.18.0" +version = "2.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21c1582ff3efeccef1385b1c2dfaf4a9b5bc7794865624fc2a3ca9dff1145fa1" +checksum = "1f4f7f814511b67bcbef52cb4ac9160766d087de35245d2fba08d6ee87fb5ecd" dependencies = [ "protobuf", "protobuf-codegen", diff --git a/aesm-client/Cargo.toml b/aesm-client/Cargo.toml index a3db8990..68b04aa6 100644 --- a/aesm-client/Cargo.toml +++ b/aesm-client/Cargo.toml @@ -32,7 +32,7 @@ sgx-isa = { version = "0.3.0", path = "../sgx-isa"} # External dependencies byteorder = "1.0" # Unlicense/MIT lazy_static = "1" # MIT/Apache-2.0 -protobuf = "2.8.0" # MIT/Apache-2.0 +protobuf = "2.19.0" # MIT/Apache-2.0 failure = "0.1.1" # MIT/Apache-2.0 failure_derive = "0.1.1" # MIT/Apache-2.0 diff --git a/aesm-client/src/imp/aesm_protobuf/mod.rs b/aesm-client/src/imp/aesm_protobuf/mod.rs index f835b6f2..bc13232d 100644 --- a/aesm-client/src/imp/aesm_protobuf/mod.rs +++ b/aesm-client/src/imp/aesm_protobuf/mod.rs @@ -50,7 +50,7 @@ impl AesmClient { let mut res_bytes = vec![0; res_len as usize]; sock.read_exact(&mut res_bytes)?; - let res = T::Response::from_response(protobuf::parse_from_bytes(&res_bytes))?; + let res = T::Response::from_response(Message::parse_from_bytes(&res_bytes))?; Ok(res) }