1
0

patch-pppd_chap_ms_c 954 B

12345678910111213141516171819202122
  1. --- ppp-2.4.4.orig/pppd/chap_ms.c 2006-05-21 13:56:40.000000000 +0200
  2. +++ ppp-2.4.4/pppd/chap_ms.c 2009-06-05 19:12:00.000000000 +0200
  3. @@ -897,13 +897,17 @@ set_mppe_enc_types(int policy, int types
  4. /*
  5. * Disable undesirable encryption types. Note that we don't ENABLE
  6. * any encryption types, to avoid overriding manual configuration.
  7. + *
  8. + * It seems that 56 bit keys are unsupported in MS-RADIUS (see RFC 2548)
  9. */
  10. switch(types) {
  11. case MPPE_ENC_TYPES_RC4_40:
  12. - ccp_wantoptions[0].mppe &= ~MPPE_OPT_128; /* disable 128-bit */
  13. + ccp_wantoptions[0].mppe_128 = 0; /* disable 128-bit */
  14. + ccp_wantoptions[0].mppe_56 = 0; /* disable 56-bit */
  15. break;
  16. case MPPE_ENC_TYPES_RC4_128:
  17. - ccp_wantoptions[0].mppe &= ~MPPE_OPT_40; /* disable 40-bit */
  18. + ccp_wantoptions[0].mppe_56 = 0; /* disable 56-bit */
  19. + ccp_wantoptions[0].mppe_40 = 0; /* disable 40-bit */
  20. break;
  21. default:
  22. break;