From e874f84fdb6eb83d905a72b35d87398374594b97 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 5 Jun 2009 19:58:50 +0200 Subject: more regressions found at runtime on alic1c --- package/ppp/patches/patch-pppd_chap_ms_c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/ppp/patches/patch-pppd_chap_ms_c (limited to 'package/ppp/patches/patch-pppd_chap_ms_c') diff --git a/package/ppp/patches/patch-pppd_chap_ms_c b/package/ppp/patches/patch-pppd_chap_ms_c new file mode 100644 index 000000000..c20fc8163 --- /dev/null +++ b/package/ppp/patches/patch-pppd_chap_ms_c @@ -0,0 +1,22 @@ +--- ppp-2.4.4.orig/pppd/chap_ms.c 2006-05-21 13:56:40.000000000 +0200 ++++ ppp-2.4.4/pppd/chap_ms.c 2009-06-05 19:12:00.000000000 +0200 +@@ -897,13 +897,17 @@ set_mppe_enc_types(int policy, int types + /* + * Disable undesirable encryption types. Note that we don't ENABLE + * any encryption types, to avoid overriding manual configuration. ++ * ++ * It seems that 56 bit keys are unsupported in MS-RADIUS (see RFC 2548) + */ + switch(types) { + case MPPE_ENC_TYPES_RC4_40: +- ccp_wantoptions[0].mppe &= ~MPPE_OPT_128; /* disable 128-bit */ ++ ccp_wantoptions[0].mppe_128 = 0; /* disable 128-bit */ ++ ccp_wantoptions[0].mppe_56 = 0; /* disable 56-bit */ + break; + case MPPE_ENC_TYPES_RC4_128: +- ccp_wantoptions[0].mppe &= ~MPPE_OPT_40; /* disable 40-bit */ ++ ccp_wantoptions[0].mppe_56 = 0; /* disable 56-bit */ ++ ccp_wantoptions[0].mppe_40 = 0; /* disable 40-bit */ + break; + default: + break; -- cgit v1.2.3