mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
cli: update dependencies (#184189)
Up all the dependencies! Notably: - russh to the latest main now that tunnel changes are merged - secret-service-rs to 3.x and dropping our custom fork - which also fixes SDL pings Fixes https://github.com/microsoft/vscode-internalbacklog/issues/4328 Fixes https://github.com/microsoft/vscode-internalbacklog/issues/4077
This commit is contained in:
@@ -11,11 +11,12 @@ pub fn create_challenge() -> String {
|
||||
|
||||
#[cfg(not(feature = "vsda"))]
|
||||
pub fn sign_challenge(challenge: &str) -> String {
|
||||
use base64::{engine::general_purpose as b64, Engine as _};
|
||||
use sha2::{Digest, Sha256};
|
||||
let mut hash = Sha256::new();
|
||||
hash.update(challenge.as_bytes());
|
||||
let result = hash.finalize();
|
||||
base64::encode_config(result, base64::URL_SAFE_NO_PAD)
|
||||
b64::URL_SAFE_NO_PAD.encode(result)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "vsda"))]
|
||||
|
||||
Reference in New Issue
Block a user