securitymode
import "github.com/TheManticoreProject/Manticore/network/smb/smb_v20/securitymode"
Index
type SecurityMode
SecurityMode specifies whether SMB signing is enabled or required. It appears as a 2-byte field in SMB2 NEGOTIATE and as a 1-byte field in SMB2 SESSION_SETUP; the bit values are identical in both.
type SecurityMode uint16
const (
// SMB2_NEGOTIATE_SIGNING_ENABLED indicates that security signatures are
// enabled.
SMB2_NEGOTIATE_SIGNING_ENABLED SecurityMode = 0x0001
// SMB2_NEGOTIATE_SIGNING_REQUIRED indicates that security signatures are
// required.
SMB2_NEGOTIATE_SIGNING_REQUIRED SecurityMode = 0x0002
)
func (SecurityMode) IsSigningEnabled
func (s SecurityMode) IsSigningEnabled() bool
IsSigningEnabled reports whether the signing-enabled bit is set.
func (SecurityMode) IsSigningRequired
func (s SecurityMode) IsSigningRequired() bool
IsSigningRequired reports whether the signing-required bit is set.
func (SecurityMode) String
func (s SecurityMode) String() string
String returns a pipe-separated list of the set mode names, or “NONE”.