Thrussh: making OpenSSL optional
[?]
Jun 22, 2021, 12:14 PM
NHOSLQGG4CIWBE7VKL5MB7PSY3RZ5IVDFENMGZG6X755GGZ6B3VQCDependencies
- [2]
MCS77Y4VMaking OpenSSL optional - [3]
EXXUR33QFixing queues when sending a vector - [4]
Y67GNDVBuse tokio::process::Command for proxy commands - [5]
634OYCNMTokio 0.3 - [6]
TFYJ3P2AVersion 0.30.8/0.19.4, and solving conflicts - [7]
7FRJYUI6Reboot because of a bad change - [8]
ELRPPXSGFixing conflicts - [9]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [10]
FT67GGO4Version bump (Pijul and Thrussh)
Change contents
- edit in thrussh/src/session.rs at line 21
use openssl::hash; - replacement in thrussh/src/session.rs at line 35
pub session_id: hash::DigestBytes,pub session_id: crate::Sha256Hash, - replacement in thrussh/src/session.rs at line 405
pub session_id: Option<hash::DigestBytes>,pub session_id: Option<crate::Sha256Hash>, - replacement in thrussh/src/session.rs at line 413
session_id: &hash::DigestBytes,session_id: &crate::Sha256Hash, - replacement in thrussh/src/session.rs at line 428
pub fn initiate_rekey(ex: Exchange, session_id: &hash::DigestBytes) -> Self {pub fn initiate_rekey(ex: Exchange, session_id: &crate::Sha256Hash) -> Self { - replacement in thrussh/src/session.rs at line 448
pub session_id: Option<hash::DigestBytes>,pub session_id: Option<crate::Sha256Hash>, - replacement in thrussh/src/session.rs at line 456
pub session_id: Option<hash::DigestBytes>,pub session_id: Option<crate::Sha256Hash>, - replacement in thrussh/src/session.rs at line 463
hash: hash::DigestBytes,hash: crate::Sha256Hash, - replacement in thrussh/src/session.rs at line 495
pub session_id: hash::DigestBytes,pub session_id: crate::Sha256Hash, - replacement in thrussh/src/server/mod.rs at line 574
2 .map_err(crate::Error::from)?;.map_err(crate::Error::from)?; - replacement in thrussh/src/server/kex.rs at line 93
let hash: Result<openssl::hash::DigestBytes, Error> = HASH_BUF.with(|buffer| {let hash: Result<_, Error> = HASH_BUF.with(|buffer| { - edit in thrussh/src/negotiation.rs at line 21
use openssl::rand; - edit in thrussh/src/negotiation.rs at line 23
use rand::RngCore; - edit in thrussh/src/negotiation.rs at line 87
#[cfg(feature = "openssl")] - edit in thrussh/src/negotiation.rs at line 89
#[cfg(not(feature = "openssl"))]use thrussh_keys::key::{ED25519}; - edit in thrussh/src/negotiation.rs at line 96
#[cfg(feature = "openssl")] - edit in thrussh/src/negotiation.rs at line 106
#[cfg(feature = "openssl")] - replacement in thrussh/src/negotiation.rs at line 234
rand::rand_bytes(&mut cookie)?;rand::thread_rng().fill_bytes(&mut cookie); - edit in thrussh/src/lib.rs at line 308
type Sha256Hash = generic_array::GenericArray<u8, <sha2::Sha256 as digest::FixedOutputDirty>::OutputSize>; - edit in thrussh/src/lib.rs at line 428
#[cfg(feature = "openssl")] - edit in thrussh/src/key.rs at line 32
#[cfg(feature = "openssl")] - edit in thrussh/src/key.rs at line 55
#[cfg(feature = "openssl")] - edit in thrussh/src/kex.rs at line 20
#[cfg(feature = "openssl")] - edit in thrussh/src/kex.rs at line 25
use rand::RngCore; - edit in thrussh/src/kex.rs at line 78
use openssl::rand::*; - replacement in thrussh/src/kex.rs at line 80
rand_bytes(&mut server_secret.0)?;rand::thread_rng().fill_bytes(&mut server_secret.0); - edit in thrussh/src/kex.rs at line 99
use openssl::rand::*; - replacement in thrussh/src/kex.rs at line 101
rand_bytes(&mut client_secret.0)?;rand::thread_rng().fill_bytes(&mut client_secret.0); - replacement in thrussh/src/kex.rs at line 133
) -> Result<openssl::hash::DigestBytes, crate::Error> {) -> Result<crate::Sha256Hash, crate::Error> { - replacement in thrussh/src/kex.rs at line 148
use openssl::hash::*;let hash = {let mut hasher = Hasher::new(MessageDigest::sha256())?;hasher.update(&buffer)?;hasher.finish()?};Ok(hash)use sha2::Digest;let mut hasher = sha2::Sha256::new();hasher.update(&buffer);Ok(hasher.finalize()) - replacement in thrussh/src/kex.rs at line 157
session_id: &openssl::hash::DigestBytes,exchange_hash: &openssl::hash::DigestBytes,session_id: &crate::Sha256Hash,exchange_hash: &crate::Sha256Hash, - replacement in thrussh/src/kex.rs at line 182
use openssl::hash::*;let hash = {let mut hasher = Hasher::new(MessageDigest::sha256())?;hasher.update(&buffer)?;hasher.finish()?let hash = {use sha2::Digest;let mut hasher = sha2::Sha256::new();hasher.update(&buffer[..]);hasher.finalize() - replacement in thrussh/src/kex.rs at line 199
let mut hasher = Hasher::new(MessageDigest::sha256())?;hasher.update(&buffer)?;hasher.finish()?use sha2::Digest;let mut hasher = sha2::Sha256::new();hasher.update(&buffer[..]);hasher.finalize() - replacement in thrussh/Cargo.toml at line 49[3.64]→[3.427105:427122](∅→∅),[3.830]→[3.427105:427122](∅→∅),[3.1708]→[3.427105:427122](∅→∅),[3.24283]→[3.427105:427122](∅→∅),[3.427105]→[3.427105:427122](∅→∅)
openssl = "0.10"openssl = { version = "0.10", optional = true } - edit in thrussh/Cargo.toml at line 56
rand = "0.8"sha2 = "0.9"generic-array = "0.14"digest = "0.9"