type auth_state = | Preauth| Inprogress of string * string * int| Done
type pubkeyauth = {pubkey : Hostkey.pub;session_id : string;service : string;sig_alg : Hostkey.alg;signed : string;
}val verify_pubkeyauth : user:string -> pubkeyauth -> booltype userauth = | Password of string| Pubkey of pubkeyauth
type event = | Channel_exec of int32 * string| Channel_subsystem of int32 * string| Channel_data of int32 * Cstruct.t| Channel_eof of int32| Disconnected of string| Userauth of string * userauth| Pty of string * int32 * int32 * int32 * int32 * string| Pty_set of int32 * int32 * int32 * int32| Set_env of string * string| Start_shell of int32
val pp_event : Stdlib.Format.formatter -> event -> unitval guard_msg : t -> Ssh.message -> (unit, string) Stdlib.resultval of_new_keys_ctos : t -> (t, string) Stdlib.resultval of_new_keys_stoc : t -> (t, string) Stdlib.resultval should_rekey : t -> Mtime.t -> boolval pop_msg2 :
t ->
Cstruct.t ->
(t * Ssh.message option * Cstruct.t, string) Stdlib.resultval make_noreply : 'a -> ('a * 'b list * 'c option, 'd) Stdlib.resultval make_reply : 'a -> 'b -> ('a * 'b list * 'c option, 'd) Stdlib.resultval make_replies : 'a -> 'b -> ('a * 'b * 'c option, 'd) Stdlib.resultval make_event : 'a -> 'b -> ('a * 'c list * 'b option, 'd) Stdlib.resultval make_reply_with_event :
'a ->
'b ->
'c ->
('a * 'b list * 'c option, 'd) Stdlib.resultval reject_userauth : t -> 'a -> (t * Ssh.message, string) Stdlib.resultval accept_userauth : t -> 'a -> (t * Ssh.message, string) Stdlib.resultval output_msg : t -> Ssh.message -> (t * Cstruct.t, string) Stdlib.result