mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
vaultwarden: update to 1.33.0.
This commit is contained in:
parent
78bf6c526c
commit
b8851ca828
3 changed files with 28 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/crypto.rs b/src/crypto.rs
|
||||||
|
index a987b0f..eff1785 100644
|
||||||
|
--- a/src/crypto.rs
|
||||||
|
+++ b/src/crypto.rs
|
||||||
|
@@ -6,7 +6,7 @@ use std::num::NonZeroU32;
|
||||||
|
use data_encoding::{Encoding, HEXLOWER};
|
||||||
|
use ring::{digest, hmac, pbkdf2};
|
||||||
|
|
||||||
|
-const DIGEST_ALG: pbkdf2::Algorithm = pbkdf2::PBKDF2_HMAC_SHA256;
|
||||||
|
+static DIGEST_ALG: pbkdf2::Algorithm = pbkdf2::PBKDF2_HMAC_SHA256;
|
||||||
|
const OUTPUT_LEN: usize = digest::SHA256_OUTPUT_LEN;
|
||||||
|
|
||||||
|
pub fn hash_password(secret: &[u8], salt: &[u8], iterations: u32) -> Vec<u8> {
|
13
srcpkgs/vaultwarden/patches/rust-version.patch
Normal file
13
srcpkgs/vaultwarden/patches/rust-version.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/Cargo.toml b/Cargo.toml
|
||||||
|
index e3755e2..1fbe7a6 100644
|
||||||
|
--- a/Cargo.toml
|
||||||
|
+++ b/Cargo.toml
|
||||||
|
@@ -5,7 +5,7 @@ name = "vaultwarden"
|
||||||
|
version = "1.0.0"
|
||||||
|
authors = ["Daniel García <dani-garcia@users.noreply.github.com>"]
|
||||||
|
edition = "2021"
|
||||||
|
-rust-version = "1.83.0"
|
||||||
|
+rust-version = "1.82.0"
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
repository = "https://github.com/dani-garcia/vaultwarden"
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'vaultwarden'
|
# Template file for 'vaultwarden'
|
||||||
pkgname=vaultwarden
|
pkgname=vaultwarden
|
||||||
version=1.32.7
|
version=1.33.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
configure_args="--features sqlite,mysql,postgresql"
|
configure_args="--features sqlite,mysql,postgresql"
|
||||||
|
@ -13,7 +13,7 @@ license="AGPL-3.0-only"
|
||||||
homepage="https://github.com/dani-garcia/vaultwarden"
|
homepage="https://github.com/dani-garcia/vaultwarden"
|
||||||
changelog="https://github.com/dani-garcia/vaultwarden/releases"
|
changelog="https://github.com/dani-garcia/vaultwarden/releases"
|
||||||
distfiles="https://github.com/dani-garcia/vaultwarden/archive/${version}.tar.gz"
|
distfiles="https://github.com/dani-garcia/vaultwarden/archive/${version}.tar.gz"
|
||||||
checksum=9452e9acf5ebbbf71ea1427750b4c39f3a4a6989edcced1d0dc7e1a47086c6df
|
checksum=4e3a1a5fcb83878ed06100d6fb81476e8462f90d9cd0acd9ac0380b31ad457b5
|
||||||
|
|
||||||
system_accounts="_vaultwarden"
|
system_accounts="_vaultwarden"
|
||||||
_vaultwarden_homedir="/var/lib/vaultwarden"
|
_vaultwarden_homedir="/var/lib/vaultwarden"
|
||||||
|
|
Loading…
Add table
Reference in a new issue