Make debian dependency on base64 match the versioning in Cargo.toml.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
# versions specified here are mostly just guesses at what is needed
# (or currently available):
backtrace = "0.3"
-base64 = "0.13" # 0.20 has substantially incompatible API (there's no 0.14)
+base64 = "0.21" # 0.20 has substantially incompatible API (there's no 0.14)
clap = { version = "3", features = ["derive"] }
easy-ext = "1"
educe = "0.4"
//dbg!(DumpHex(&hmac));
let mut token = time_t;
write!(token, " ").unwrap();
- base64::encode_config_buf(hmac, BASE64_CONFIG, &mut token);
+ BASE64_CONFIG.encode_string(hmac, &mut token);
let req_num = { *req_num += 1; *req_num };
moreutils, libssl-dev (>= 1.1), pkg-config,
# debian/update-build-deps manages these:
librust-backtrace-dev <!upstream-cargo>,
- librust-base64-dev <!upstream-cargo>,
+ librust-base64-0.21-dev <!upstream-cargo>,
librust-clap-3+derive-dev <!upstream-cargo>,
librust-easy-ext-dev <!upstream-cargo>,
librust-educe-dev <!upstream-cargo>,
let time_t = u64::from_str_radix(time_t, 16).context("parse time_t")?;
let l = io::copy(
&mut base64::read::DecoderReader::new(&mut hmac_b64.as_bytes(),
- BASE64_CONFIG),
+ &BASE64_CONFIG),
&mut &mut hmac_got[..]
).context("parse b64 token")?;
let l = l.try_into()?;
pub const MAX_OVERHEAD: usize = 2_000;
-pub use base64::STANDARD as BASE64_CONFIG;
+pub use base64::engine::Engine;
+pub use base64::engine::general_purpose::STANDARD as BASE64_CONFIG;
pub fn default<T:Default>() -> T { Default::default() }