aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c
index d62e3b3..0c8dd4c 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -44,6 +44,11 @@
#include "libssh/dh.h"
#include "libssh/messages.h"
+#define set_status(session, status) do {\
+ if (session->callbacks && session->callbacks->connect_status_function) \
+ session->callbacks->connect_status_function(session->callbacks->userdata, status); \
+ } while (0)
+
/**
* @addtogroup libssh_server
*