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.

67 lines
2.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: SIPObjJV.hxx (JAVA)
  8. //
  9. // Contents: Microsoft SIP Provider
  10. //
  11. // History: 15-Feb-1997 pberkman created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef SIPOBJJV_HXX
  15. #define SIPOBJJV_HXX
  16. #include "sipobj.hxx"
  17. #include "sipobjcb.hxx" // indirect data structs are the same!
  18. class SIPObjectJAVA_ : public SIPObject_
  19. {
  20. public:
  21. SIPObjectJAVA_(DWORD id);
  22. virtual ~SIPObjectJAVA_(void) { ; }
  23. BOOL RemoveSignedDataMsg(SIP_SUBJECTINFO *pSI,DWORD dwIdx);
  24. char *GetDataObjectID(void) { return(SPC_JAVA_CLASS_DATA_OBJID); }
  25. char *GetDataOIDHint(void) { return((char *)SPC_JAVA_CLASS_DATA_STRUCT); }
  26. protected:
  27. void *GetMyStructure(SIP_SUBJECTINFO *pSI) { return(&SpcLink); }
  28. DWORD GetMyStructureSize(void) { return(sizeof(SPC_LINK)); }
  29. BOOL PutMessageInFile(SIP_SUBJECTINFO *pSI,WIN_CERTIFICATE *pWinCert,
  30. DWORD *pdwIndex);
  31. BOOL GetMessageFromFile(SIP_SUBJECTINFO *pSI,WIN_CERTIFICATE *pWinCert,
  32. DWORD dwIndex,DWORD *pcbCert);
  33. BOOL GetDigestStream(DIGEST_DATA *pDigestData,
  34. DIGEST_FUNCTION pfnCallBack, DWORD dwFlags);
  35. private:
  36. SPC_LINK SpcLink;
  37. };
  38. //
  39. // code in jvimage.cpp
  40. //
  41. extern BOOL JavaGetDigestStream( IN HANDLE FileHandle,
  42. IN DWORD DigestLevel,
  43. IN DIGEST_FUNCTION DigestFunction,
  44. IN DIGEST_HANDLE DigestHandle);
  45. extern BOOL JavaRemoveCertificate( IN HANDLE FileHandle,
  46. IN DWORD Index);
  47. extern BOOL JavaGetCertificateData( IN HANDLE FileHandle,
  48. IN DWORD CertificateIndex,
  49. OUT LPWIN_CERTIFICATE Certificate,
  50. IN OUT PDWORD RequiredLength);
  51. extern BOOL JavaAddCertificate( IN HANDLE FileHandle,
  52. IN LPWIN_CERTIFICATE Certificate,
  53. OUT PDWORD Index);
  54. #endif // SIPOBJJV_HXX