aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb5-appl
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2002-06-26 12:49:07 +0800
committercy <cy@FreeBSD.org>2002-06-26 12:49:07 +0800
commit73528aa019850465910fad4db35a20434ffea2ac (patch)
tree0c16a61a259532485d92cdd904dac39e264e2bab /security/krb5-appl
parent61ccf6328ded875f4916c1d7b5684a3860e0bd1d (diff)
downloadfreebsd-ports-gnome-73528aa019850465910fad4db35a20434ffea2ac.tar.gz
freebsd-ports-gnome-73528aa019850465910fad4db35a20434ffea2ac.tar.zst
freebsd-ports-gnome-73528aa019850465910fad4db35a20434ffea2ac.zip
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/Makefile1
-rw-r--r--security/krb5-appl/files/patch-kdc::kdc_preauth.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/security/krb5-appl/Makefile b/security/krb5-appl/Makefile
index 54cf283bec6b..a6cd65ee7a85 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 000000000000..4e84ee941e85
--- /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;