]> git.proxmox.com Git - proxmox-perl-rs.git/commit
pve-rs/tfa: fix off by one trimming
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 12 Nov 2021 08:58:13 +0000 (09:58 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 12 Nov 2021 09:10:20 +0000 (10:10 +0100)
commit515d6a81d8ac3887a0a6ded465a83a5bae399eff
tree5d03ffc41eb438ae487e39f105d3b7cbed883b02
parent790d11edf1421eb1cf2b43d9559b8aaef5a64ebc
pve-rs/tfa: fix off by one trimming

to is the last *valid* character, and ranges end by default with one
less, so extend the range to the actual last character

this fixes an issue that we could not parse old configs with
non-padded base64 values

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pve-rs/src/tfa/mod.rs