CloudSoda / go-smb2

Client implementation of the SMB 2 & 3 protocols
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

initator members public #11

Closed deitch closed 1 year ago

deitch commented 1 year ago

The members of the Initiator interface are private. That makes it impossible to plug in other initiators that might have additional capabilities.

This PR changes those to public, so that you can plug others ones in. It also changes the one implementation, NTLMInitiator, to use public methods so it implements the modified interface. Finally, it changes the one place (spnego.go) that references it to use the modified interface members.

This does not change the go-smb2 functionality at all, but does make it more pluggable.

arashpayan commented 1 year ago

Thank you @deitch.