diff options
author | Colin Watson <cjwatson@debian.org> | 2005-09-14 15:20:11 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-09-14 15:20:11 +0000 |
commit | f88d86e05895671b9d036c26566a41752ec86c31 (patch) | |
tree | 383ab296992965df981866a84ad9cbd5f18866e3 /monitor_wrap.c | |
parent | 2a6f54a2f2f0efe713ee5f6eb9e2099aef0ed516 (diff) |
* Add remaining pieces of Kerberos support (closes: #275472):
- Add GSSAPI key exchange support from
http://www.sxw.org.uk/computing/patches/openssh.html (thanks, Stephen
Frost).
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 21 |
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 | |||
1221 | OM_uint32 | ||
1222 | mm_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 */ |