ssh_auth_password_callback typedef

ssh_auth_password_callback = Pointer<NativeFunction<Int32 Function(Int32, Pointer<Int8>, Pointer<Int8>, Pointer<Void>)>>

@brief SSH authentication callback. @param session Current session handler @param user User that wants to authenticate @param password Password used for authentication @param userdata Userdata to be passed to the callback function. @returns SSH_AUTH_SUCCESS Authentication is accepted. @returns SSH_AUTH_PARTIAL Partial authentication, more authentication means are needed. @returns SSH_AUTH_DENIED Authentication failed.

Implementation

typedef ssh_auth_password_callback = ffi.Pointer<
    ffi.NativeFunction<
        ffi.Int32 Function(ffi.Int32, ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Void>)>>;