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.

78 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1987-1999 Microsoft Corporation
  3. Module Name:
  4. spseal.h
  5. Abstract:
  6. This is a private header file defining function prototypes for security
  7. provider encryption routines.
  8. Environment:
  9. User mode only.
  10. Contains NT-specific code.
  11. Requires ANSI C extensions: slash-slash comments, long external names.
  12. Requires security.h or sspi.h be included.
  13. Revision History:
  14. --*/
  15. #ifndef _SPSEAL_
  16. #define _SPSEAL_
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif
  20. #ifdef SECURITY_DOS
  21. #if _MSC_VER >= 1200
  22. #pragma warning(push)
  23. #endif
  24. #pragma warning(disable:4147)
  25. #endif
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. SECURITY_STATUS SEC_ENTRY
  30. SealMessage( PCtxtHandle phContext,
  31. unsigned long fQOP,
  32. PSecBufferDesc pMessage,
  33. unsigned long MessageSeqNo);
  34. typedef SECURITY_STATUS
  35. (SEC_ENTRY * SEAL_MESSAGE_FN)(
  36. PCtxtHandle, unsigned long, PSecBufferDesc, unsigned long);
  37. SECURITY_STATUS SEC_ENTRY
  38. UnsealMessage( PCtxtHandle phContext,
  39. PSecBufferDesc pMessage,
  40. unsigned long MessageSeqNo,
  41. unsigned long * pfQOP);
  42. typedef SECURITY_STATUS
  43. (SEC_ENTRY * UNSEAL_MESSAGE_FN)(
  44. PCtxtHandle, PSecBufferDesc, unsigned long,
  45. unsigned long SEC_FAR *);
  46. #ifdef __cplusplus
  47. } // extern "C"
  48. #endif
  49. #ifdef SECURITY_DOS
  50. #if _MSC_VER >= 1200
  51. #pragma warning(pop)
  52. #else
  53. #pragma warning(default:4147)
  54. #endif
  55. #endif
  56. #endif // _SPSEAL_