summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 0d7a0e3bd..e1b6512b4 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -72,6 +72,7 @@ extern struct monitor *pmonitor;
72extern Buffer input, output; 72extern Buffer input, output;
73extern Buffer loginmsg; 73extern Buffer loginmsg;
74extern ServerOptions options; 74extern ServerOptions options;
75extern Buffer loginmsg;
75 76
76int 77int
77mm_is_monitor(void) 78mm_is_monitor(void)
@@ -716,6 +717,7 @@ mm_do_pam_account(void)
716{ 717{
717 Buffer m; 718 Buffer m;
718 u_int ret; 719 u_int ret;
720 char *msg;
719 721
720 debug3("%s entering", __func__); 722 debug3("%s entering", __func__);
721 if (!options.use_pam) 723 if (!options.use_pam)
@@ -727,6 +729,9 @@ mm_do_pam_account(void)
727 mm_request_receive_expect(pmonitor->m_recvfd, 729 mm_request_receive_expect(pmonitor->m_recvfd,
728 MONITOR_ANS_PAM_ACCOUNT, &m); 730 MONITOR_ANS_PAM_ACCOUNT, &m);
729 ret = buffer_get_int(&m); 731 ret = buffer_get_int(&m);
732 msg = buffer_get_string(&m, NULL);
733 buffer_append(&loginmsg, msg, strlen(msg));
734 xfree(msg);
730 735
731 buffer_free(&m); 736 buffer_free(&m);
732 737
@@ -1098,6 +1103,36 @@ mm_auth_rsa_verify_response(Key *key, BIGNUM *p, u_char response[16])
1098 return (success); 1103 return (success);
1099} 1104}
1100 1105
1106#ifdef SSH_AUDIT_EVENTS
1107void
1108mm_audit_event(ssh_audit_event_t event)
1109{
1110 Buffer m;
1111
1112 debug3("%s entering", __func__);
1113
1114 buffer_init(&m);
1115 buffer_put_int(&m, event);
1116
1117 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUDIT_EVENT, &m);
1118 buffer_free(&m);
1119}
1120
1121void
1122mm_audit_run_command(const char *command)
1123{
1124 Buffer m;
1125
1126 debug3("%s entering command %s", __func__, command);
1127
1128 buffer_init(&m);
1129 buffer_put_cstring(&m, command);
1130
1131 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUDIT_COMMAND, &m);
1132 buffer_free(&m);
1133}
1134#endif /* SSH_AUDIT_EVENTS */
1135
1101#ifdef GSSAPI 1136#ifdef GSSAPI
1102OM_uint32 1137OM_uint32
1103mm_ssh_gssapi_server_ctx(Gssctxt **ctx, gss_OID goid) 1138mm_ssh_gssapi_server_ctx(Gssctxt **ctx, gss_OID goid)