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.

61 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. icryptp.hxx
  5. Abstract:
  6. This include file contains private constants, type definitions, and
  7. function prototypes for the IIS cryptographic routines.
  8. Author:
  9. Keith Moore (keithmo) 02-Dec-1996
  10. Revision History:
  11. --*/
  12. #ifndef _ICRYPTP_HXX_
  13. #define _ICRYPTP_HXX_
  14. //
  15. // Useful macros for performing cleanup.
  16. //
  17. #define CLOSE_KEY(h) \
  18. if( (h) != CRYPT_NULL ) { \
  19. DBG_REQUIRE( SUCCEEDED(::IISCryptoCloseKey(h)) ); \
  20. (h) = CRYPT_NULL; \
  21. } else
  22. #define DESTROY_HASH(h) \
  23. if( (h) != CRYPT_NULL ) { \
  24. DBG_REQUIRE( SUCCEEDED(::IISCryptoDestroyHash(h)) ); \
  25. (h) = CRYPT_NULL; \
  26. } else
  27. #define FREE_BLOB(b) \
  28. if( (b) != NULL ) { \
  29. DBG_REQUIRE( SUCCEEDED(::IISCryptoFreeBlob(b)) ); \
  30. (b) = NULL; \
  31. } else
  32. //
  33. // Constant text strings hashed during key exchange.
  34. //
  35. // Note that these are always ANSI, never UNICODE.
  36. //
  37. #define HASH_TEXT_STRING_1 "IIS Key Exchange Phase 3"
  38. #define HASH_TEXT_STRING_2 "IIS Key Exchange Phase 4"
  39. #endif // _ICRYPTP_HXX_