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.

57 lines
664 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. memalloc.c
  5. Abstract:
  6. Memory allocator for the crypto routines.
  7. IISCryptoAllocMemory
  8. IISCryptoFreeMemory
  9. Author:
  10. Keith Moore (keithmo) 02-Dec-1996
  11. Revision History:
  12. --*/
  13. extern "C" {
  14. #include <iiscrypt.h>
  15. PVOID
  16. WINAPI
  17. IISCryptoAllocMemory(
  18. IN DWORD Size
  19. )
  20. {
  21. return (PVOID)LocalAlloc( LPTR, Size );
  22. } // IISCryptoAllocateMemory
  23. VOID
  24. WINAPI
  25. IISCryptoFreeMemory(
  26. IN PVOID Buffer
  27. )
  28. {
  29. (VOID)LocalFree( (HLOCAL)Buffer );
  30. } // IISCryptoFreeMemory
  31. } // extern "C"