libssh2_session_callback_set - Man Page

set a callback function

Synopsis

#include <libssh2.h>

void *
libssh2_session_callback_set(LIBSSH2_SESSION *session,
                             int cbtype, void *callback);

Description

This function is DEPRECATED in 1.11.1. Use the libssh2_session_callback_set2(3) function instead!

This implementation is expecting and returning a data pointer for callback functions.

For the details about the replacement function, see libssh2_session_callback_set2(3) which is expecting and returning a function pointer.

Return Value

Pointer to previous callback handler. Returns NULL if no prior callback handler was set or the callback type was unknown.

See Also

libssh2_session_callback_set2(3) libssh2_session_init_ex(3) libssh2_agent_sign(3)

Info

1 Jun 2007 libssh2 0.15