diff options
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index 10a79c035..c7ba86ffc 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.27 2003/06/28 16:23:06 deraadt Exp $"); | 28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.28 2003/07/22 13:35:22 markus Exp $"); |
29 | 29 | ||
30 | #include <openssl/bn.h> | 30 | #include <openssl/bn.h> |
31 | #include <openssl/dh.h> | 31 | #include <openssl/dh.h> |
@@ -1043,42 +1043,6 @@ mm_auth_rsa_verify_response(Key *key, BIGNUM *p, u_char response[16]) | |||
1043 | return (success); | 1043 | return (success); |
1044 | } | 1044 | } |
1045 | 1045 | ||
1046 | #ifdef KRB4 | ||
1047 | int | ||
1048 | mm_auth_krb4(Authctxt *authctxt, void *_auth, char **client, void *_reply) | ||
1049 | { | ||
1050 | KTEXT auth, reply; | ||
1051 | Buffer m; | ||
1052 | u_int rlen; | ||
1053 | int success = 0; | ||
1054 | char *p; | ||
1055 | |||
1056 | debug3("%s entering", __func__); | ||
1057 | auth = _auth; | ||
1058 | reply = _reply; | ||
1059 | |||
1060 | buffer_init(&m); | ||
1061 | buffer_put_string(&m, auth->dat, auth->length); | ||
1062 | |||
1063 | mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_KRB4, &m); | ||
1064 | mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_KRB4, &m); | ||
1065 | |||
1066 | success = buffer_get_int(&m); | ||
1067 | if (success) { | ||
1068 | *client = buffer_get_string(&m, NULL); | ||
1069 | p = buffer_get_string(&m, &rlen); | ||
1070 | if (rlen >= MAX_KTXT_LEN) | ||
1071 | fatal("%s: reply from monitor too large", __func__); | ||
1072 | reply->length = rlen; | ||
1073 | memcpy(reply->dat, p, rlen); | ||
1074 | memset(p, 0, rlen); | ||
1075 | xfree(p); | ||
1076 | } | ||
1077 | buffer_free(&m); | ||
1078 | return (success); | ||
1079 | } | ||
1080 | #endif | ||
1081 | |||
1082 | #ifdef KRB5 | 1046 | #ifdef KRB5 |
1083 | int | 1047 | int |
1084 | mm_auth_krb5(void *ctx, void *argp, char **userp, void *resp) | 1048 | mm_auth_krb5(void *ctx, void *argp, char **userp, void *resp) |