forked from hirochachacha/go-smb2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feature.go
43 lines (33 loc) · 867 Bytes
/
feature.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package smb2
import (
. "github.com/hirochachacha/go-smb2/internal/smb2"
)
// client
const (
clientCapabilities = SMB2_GLOBAL_CAP_LARGE_MTU | SMB2_GLOBAL_CAP_ENCRYPTION
)
var (
clientHashAlgorithms = []uint16{SHA512}
clientCiphers = []uint16{AES128GCM, AES128CCM}
clientDialects = []uint16{SMB311, SMB302, SMB300, SMB210, SMB202}
)
const (
clientMaxCreditBalance = 128
)
const (
clientMaxSymlinkDepth = 8
)
// server
const (
serverCapabilities = SMB2_GLOBAL_CAP_LARGE_MTU | SMB2_GLOBAL_CAP_ENCRYPTION
)
var ( // ordered by priority
serverHashAlgorithms = []uint16{SHA512}
serverCiphers = []uint16{AES128GCM, AES128CCM}
serverDialects = []uint16{SMB311, SMB302, SMB300, SMB210, SMB202}
)
const (
serverMaxTransactSize = 8 * 1024 * 1024
serverMaxReadSize = 8 * 1024 * 1024
serverMaxWriteSize = 8 * 1024 * 1024
)