patch-pppd_chap_ms_c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --- ppp-2.4.5.orig/pppd/chap_ms.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/chap_ms.c 2014-03-17 16:13:15.000000000 +0100
  3. @@ -97,22 +97,22 @@
  4. static const char rcsid[] = RCSID;
  5. -static void ascii2unicode __P((char[], int, u_char[]));
  6. -static void NTPasswordHash __P((u_char *, int, u_char[MD4_SIGNATURE_SIZE]));
  7. -static void ChallengeResponse __P((u_char *, u_char *, u_char[24]));
  8. -static void ChapMS_NT __P((u_char *, char *, int, u_char[24]));
  9. -static void ChapMS2_NT __P((u_char *, u_char[16], char *, char *, int,
  10. - u_char[24]));
  11. +static void ascii2unicode (char[], int, u_char[]);
  12. +static void NTPasswordHash (u_char *, int, u_char[MD4_SIGNATURE_SIZE]);
  13. +static void ChallengeResponse (u_char *, u_char *, u_char[24]);
  14. +static void ChapMS_NT (u_char *, char *, int, u_char[24]);
  15. +static void ChapMS2_NT (u_char *, u_char[16], char *, char *, int,
  16. + u_char[24]);
  17. static void GenerateAuthenticatorResponsePlain
  18. - __P((char*, int, u_char[24], u_char[16], u_char *,
  19. - char *, u_char[41]));
  20. + (char*, int, u_char[24], u_char[16], u_char *,
  21. + char *, u_char[41]);
  22. #ifdef MSLANMAN
  23. -static void ChapMS_LANMan __P((u_char *, char *, int, u_char *));
  24. +static void ChapMS_LANMan (u_char *, char *, int, u_char *);
  25. #endif
  26. #ifdef MPPE
  27. -static void Set_Start_Key __P((u_char *, char *, int));
  28. -static void SetMasterKeys __P((char *, int, u_char[24], int));
  29. +static void Set_Start_Key (u_char *, char *, int);
  30. +static void SetMasterKeys (char *, int, u_char[24], int);
  31. #endif
  32. #ifdef MSLANMAN