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.

58 lines
2.3 KiB

  1. #include <wincrypt.h>
  2. #include <sipbase.h>
  3. #include <mscat.h>
  4. #include <mssip.h>
  5. #include <wintrust.h>
  6. #ifndef _JTRUST_H
  7. #define _JTRUST_H
  8. #if !defined(JAVA_TRUST_PROVIDER)
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. // New guids for Java Policy Provider
  13. // {E6F795B1-F738-11d0-A72F-00A0C903B83D}
  14. #define JAVA_POLICY_PROVIDER_DOWNLOAD \
  15. { 0xe6f795b1, 0xf738, 0x11d0, {0xa7, 0x2f, 0x0, 0xa0, 0xc9, 0x3, 0xb8, 0x3d } }
  16. // {E6F795B2-F738-11d0-A72F-00A0C903B83D}
  17. #define JAVA_POLICY_PROVIDER_CHECK \
  18. { 0xe6f795b2, 0xf738, 0x11d0, {0xa7, 0x2f, 0x0, 0xa0, 0xc9, 0x3, 0xb8, 0x3d } }
  19. typedef struct _JAVA_TRUST {
  20. DWORD cbSize; // Size of structure
  21. DWORD flag; // Reserved
  22. BOOL fAllActiveXPermissions; // ActiveX explicitly asked for all (must have been signed)
  23. BOOL fAllPermissions; // Java permissions, explicit ask for all
  24. DWORD dwEncodingType; // Encoding type
  25. PBYTE pbJavaPermissions; // Encoded java permission blob
  26. DWORD cbJavaPermissions;
  27. PBYTE pbSigner; // Encoded signer.
  28. DWORD cbSigner;
  29. LPCWSTR pwszZone; // Zone index (copied from action data)
  30. GUID guidZone; // Not used currently
  31. HRESULT hVerify; // Authenticode policy return
  32. } JAVA_TRUST, *PJAVA_TRUST;
  33. typedef struct _JAVA_POLICY_PROVIDER {
  34. DWORD cbSize; // Size of policy provider
  35. LPVOID pZoneManager; // Zone interface manager
  36. LPCWSTR pwszZone; // Zone index
  37. BOOL fNoBadUI; // Optional bad ui
  38. PJAVA_TRUST pbJavaTrust; // Returned java information (CoTaskMemAlloc)
  39. DWORD cbJavaTrust; // Total allocated size of pJavaTrust
  40. DWORD dwActionID; // Optional ActionID ID
  41. DWORD dwUnsignedActionID; // Optional ActionID ID
  42. BOOL VMBased; // Called from VM (FALSE by DEFAULT)
  43. } JAVA_POLICY_PROVIDER, *PJAVA_POLICY_PROVIDER;
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif // !defined(JAVA_TRUST_PROVIDER)
  48. #endif // _JTRUST_H