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.

66 lines
1.5 KiB

  1. #ifndef _MS_AV_ASN1_H_
  2. #define _MS_AV_ASN1_H_
  3. #include "msper.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. // lonchanc: copied from ossdll.h
  8. #define DLL_ENTRY WINAPI
  9. #define DLL_ENTRY_FDEF WINAPI
  10. #define DLL_ENTRY_FPTR WINAPI
  11. extern ASN1module_t Q931ASN_Module;
  12. #define q931asn Q931ASN_Module
  13. #define ObjectID_ ASN1objectidentifier_s
  14. typedef ASN1bool_t ASN1_BOOL;
  15. typedef struct
  16. {
  17. ASN1encoding_t pEncInfo;
  18. ASN1decoding_t pDecInfo;
  19. }
  20. ASN1_CODER_INFO;
  21. typedef struct
  22. {
  23. ULONG length;
  24. PBYTE value;
  25. }
  26. ASN1_BUF;
  27. int Q931_InitModule(void);
  28. int Q931_TermModule(void);
  29. int Q931_InitWorld(ASN1_CODER_INFO *pWorld);
  30. int Q931_TermWorld(ASN1_CODER_INFO *pWorld);
  31. int Q931_Encode(ASN1_CODER_INFO *pWorld, void *pStruct, int nPDU, BYTE **ppEncoded, DWORD *pcbEncodedSize);
  32. int Q931_Decode(ASN1_CODER_INFO *pWorld, void **ppStruct, int nPDU, BYTE *pEncoded, DWORD cbEncodedSize);
  33. int H245_InitModule(void);
  34. int H245_TermModule(void);
  35. int H245_InitWorld(ASN1_CODER_INFO *pWorld);
  36. int H245_TermWorld(ASN1_CODER_INFO *pWorld);
  37. int H245_Encode(ASN1_CODER_INFO *pWorld, void *pStruct, int nPDU, ASN1_BUF *pBuf);
  38. int H245_Decode(ASN1_CODER_INFO *pWorld, void **ppStruct, int nPDU, ASN1_BUF *pBuf);
  39. __inline freePDU(ASN1_CODER_INFO *pWorld, int nPDU, void *pDecoded, ASN1module_t pModule)
  40. {
  41. ASN1_FreeDecoded(pWorld->pDecInfo, pDecoded, nPDU);
  42. return ASN1_SUCCESS;
  43. }
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif // _MS_AV_ASN1_H_