aboutsummaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2022-11-07 17:13:34 +0100
committerBlackDex <[email protected]>2022-11-07 17:13:34 +0100
commitc9ec389b244c98d5cc57852f29130923fe9d6ce6 (patch)
treeed190965725a1703a603648ef7db47ec282dce9b /Cargo.lock
parentf60a6929a9a289bd39c38eeb793ebf54c4d88199 (diff)
downloadvaultwarden-c9ec389b244c98d5cc57852f29130923fe9d6ce6.tar.gz
vaultwarden-c9ec389b244c98d5cc57852f29130923fe9d6ce6.zip
Support Org Export for v2022.11 clients
Since v2022.9.x the org export uses a different endpoint. But, since v2022.11.x this endpoint will return a different format. See: https://github.com/bitwarden/clients/pull/3641 and https://github.com/bitwarden/server/pull/2316 To support both version in the case of users having an older client either web-vault or cli this PR checks the version and responds using the correct format. If no version can be determined it will use the new format as a default.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock7
1 files changed, 7 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 38e2f398..1f428ebd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2467,6 +2467,12 @@ dependencies = [
]
[[package]]
+name = "semver"
+version = "1.0.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4"
+
+[[package]]
name = "serde"
version = "1.0.147"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3201,6 +3207,7 @@ dependencies = [
"ring",
"rmpv",
"rocket",
+ "semver",
"serde",
"serde_json",
"syslog",