diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 20:42:47 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 20:42:47 +0000 |
commit | 9ad7b718d42e43f3a285fcbc8f91193931fce324 (patch) | |
tree | 95afe9b315fb73da54752d5bb71c682485b2d370 /monitor_wrap.c | |
parent | 5d05471f6657646d1d6500c7c43134462c407ee6 (diff) |
import openssh-4.0p1-gssapikex.patch
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 e1b6512b4..482ff5bc3 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 */ |