MCPcopy Create free account
hub / github.com/apache/cloudstack / _negotiateTightUnixAuth

Method _negotiateTightUnixAuth

systemvm/agent/noVNC/core/rfb.js:2021–2038  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = {

Callers 1

Calls 4

dispatchEventMethod · 0.80
sQpush32Method · 0.80
sQpushStringMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected