smb 0.11.2

A Pure Rust SMB Client implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Placeholder module to be used when all encryption features are disabled.
use super::*;
use crate::crypto::CryptoError;
use smb_msg::EncryptionCipher;

pub const ENCRYPTING_ALGOS: &[EncryptionCipher] = &[];

pub fn make_encrypting_algo(
    encrypting_algorithm: EncryptionCipher,
    _: &[u8],
) -> Result<Box<dyn EncryptingAlgo>, CryptoError> {
    Err(CryptoError::UnsupportedEncryptionAlgorithm(
        encrypting_algorithm,
    ))
}