Skip to content

Commit

Permalink
vaultwarden: update to 1.33.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine authored and classabbyamp committed Jan 28, 2025
1 parent 78bf6c5 commit b8851ca
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
13 changes: 13 additions & 0 deletions srcpkgs/vaultwarden/patches/reference-static-in-constant.patch
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions srcpkgs/vaultwarden/patches/rust-version.patch
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
edition = "2021"
-rust-version = "1.83.0"
+rust-version = "1.82.0"
resolver = "2"

repository = "https://github.com/dani-garcia/vaultwarden"
4 changes: 2 additions & 2 deletions srcpkgs/vaultwarden/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'vaultwarden'
pkgname=vaultwarden
version=1.32.7
version=1.33.0
revision=1
build_style=cargo
configure_args="--features sqlite,mysql,postgresql"
Expand All @@ -13,7 +13,7 @@ license="AGPL-3.0-only"
homepage="https://github.com/dani-garcia/vaultwarden"
changelog="https://github.com/dani-garcia/vaultwarden/releases"
distfiles="https://github.com/dani-garcia/vaultwarden/archive/${version}.tar.gz"
checksum=9452e9acf5ebbbf71ea1427750b4c39f3a4a6989edcced1d0dc7e1a47086c6df
checksum=4e3a1a5fcb83878ed06100d6fb81476e8462f90d9cd0acd9ac0380b31ad457b5

system_accounts="_vaultwarden"
_vaultwarden_homedir="/var/lib/vaultwarden"
Expand Down

0 comments on commit b8851ca

Please sign in to comment.