Source code of Windows XP (NT5)
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.

81 lines
1.4 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 "rng.h"
  25. #include "lscsp.h"
  26. #include "tlsapip.h"
  27. #include "certutil.h"
  28. #include "hydrakey.h"
  29. #include <md5.h>
  30. #include <sha.h>
  31. #include <rsa.h>
  32. #include <secdbg.h>
  33. #include "global.h"
  34. #ifdef OS_WIN16
  35. #include <string.h>
  36. #endif // OS_WIN16
  37. //
  38. // global data definitions.
  39. //
  40. BYTE csp_abPublicKeyModulus[92] = HYDRA_ROOT_PUBLIC_KEY;
  41. LPBSAFE_PUB_KEY csp_pRootPublicKey = NULL;
  42. LPBYTE csp_abServerCertificate = NULL;
  43. DWORD csp_dwServerCertificateLen = 0;
  44. LPBYTE csp_abServerX509Cert = NULL;
  45. DWORD csp_dwServerX509CertLen = 0;
  46. LPBYTE csp_abX509CertID = NULL;
  47. DWORD csp_dwX509CertIDLen = 0;
  48. HANDLE csp_hMutex = NULL;
  49. LONG csp_InitCount = 0;
  50. Hydra_Server_Cert csp_hscData;
  51. HINSTANCE g_hinst;
  52. LPBYTE csp_abServerPrivateKey = NULL;
  53. DWORD csp_dwServerPrivateKeyLen = 0;
  54. LPBYTE csp_abX509CertPrivateKey = NULL;
  55. DWORD csp_dwX509CertPrivateKeyLen = 0;