aboutsummaryrefslogtreecommitdiff
path: root/libssh/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/options.c')
-rw-r--r--libssh/options.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libssh/options.c b/libssh/options.c
index 755ef505..0fa3e895 100644
--- a/libssh/options.c
+++ b/libssh/options.c
@@ -762,13 +762,14 @@ int ssh_options_allow_ssh2(SSH_OPTIONS *opt, int allow) {
*
* @warning The message string may contain format string characters.
*/
-int ssh_options_set_log_function(SSH_OPTIONS *opt,
- void (*callback)(const char *message, SSH_SESSION *session, int priority)) {
- if (opt == NULL || callback == NULL) {
+int ssh_options_set_log_function(SSH_OPTIONS *opt, ssh_log_callback cb,
+ void *userdata) {
+ if (opt == NULL || cb == NULL) {
return -1;
}
- opt->log_function = callback;
+ opt->log_function = cb;
+ opt->log_userdata = userdata;
return 0;
}