smb-server 0.12.1

SMB2/3 file-sharing server library with pluggable storage backends.
Documentation
# Signing and encryption

## Signing

| Dialect | Algorithm |
|---|---|
| SMB 2.0.2, 2.1 | HMAC-SHA-256 |
| SMB 3.x | AES-CMAC |

`require_signing(true)` on the builder, off by default:

- every authenticated session must sign
- NEGOTIATE says signing is required

With it off, a client can still require signing for its own sessions. Anonymous and guest sessions are never signed.

## Encryption

| Dialect | Ciphers |
|---|---|
| SMB 3.1.1 | AES-128 or AES-256, CCM or GCM |
| SMB 3.0, 3.0.2 | AES-128-CCM, for clients that advertise encryption |

A client that sends encrypted requests gets encrypted replies.

Require it on one share:

```rust
Share::new("secret", LocalFsBackend::new("/srv/secret")?)
    .user("alice", Access::ReadWrite)
    .encrypt_data()
```

Require it for every session: `encrypt_data(true)` on the builder.

Where encryption is required, these clients are refused:

- SMB 2.x
- SMB 3.x without a cipher in common
- Anonymous and guest sessions: they get a session but no tree connection

`reject_unencrypted_access(false)` on the builder serves all of these unencrypted instead.

## Storage encryption

`encrypt_data` encrypts the SMB 3.x traffic between client and server. `EncryptedBackend` stores the file contents, and by default names, encrypted in its inner backend. A share can use both. See [encrypted storage](encrypted-storage.md).

## Logon throttle

See [Limits and timeouts](limits.md#logon-throttle).