ssh_auth_pubkey_callback typedef

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

@brief SSH authentication callback. @param session Current session handler @param user User that wants to authenticate @param pubkey public key used for authentication @param signature_state SSH_PUBLICKEY_STATE_NONE if the key is not signed (simple public key probe), SSH_PUBLICKEY_STATE_VALID if the signature is valid. Others values should be replied with a SSH_AUTH_DENIED. @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_pubkey_callback = ffi.Pointer<
    ffi.NativeFunction<
        ffi.Int32 Function(
            ffi.Int32, ffi.Pointer<ffi.Int8>, ffi.Pointer<ssh_key_struct>, ffi.Int8, ffi.Pointer<ffi.Void>)>>;