summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 6749d3f93..29cafc751 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -272,6 +272,23 @@ mm_inform_authserv(char *service, char *style, char *role)
272 buffer_free(&m); 272 buffer_free(&m);
273} 273}
274 274
275/* Inform the privileged process about role */
276
277void
278mm_inform_authrole(char *role)
279{
280 Buffer m;
281
282 debug3("%s entering", __func__);
283
284 buffer_init(&m);
285 buffer_put_cstring(&m, role ? role : "");
286
287 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHROLE, &m);
288
289 buffer_free(&m);
290}
291
275/* Do the password authentication */ 292/* Do the password authentication */
276int 293int
277mm_auth_password(Authctxt *authctxt, char *password) 294mm_auth_password(Authctxt *authctxt, char *password)