ssh_auth_gssapi_mic_callback typedef

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

@brief SSH authentication callback. Tries to authenticates user with the "gssapi-with-mic" method @param session Current session handler @param user Username of the user (can be spoofed) @param principal Authenticated principal of the user, including realm. @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. @warning Implementations should verify that parameter user matches in some way the principal. user and principal can be different. Only the latter is guaranteed to be safe.

Implementation

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