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.

56 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: protos.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 09-23-97 jbanes LSA integration stuff.
  15. //
  16. //----------------------------------------------------------------------------
  17. SP_STATUS GetDefaultIssuers(
  18. PBYTE pbIssuers, // out
  19. DWORD *pcbIssuers); // in, out
  20. BOOL GenerateKeyPair(
  21. PSSL_CREDENTIAL_CERTIFICATE pCert,
  22. PSTR pszDN,
  23. PSTR pszPassword,
  24. DWORD Bits );
  25. BOOL LoadCertificate(
  26. PUCHAR pbCertificate,
  27. DWORD cbCertificate,
  28. BOOL AddToWellKnownKeys);
  29. BOOL SchannelInit(BOOL fAppProcess);
  30. BOOL SchannelShutdown(VOID);
  31. BOOL
  32. SslGetClientProcess(ULONG *pProcessID);
  33. BOOL
  34. SslGetClientThread(ULONG *pThreadID);
  35. BOOL
  36. SslImpersonateClient(void);
  37. NTSTATUS
  38. SslGetClientLogonId(LUID *pLogonId);
  39. PVOID SPExternalAlloc(DWORD cbLength);
  40. VOID SPExternalFree(PVOID pMemory);
  41. extern HANDLE g_hInstance;
  42. extern RTL_CRITICAL_SECTION g_InitCritSec;
  43. extern BOOL g_fSchannelInitialized;
  44. // Pointer to FreeContextBuffer:SECUR32.DLL
  45. extern FREE_CONTEXT_BUFFER_FN g_pFreeContextBuffer;