diff options
author | cy <cy@FreeBSD.org> | 2002-06-26 04:49:07 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2002-06-26 04:49:07 +0000 |
commit | 73528aa019850465910fad4db35a20434ffea2ac (patch) | |
tree | 0c16a61a259532485d92cdd904dac39e264e2bab /security/krb5-appl | |
parent | 61ccf6328ded875f4916c1d7b5684a3860e0bd1d (diff) | |
download | FreeBSD-ports-73528aa019850465910fad4db35a20434ffea2ac.zip FreeBSD-ports-73528aa019850465910fad4db35a20434ffea2ac.tar.gz |
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>
Diffstat (limited to 'security/krb5-appl')
-rw-r--r-- | security/krb5-appl/Makefile | 1 | ||||
-rw-r--r-- | security/krb5-appl/files/patch-kdc::kdc_preauth.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/security/krb5-appl/Makefile b/security/krb5-appl/Makefile index 54cf283..a6cd65e 100644 --- a/security/krb5-appl/Makefile +++ b/security/krb5-appl/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-appl/files/patch-kdc::kdc_preauth.c b/security/krb5-appl/files/patch-kdc::kdc_preauth.c new file mode 100644 index 0000000..4e84ee9 --- /dev/null +++ b/security/krb5-appl/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; |