-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfeature.go
40 lines (32 loc) · 954 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
package smb2
import (
. "github.com/cloudsoda/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
)
// Mapping strategies that can be used when a reserved character is encountered
// in a file name.
type MapChars int
const (
// Don't map reserved characters
MapCharsNone MapChars = 0
// Map reserved characters using the Services for Mac scheme. This is
// equivalent to using the 'mapposix' when mounting a volume in Linux.
MapCharsSFM MapChars = 1
// Map reserved characters using the Services for Unix scheme. This is
// equivalent to using 'mapchars' when mounting a volume in Linux.
MapCharsSFU MapChars = 2
)