summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index d8814682a..63d158b67 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1217,4 +1217,25 @@ mm_ssh_gssapi_userok(char *user)
1217 debug3("%s: user %sauthenticated",__func__, authenticated ? "" : "not "); 1217 debug3("%s: user %sauthenticated",__func__, authenticated ? "" : "not ");
1218 return (authenticated); 1218 return (authenticated);
1219} 1219}
1220
1221OM_uint32
1222mm_ssh_gssapi_sign(Gssctxt *ctx, gss_buffer_desc *data, gss_buffer_desc *hash)
1223{
1224 Buffer m;
1225 OM_uint32 major;
1226
1227 buffer_init(&m);
1228 buffer_put_string(&m, data->value, data->length);
1229
1230 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_GSSSIGN, &m);
1231 mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_GSSSIGN, &m);
1232
1233 major = buffer_get_int(&m);
1234 hash->value = buffer_get_string(&m, &hash->length);
1235
1236 buffer_free(&m);
1237
1238 return(major);
1239}
1240
1220#endif /* GSSAPI */ 1241#endif /* GSSAPI */