Options
All
  • Public
  • Public/Protected
  • All
Menu

Module rc/handshake

This module handles the initial handshake (i.e. authentication and session allocation) on the remote console port. After the handshake completes, telnet and video would be used.

Index

References

Enumerations

Functions

References

Renames and re-exports negotiateConnection

Functions

  • negotiateConnection(cmd: boolean, socket: Duplex, sessionKey: Uint8Array, rcinfo: RemoteConsoleInfo, options?: { negotiateBusy?: any }): Promise<undefined | true>
  • Negotiates a console / command connection.

    Returns if correct (afterwards you can start the telnet receiver) or throws error.

    If the server returns busy, the negotiateBusy option will be called. It must return a promise resolving to either 'seize', 'share', or anything else (throws error).

    Warning: I'm not sure iLO actually validates the key anymore, it returns OK even when the encKey is wrong, then of course decryption yields gibberish and the decoder fails.

    Parameters

    • cmd: boolean

      true if negotiating a command connection, false if negotiating a remote console connection.

    • socket: Duplex

      recently-opened socket (or duplex stream)

    • sessionKey: Uint8Array
    • rcinfo: RemoteConsoleInfo
    • Optional options: { negotiateBusy?: any }
      • negotiateBusy?:function
        • negotiateBusy(): PromiseLike<"share" | "seize">

    Returns Promise<undefined | true>

Generated using TypeDoc