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.

80 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name:
  4. glodata.c
  5. Abstract:
  6. Global data definitions for tshare security.
  7. Author:
  8. Madan Appiah (madana) 24-Jan-1998
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <ntlsa.h>
  17. #include <windows.h>
  18. #include <winbase.h>
  19. #include <winerror.h>
  20. #include <tchar.h>
  21. #include <stdio.h>
  22. #include "license.h"
  23. #include "cryptkey.h"
  24. #include "lscsp.h"
  25. #include "tlsapip.h"
  26. #include "certutil.h"
  27. #include "hydrakey.h"
  28. #include <md5.h>
  29. #include <sha.h>
  30. #include <rsa.h>
  31. #include <secdbg.h>
  32. #include "global.h"
  33. #ifdef OS_WIN16
  34. #include <string.h>
  35. #endif // OS_WIN16
  36. //
  37. // global data definitions.
  38. //
  39. BYTE csp_abPublicKeyModulus[92] = HYDRA_ROOT_PUBLIC_KEY;
  40. LPBSAFE_PUB_KEY csp_pRootPublicKey = NULL;
  41. LPBYTE csp_abServerCertificate = NULL;
  42. DWORD csp_dwServerCertificateLen = 0;
  43. LPBYTE csp_abServerX509Cert = NULL;
  44. DWORD csp_dwServerX509CertLen = 0;
  45. LPBYTE csp_abX509CertID = NULL;
  46. DWORD csp_dwX509CertIDLen = 0;
  47. HANDLE csp_hMutex = NULL;
  48. LONG csp_InitCount = 0;
  49. Hydra_Server_Cert csp_hscData;
  50. HINSTANCE g_hinst;
  51. LPBYTE csp_abServerPrivateKey = NULL;
  52. DWORD csp_dwServerPrivateKeyLen = 0;
  53. LPBYTE csp_abX509CertPrivateKey = NULL;
  54. DWORD csp_dwX509CertPrivateKeyLen = 0;