Leaked source code of windows server 2003
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.

74 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. webblade.h
  5. Abstract:
  6. This module contains hash values for executable files
  7. that are disallowed in the Web Blade SKU.
  8. It is envisoned that the array holding these hash values
  9. will be updated and kernel32.dll recompiled at the time
  10. of a new product release. Hence the enforcement of an
  11. updated list of hashes.
  12. IMPORTANT: Please keep the array in sorted order since
  13. the hash detection routines assume this property when
  14. searching for a particular hash value in this array.
  15. Also, please update the Revision History to keep track of
  16. new hashes added/deleted for various releases/products.
  17. Author:
  18. Vishnu Patankar (vishnup) 01-May-2001
  19. Revision History:
  20. --*/
  21. #ifndef _WEBBLADE_
  22. #define _WEBBLADE_
  23. #include <base.h>
  24. #include <search.h>
  25. #include <nt.h>
  26. #include <ntrtl.h>
  27. #include <nturtl.h>
  28. #include <windows.h>
  29. #include <wincrypt.h>
  30. #include <stdio.h>
  31. #include <process.h>
  32. #include <stdlib.h>
  33. #include <string.h>
  34. //
  35. // MD5 hashes are of size 16 bytes
  36. //
  37. #define WEB_BLADE_MAX_HASH_SIZE 16
  38. NTSTATUS WebBladepConvertStringizedHashToHash(
  39. IN OUT PCHAR pStringizedHash
  40. );
  41. int
  42. __cdecl pfnWebBladeHashCompare(
  43. const BYTE *WebBladeFirstHash,
  44. const BYTE *WebBladeSecondHash
  45. );
  46. NTSTATUS
  47. BasepCheckWebBladeHashes(
  48. IN HANDLE hFile
  49. );
  50. #endif