func (h Host) isOp(conn sshd.Connection) bool { key := conn.PublicKey() if key == nil { return false } return h.auth.IsOp(key) }
// NewIdentity returns a new identity object from an sshd.Connection. func NewIdentity(conn sshd.Connection) *Identity { return &Identity{ Connection: conn, id: chat.SanitizeName(conn.Name()), } }