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:
Connor Peet
2023-06-02 10:27:47 -07:00
committed by GitHub
parent 0cf685c1da
commit 75c2f321b2
9 changed files with 739 additions and 526 deletions

View File

@@ -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"))]