Rustfmt formatting (with 2021 edition)
[?]
Apr 19, 2022, 7:21 AM
XJ7D5MCK5RMZNJWOEOP5C3K57NQRMRRELFFTURV47RUKCA7BSRCQCDependencies
- [2]
LZA3GTZAis_closed() in thrussh::client - [3]
IKKKVXOKFix most clippy warnings - [4]
FT67GGO4Version bump (Pijul and Thrussh) - [5]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [6]
ATOFE4ZXmore detailed error message when SSH_AUTH_SOCK points to a bad location - [7]
NLPZS76WMake AgentSigner::sign_request_signature return self on error - [8]
MCS77Y4VMaking OpenSSL optional - [9]
7FRJYUI6Reboot because of a bad change
Change contents
- edit in thrussh-keys/src/pem.rs at line 1
use {Error, ErrorKind, KEYTYPE_ED25519, KEYTYPE_RSA, rsa_key_from_components};use std;use thrussh::encoding::Reader;use thrussh::key; - edit in thrussh-keys/src/pem.rs at line 2
use base64::{decode_config, MIME}; - replacement in thrussh-keys/src/pem.rs at line 4
use base64::{decode_config, MIME};use ring; - edit in thrussh-keys/src/pem.rs at line 6
use std;use thrussh::encoding::Reader;use thrussh::key; - replacement in thrussh-keys/src/pem.rs at line 11
use ring;use {rsa_key_from_components, Error, ErrorKind, KEYTYPE_ED25519, KEYTYPE_RSA}; - edit in thrussh-keys/src/pem.rs at line 13
use openssl::symm::{encrypt, decrypt, Cipher, Mode, Crypter};use openssl::hash::{MessageDigest, Hasher}; - replacement in thrussh-keys/src/pem.rs at line 14
use openssl::hash::{Hasher, MessageDigest};use openssl::symm::{decrypt, encrypt, Cipher, Crypter, Mode}; - replacement in thrussh-keys/src/pem.rs at line 55
reader.next().read_sequence(|reader| {oid = Some(reader.next().read_oid()?);Ok(())}).unwrap_or(());reader.next().read_sequence(|reader| {oid = Some(reader.next().read_oid()?);Ok(())}).unwrap_or(()); - replacement in thrussh-keys/src/pem.rs at line 64
}).unwrap_or(());}).unwrap_or(()); - replacement in thrussh-keys/src/pem.rs at line 71
return Err(ErrorKind::CouldNotReadKey.into())return Err(ErrorKind::CouldNotReadKey.into()); - replacement in thrussh-keys/src/pem.rs at line 80
Ok((key::Algorithm::Ed25519(keypair),super::KeyPairComponents::Ed25519(components)))Ok((key::Algorithm::Ed25519(keypair),super::KeyPairComponents::Ed25519(components),)) - replacement in thrussh-keys/src/pem.rs at line 99
super::KeyPairComponents::RSA(super::RSAKeyPairComponents::from_components(&components),),super::KeyPairComponents::RSA(super::RSAKeyPairComponents::from_components(&components,)), - edit in thrussh-keys/src/pem.rs at line 129
- replacement in thrussh-keys/src/pem.rs at line 130
pub fn encode_pkcs8<R:ring::rand::SecureRandom>(pub fn encode_pkcs8<R: ring::rand::SecureRandom>( - replacement in thrussh-keys/src/pem.rs at line 134
rounds: u32rounds: u32, - edit in thrussh-keys/src/pem.rs at line 137
- replacement in thrussh-keys/src/pem.rs at line 156
writer.next().write_oid(&ObjectIdentifier::from_slice(PBES2));writer.next().write_oid(&ObjectIdentifier::from_slice(PBES2)); - replacement in thrussh-keys/src/pem.rs at line 175
writer.next().write_oid(&ObjectIdentifier::from_slice(PBKDF2));writer.next().write_oid(&ObjectIdentifier::from_slice(PBKDF2)); - replacement in thrussh-keys/src/pem.rs at line 182
writer.next().write_oid(&ObjectIdentifier::from_slice(AES256CBC));writer.next().write_oid(&ObjectIdentifier::from_slice(AES256CBC)); - replacement in thrussh-keys/src/pem.rs at line 195
writer.next().write_oid(&ObjectIdentifier::from_slice(HMAC_SHA256));writer.next().write_oid(&ObjectIdentifier::from_slice(HMAC_SHA256)); - replacement in thrussh-keys/src/pem.rs at line 269
let mut dec = decrypt(cipher,&key,Some(&iv[..]),ciphertext)?;let mut dec = decrypt(cipher, &key, Some(&iv[..]), ciphertext)?; - replacement in thrussh-keys/src/pem.rs at line 306
Ok(keygen.and_then(|keygen| {algorithm.map(|algo| Algorithms::Pbes2(keygen, algo))}))Ok(keygen.and_then(|keygen| algorithm.map(|algo| Algorithms::Pbes2(keygen, algo)))) - replacement in thrussh-keys/src/pem.rs at line 325
Ok(digest.map(|digest| {KeyDerivation::Pbkdf2 {salt,rounds,digest,}Ok(digest.map(|digest| KeyDerivation::Pbkdf2 {salt,rounds,digest, - edit in thrussh-keys/src/pem.rs at line 340
- replacement in thrussh-keys/src/key.rs at line 205
PublicKey::Ed25519(ref public) => {sodium::ed25519::verify_detached(sig, buffer, public)}PublicKey::Ed25519(ref public) => sodium::ed25519::verify_detached(sig, buffer, public), - replacement in thrussh-keys/src/bcrypt_pbkdf.rs at line 11
use sha2::{Sha512, Digest};use sha2::{Digest, Sha512}; - replacement in thrussh-keys/src/agent/client.rs at line 51
Err(Error::IO(io_err)) if io_err.kind() == std::io::ErrorKind::NotFound => Err(Error::BadAuthSock),owise => owiseErr(Error::IO(io_err)) if io_err.kind() == std::io::ErrorKind::NotFound => {Err(Error::BadAuthSock)}owise => owise, - replacement in thrussh/src/server/session.rs at line 160
) && enc.rekey.is_none() {) && enc.rekey.is_none(){ - edit in thrussh/src/client/mod.rs at line 213
- replacement in cryptovec/src/lib.rs at line 237[4.434647]→[4.434647:434677](∅→∅),[4.434677]→[3.14700:14753](∅→∅),[3.14753]→[4.434742:434822](∅→∅),[4.434742]→[4.434742:434822](∅→∅)
libc::memset(self.p.add(size) as *mut c_void,0,self.size - size,);libc::memset(self.p.add(size) as *mut c_void, 0, self.size - size); - replacement in cryptovec/src/lib.rs at line 333
let s =unsafe { std::slice::from_raw_parts_mut(self.p.add(cur_size), n_bytes) };let s = unsafe { std::slice::from_raw_parts_mut(self.p.add(cur_size), n_bytes) };