mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-30 06:08:04 +00:00
cargo: Update vulnerable crates (#520)
* cargo: Update primitive-types to v 0.12.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update base64 to v 0.21 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update simple_logger to v 4.0.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update parking_lot to v 0.12.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update soketto to v 0.7.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update tokio-util to v 0.7.4 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update sha-1 to v 0.10.1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update jemallocator to v 0.5.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update criterion to v 0.4.0 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * cargo: Update cargo.lock Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -134,7 +134,10 @@ fn generate_websocket_accept_key<'a>(key: &[u8], buf: &'a mut [u8; 32]) -> &'a [
|
||||
digest.update(KEY);
|
||||
let d = digest.finalize();
|
||||
|
||||
let n = base64::encode_config_slice(&d, base64::STANDARD, buf);
|
||||
use base64::{engine::general_purpose, Engine as _};
|
||||
let n = general_purpose::STANDARD
|
||||
.encode_slice(&d, buf)
|
||||
.expect("Sha1 must fit into [u8; 32]");
|
||||
&buf[..n]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user