diff options
author | Cy Schubert <cy@FreeBSD.org> | 2002-06-26 04:49:07 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2002-06-26 04:49:07 +0000 |
commit | 60b5569db451487607fa456025ca04513d794c22 (patch) | |
tree | e1817ff3e7e378e6a0f2089aabb2cf4878fee1cd /security/krb5-17 | |
parent | add p5-Tie-Syslog 1.07 (diff) |
Fix problem with V4 keys. We should get KRB5_KDB_NO_MATCHING_KEY, not
ENOENT. Obtained from /cvs/krbdev/krb5/src/kdc/kdc_preauth.c,v rev 5.31
in MIT KRB5 tree (fix etype info; wrong termination condition used in
get_etype_info).
Obtained from: Sam Hartman <hartmans@mit.edu>
Notes
Notes:
svn path=/head/; revision=61979
Diffstat (limited to 'security/krb5-17')
-rw-r--r-- | security/krb5-17/Makefile | 1 | ||||
-rw-r--r-- | security/krb5-17/files/patch-kdc::kdc_preauth.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/security/krb5-17/Makefile b/security/krb5-17/Makefile index 54cf283bec6b..a6cd65ee7a85 100644 --- a/security/krb5-17/Makefile +++ b/security/krb5-17/Makefile @@ -7,6 +7,7 @@ PORTNAME= krb5 PORTVERSION= 1.2.5 +PORTREVISION= 1 CATEGORIES= security .if defined(USA_RESIDENT) && ${USA_RESIDENT} == "NO" MASTER_SITES= http://www.crypto-publish.org/dist/mit-kerberos5/ diff --git a/security/krb5-17/files/patch-kdc::kdc_preauth.c b/security/krb5-17/files/patch-kdc::kdc_preauth.c new file mode 100644 index 000000000000..4e84ee941e85 --- /dev/null +++ b/security/krb5-17/files/patch-kdc::kdc_preauth.c @@ -0,0 +1,16 @@ +Index: kdc/kdc_preauth.c +===================================================================== +RCS file: /cvs/krbdev/krb5/src/kdc/kdc_preauth.c,v +retrieving revision 5.30 +diff -u -r5.30 kdc_preauth.c +--- kdc/kdc_preauth.c 2001/06/21 13:46:15 5.30 ++++ kdc/kdc_preauth.c 2002/06/24 22:28:01 +@@ -543,7 +543,7 @@ + while (1) { + retval = krb5_dbe_search_enctype(context, client, &start, -1, + -1, 0, &client_key); +- if (retval == ENOENT) ++ if (retval == KRB5_KDB_NO_MATCHING_KEY) + break; + if (retval) + goto cleanup; |