github.com/amitbet/vnc2video@v0.0.0-20190616012314-9d50b9dab1d9/security_none.go (about) 1 package vnc2video 2 3 type ClientAuthNone struct{} 4 5 func (*ClientAuthNone) Type() SecurityType { 6 return SecTypeNone 7 } 8 9 func (*ClientAuthNone) SubType() SecuritySubType { 10 return SecSubTypeUnknown 11 } 12 13 func (*ClientAuthNone) Auth(conn Conn) error { 14 return nil 15 } 16 17 // ServerAuthNone is the "none" authentication. See 7.2.1. 18 type ServerAuthNone struct{} 19 20 func (*ServerAuthNone) Type() SecurityType { 21 return SecTypeNone 22 } 23 24 func (*ServerAuthNone) SubType() SecuritySubType { 25 return SecSubTypeUnknown 26 } 27 28 func (*ServerAuthNone) Auth(c Conn) error { 29 return nil 30 }