aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2001-06-12 03:43:47 +0000
committerBrian Feldman <green@FreeBSD.org>2001-06-12 03:43:47 +0000
commite7edf5a1164e3350424da707f0d3113d19b8ce5d (patch)
treea752c16c62b4e1168738d4a4446c48330ccfaf8d /crypto
parent7dd144d7156a715f3a0ff1801c5e687a931bfe01 (diff)
downloadsrc-e7edf5a1164e3350424da707f0d3113d19b8ce5d.tar.gz
src-e7edf5a1164e3350424da707f0d3113d19b8ce5d.zip
Notes
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/auth-krb5.c1
-rw-r--r--crypto/openssh/auth.h1
-rw-r--r--crypto/openssh/auth1.c4
3 files changed, 4 insertions, 2 deletions
diff --git a/crypto/openssh/auth-krb5.c b/crypto/openssh/auth-krb5.c
index 0fb0ea21b9af..efe93765f07d 100644
--- a/crypto/openssh/auth-krb5.c
+++ b/crypto/openssh/auth-krb5.c
@@ -6,6 +6,7 @@
#include "includes.h"
#include "ssh.h"
+#include "ssh1.h"
#include "packet.h"
#include "xmalloc.h"
diff --git a/crypto/openssh/auth.h b/crypto/openssh/auth.h
index cd27684a7a7c..5996480824f6 100644
--- a/crypto/openssh/auth.h
+++ b/crypto/openssh/auth.h
@@ -99,6 +99,7 @@ int auth_rsa_challenge_dialog(RSA *pk);
#ifdef KRB5
#include <krb5.h>
+#include <krb.h>
int auth_krb5(); /* XXX Doplnit prototypy */
int auth_krb5_tgt();
int krb5_init();
diff --git a/crypto/openssh/auth1.c b/crypto/openssh/auth1.c
index 0e494eb3de4d..d5d15ef09ed6 100644
--- a/crypto/openssh/auth1.c
+++ b/crypto/openssh/auth1.c
@@ -416,8 +416,8 @@ do_authloop(Authctxt *authctxt)
tgt.data = packet_get_string(&tgtlen);
tgt.length = tgtlen;
- if (!auth_krb5_tgt(luser, &tgt, tkt_client))
- verbose ("Kerberos V5 TGT refused for %.100s", luser);
+ if (!auth_krb5_tgt(pw->pw_name, &tgt, tkt_client))
+ verbose ("Kerberos V5 TGT refused for %.100s", pw->pw_name);
xfree(tgt.data);
break;