The majority of these patches were inspired from FreeBSD's ports. FreeBSD, along with at least Debian, have removed Kerberos4 due to secuity concerns. From: http://web.mit.edu/kerberos/krb4-end-of-life.html : "Serious protocol flaws[2] have been found in Kerberos 4. These flaws permit attacks which require far less effort than an exhaustive search of the DES key space. These flaws make Kerberos 4 cross-realm authentication an unacceptable security risk and raise serious questions about the security of the entire Kerberos 4 protocol. The known insecurity of DES, combined with the recently discovered protocol flaws, make it extremely inadvisable to rely on the security of version 4 of the Kerberos protocol. These factors motivate the MIT Kerberos Team to remove support for Kerberos version 4 from the MIT implementation of Kerberos." This end-of-life announcement is dated 19 October 2006. I think it's a good question to ask why this package and the packages that depend on it are still in pkgsrc.
16 lines
534 B
C
16 lines
534 B
C
$NetBSD: patch-lib_krb_krb_check_auth.c,v 1.1 2011/11/28 19:33:13 marino Exp $
|
|
|
|
--- lib/krb/krb_check_auth.c.orig 1999-12-02 16:58:42.000000000 +0000
|
|
+++ lib/krb/krb_check_auth.c
|
|
@@ -50,7 +50,11 @@ krb_check_auth(KTEXT packet,
|
|
u_int32_t checksum,
|
|
MSG_DAT *msg_data,
|
|
des_cblock *session,
|
|
+#if defined(__DragonFly__) || defined (__FreeBSD__)
|
|
+ des_key_schedule schedule,
|
|
+#else
|
|
struct des_ks_struct *schedule,
|
|
+#endif
|
|
struct sockaddr_in *laddr,
|
|
struct sockaddr_in *faddr)
|
|
{
|