()
| 2019 | } |
| 2020 | |
| 2021 | _negotiateTightUnixAuth() { |
| 2022 | if (this._rfbCredentials.username === undefined || |
| 2023 | this._rfbCredentials.password === undefined) { |
| 2024 | this.dispatchEvent(new CustomEvent( |
| 2025 | "credentialsrequired", |
| 2026 | { detail: { types: ["username", "password"] } })); |
| 2027 | return false; |
| 2028 | } |
| 2029 | |
| 2030 | this._sock.sQpush32(this._rfbCredentials.username.length); |
| 2031 | this._sock.sQpush32(this._rfbCredentials.password.length); |
| 2032 | this._sock.sQpushString(this._rfbCredentials.username); |
| 2033 | this._sock.sQpushString(this._rfbCredentials.password); |
| 2034 | this._sock.flush(); |
| 2035 | |
| 2036 | this._rfbInitState = "SecurityResult"; |
| 2037 | return true; |
| 2038 | } |
| 2039 | |
| 2040 | _negotiateTightTunnels(numTunnels) { |
| 2041 | const clientSupportedTunnelTypes = { |
no test coverage detected