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.

97 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. inetsspi.h
  5. Abstract:
  6. Contains all constant values and prototype decls used in inetsspi.cxx
  7. Author:
  8. Sophia Chung (SophiaC) 02-Jan-1996
  9. Revision History:
  10. --*/
  11. #ifndef _INETSSPI_H_
  12. #define _INETSSPI_H_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. //
  17. // Encryption Capabilities
  18. //
  19. #define ENC_CAPS_NOT_INSTALLED 0x80000000 // No keys installed
  20. #define ENC_CAPS_DISABLED 0x40000000 // Disabled due to locale
  21. #define ENC_CAPS_SSL 0x00000001 // SSL active
  22. #define ENC_CAPS_SCHANNEL_CREDS 0x00000004 // Uses SCHANNEL Creds Struct
  23. //
  24. // Encryption type portion of encryption flag dword
  25. //
  26. #define ENC_CAPS_TYPE_MASK ENC_CAPS_SSL
  27. #define ENC_CAPS_DEFAULT ENC_CAPS_TYPE_MASK
  28. #define INVALID_CRED_VALUE {0xFFFFFFFF, 0xFFFFFFFF}
  29. #define IS_CRED_INVALID(s) (((s)->dwUpper == 0xFFFFFFFF) && ((s)->dwLower == 0xFFFFFFFF))
  30. //
  31. // Prototypes
  32. //
  33. BOOL
  34. SecurityPkgInitialize(
  35. SECURITY_CACHE_LIST *pSessionCache,
  36. BOOL fForce = FALSE
  37. );
  38. DWORD
  39. EncryptData(
  40. IN CtxtHandle* hContext,
  41. IN LPVOID lpBuffer,
  42. IN DWORD dwInBufferLen,
  43. OUT LPVOID *lplpBuffer,
  44. OUT DWORD *lpdwOutBufferLen,
  45. OUT DWORD *lpdwInBufferBytesEncrypted
  46. );
  47. DWORD
  48. DecryptData(
  49. IN CtxtHandle* hContext,
  50. IN OUT DBLBUFFER* pdblbufBuffer,
  51. OUT DWORD *lpdwBytesNeeded,
  52. OUT LPBYTE lpOutBuffer,
  53. IN OUT DWORD *lpdwOutBufferLeft,
  54. IN OUT DWORD *lpdwOutBufferReceived,
  55. IN OUT DWORD *lpdwOutBufferBytesRead
  56. );
  57. VOID
  58. TerminateSecConnection(
  59. IN CtxtHandle* hContext
  60. );
  61. DWORD
  62. QuerySecurityInfo(
  63. IN CtxtHandle *hContext,
  64. OUT LPINTERNET_SECURITY_INFO pInfo,
  65. IN LPDWORD lpdwStatusFlag);
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif //_INETSSPI_H_