Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. #ifndef NOCHALL
  2. // eliminate PollChallenge stuff
  3. #ifdef UNIX
  4. typedef unsigned long DWORD;
  5. typedef unsigned short WORD;
  6. typedef unsigned char BYTE;
  7. #define WINAPI
  8. #define FAR
  9. #else /* Windows 16 and 32 bit */
  10. #endif
  11. /* Returns 0 for failure, length of wLenOutput used on success */
  12. /* Encrypts challenge with password */
  13. /* wLenChallenge and wLenPassword must be >= 1 */
  14. /* wLenOutput must be >= wLenChallenge */
  15. WORD WINAPI PollEnc(LPBYTE lpbChallenge, WORD wLenChallenge,
  16. LPBYTE lpbPassword, WORD wLenPassword,
  17. LPBYTE lpbOutput, WORD wLenOutput);
  18. #define PollPassToChallResp(lpbCh, wCh, lpbPas, wPas, lpbOut, wMaxOut) \
  19. ((!(lpbCh) || !(lpbPas) || !(lpbOut) || !(wCh) || !(wPas) || (wMaxOut)<(wCh)) ? \
  20. (DEBUGCHK(FALSE), 0) : \
  21. PollEnc((lpbCh), (wCh), (lpbPas), (wPas), (lpbOut), (wMaxOut)))
  22. #define ArulsPollPassToChallResp(lpbCh, wCh, lpbPas, wPas, lpbOut, wMaxOut) \
  23. ((!(lpbCh) || !(lpbPas) || !(lpbOut) || !(wCh) || !(wPas) || (wMaxOut)<(wCh)) ? \
  24. (BG_CHK(FALSE), 0) : \
  25. PollEnc((lpbCh), (wCh), (lpbPas), (wPas), (lpbOut), (wMaxOut)))
  26. #endif //!NOCHALL