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.

70 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: SIPObjFL.hxx (Flat)
  8. //
  9. // Contents: Microsoft SIP Provider
  10. //
  11. // History: 15-Feb-1997 pberkman created
  12. //
  13. //------------------------------------------------------------------
  14. #ifndef SIPOBJFL_HXX
  15. #define SIPOBJFL_HXX
  16. #include "sipobj.hxx"
  17. class SIPObjectFlat_ : public SIPObject_
  18. {
  19. public:
  20. SIPObjectFlat_(DWORD id);
  21. virtual ~SIPObjectFlat_(void) { ; }
  22. BOOL GetSignedDataMsg(SIP_SUBJECTINFO *pSI,DWORD dwIdx,
  23. DWORD *pdwDLen,BYTE *pbData,
  24. DWORD *pdwEncodeType);
  25. BOOL PutSignedDataMsg(SIP_SUBJECTINFO *pSI,DWORD *dwIdx,
  26. DWORD dwDLen,BYTE *pbData,
  27. DWORD pdwEncodeType)
  28. { return(FALSE); }
  29. BOOL RemoveSignedDataMsg(SIP_SUBJECTINFO *pSI,DWORD dwIdx)
  30. { return(FALSE); }
  31. BOOL VerifyIndirectData(SIP_SUBJECTINFO *pSI,
  32. SIP_INDIRECT_DATA *psData);
  33. virtual char *GetDataObjectID(void) { return(SPC_CAB_DATA_OBJID); }
  34. virtual char *GetDataOIDHint(void) { return((char *)SPC_CAB_DATA_STRUCT); }
  35. protected:
  36. void *GetMyStructure(SIP_SUBJECTINFO *pSI) { return(&SpcLink); }
  37. DWORD GetMyStructureSize(void) { return(sizeof(SPC_LINK)); }
  38. BOOL PutMessageInFile(SIP_SUBJECTINFO *pSI,
  39. WIN_CERTIFICATE *pWinCert,
  40. DWORD *pdwIndex)
  41. { return(TRUE); }
  42. BOOL GetMessageFromFile(SIP_SUBJECTINFO *pSI,
  43. WIN_CERTIFICATE *pWinCert,
  44. DWORD dwIndex,DWORD *pcbCert)
  45. { return(TRUE); }
  46. BOOL GetDigestStream(DIGEST_DATA *pDigestData,
  47. DIGEST_FUNCTION pfnCallBack, DWORD dwFlags);
  48. private:
  49. SPC_LINK SpcLink;
  50. };
  51. #endif // SIPOBJFL_HXX