diff options
author | assar <assar@FreeBSD.org> | 2001-03-04 02:22:04 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-03-04 02:22:04 +0000 |
commit | 4e2eb78ecad4a6b5a760ceda4af304065081189c (patch) | |
tree | 6d42c4750bdcef3dce92b8a7ffe828efcceed7d8 /crypto/openssh/sshconnect.c | |
parent | 3a29c2f4df782f7fddae75438b810805211a8ce8 (diff) | |
download | FreeBSD-src-4e2eb78ecad4a6b5a760ceda4af304065081189c.zip FreeBSD-src-4e2eb78ecad4a6b5a760ceda4af304065081189c.tar.gz |
Add code for being compatible with ssh.com's krb5 authentication.
It is done by using the same ssh messages for v4 and v5 authentication
(since the ssh.com does not now anything about v4) and looking at the
contents after unpacking it to see if it is v4 or v5.
Based on code from Björn Grönvall <bg@sics.se>
PR: misc/20504
Diffstat (limited to 'crypto/openssh/sshconnect.c')
-rw-r--r-- | crypto/openssh/sshconnect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/openssh/sshconnect.c b/crypto/openssh/sshconnect.c index 367c203..b2906cc 100644 --- a/crypto/openssh/sshconnect.c +++ b/crypto/openssh/sshconnect.c @@ -742,7 +742,7 @@ try_krb5_authentication(krb5_context *context, krb5_auth_context *auth_context) goto out; } - packet_start(SSH_CMSG_AUTH_KRB5); + packet_start(SSH_CMSG_AUTH_KERBEROS); packet_put_string((char *) ap.data, ap.length); packet_send(); packet_write_wait(); @@ -753,13 +753,13 @@ try_krb5_authentication(krb5_context *context, krb5_auth_context *auth_context) type = packet_read(&payload_len); switch (type) { case SSH_SMSG_FAILURE: - /* Should really be SSH_SMSG_AUTH_KRB5_FAILURE */ + /* Should really be SSH_SMSG_AUTH_KERBEROS_FAILURE */ debug("Kerberos V5 authentication failed."); ret = 0; break; - case SSH_SMSG_AUTH_KRB5_RESPONSE: - /* SSH_SMSG_AUTH_KRB5_SUCCESS */ + case SSH_SMSG_AUTH_KERBEROS_RESPONSE: + /* SSH_SMSG_AUTH_KERBEROS_SUCCESS */ debug("Kerberos V5 authentication accepted."); /* Get server's response. */ @@ -870,7 +870,7 @@ send_krb5_tgt(krb5_context context, krb5_auth_context auth_context) goto out; } - packet_start(SSH_CMSG_HAVE_KRB5_TGT); + packet_start(SSH_CMSG_HAVE_KERBEROS_TGT); packet_put_string((char *)outbuf.data, outbuf.length); packet_send(); packet_write_wait(); |