Skip to content

SshAuthStateMachine

[Source]

Client-side auth state machine. Tries methods in order.

class ref SshAuthStateMachine

Constructors

create

[Source]

new ref create(
  username: String val,
  methods: Array[SshAuthMethod val] val)
: SshAuthStateMachine ref^

Parameters

Returns


Public Functions

current_method

[Source]

fun ref current_method()
: (SshAuthMethod val | None val)

Returns


next_request

[Source]

Generate the next SSH_MSG_USERAUTH_REQUEST payload.

fun ref next_request()
: (Array[U8 val] val | SshAuthRejected val)

Returns


handle_pk_ok

[Source]

Server accepted our public key query. Now send the actual auth with signature per RFC 4252 section 7.

fun ref handle_pk_ok(
  session_id: Array[U8 val] val)
: (Array[U8 val] val | SshAuthRejected val)

Parameters

Returns


handle_failure

[Source]

Move to next method and generate request, or fail.

fun ref handle_failure()
: (Array[U8 val] val | SshAuthRejected val)

Returns


handle_success

[Source]

Auth succeeded. Nothing to do.

fun ref handle_success()
: None val

Returns