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