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.

19374 lines
635 KiB

  1. /* Copyright (C) Microsoft Corporation, 1995-1999. All rights reserved. */
  2. /* ASN.1 definitions for H.235 Security Messages v1 (H.235) */
  3. /* Copyright (C) Microsoft Corporation, 1995-1999. All rights reserved. */
  4. /* ASN.1 definitions for Multimedia System Control (H.245) */
  5. /* Copyright (C) Microsoft Corporation, 1995-1999. All rights reserved. */
  6. /* ASN.1 definitions for H.323 Messages v2 (H.225) */
  7. #include <windows.h>
  8. #include "h225asn.h"
  9. ASN1module_t H225ASN_Module = NULL;
  10. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  11. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_routing(ASN1encoding_t enc, TransportAddress_ipSourceRoute_routing *val);
  12. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_route(ASN1encoding_t enc, PTransportAddress_ipSourceRoute_route *val);
  13. static int ASN1CALL ASN1Enc_RTPSession_associatedSessionIds(ASN1encoding_t enc, PRTPSession_associatedSessionIds *val);
  14. static int ASN1CALL ASN1Enc_RegistrationConfirm_preGrantedARQ(ASN1encoding_t enc, RegistrationConfirm_preGrantedARQ *val);
  15. static int ASN1CALL ASN1Enc_GatekeeperRequest_algorithmOIDs(ASN1encoding_t enc, PGatekeeperRequest_algorithmOIDs *val);
  16. static int ASN1CALL ASN1Enc_TransportAddress_ip6Address(ASN1encoding_t enc, TransportAddress_ip6Address *val);
  17. static int ASN1CALL ASN1Enc_TransportAddress_ipxAddress(ASN1encoding_t enc, TransportAddress_ipxAddress *val);
  18. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute(ASN1encoding_t enc, TransportAddress_ipSourceRoute *val);
  19. static int ASN1CALL ASN1Enc_TransportAddress_ipAddress(ASN1encoding_t enc, TransportAddress_ipAddress *val);
  20. static int ASN1CALL ASN1Enc_Progress_UUIE_fastStart(ASN1encoding_t enc, PProgress_UUIE_fastStart *val);
  21. static int ASN1CALL ASN1Enc_Facility_UUIE_fastStart(ASN1encoding_t enc, PFacility_UUIE_fastStart *val);
  22. static int ASN1CALL ASN1Enc_Setup_UUIE_fastStart(ASN1encoding_t enc, PSetup_UUIE_fastStart *val);
  23. static int ASN1CALL ASN1Enc_Setup_UUIE_conferenceGoal(ASN1encoding_t enc, Setup_UUIE_conferenceGoal *val);
  24. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV *val);
  25. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart(ASN1encoding_t enc, PConnect_UUIE_fastStart *val);
  26. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart *val);
  27. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart(ASN1encoding_t enc, PAlerting_UUIE_fastStart *val);
  28. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control(ASN1encoding_t enc, PH323_UU_PDU_h245Control *val);
  29. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService *val);
  30. static int ASN1CALL ASN1Enc_H323_UserInformation_user_data(ASN1encoding_t enc, H323_UserInformation_user_data *val);
  31. static int ASN1CALL ASN1Enc_H235NonStandardParameter(ASN1encoding_t enc, H235NonStandardParameter *val);
  32. static int ASN1CALL ASN1Enc_DHset(ASN1encoding_t enc, DHset *val);
  33. static int ASN1CALL ASN1Enc_TypedCertificate(ASN1encoding_t enc, TypedCertificate *val);
  34. static int ASN1CALL ASN1Enc_AuthenticationMechanism(ASN1encoding_t enc, AuthenticationMechanism *val);
  35. static int ASN1CALL ASN1Enc_ClearToken(ASN1encoding_t enc, ClearToken *val);
  36. static int ASN1CALL ASN1Enc_Params(ASN1encoding_t enc, Params *val);
  37. static int ASN1CALL ASN1Enc_EncodedGeneralToken(ASN1encoding_t enc, EncodedGeneralToken *val);
  38. static int ASN1CALL ASN1Enc_PwdCertToken(ASN1encoding_t enc, PwdCertToken *val);
  39. static int ASN1CALL ASN1Enc_EncodedPwdCertToken(ASN1encoding_t enc, EncodedPwdCertToken *val);
  40. static int ASN1CALL ASN1Enc_ReleaseCompleteReason(ASN1encoding_t enc, ReleaseCompleteReason *val);
  41. static int ASN1CALL ASN1Enc_FacilityReason(ASN1encoding_t enc, FacilityReason *val);
  42. static int ASN1CALL ASN1Enc_H221NonStandard(ASN1encoding_t enc, H221NonStandard *val);
  43. static int ASN1CALL ASN1Enc_H225NonStandardIdentifier(ASN1encoding_t enc, H225NonStandardIdentifier *val);
  44. static int ASN1CALL ASN1Enc_PublicTypeOfNumber(ASN1encoding_t enc, PublicTypeOfNumber *val);
  45. static int ASN1CALL ASN1Enc_PrivateTypeOfNumber(ASN1encoding_t enc, PrivateTypeOfNumber *val);
  46. static int ASN1CALL ASN1Enc_AltGKInfo(ASN1encoding_t enc, AltGKInfo *val);
  47. static int ASN1CALL ASN1Enc_Q954Details(ASN1encoding_t enc, Q954Details *val);
  48. static int ASN1CALL ASN1Enc_CallIdentifier(ASN1encoding_t enc, CallIdentifier *val);
  49. static int ASN1CALL ASN1Enc_ICV(ASN1encoding_t enc, ICV *val);
  50. static int ASN1CALL ASN1Enc_GatekeeperRejectReason(ASN1encoding_t enc, GatekeeperRejectReason *val);
  51. static int ASN1CALL ASN1Enc_RegistrationRejectReason(ASN1encoding_t enc, RegistrationRejectReason *val);
  52. static int ASN1CALL ASN1Enc_UnregRequestReason(ASN1encoding_t enc, UnregRequestReason *val);
  53. static int ASN1CALL ASN1Enc_UnregRejectReason(ASN1encoding_t enc, UnregRejectReason *val);
  54. static int ASN1CALL ASN1Enc_CallType(ASN1encoding_t enc, CallType *val);
  55. static int ASN1CALL ASN1Enc_CallModel(ASN1encoding_t enc, CallModel *val);
  56. static int ASN1CALL ASN1Enc_TransportQOS(ASN1encoding_t enc, TransportQOS *val);
  57. static int ASN1CALL ASN1Enc_UUIEsRequested(ASN1encoding_t enc, UUIEsRequested *val);
  58. static int ASN1CALL ASN1Enc_AdmissionRejectReason(ASN1encoding_t enc, AdmissionRejectReason *val);
  59. static int ASN1CALL ASN1Enc_BandRejectReason(ASN1encoding_t enc, BandRejectReason *val);
  60. static int ASN1CALL ASN1Enc_LocationRejectReason(ASN1encoding_t enc, LocationRejectReason *val);
  61. static int ASN1CALL ASN1Enc_DisengageReason(ASN1encoding_t enc, DisengageReason *val);
  62. static int ASN1CALL ASN1Enc_DisengageRejectReason(ASN1encoding_t enc, DisengageRejectReason *val);
  63. static int ASN1CALL ASN1Enc_InfoRequestNakReason(ASN1encoding_t enc, InfoRequestNakReason *val);
  64. static int ASN1CALL ASN1Enc_UnknownMessageResponse(ASN1encoding_t enc, UnknownMessageResponse *val);
  65. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  66. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens *val);
  67. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens *val);
  68. static int ASN1CALL ASN1Enc_RequestInProgress_tokens(ASN1encoding_t enc, PRequestInProgress_tokens *val);
  69. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens(ASN1encoding_t enc, PUnknownMessageResponse_tokens *val);
  70. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens(ASN1encoding_t enc, PH225NonStandardMessage_tokens *val);
  71. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens(ASN1encoding_t enc, PInfoRequestNak_tokens *val);
  72. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens(ASN1encoding_t enc, PInfoRequestAck_tokens *val);
  73. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens(ASN1encoding_t enc, PInfoRequestResponse_tokens *val);
  74. static int ASN1CALL ASN1Enc_InfoRequest_tokens(ASN1encoding_t enc, PInfoRequest_tokens *val);
  75. static int ASN1CALL ASN1Enc_DisengageReject_tokens(ASN1encoding_t enc, PDisengageReject_tokens *val);
  76. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens(ASN1encoding_t enc, PDisengageConfirm_tokens *val);
  77. static int ASN1CALL ASN1Enc_DisengageRequest_tokens(ASN1encoding_t enc, PDisengageRequest_tokens *val);
  78. static int ASN1CALL ASN1Enc_LocationReject_tokens(ASN1encoding_t enc, PLocationReject_tokens *val);
  79. static int ASN1CALL ASN1Enc_LocationConfirm_tokens(ASN1encoding_t enc, PLocationConfirm_tokens *val);
  80. static int ASN1CALL ASN1Enc_LocationRequest_tokens(ASN1encoding_t enc, PLocationRequest_tokens *val);
  81. static int ASN1CALL ASN1Enc_BandwidthReject_tokens(ASN1encoding_t enc, PBandwidthReject_tokens *val);
  82. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens(ASN1encoding_t enc, PBandwidthConfirm_tokens *val);
  83. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens(ASN1encoding_t enc, PBandwidthRequest_tokens *val);
  84. static int ASN1CALL ASN1Enc_AdmissionReject_tokens(ASN1encoding_t enc, PAdmissionReject_tokens *val);
  85. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens(ASN1encoding_t enc, PAdmissionConfirm_tokens *val);
  86. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens(ASN1encoding_t enc, PAdmissionRequest_tokens *val);
  87. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens(ASN1encoding_t enc, PUnregistrationReject_tokens *val);
  88. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens(ASN1encoding_t enc, PUnregistrationConfirm_tokens *val);
  89. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens(ASN1encoding_t enc, PUnregistrationRequest_tokens *val);
  90. static int ASN1CALL ASN1Enc_RegistrationReject_tokens(ASN1encoding_t enc, PRegistrationReject_tokens *val);
  91. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens(ASN1encoding_t enc, PRegistrationConfirm_tokens *val);
  92. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens(ASN1encoding_t enc, PRegistrationRequest_tokens *val);
  93. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens(ASN1encoding_t enc, PGatekeeperReject_tokens *val);
  94. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens(ASN1encoding_t enc, PGatekeeperConfirm_tokens *val);
  95. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability *val);
  96. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens(ASN1encoding_t enc, PGatekeeperRequest_tokens *val);
  97. static int ASN1CALL ASN1Enc_Endpoint_tokens(ASN1encoding_t enc, PEndpoint_tokens *val);
  98. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens(ASN1encoding_t enc, PProgress_UUIE_tokens *val);
  99. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens(ASN1encoding_t enc, PFacility_UUIE_tokens *val);
  100. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens(ASN1encoding_t enc, PSetup_UUIE_tokens *val);
  101. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens(ASN1encoding_t enc, PConnect_UUIE_tokens *val);
  102. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens(ASN1encoding_t enc, PCallProceeding_UUIE_tokens *val);
  103. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens(ASN1encoding_t enc, PAlerting_UUIE_tokens *val);
  104. static int ASN1CALL ASN1Enc_SIGNED_EncodedGeneralToken(ASN1encoding_t enc, SIGNED_EncodedGeneralToken *val);
  105. static int ASN1CALL ASN1Enc_ENCRYPTED(ASN1encoding_t enc, ENCRYPTED *val);
  106. static int ASN1CALL ASN1Enc_HASHED(ASN1encoding_t enc, HASHED *val);
  107. static int ASN1CALL ASN1Enc_SIGNED_EncodedPwdCertToken(ASN1encoding_t enc, SIGNED_EncodedPwdCertToken *val);
  108. static int ASN1CALL ASN1Enc_Information_UUIE(ASN1encoding_t enc, Information_UUIE *val);
  109. static int ASN1CALL ASN1Enc_ReleaseComplete_UUIE(ASN1encoding_t enc, ReleaseComplete_UUIE *val);
  110. static int ASN1CALL ASN1Enc_VendorIdentifier(ASN1encoding_t enc, VendorIdentifier *val);
  111. static int ASN1CALL ASN1Enc_H225NonStandardParameter(ASN1encoding_t enc, H225NonStandardParameter *val);
  112. static int ASN1CALL ASN1Enc_PublicPartyNumber(ASN1encoding_t enc, PublicPartyNumber *val);
  113. static int ASN1CALL ASN1Enc_PrivatePartyNumber(ASN1encoding_t enc, PrivatePartyNumber *val);
  114. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val);
  115. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val);
  116. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val);
  117. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val);
  118. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val);
  119. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val);
  120. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val);
  121. #define ASN1Enc_FastStartToken(x,y) 0
  122. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val);
  123. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val);
  124. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val);
  125. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val);
  126. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val);
  127. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val);
  128. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val);
  129. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val);
  130. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val);
  131. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val);
  132. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val);
  133. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val);
  134. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val);
  135. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val);
  136. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val);
  137. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val);
  138. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val);
  139. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val);
  140. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val);
  141. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val);
  142. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val);
  143. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val);
  144. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val);
  145. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val);
  146. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val);
  147. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val);
  148. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val);
  149. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val);
  150. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val);
  151. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val);
  152. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val);
  153. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val);
  154. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val);
  155. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val);
  156. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val);
  157. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val);
  158. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val);
  159. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val);
  160. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val);
  161. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val);
  162. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val);
  163. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val);
  164. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val);
  165. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val);
  166. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val);
  167. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val);
  168. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val);
  169. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val);
  170. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val);
  171. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val);
  172. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val);
  173. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val);
  174. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val);
  175. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val);
  176. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val);
  177. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val);
  178. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val);
  179. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val);
  180. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val);
  181. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val);
  182. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val);
  183. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val);
  184. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val);
  185. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val);
  186. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val);
  187. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val);
  188. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val);
  189. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val);
  190. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val);
  191. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val);
  192. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val);
  193. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val);
  194. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val);
  195. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val);
  196. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val);
  197. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val);
  198. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val);
  199. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val);
  200. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val);
  201. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val);
  202. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val);
  203. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val);
  204. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val);
  205. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val);
  206. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val);
  207. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val);
  208. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val);
  209. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val);
  210. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val);
  211. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val);
  212. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val);
  213. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val);
  214. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val);
  215. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val);
  216. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val);
  217. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val);
  218. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val);
  219. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val);
  220. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val);
  221. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val);
  222. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val);
  223. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val);
  224. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val);
  225. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val);
  226. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val);
  227. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val);
  228. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val);
  229. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val);
  230. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val);
  231. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val);
  232. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val);
  233. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val);
  234. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val);
  235. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val);
  236. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val);
  237. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val);
  238. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val);
  239. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val);
  240. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val);
  241. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val);
  242. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val);
  243. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val);
  244. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val);
  245. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val);
  246. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val);
  247. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val);
  248. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val);
  249. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val);
  250. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val);
  251. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val);
  252. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val);
  253. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val);
  254. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val);
  255. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val);
  256. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val);
  257. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val);
  258. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val);
  259. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val);
  260. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val);
  261. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val);
  262. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val);
  263. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val);
  264. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  265. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val);
  266. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val);
  267. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val);
  268. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val);
  269. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val);
  270. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val);
  271. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val);
  272. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val);
  273. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val);
  274. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val);
  275. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val);
  276. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val);
  277. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val);
  278. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val);
  279. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val);
  280. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val);
  281. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val);
  282. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val);
  283. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val);
  284. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val);
  285. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val);
  286. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val);
  287. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val);
  288. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val);
  289. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val);
  290. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val);
  291. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val);
  292. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val);
  293. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val);
  294. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val);
  295. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val);
  296. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val);
  297. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val);
  298. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val);
  299. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val);
  300. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val);
  301. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val);
  302. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val);
  303. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val);
  304. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val);
  305. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  306. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  307. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val);
  308. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  309. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_routing(ASN1decoding_t dec, TransportAddress_ipSourceRoute_routing *val);
  310. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_route(ASN1decoding_t dec, PTransportAddress_ipSourceRoute_route *val);
  311. static int ASN1CALL ASN1Dec_RTPSession_associatedSessionIds(ASN1decoding_t dec, PRTPSession_associatedSessionIds *val);
  312. static int ASN1CALL ASN1Dec_RegistrationConfirm_preGrantedARQ(ASN1decoding_t dec, RegistrationConfirm_preGrantedARQ *val);
  313. static int ASN1CALL ASN1Dec_GatekeeperRequest_algorithmOIDs(ASN1decoding_t dec, PGatekeeperRequest_algorithmOIDs *val);
  314. static int ASN1CALL ASN1Dec_TransportAddress_ip6Address(ASN1decoding_t dec, TransportAddress_ip6Address *val);
  315. static int ASN1CALL ASN1Dec_TransportAddress_ipxAddress(ASN1decoding_t dec, TransportAddress_ipxAddress *val);
  316. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute(ASN1decoding_t dec, TransportAddress_ipSourceRoute *val);
  317. static int ASN1CALL ASN1Dec_TransportAddress_ipAddress(ASN1decoding_t dec, TransportAddress_ipAddress *val);
  318. static int ASN1CALL ASN1Dec_Progress_UUIE_fastStart(ASN1decoding_t dec, PProgress_UUIE_fastStart *val);
  319. static int ASN1CALL ASN1Dec_Facility_UUIE_fastStart(ASN1decoding_t dec, PFacility_UUIE_fastStart *val);
  320. static int ASN1CALL ASN1Dec_Setup_UUIE_fastStart(ASN1decoding_t dec, PSetup_UUIE_fastStart *val);
  321. static int ASN1CALL ASN1Dec_Setup_UUIE_conferenceGoal(ASN1decoding_t dec, Setup_UUIE_conferenceGoal *val);
  322. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV *val);
  323. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart(ASN1decoding_t dec, PConnect_UUIE_fastStart *val);
  324. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart *val);
  325. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart(ASN1decoding_t dec, PAlerting_UUIE_fastStart *val);
  326. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control(ASN1decoding_t dec, PH323_UU_PDU_h245Control *val);
  327. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService *val);
  328. static int ASN1CALL ASN1Dec_H323_UserInformation_user_data(ASN1decoding_t dec, H323_UserInformation_user_data *val);
  329. static int ASN1CALL ASN1Dec_H235NonStandardParameter(ASN1decoding_t dec, H235NonStandardParameter *val);
  330. static int ASN1CALL ASN1Dec_DHset(ASN1decoding_t dec, DHset *val);
  331. static int ASN1CALL ASN1Dec_TypedCertificate(ASN1decoding_t dec, TypedCertificate *val);
  332. static int ASN1CALL ASN1Dec_AuthenticationMechanism(ASN1decoding_t dec, AuthenticationMechanism *val);
  333. static int ASN1CALL ASN1Dec_ClearToken(ASN1decoding_t dec, ClearToken *val);
  334. static int ASN1CALL ASN1Dec_Params(ASN1decoding_t dec, Params *val);
  335. static int ASN1CALL ASN1Dec_EncodedGeneralToken(ASN1decoding_t dec, EncodedGeneralToken *val);
  336. static int ASN1CALL ASN1Dec_PwdCertToken(ASN1decoding_t dec, PwdCertToken *val);
  337. static int ASN1CALL ASN1Dec_EncodedPwdCertToken(ASN1decoding_t dec, EncodedPwdCertToken *val);
  338. static int ASN1CALL ASN1Dec_ReleaseCompleteReason(ASN1decoding_t dec, ReleaseCompleteReason *val);
  339. static int ASN1CALL ASN1Dec_FacilityReason(ASN1decoding_t dec, FacilityReason *val);
  340. static int ASN1CALL ASN1Dec_H221NonStandard(ASN1decoding_t dec, H221NonStandard *val);
  341. static int ASN1CALL ASN1Dec_H225NonStandardIdentifier(ASN1decoding_t dec, H225NonStandardIdentifier *val);
  342. static int ASN1CALL ASN1Dec_PublicTypeOfNumber(ASN1decoding_t dec, PublicTypeOfNumber *val);
  343. static int ASN1CALL ASN1Dec_PrivateTypeOfNumber(ASN1decoding_t dec, PrivateTypeOfNumber *val);
  344. static int ASN1CALL ASN1Dec_AltGKInfo(ASN1decoding_t dec, AltGKInfo *val);
  345. static int ASN1CALL ASN1Dec_Q954Details(ASN1decoding_t dec, Q954Details *val);
  346. static int ASN1CALL ASN1Dec_CallIdentifier(ASN1decoding_t dec, CallIdentifier *val);
  347. static int ASN1CALL ASN1Dec_ICV(ASN1decoding_t dec, ICV *val);
  348. static int ASN1CALL ASN1Dec_GatekeeperRejectReason(ASN1decoding_t dec, GatekeeperRejectReason *val);
  349. static int ASN1CALL ASN1Dec_RegistrationRejectReason(ASN1decoding_t dec, RegistrationRejectReason *val);
  350. static int ASN1CALL ASN1Dec_UnregRequestReason(ASN1decoding_t dec, UnregRequestReason *val);
  351. static int ASN1CALL ASN1Dec_UnregRejectReason(ASN1decoding_t dec, UnregRejectReason *val);
  352. static int ASN1CALL ASN1Dec_CallType(ASN1decoding_t dec, CallType *val);
  353. static int ASN1CALL ASN1Dec_CallModel(ASN1decoding_t dec, CallModel *val);
  354. static int ASN1CALL ASN1Dec_TransportQOS(ASN1decoding_t dec, TransportQOS *val);
  355. static int ASN1CALL ASN1Dec_UUIEsRequested(ASN1decoding_t dec, UUIEsRequested *val);
  356. static int ASN1CALL ASN1Dec_AdmissionRejectReason(ASN1decoding_t dec, AdmissionRejectReason *val);
  357. static int ASN1CALL ASN1Dec_BandRejectReason(ASN1decoding_t dec, BandRejectReason *val);
  358. static int ASN1CALL ASN1Dec_LocationRejectReason(ASN1decoding_t dec, LocationRejectReason *val);
  359. static int ASN1CALL ASN1Dec_DisengageReason(ASN1decoding_t dec, DisengageReason *val);
  360. static int ASN1CALL ASN1Dec_DisengageRejectReason(ASN1decoding_t dec, DisengageRejectReason *val);
  361. static int ASN1CALL ASN1Dec_InfoRequestNakReason(ASN1decoding_t dec, InfoRequestNakReason *val);
  362. static int ASN1CALL ASN1Dec_UnknownMessageResponse(ASN1decoding_t dec, UnknownMessageResponse *val);
  363. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  364. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens *val);
  365. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens *val);
  366. static int ASN1CALL ASN1Dec_RequestInProgress_tokens(ASN1decoding_t dec, PRequestInProgress_tokens *val);
  367. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens(ASN1decoding_t dec, PUnknownMessageResponse_tokens *val);
  368. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens(ASN1decoding_t dec, PH225NonStandardMessage_tokens *val);
  369. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens(ASN1decoding_t dec, PInfoRequestNak_tokens *val);
  370. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens(ASN1decoding_t dec, PInfoRequestAck_tokens *val);
  371. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens(ASN1decoding_t dec, PInfoRequestResponse_tokens *val);
  372. static int ASN1CALL ASN1Dec_InfoRequest_tokens(ASN1decoding_t dec, PInfoRequest_tokens *val);
  373. static int ASN1CALL ASN1Dec_DisengageReject_tokens(ASN1decoding_t dec, PDisengageReject_tokens *val);
  374. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens(ASN1decoding_t dec, PDisengageConfirm_tokens *val);
  375. static int ASN1CALL ASN1Dec_DisengageRequest_tokens(ASN1decoding_t dec, PDisengageRequest_tokens *val);
  376. static int ASN1CALL ASN1Dec_LocationReject_tokens(ASN1decoding_t dec, PLocationReject_tokens *val);
  377. static int ASN1CALL ASN1Dec_LocationConfirm_tokens(ASN1decoding_t dec, PLocationConfirm_tokens *val);
  378. static int ASN1CALL ASN1Dec_LocationRequest_tokens(ASN1decoding_t dec, PLocationRequest_tokens *val);
  379. static int ASN1CALL ASN1Dec_BandwidthReject_tokens(ASN1decoding_t dec, PBandwidthReject_tokens *val);
  380. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens(ASN1decoding_t dec, PBandwidthConfirm_tokens *val);
  381. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens(ASN1decoding_t dec, PBandwidthRequest_tokens *val);
  382. static int ASN1CALL ASN1Dec_AdmissionReject_tokens(ASN1decoding_t dec, PAdmissionReject_tokens *val);
  383. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens(ASN1decoding_t dec, PAdmissionConfirm_tokens *val);
  384. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens(ASN1decoding_t dec, PAdmissionRequest_tokens *val);
  385. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens(ASN1decoding_t dec, PUnregistrationReject_tokens *val);
  386. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens(ASN1decoding_t dec, PUnregistrationConfirm_tokens *val);
  387. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens(ASN1decoding_t dec, PUnregistrationRequest_tokens *val);
  388. static int ASN1CALL ASN1Dec_RegistrationReject_tokens(ASN1decoding_t dec, PRegistrationReject_tokens *val);
  389. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens(ASN1decoding_t dec, PRegistrationConfirm_tokens *val);
  390. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens(ASN1decoding_t dec, PRegistrationRequest_tokens *val);
  391. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens(ASN1decoding_t dec, PGatekeeperReject_tokens *val);
  392. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens(ASN1decoding_t dec, PGatekeeperConfirm_tokens *val);
  393. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability *val);
  394. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens(ASN1decoding_t dec, PGatekeeperRequest_tokens *val);
  395. static int ASN1CALL ASN1Dec_Endpoint_tokens(ASN1decoding_t dec, PEndpoint_tokens *val);
  396. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens(ASN1decoding_t dec, PProgress_UUIE_tokens *val);
  397. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens(ASN1decoding_t dec, PFacility_UUIE_tokens *val);
  398. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens(ASN1decoding_t dec, PSetup_UUIE_tokens *val);
  399. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens(ASN1decoding_t dec, PConnect_UUIE_tokens *val);
  400. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens(ASN1decoding_t dec, PCallProceeding_UUIE_tokens *val);
  401. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens(ASN1decoding_t dec, PAlerting_UUIE_tokens *val);
  402. static int ASN1CALL ASN1Dec_SIGNED_EncodedGeneralToken(ASN1decoding_t dec, SIGNED_EncodedGeneralToken *val);
  403. static int ASN1CALL ASN1Dec_ENCRYPTED(ASN1decoding_t dec, ENCRYPTED *val);
  404. static int ASN1CALL ASN1Dec_HASHED(ASN1decoding_t dec, HASHED *val);
  405. static int ASN1CALL ASN1Dec_SIGNED_EncodedPwdCertToken(ASN1decoding_t dec, SIGNED_EncodedPwdCertToken *val);
  406. static int ASN1CALL ASN1Dec_Information_UUIE(ASN1decoding_t dec, Information_UUIE *val);
  407. static int ASN1CALL ASN1Dec_ReleaseComplete_UUIE(ASN1decoding_t dec, ReleaseComplete_UUIE *val);
  408. static int ASN1CALL ASN1Dec_VendorIdentifier(ASN1decoding_t dec, VendorIdentifier *val);
  409. static int ASN1CALL ASN1Dec_H225NonStandardParameter(ASN1decoding_t dec, H225NonStandardParameter *val);
  410. static int ASN1CALL ASN1Dec_PublicPartyNumber(ASN1decoding_t dec, PublicPartyNumber *val);
  411. static int ASN1CALL ASN1Dec_PrivatePartyNumber(ASN1decoding_t dec, PrivatePartyNumber *val);
  412. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val);
  413. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val);
  414. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val);
  415. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val);
  416. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val);
  417. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val);
  418. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val);
  419. #define ASN1Dec_FastStartToken(x,y) 0
  420. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val);
  421. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val);
  422. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val);
  423. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val);
  424. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val);
  425. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val);
  426. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val);
  427. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val);
  428. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val);
  429. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val);
  430. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val);
  431. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val);
  432. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val);
  433. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val);
  434. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val);
  435. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val);
  436. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val);
  437. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val);
  438. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val);
  439. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val);
  440. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val);
  441. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val);
  442. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val);
  443. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val);
  444. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val);
  445. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val);
  446. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val);
  447. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val);
  448. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val);
  449. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val);
  450. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val);
  451. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val);
  452. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val);
  453. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val);
  454. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val);
  455. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val);
  456. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val);
  457. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val);
  458. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val);
  459. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val);
  460. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val);
  461. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val);
  462. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val);
  463. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val);
  464. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val);
  465. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val);
  466. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val);
  467. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val);
  468. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val);
  469. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val);
  470. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val);
  471. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val);
  472. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val);
  473. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val);
  474. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val);
  475. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val);
  476. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val);
  477. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val);
  478. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val);
  479. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val);
  480. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val);
  481. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val);
  482. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val);
  483. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val);
  484. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val);
  485. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val);
  486. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val);
  487. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val);
  488. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val);
  489. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val);
  490. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val);
  491. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val);
  492. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val);
  493. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val);
  494. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val);
  495. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val);
  496. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val);
  497. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val);
  498. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val);
  499. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val);
  500. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val);
  501. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val);
  502. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val);
  503. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val);
  504. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val);
  505. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val);
  506. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val);
  507. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val);
  508. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val);
  509. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val);
  510. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val);
  511. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val);
  512. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val);
  513. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val);
  514. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val);
  515. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val);
  516. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val);
  517. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val);
  518. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val);
  519. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val);
  520. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val);
  521. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val);
  522. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val);
  523. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val);
  524. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val);
  525. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val);
  526. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val);
  527. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val);
  528. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val);
  529. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val);
  530. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val);
  531. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val);
  532. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val);
  533. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val);
  534. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val);
  535. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val);
  536. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val);
  537. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val);
  538. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val);
  539. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val);
  540. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val);
  541. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val);
  542. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val);
  543. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val);
  544. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val);
  545. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val);
  546. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val);
  547. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val);
  548. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val);
  549. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val);
  550. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val);
  551. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val);
  552. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val);
  553. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val);
  554. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val);
  555. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val);
  556. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val);
  557. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val);
  558. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val);
  559. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val);
  560. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val);
  561. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val);
  562. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  563. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val);
  564. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val);
  565. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val);
  566. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val);
  567. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val);
  568. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val);
  569. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val);
  570. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val);
  571. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val);
  572. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val);
  573. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val);
  574. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val);
  575. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val);
  576. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val);
  577. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val);
  578. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val);
  579. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val);
  580. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val);
  581. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val);
  582. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val);
  583. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val);
  584. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val);
  585. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val);
  586. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val);
  587. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val);
  588. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val);
  589. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val);
  590. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val);
  591. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val);
  592. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val);
  593. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val);
  594. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val);
  595. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val);
  596. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val);
  597. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val);
  598. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val);
  599. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val);
  600. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val);
  601. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val);
  602. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val);
  603. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  604. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  605. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val);
  606. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  607. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute_route(PTransportAddress_ipSourceRoute_route *val);
  608. static void ASN1CALL ASN1Free_RTPSession_associatedSessionIds(PRTPSession_associatedSessionIds *val);
  609. static void ASN1CALL ASN1Free_GatekeeperRequest_algorithmOIDs(PGatekeeperRequest_algorithmOIDs *val);
  610. static void ASN1CALL ASN1Free_TransportAddress_ip6Address(TransportAddress_ip6Address *val);
  611. static void ASN1CALL ASN1Free_TransportAddress_ipxAddress(TransportAddress_ipxAddress *val);
  612. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute(TransportAddress_ipSourceRoute *val);
  613. static void ASN1CALL ASN1Free_TransportAddress_ipAddress(TransportAddress_ipAddress *val);
  614. static void ASN1CALL ASN1Free_Progress_UUIE_fastStart(PProgress_UUIE_fastStart *val);
  615. static void ASN1CALL ASN1Free_Facility_UUIE_fastStart(PFacility_UUIE_fastStart *val);
  616. static void ASN1CALL ASN1Free_Setup_UUIE_fastStart(PSetup_UUIE_fastStart *val);
  617. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV(PSetup_UUIE_destExtraCRV *val);
  618. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart(PConnect_UUIE_fastStart *val);
  619. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart(PCallProceeding_UUIE_fastStart *val);
  620. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart(PAlerting_UUIE_fastStart *val);
  621. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control(PH323_UU_PDU_h245Control *val);
  622. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService(PH323_UU_PDU_h4501SupplementaryService *val);
  623. static void ASN1CALL ASN1Free_H323_UserInformation_user_data(H323_UserInformation_user_data *val);
  624. static void ASN1CALL ASN1Free_H235NonStandardParameter(H235NonStandardParameter *val);
  625. static void ASN1CALL ASN1Free_DHset(DHset *val);
  626. static void ASN1CALL ASN1Free_TypedCertificate(TypedCertificate *val);
  627. static void ASN1CALL ASN1Free_AuthenticationMechanism(AuthenticationMechanism *val);
  628. static void ASN1CALL ASN1Free_ClearToken(ClearToken *val);
  629. static void ASN1CALL ASN1Free_Params(Params *val);
  630. static void ASN1CALL ASN1Free_EncodedGeneralToken(EncodedGeneralToken *val);
  631. static void ASN1CALL ASN1Free_PwdCertToken(PwdCertToken *val);
  632. static void ASN1CALL ASN1Free_EncodedPwdCertToken(EncodedPwdCertToken *val);
  633. static void ASN1CALL ASN1Free_H225NonStandardIdentifier(H225NonStandardIdentifier *val);
  634. static void ASN1CALL ASN1Free_AltGKInfo(AltGKInfo *val);
  635. static void ASN1CALL ASN1Free_CallIdentifier(CallIdentifier *val);
  636. static void ASN1CALL ASN1Free_ICV(ICV *val);
  637. static void ASN1CALL ASN1Free_RegistrationRejectReason(RegistrationRejectReason *val);
  638. static void ASN1CALL ASN1Free_UnknownMessageResponse(UnknownMessageResponse *val);
  639. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  640. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens(PResourcesAvailableConfirm_tokens *val);
  641. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens(PResourcesAvailableIndicate_tokens *val);
  642. static void ASN1CALL ASN1Free_RequestInProgress_tokens(PRequestInProgress_tokens *val);
  643. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens(PUnknownMessageResponse_tokens *val);
  644. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens(PH225NonStandardMessage_tokens *val);
  645. static void ASN1CALL ASN1Free_InfoRequestNak_tokens(PInfoRequestNak_tokens *val);
  646. static void ASN1CALL ASN1Free_InfoRequestAck_tokens(PInfoRequestAck_tokens *val);
  647. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens(PInfoRequestResponse_tokens *val);
  648. static void ASN1CALL ASN1Free_InfoRequest_tokens(PInfoRequest_tokens *val);
  649. static void ASN1CALL ASN1Free_DisengageReject_tokens(PDisengageReject_tokens *val);
  650. static void ASN1CALL ASN1Free_DisengageConfirm_tokens(PDisengageConfirm_tokens *val);
  651. static void ASN1CALL ASN1Free_DisengageRequest_tokens(PDisengageRequest_tokens *val);
  652. static void ASN1CALL ASN1Free_LocationReject_tokens(PLocationReject_tokens *val);
  653. static void ASN1CALL ASN1Free_LocationConfirm_tokens(PLocationConfirm_tokens *val);
  654. static void ASN1CALL ASN1Free_LocationRequest_tokens(PLocationRequest_tokens *val);
  655. static void ASN1CALL ASN1Free_BandwidthReject_tokens(PBandwidthReject_tokens *val);
  656. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens(PBandwidthConfirm_tokens *val);
  657. static void ASN1CALL ASN1Free_BandwidthRequest_tokens(PBandwidthRequest_tokens *val);
  658. static void ASN1CALL ASN1Free_AdmissionReject_tokens(PAdmissionReject_tokens *val);
  659. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens(PAdmissionConfirm_tokens *val);
  660. static void ASN1CALL ASN1Free_AdmissionRequest_tokens(PAdmissionRequest_tokens *val);
  661. static void ASN1CALL ASN1Free_UnregistrationReject_tokens(PUnregistrationReject_tokens *val);
  662. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens(PUnregistrationConfirm_tokens *val);
  663. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens(PUnregistrationRequest_tokens *val);
  664. static void ASN1CALL ASN1Free_RegistrationReject_tokens(PRegistrationReject_tokens *val);
  665. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens(PRegistrationConfirm_tokens *val);
  666. static void ASN1CALL ASN1Free_RegistrationRequest_tokens(PRegistrationRequest_tokens *val);
  667. static void ASN1CALL ASN1Free_GatekeeperReject_tokens(PGatekeeperReject_tokens *val);
  668. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens(PGatekeeperConfirm_tokens *val);
  669. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability(PGatekeeperRequest_authenticationCapability *val);
  670. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens(PGatekeeperRequest_tokens *val);
  671. static void ASN1CALL ASN1Free_Endpoint_tokens(PEndpoint_tokens *val);
  672. static void ASN1CALL ASN1Free_Progress_UUIE_tokens(PProgress_UUIE_tokens *val);
  673. static void ASN1CALL ASN1Free_Facility_UUIE_tokens(PFacility_UUIE_tokens *val);
  674. static void ASN1CALL ASN1Free_Setup_UUIE_tokens(PSetup_UUIE_tokens *val);
  675. static void ASN1CALL ASN1Free_Connect_UUIE_tokens(PConnect_UUIE_tokens *val);
  676. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens(PCallProceeding_UUIE_tokens *val);
  677. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens(PAlerting_UUIE_tokens *val);
  678. static void ASN1CALL ASN1Free_SIGNED_EncodedGeneralToken(SIGNED_EncodedGeneralToken *val);
  679. static void ASN1CALL ASN1Free_ENCRYPTED(ENCRYPTED *val);
  680. static void ASN1CALL ASN1Free_HASHED(HASHED *val);
  681. static void ASN1CALL ASN1Free_SIGNED_EncodedPwdCertToken(SIGNED_EncodedPwdCertToken *val);
  682. static void ASN1CALL ASN1Free_Information_UUIE(Information_UUIE *val);
  683. static void ASN1CALL ASN1Free_ReleaseComplete_UUIE(ReleaseComplete_UUIE *val);
  684. static void ASN1CALL ASN1Free_VendorIdentifier(VendorIdentifier *val);
  685. static void ASN1CALL ASN1Free_H225NonStandardParameter(H225NonStandardParameter *val);
  686. static void ASN1CALL ASN1Free_PublicPartyNumber(PublicPartyNumber *val);
  687. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val);
  688. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val);
  689. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val);
  690. static void ASN1CALL ASN1Free_H245Security(H245Security *val);
  691. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val);
  692. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val);
  693. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val);
  694. #define ASN1Free_FastStartToken(x)
  695. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val);
  696. static void ASN1CALL ASN1Free_DataRate(DataRate *val);
  697. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val);
  698. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val);
  699. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val);
  700. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val);
  701. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val);
  702. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val);
  703. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val);
  704. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val);
  705. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val);
  706. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val);
  707. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val);
  708. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val);
  709. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val);
  710. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val);
  711. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val);
  712. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val);
  713. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val);
  714. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val);
  715. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val);
  716. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val);
  717. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val);
  718. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val);
  719. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val);
  720. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val);
  721. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val);
  722. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val);
  723. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val);
  724. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val);
  725. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val);
  726. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val);
  727. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val);
  728. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val);
  729. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val);
  730. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val);
  731. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val);
  732. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val);
  733. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val);
  734. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val);
  735. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val);
  736. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val);
  737. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val);
  738. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val);
  739. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val);
  740. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val);
  741. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val);
  742. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val);
  743. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val);
  744. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val);
  745. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val);
  746. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val);
  747. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val);
  748. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val);
  749. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val);
  750. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val);
  751. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val);
  752. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val);
  753. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val);
  754. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val);
  755. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val);
  756. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val);
  757. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val);
  758. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val);
  759. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val);
  760. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val);
  761. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val);
  762. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val);
  763. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val);
  764. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val);
  765. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val);
  766. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val);
  767. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val);
  768. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val);
  769. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val);
  770. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val);
  771. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val);
  772. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val);
  773. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val);
  774. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val);
  775. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val);
  776. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val);
  777. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val);
  778. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val);
  779. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val);
  780. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val);
  781. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val);
  782. static void ASN1CALL ASN1Free_LocationConfirm(LocationConfirm *val);
  783. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val);
  784. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val);
  785. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val);
  786. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val);
  787. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val);
  788. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val);
  789. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val);
  790. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val);
  791. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val);
  792. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val);
  793. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val);
  794. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val);
  795. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val);
  796. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val);
  797. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val);
  798. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val);
  799. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val);
  800. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val);
  801. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val);
  802. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val);
  803. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val);
  804. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val);
  805. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val);
  806. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val);
  807. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val);
  808. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val);
  809. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val);
  810. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val);
  811. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val);
  812. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val);
  813. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val);
  814. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val);
  815. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val);
  816. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val);
  817. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val);
  818. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val);
  819. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val);
  820. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val);
  821. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val);
  822. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val);
  823. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val);
  824. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val);
  825. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val);
  826. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val);
  827. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val);
  828. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val);
  829. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val);
  830. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val);
  831. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val);
  832. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val);
  833. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val);
  834. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val);
  835. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val);
  836. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val);
  837. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  838. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val);
  839. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val);
  840. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val);
  841. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val);
  842. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val);
  843. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val);
  844. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val);
  845. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val);
  846. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val);
  847. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val);
  848. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val);
  849. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val);
  850. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val);
  851. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val);
  852. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val);
  853. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val);
  854. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val);
  855. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val);
  856. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val);
  857. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val);
  858. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val);
  859. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val);
  860. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val);
  861. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val);
  862. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val);
  863. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val);
  864. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val);
  865. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val);
  866. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val);
  867. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val);
  868. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val);
  869. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val);
  870. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val);
  871. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val);
  872. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val);
  873. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val);
  874. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val);
  875. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val);
  876. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val);
  877. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val);
  878. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  879. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  880. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val);
  881. typedef ASN1PerEncFun_t ASN1EncFun_t;
  882. static const ASN1EncFun_t encfntab[2] = {
  883. (ASN1EncFun_t) ASN1Enc_RasMessage,
  884. (ASN1EncFun_t) ASN1Enc_H323_UserInformation,
  885. };
  886. typedef ASN1PerDecFun_t ASN1DecFun_t;
  887. static const ASN1DecFun_t decfntab[2] = {
  888. (ASN1DecFun_t) ASN1Dec_RasMessage,
  889. (ASN1DecFun_t) ASN1Dec_H323_UserInformation,
  890. };
  891. static const ASN1FreeFun_t freefntab[2] = {
  892. (ASN1FreeFun_t) ASN1Free_RasMessage,
  893. (ASN1FreeFun_t) ASN1Free_H323_UserInformation,
  894. };
  895. static const ULONG sizetab[2] = {
  896. SIZE_H225ASN_Module_PDU_0,
  897. SIZE_H225ASN_Module_PDU_1,
  898. };
  899. /* forward declarations of values: */
  900. /* definitions of value components: */
  901. /* definitions of values: */
  902. void ASN1CALL H225ASN_Module_Startup(void)
  903. {
  904. H225ASN_Module = ASN1_CreateModule(0x10000, ASN1_PER_RULE_ALIGNED, ASN1FLAGS_NONE, 2, (const ASN1GenericFun_t *) encfntab, (const ASN1GenericFun_t *) decfntab, freefntab, sizetab, 0x35323268);
  905. }
  906. void ASN1CALL H225ASN_Module_Cleanup(void)
  907. {
  908. ASN1_CloseModule(H225ASN_Module);
  909. H225ASN_Module = NULL;
  910. }
  911. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val)
  912. {
  913. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn);
  914. }
  915. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs val)
  916. {
  917. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &val->value, 16))
  918. return 0;
  919. return 1;
  920. }
  921. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val)
  922. {
  923. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn, sizeof(**val));
  924. }
  925. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs val)
  926. {
  927. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &val->value, 16))
  928. return 0;
  929. return 1;
  930. }
  931. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val)
  932. {
  933. if (val) {
  934. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn);
  935. }
  936. }
  937. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs_ElmFn(PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs val)
  938. {
  939. if (val) {
  940. }
  941. }
  942. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_routing(ASN1encoding_t enc, TransportAddress_ipSourceRoute_routing *val)
  943. {
  944. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  945. return 0;
  946. return 1;
  947. }
  948. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_routing(ASN1decoding_t dec, TransportAddress_ipSourceRoute_routing *val)
  949. {
  950. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  951. return 0;
  952. return 1;
  953. }
  954. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_route(ASN1encoding_t enc, PTransportAddress_ipSourceRoute_route *val)
  955. {
  956. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_TransportAddress_ipSourceRoute_route_ElmFn);
  957. }
  958. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_route_ElmFn(ASN1encoding_t enc, PTransportAddress_ipSourceRoute_route val)
  959. {
  960. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &val->value, 4))
  961. return 0;
  962. return 1;
  963. }
  964. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_route(ASN1decoding_t dec, PTransportAddress_ipSourceRoute_route *val)
  965. {
  966. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_TransportAddress_ipSourceRoute_route_ElmFn, sizeof(**val));
  967. }
  968. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_route_ElmFn(ASN1decoding_t dec, PTransportAddress_ipSourceRoute_route val)
  969. {
  970. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &val->value, 4))
  971. return 0;
  972. return 1;
  973. }
  974. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute_route(PTransportAddress_ipSourceRoute_route *val)
  975. {
  976. if (val) {
  977. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_TransportAddress_ipSourceRoute_route_ElmFn);
  978. }
  979. }
  980. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute_route_ElmFn(PTransportAddress_ipSourceRoute_route val)
  981. {
  982. if (val) {
  983. }
  984. }
  985. static int ASN1CALL ASN1Enc_RTPSession_associatedSessionIds(ASN1encoding_t enc, PRTPSession_associatedSessionIds *val)
  986. {
  987. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RTPSession_associatedSessionIds_ElmFn);
  988. }
  989. static int ASN1CALL ASN1Enc_RTPSession_associatedSessionIds_ElmFn(ASN1encoding_t enc, PRTPSession_associatedSessionIds val)
  990. {
  991. if (!ASN1PEREncBitVal(enc, 8, val->value - 1))
  992. return 0;
  993. return 1;
  994. }
  995. static int ASN1CALL ASN1Dec_RTPSession_associatedSessionIds(ASN1decoding_t dec, PRTPSession_associatedSessionIds *val)
  996. {
  997. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RTPSession_associatedSessionIds_ElmFn, sizeof(**val));
  998. }
  999. static int ASN1CALL ASN1Dec_RTPSession_associatedSessionIds_ElmFn(ASN1decoding_t dec, PRTPSession_associatedSessionIds val)
  1000. {
  1001. if (!ASN1PERDecU16Val(dec, 8, &val->value))
  1002. return 0;
  1003. val->value += 1;
  1004. return 1;
  1005. }
  1006. static void ASN1CALL ASN1Free_RTPSession_associatedSessionIds(PRTPSession_associatedSessionIds *val)
  1007. {
  1008. if (val) {
  1009. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RTPSession_associatedSessionIds_ElmFn);
  1010. }
  1011. }
  1012. static void ASN1CALL ASN1Free_RTPSession_associatedSessionIds_ElmFn(PRTPSession_associatedSessionIds val)
  1013. {
  1014. if (val) {
  1015. }
  1016. }
  1017. static int ASN1CALL ASN1Enc_RegistrationConfirm_preGrantedARQ(ASN1encoding_t enc, RegistrationConfirm_preGrantedARQ *val)
  1018. {
  1019. if (!ASN1PEREncExtensionBitClear(enc))
  1020. return 0;
  1021. if (!ASN1PEREncBoolean(enc, (val)->makeCall))
  1022. return 0;
  1023. if (!ASN1PEREncBoolean(enc, (val)->useGKCallSignalAddressToMakeCall))
  1024. return 0;
  1025. if (!ASN1PEREncBoolean(enc, (val)->answerCall))
  1026. return 0;
  1027. if (!ASN1PEREncBoolean(enc, (val)->useGKCallSignalAddressToAnswer))
  1028. return 0;
  1029. return 1;
  1030. }
  1031. static int ASN1CALL ASN1Dec_RegistrationConfirm_preGrantedARQ(ASN1decoding_t dec, RegistrationConfirm_preGrantedARQ *val)
  1032. {
  1033. ASN1uint32_t y;
  1034. if (!ASN1PERDecExtensionBit(dec, &y))
  1035. return 0;
  1036. if (!ASN1PERDecBoolean(dec, &(val)->makeCall))
  1037. return 0;
  1038. if (!ASN1PERDecBoolean(dec, &(val)->useGKCallSignalAddressToMakeCall))
  1039. return 0;
  1040. if (!ASN1PERDecBoolean(dec, &(val)->answerCall))
  1041. return 0;
  1042. if (!ASN1PERDecBoolean(dec, &(val)->useGKCallSignalAddressToAnswer))
  1043. return 0;
  1044. if (y) {
  1045. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1046. return 0;
  1047. }
  1048. return 1;
  1049. }
  1050. static int ASN1CALL ASN1Enc_GatekeeperRequest_algorithmOIDs(ASN1encoding_t enc, PGatekeeperRequest_algorithmOIDs *val)
  1051. {
  1052. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_algorithmOIDs_ElmFn);
  1053. }
  1054. static int ASN1CALL ASN1Enc_GatekeeperRequest_algorithmOIDs_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_algorithmOIDs val)
  1055. {
  1056. if (!ASN1PEREncObjectIdentifier(enc, &val->value))
  1057. return 0;
  1058. return 1;
  1059. }
  1060. static int ASN1CALL ASN1Dec_GatekeeperRequest_algorithmOIDs(ASN1decoding_t dec, PGatekeeperRequest_algorithmOIDs *val)
  1061. {
  1062. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_algorithmOIDs_ElmFn, sizeof(**val));
  1063. }
  1064. static int ASN1CALL ASN1Dec_GatekeeperRequest_algorithmOIDs_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_algorithmOIDs val)
  1065. {
  1066. if (!ASN1PERDecObjectIdentifier(dec, &val->value))
  1067. return 0;
  1068. return 1;
  1069. }
  1070. static void ASN1CALL ASN1Free_GatekeeperRequest_algorithmOIDs(PGatekeeperRequest_algorithmOIDs *val)
  1071. {
  1072. if (val) {
  1073. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_algorithmOIDs_ElmFn);
  1074. }
  1075. }
  1076. static void ASN1CALL ASN1Free_GatekeeperRequest_algorithmOIDs_ElmFn(PGatekeeperRequest_algorithmOIDs val)
  1077. {
  1078. if (val) {
  1079. ASN1objectidentifier_free(&val->value);
  1080. }
  1081. }
  1082. static int ASN1CALL ASN1Enc_TransportAddress_ip6Address(ASN1encoding_t enc, TransportAddress_ip6Address *val)
  1083. {
  1084. if (!ASN1PEREncExtensionBitClear(enc))
  1085. return 0;
  1086. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->ip, 16))
  1087. return 0;
  1088. if (!ASN1PEREncUnsignedShort(enc, (val)->port))
  1089. return 0;
  1090. return 1;
  1091. }
  1092. static int ASN1CALL ASN1Dec_TransportAddress_ip6Address(ASN1decoding_t dec, TransportAddress_ip6Address *val)
  1093. {
  1094. ASN1uint32_t y;
  1095. if (!ASN1PERDecExtensionBit(dec, &y))
  1096. return 0;
  1097. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->ip, 16))
  1098. return 0;
  1099. if (!ASN1PERDecUnsignedShort(dec, &(val)->port))
  1100. return 0;
  1101. if (y) {
  1102. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1103. return 0;
  1104. }
  1105. return 1;
  1106. }
  1107. static void ASN1CALL ASN1Free_TransportAddress_ip6Address(TransportAddress_ip6Address *val)
  1108. {
  1109. if (val) {
  1110. }
  1111. }
  1112. static int ASN1CALL ASN1Enc_TransportAddress_ipxAddress(ASN1encoding_t enc, TransportAddress_ipxAddress *val)
  1113. {
  1114. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->node, 6))
  1115. return 0;
  1116. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->netnum, 4))
  1117. return 0;
  1118. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->port, 2))
  1119. return 0;
  1120. return 1;
  1121. }
  1122. static int ASN1CALL ASN1Dec_TransportAddress_ipxAddress(ASN1decoding_t dec, TransportAddress_ipxAddress *val)
  1123. {
  1124. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->node, 6))
  1125. return 0;
  1126. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->netnum, 4))
  1127. return 0;
  1128. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->port, 2))
  1129. return 0;
  1130. return 1;
  1131. }
  1132. static void ASN1CALL ASN1Free_TransportAddress_ipxAddress(TransportAddress_ipxAddress *val)
  1133. {
  1134. if (val) {
  1135. }
  1136. }
  1137. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute(ASN1encoding_t enc, TransportAddress_ipSourceRoute *val)
  1138. {
  1139. if (!ASN1PEREncExtensionBitClear(enc))
  1140. return 0;
  1141. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->ip, 4))
  1142. return 0;
  1143. if (!ASN1PEREncUnsignedShort(enc, (val)->port))
  1144. return 0;
  1145. if (!ASN1Enc_TransportAddress_ipSourceRoute_route(enc, &(val)->route))
  1146. return 0;
  1147. if (!ASN1Enc_TransportAddress_ipSourceRoute_routing(enc, &(val)->routing))
  1148. return 0;
  1149. return 1;
  1150. }
  1151. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute(ASN1decoding_t dec, TransportAddress_ipSourceRoute *val)
  1152. {
  1153. ASN1uint32_t y;
  1154. if (!ASN1PERDecExtensionBit(dec, &y))
  1155. return 0;
  1156. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->ip, 4))
  1157. return 0;
  1158. if (!ASN1PERDecUnsignedShort(dec, &(val)->port))
  1159. return 0;
  1160. if (!ASN1Dec_TransportAddress_ipSourceRoute_route(dec, &(val)->route))
  1161. return 0;
  1162. if (!ASN1Dec_TransportAddress_ipSourceRoute_routing(dec, &(val)->routing))
  1163. return 0;
  1164. if (y) {
  1165. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1166. return 0;
  1167. }
  1168. return 1;
  1169. }
  1170. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute(TransportAddress_ipSourceRoute *val)
  1171. {
  1172. if (val) {
  1173. ASN1Free_TransportAddress_ipSourceRoute_route(&(val)->route);
  1174. }
  1175. }
  1176. static int ASN1CALL ASN1Enc_TransportAddress_ipAddress(ASN1encoding_t enc, TransportAddress_ipAddress *val)
  1177. {
  1178. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->ip, 4))
  1179. return 0;
  1180. if (!ASN1PEREncUnsignedShort(enc, (val)->port))
  1181. return 0;
  1182. return 1;
  1183. }
  1184. static int ASN1CALL ASN1Dec_TransportAddress_ipAddress(ASN1decoding_t dec, TransportAddress_ipAddress *val)
  1185. {
  1186. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->ip, 4))
  1187. return 0;
  1188. if (!ASN1PERDecUnsignedShort(dec, &(val)->port))
  1189. return 0;
  1190. return 1;
  1191. }
  1192. static void ASN1CALL ASN1Free_TransportAddress_ipAddress(TransportAddress_ipAddress *val)
  1193. {
  1194. if (val) {
  1195. }
  1196. }
  1197. static int ASN1CALL ASN1Enc_Progress_UUIE_fastStart(ASN1encoding_t enc, PProgress_UUIE_fastStart *val)
  1198. {
  1199. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_fastStart_ElmFn);
  1200. }
  1201. static int ASN1CALL ASN1Enc_Progress_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PProgress_UUIE_fastStart val)
  1202. {
  1203. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1204. return 0;
  1205. return 1;
  1206. }
  1207. static int ASN1CALL ASN1Dec_Progress_UUIE_fastStart(ASN1decoding_t dec, PProgress_UUIE_fastStart *val)
  1208. {
  1209. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_fastStart_ElmFn, sizeof(**val));
  1210. }
  1211. static int ASN1CALL ASN1Dec_Progress_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PProgress_UUIE_fastStart val)
  1212. {
  1213. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1214. return 0;
  1215. return 1;
  1216. }
  1217. static void ASN1CALL ASN1Free_Progress_UUIE_fastStart(PProgress_UUIE_fastStart *val)
  1218. {
  1219. if (val) {
  1220. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_fastStart_ElmFn);
  1221. }
  1222. }
  1223. static void ASN1CALL ASN1Free_Progress_UUIE_fastStart_ElmFn(PProgress_UUIE_fastStart val)
  1224. {
  1225. if (val) {
  1226. ASN1octetstring_free(&val->value);
  1227. }
  1228. }
  1229. static int ASN1CALL ASN1Enc_Facility_UUIE_fastStart(ASN1encoding_t enc, PFacility_UUIE_fastStart *val)
  1230. {
  1231. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_fastStart_ElmFn);
  1232. }
  1233. static int ASN1CALL ASN1Enc_Facility_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PFacility_UUIE_fastStart val)
  1234. {
  1235. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1236. return 0;
  1237. return 1;
  1238. }
  1239. static int ASN1CALL ASN1Dec_Facility_UUIE_fastStart(ASN1decoding_t dec, PFacility_UUIE_fastStart *val)
  1240. {
  1241. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_fastStart_ElmFn, sizeof(**val));
  1242. }
  1243. static int ASN1CALL ASN1Dec_Facility_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PFacility_UUIE_fastStart val)
  1244. {
  1245. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1246. return 0;
  1247. return 1;
  1248. }
  1249. static void ASN1CALL ASN1Free_Facility_UUIE_fastStart(PFacility_UUIE_fastStart *val)
  1250. {
  1251. if (val) {
  1252. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_fastStart_ElmFn);
  1253. }
  1254. }
  1255. static void ASN1CALL ASN1Free_Facility_UUIE_fastStart_ElmFn(PFacility_UUIE_fastStart val)
  1256. {
  1257. if (val) {
  1258. ASN1octetstring_free(&val->value);
  1259. }
  1260. }
  1261. static int ASN1CALL ASN1Enc_Setup_UUIE_fastStart(ASN1encoding_t enc, PSetup_UUIE_fastStart *val)
  1262. {
  1263. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_fastStart_ElmFn);
  1264. }
  1265. static int ASN1CALL ASN1Enc_Setup_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PSetup_UUIE_fastStart val)
  1266. {
  1267. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1268. return 0;
  1269. return 1;
  1270. }
  1271. static int ASN1CALL ASN1Dec_Setup_UUIE_fastStart(ASN1decoding_t dec, PSetup_UUIE_fastStart *val)
  1272. {
  1273. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_fastStart_ElmFn, sizeof(**val));
  1274. }
  1275. static int ASN1CALL ASN1Dec_Setup_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PSetup_UUIE_fastStart val)
  1276. {
  1277. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1278. return 0;
  1279. return 1;
  1280. }
  1281. static void ASN1CALL ASN1Free_Setup_UUIE_fastStart(PSetup_UUIE_fastStart *val)
  1282. {
  1283. if (val) {
  1284. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_fastStart_ElmFn);
  1285. }
  1286. }
  1287. static void ASN1CALL ASN1Free_Setup_UUIE_fastStart_ElmFn(PSetup_UUIE_fastStart val)
  1288. {
  1289. if (val) {
  1290. ASN1octetstring_free(&val->value);
  1291. }
  1292. }
  1293. static int ASN1CALL ASN1Enc_Setup_UUIE_conferenceGoal(ASN1encoding_t enc, Setup_UUIE_conferenceGoal *val)
  1294. {
  1295. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 3))
  1296. return 0;
  1297. return 1;
  1298. }
  1299. //nik:change to fix the bug in decoding the extension filds in the CHOICE structure.
  1300. int MyASN1PERDecComplexChoice(ASN1decoding_t dec, ASN1choice_t *pChoiceVal, ASN1int32_t cChoiceBits, ASN1choice_t ExtensionChoice)
  1301. {
  1302. ASN1uint32_t x;
  1303. ASN1uint16_t tempVal;
  1304. if (ASN1PERDecExtensionBit(dec, &x))
  1305. {
  1306. if (!x)
  1307. {
  1308. *pChoiceVal = ASN1_CHOICE_BASE; // default choice
  1309. if (cChoiceBits)
  1310. {
  1311. if (ASN1PERDecU16Val(dec, cChoiceBits, pChoiceVal))
  1312. {
  1313. *pChoiceVal += ASN1_CHOICE_BASE;
  1314. return 1;
  1315. }
  1316. return 0;
  1317. }
  1318. return 1;
  1319. }
  1320. if (ASN1PERDecN16Val(dec, pChoiceVal))
  1321. {
  1322. *pChoiceVal += ExtensionChoice + ASN1_CHOICE_BASE;
  1323. /*skip 2 bytes*/
  1324. return ASN1PERDecS16Val( dec, 16, &tempVal );
  1325. }
  1326. }
  1327. return 0;
  1328. }
  1329. static int ASN1CALL ASN1Dec_Setup_UUIE_conferenceGoal(ASN1decoding_t dec, Setup_UUIE_conferenceGoal *val)
  1330. {
  1331. //nik:
  1332. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 2, 3))
  1333. return 0;
  1334. return 1;
  1335. }
  1336. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV *val)
  1337. {
  1338. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCRV_ElmFn);
  1339. }
  1340. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV val)
  1341. {
  1342. if (!ASN1PEREncUnsignedShort(enc, val->value))
  1343. return 0;
  1344. return 1;
  1345. }
  1346. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV *val)
  1347. {
  1348. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCRV_ElmFn, sizeof(**val));
  1349. }
  1350. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV val)
  1351. {
  1352. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1353. return 0;
  1354. return 1;
  1355. }
  1356. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV(PSetup_UUIE_destExtraCRV *val)
  1357. {
  1358. if (val) {
  1359. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCRV_ElmFn);
  1360. }
  1361. }
  1362. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV_ElmFn(PSetup_UUIE_destExtraCRV val)
  1363. {
  1364. if (val) {
  1365. }
  1366. }
  1367. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart(ASN1encoding_t enc, PConnect_UUIE_fastStart *val)
  1368. {
  1369. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_fastStart_ElmFn);
  1370. }
  1371. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PConnect_UUIE_fastStart val)
  1372. {
  1373. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1374. return 0;
  1375. return 1;
  1376. }
  1377. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart(ASN1decoding_t dec, PConnect_UUIE_fastStart *val)
  1378. {
  1379. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_fastStart_ElmFn, sizeof(**val));
  1380. }
  1381. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PConnect_UUIE_fastStart val)
  1382. {
  1383. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1384. return 0;
  1385. return 1;
  1386. }
  1387. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart(PConnect_UUIE_fastStart *val)
  1388. {
  1389. if (val) {
  1390. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_fastStart_ElmFn);
  1391. }
  1392. }
  1393. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart_ElmFn(PConnect_UUIE_fastStart val)
  1394. {
  1395. if (val) {
  1396. ASN1octetstring_free(&val->value);
  1397. }
  1398. }
  1399. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart *val)
  1400. {
  1401. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_fastStart_ElmFn);
  1402. }
  1403. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart val)
  1404. {
  1405. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1406. return 0;
  1407. return 1;
  1408. }
  1409. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart *val)
  1410. {
  1411. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_fastStart_ElmFn, sizeof(**val));
  1412. }
  1413. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart val)
  1414. {
  1415. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1416. return 0;
  1417. return 1;
  1418. }
  1419. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart(PCallProceeding_UUIE_fastStart *val)
  1420. {
  1421. if (val) {
  1422. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_fastStart_ElmFn);
  1423. }
  1424. }
  1425. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart_ElmFn(PCallProceeding_UUIE_fastStart val)
  1426. {
  1427. if (val) {
  1428. ASN1octetstring_free(&val->value);
  1429. }
  1430. }
  1431. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart(ASN1encoding_t enc, PAlerting_UUIE_fastStart *val)
  1432. {
  1433. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_fastStart_ElmFn);
  1434. }
  1435. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_fastStart val)
  1436. {
  1437. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1438. return 0;
  1439. return 1;
  1440. }
  1441. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart(ASN1decoding_t dec, PAlerting_UUIE_fastStart *val)
  1442. {
  1443. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_fastStart_ElmFn, sizeof(**val));
  1444. }
  1445. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_fastStart val)
  1446. {
  1447. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1448. return 0;
  1449. return 1;
  1450. }
  1451. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart(PAlerting_UUIE_fastStart *val)
  1452. {
  1453. if (val) {
  1454. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_fastStart_ElmFn);
  1455. }
  1456. }
  1457. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart_ElmFn(PAlerting_UUIE_fastStart val)
  1458. {
  1459. if (val) {
  1460. ASN1octetstring_free(&val->value);
  1461. }
  1462. }
  1463. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control(ASN1encoding_t enc, PH323_UU_PDU_h245Control *val)
  1464. {
  1465. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_h245Control_ElmFn);
  1466. }
  1467. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_h245Control val)
  1468. {
  1469. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1470. return 0;
  1471. return 1;
  1472. }
  1473. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control(ASN1decoding_t dec, PH323_UU_PDU_h245Control *val)
  1474. {
  1475. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_h245Control_ElmFn, sizeof(**val));
  1476. }
  1477. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_h245Control val)
  1478. {
  1479. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1480. return 0;
  1481. return 1;
  1482. }
  1483. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control(PH323_UU_PDU_h245Control *val)
  1484. {
  1485. if (val) {
  1486. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_h245Control_ElmFn);
  1487. }
  1488. }
  1489. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control_ElmFn(PH323_UU_PDU_h245Control val)
  1490. {
  1491. if (val) {
  1492. ASN1octetstring_free(&val->value);
  1493. }
  1494. }
  1495. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService *val)
  1496. {
  1497. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_h4501SupplementaryService_ElmFn);
  1498. }
  1499. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService val)
  1500. {
  1501. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1502. return 0;
  1503. return 1;
  1504. }
  1505. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService *val)
  1506. {
  1507. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_h4501SupplementaryService_ElmFn, sizeof(**val));
  1508. }
  1509. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService val)
  1510. {
  1511. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1512. return 0;
  1513. return 1;
  1514. }
  1515. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService(PH323_UU_PDU_h4501SupplementaryService *val)
  1516. {
  1517. if (val) {
  1518. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_h4501SupplementaryService_ElmFn);
  1519. }
  1520. }
  1521. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService_ElmFn(PH323_UU_PDU_h4501SupplementaryService val)
  1522. {
  1523. if (val) {
  1524. ASN1octetstring_free(&val->value);
  1525. }
  1526. }
  1527. static int ASN1CALL ASN1Enc_H323_UserInformation_user_data(ASN1encoding_t enc, H323_UserInformation_user_data *val)
  1528. {
  1529. if (!ASN1PEREncExtensionBitClear(enc))
  1530. return 0;
  1531. ASN1PEREncAlignment(enc);
  1532. if (!ASN1PEREncBitVal(enc, 8, (val)->protocol_discriminator))
  1533. return 0;
  1534. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->user_information, 1, 131, 8))
  1535. return 0;
  1536. return 1;
  1537. }
  1538. static int ASN1CALL ASN1Dec_H323_UserInformation_user_data(ASN1decoding_t dec, H323_UserInformation_user_data *val)
  1539. {
  1540. ASN1uint32_t y;
  1541. if (!ASN1PERDecExtensionBit(dec, &y))
  1542. return 0;
  1543. ASN1PERDecAlignment(dec);
  1544. if (!ASN1PERDecU16Val(dec, 8, &(val)->protocol_discriminator))
  1545. return 0;
  1546. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->user_information, 1, 131, 8))
  1547. return 0;
  1548. if (y) {
  1549. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1550. return 0;
  1551. }
  1552. return 1;
  1553. }
  1554. static void ASN1CALL ASN1Free_H323_UserInformation_user_data(H323_UserInformation_user_data *val)
  1555. {
  1556. if (val) {
  1557. }
  1558. }
  1559. static int ASN1CALL ASN1Enc_H235NonStandardParameter(ASN1encoding_t enc, H235NonStandardParameter *val)
  1560. {
  1561. if (!ASN1PEREncObjectIdentifier(enc, &(val)->nonStandardIdentifier))
  1562. return 0;
  1563. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->data))
  1564. return 0;
  1565. return 1;
  1566. }
  1567. static int ASN1CALL ASN1Dec_H235NonStandardParameter(ASN1decoding_t dec, H235NonStandardParameter *val)
  1568. {
  1569. if (!ASN1PERDecObjectIdentifier(dec, &(val)->nonStandardIdentifier))
  1570. return 0;
  1571. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->data))
  1572. return 0;
  1573. return 1;
  1574. }
  1575. static void ASN1CALL ASN1Free_H235NonStandardParameter(H235NonStandardParameter *val)
  1576. {
  1577. if (val) {
  1578. ASN1objectidentifier_free(&(val)->nonStandardIdentifier);
  1579. ASN1octetstring_free(&(val)->data);
  1580. }
  1581. }
  1582. static int ASN1CALL ASN1Enc_DHset(ASN1encoding_t enc, DHset *val)
  1583. {
  1584. if (!ASN1PEREncExtensionBitClear(enc))
  1585. return 0;
  1586. ASN1PEREncAlignment(enc);
  1587. if (!ASN1PEREncBitVal(enc, 16, ((val)->halfkey).length))
  1588. return 0;
  1589. if (!ASN1PEREncBits(enc, ((val)->halfkey).length, ((val)->halfkey).value))
  1590. return 0;
  1591. ASN1PEREncAlignment(enc);
  1592. if (!ASN1PEREncBitVal(enc, 16, ((val)->modSize).length))
  1593. return 0;
  1594. if (!ASN1PEREncBits(enc, ((val)->modSize).length, ((val)->modSize).value))
  1595. return 0;
  1596. ASN1PEREncAlignment(enc);
  1597. if (!ASN1PEREncBitVal(enc, 16, ((val)->generator).length))
  1598. return 0;
  1599. if (!ASN1PEREncBits(enc, ((val)->generator).length, ((val)->generator).value))
  1600. return 0;
  1601. return 1;
  1602. }
  1603. static int ASN1CALL ASN1Dec_DHset(ASN1decoding_t dec, DHset *val)
  1604. {
  1605. ASN1uint32_t y;
  1606. if (!ASN1PERDecExtensionBit(dec, &y))
  1607. return 0;
  1608. ASN1PERDecAlignment(dec);
  1609. if (!ASN1PERDecU32Val(dec, 16, &((val)->halfkey).length))
  1610. return 0;
  1611. if (!ASN1PERDecBits(dec, ((val)->halfkey).length, &((val)->halfkey).value))
  1612. return 0;
  1613. ASN1PERDecAlignment(dec);
  1614. if (!ASN1PERDecU32Val(dec, 16, &((val)->modSize).length))
  1615. return 0;
  1616. if (!ASN1PERDecBits(dec, ((val)->modSize).length, &((val)->modSize).value))
  1617. return 0;
  1618. ASN1PERDecAlignment(dec);
  1619. if (!ASN1PERDecU32Val(dec, 16, &((val)->generator).length))
  1620. return 0;
  1621. if (!ASN1PERDecBits(dec, ((val)->generator).length, &((val)->generator).value))
  1622. return 0;
  1623. if (y) {
  1624. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1625. return 0;
  1626. }
  1627. return 1;
  1628. }
  1629. static void ASN1CALL ASN1Free_DHset(DHset *val)
  1630. {
  1631. if (val) {
  1632. ASN1bitstring_free(&(val)->halfkey);
  1633. ASN1bitstring_free(&(val)->modSize);
  1634. ASN1bitstring_free(&(val)->generator);
  1635. }
  1636. }
  1637. static int ASN1CALL ASN1Enc_TypedCertificate(ASN1encoding_t enc, TypedCertificate *val)
  1638. {
  1639. if (!ASN1PEREncExtensionBitClear(enc))
  1640. return 0;
  1641. if (!ASN1PEREncObjectIdentifier(enc, &(val)->type))
  1642. return 0;
  1643. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->certificate))
  1644. return 0;
  1645. return 1;
  1646. }
  1647. static int ASN1CALL ASN1Dec_TypedCertificate(ASN1decoding_t dec, TypedCertificate *val)
  1648. {
  1649. ASN1uint32_t y;
  1650. if (!ASN1PERDecExtensionBit(dec, &y))
  1651. return 0;
  1652. if (!ASN1PERDecObjectIdentifier(dec, &(val)->type))
  1653. return 0;
  1654. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->certificate))
  1655. return 0;
  1656. if (y) {
  1657. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1658. return 0;
  1659. }
  1660. return 1;
  1661. }
  1662. static void ASN1CALL ASN1Free_TypedCertificate(TypedCertificate *val)
  1663. {
  1664. if (val) {
  1665. ASN1objectidentifier_free(&(val)->type);
  1666. ASN1octetstring_free(&(val)->certificate);
  1667. }
  1668. }
  1669. static int ASN1CALL ASN1Enc_AuthenticationMechanism(ASN1encoding_t enc, AuthenticationMechanism *val)
  1670. {
  1671. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  1672. return 0;
  1673. switch ((val)->choice) {
  1674. case 1:
  1675. break;
  1676. case 2:
  1677. break;
  1678. case 3:
  1679. break;
  1680. case 4:
  1681. break;
  1682. case 5:
  1683. break;
  1684. case 6:
  1685. break;
  1686. case 7:
  1687. if (!ASN1Enc_H235NonStandardParameter(enc, &(val)->u.nonStandard))
  1688. return 0;
  1689. break;
  1690. default:
  1691. /* impossible */
  1692. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1693. return 0;
  1694. }
  1695. return 1;
  1696. }
  1697. static int ASN1CALL ASN1Dec_AuthenticationMechanism(ASN1decoding_t dec, AuthenticationMechanism *val)
  1698. {
  1699. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  1700. return 0;
  1701. switch ((val)->choice) {
  1702. case 1:
  1703. break;
  1704. case 2:
  1705. break;
  1706. case 3:
  1707. break;
  1708. case 4:
  1709. break;
  1710. case 5:
  1711. break;
  1712. case 6:
  1713. break;
  1714. case 7:
  1715. if (!ASN1Dec_H235NonStandardParameter(dec, &(val)->u.nonStandard))
  1716. return 0;
  1717. break;
  1718. case 0:
  1719. /* extension case */
  1720. if (!ASN1PERDecSkipFragmented(dec, 8))
  1721. return 0;
  1722. break;
  1723. default:
  1724. /* impossible */
  1725. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1726. return 0;
  1727. }
  1728. return 1;
  1729. }
  1730. static void ASN1CALL ASN1Free_AuthenticationMechanism(AuthenticationMechanism *val)
  1731. {
  1732. if (val) {
  1733. switch ((val)->choice) {
  1734. case 7:
  1735. ASN1Free_H235NonStandardParameter(&(val)->u.nonStandard);
  1736. break;
  1737. }
  1738. }
  1739. }
  1740. static int ASN1CALL ASN1Enc_ClearToken(ASN1encoding_t enc, ClearToken *val)
  1741. {
  1742. ASN1uint32_t l;
  1743. if (!ASN1PEREncExtensionBitClear(enc))
  1744. return 0;
  1745. if (!ASN1PEREncBits(enc, 8, (val)->o))
  1746. return 0;
  1747. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  1748. return 0;
  1749. if ((val)->o[0] & 0x80) {
  1750. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  1751. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  1752. return 0;
  1753. ASN1PEREncAlignment(enc);
  1754. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  1755. return 0;
  1756. }
  1757. if ((val)->o[0] & 0x40) {
  1758. if (!ASN1PEREncBitVal(enc, 7, ((val)->password).length - 1))
  1759. return 0;
  1760. ASN1PEREncAlignment(enc);
  1761. if (!ASN1PEREncChar16String(enc, ((val)->password).length, ((val)->password).value, 16))
  1762. return 0;
  1763. }
  1764. if ((val)->o[0] & 0x20) {
  1765. if (!ASN1Enc_DHset(enc, &(val)->dhkey))
  1766. return 0;
  1767. }
  1768. if ((val)->o[0] & 0x10) {
  1769. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->challenge, 8, 128, 7))
  1770. return 0;
  1771. }
  1772. if ((val)->o[0] & 0x8) {
  1773. if (!ASN1PEREncInteger(enc, (val)->random))
  1774. return 0;
  1775. }
  1776. if ((val)->o[0] & 0x4) {
  1777. if (!ASN1Enc_TypedCertificate(enc, &(val)->certificate))
  1778. return 0;
  1779. }
  1780. if ((val)->o[0] & 0x2) {
  1781. if (!ASN1PEREncBitVal(enc, 7, ((val)->generalID).length - 1))
  1782. return 0;
  1783. ASN1PEREncAlignment(enc);
  1784. if (!ASN1PEREncChar16String(enc, ((val)->generalID).length, ((val)->generalID).value, 16))
  1785. return 0;
  1786. }
  1787. if ((val)->o[0] & 0x1) {
  1788. if (!ASN1Enc_H235NonStandardParameter(enc, &(val)->nonStandard))
  1789. return 0;
  1790. }
  1791. return 1;
  1792. }
  1793. static int ASN1CALL ASN1Dec_ClearToken(ASN1decoding_t dec, ClearToken *val)
  1794. {
  1795. ASN1uint32_t y;
  1796. ASN1uint32_t l;
  1797. if (!ASN1PERDecExtensionBit(dec, &y))
  1798. return 0;
  1799. if (!ASN1PERDecExtension(dec, 8, (val)->o))
  1800. return 0;
  1801. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  1802. return 0;
  1803. if ((val)->o[0] & 0x80) {
  1804. if (!ASN1PERDecU32Val(dec, 2, &l))
  1805. return 0;
  1806. l += 1;
  1807. ASN1PERDecAlignment(dec);
  1808. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  1809. return 0;
  1810. (val)->timeStamp += 1;
  1811. }
  1812. if ((val)->o[0] & 0x40) {
  1813. if (!ASN1PERDecU32Val(dec, 7, &((val)->password).length))
  1814. return 0;
  1815. ((val)->password).length += 1;
  1816. ASN1PERDecAlignment(dec);
  1817. if (!ASN1PERDecChar16String(dec, ((val)->password).length, &((val)->password).value, 16))
  1818. return 0;
  1819. }
  1820. if ((val)->o[0] & 0x20) {
  1821. if (!ASN1Dec_DHset(dec, &(val)->dhkey))
  1822. return 0;
  1823. }
  1824. if ((val)->o[0] & 0x10) {
  1825. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->challenge, 8, 128, 7))
  1826. return 0;
  1827. }
  1828. if ((val)->o[0] & 0x8) {
  1829. if (!ASN1PERDecInteger(dec, &(val)->random))
  1830. return 0;
  1831. }
  1832. if ((val)->o[0] & 0x4) {
  1833. if (!ASN1Dec_TypedCertificate(dec, &(val)->certificate))
  1834. return 0;
  1835. }
  1836. if ((val)->o[0] & 0x2) {
  1837. if (!ASN1PERDecU32Val(dec, 7, &((val)->generalID).length))
  1838. return 0;
  1839. ((val)->generalID).length += 1;
  1840. ASN1PERDecAlignment(dec);
  1841. if (!ASN1PERDecChar16String(dec, ((val)->generalID).length, &((val)->generalID).value, 16))
  1842. return 0;
  1843. }
  1844. if ((val)->o[0] & 0x1) {
  1845. if (!ASN1Dec_H235NonStandardParameter(dec, &(val)->nonStandard))
  1846. return 0;
  1847. }
  1848. if (y) {
  1849. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1850. return 0;
  1851. }
  1852. return 1;
  1853. }
  1854. static void ASN1CALL ASN1Free_ClearToken(ClearToken *val)
  1855. {
  1856. if (val) {
  1857. ASN1objectidentifier_free(&(val)->tokenOID);
  1858. if ((val)->o[0] & 0x40) {
  1859. ASN1char16string_free(&(val)->password);
  1860. }
  1861. if ((val)->o[0] & 0x20) {
  1862. ASN1Free_DHset(&(val)->dhkey);
  1863. }
  1864. if ((val)->o[0] & 0x10) {
  1865. }
  1866. if ((val)->o[0] & 0x4) {
  1867. ASN1Free_TypedCertificate(&(val)->certificate);
  1868. }
  1869. if ((val)->o[0] & 0x2) {
  1870. ASN1char16string_free(&(val)->generalID);
  1871. }
  1872. if ((val)->o[0] & 0x1) {
  1873. ASN1Free_H235NonStandardParameter(&(val)->nonStandard);
  1874. }
  1875. }
  1876. }
  1877. static int ASN1CALL ASN1Enc_Params(ASN1encoding_t enc, Params *val)
  1878. {
  1879. if (!ASN1PEREncExtensionBitClear(enc))
  1880. return 0;
  1881. if (!ASN1PEREncBits(enc, 2, (val)->o))
  1882. return 0;
  1883. if ((val)->o[0] & 0x80) {
  1884. if (!ASN1PEREncInteger(enc, (val)->ranInt))
  1885. return 0;
  1886. }
  1887. if ((val)->o[0] & 0x40) {
  1888. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->iv8, 8))
  1889. return 0;
  1890. }
  1891. return 1;
  1892. }
  1893. static int ASN1CALL ASN1Dec_Params(ASN1decoding_t dec, Params *val)
  1894. {
  1895. ASN1uint32_t y;
  1896. if (!ASN1PERDecExtensionBit(dec, &y))
  1897. return 0;
  1898. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  1899. return 0;
  1900. if ((val)->o[0] & 0x80) {
  1901. if (!ASN1PERDecInteger(dec, &(val)->ranInt))
  1902. return 0;
  1903. }
  1904. if ((val)->o[0] & 0x40) {
  1905. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->iv8, 8))
  1906. return 0;
  1907. }
  1908. if (y) {
  1909. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1910. return 0;
  1911. }
  1912. return 1;
  1913. }
  1914. static void ASN1CALL ASN1Free_Params(Params *val)
  1915. {
  1916. if (val) {
  1917. if ((val)->o[0] & 0x40) {
  1918. }
  1919. }
  1920. }
  1921. static int ASN1CALL ASN1Enc_EncodedGeneralToken(ASN1encoding_t enc, EncodedGeneralToken *val)
  1922. {
  1923. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  1924. return 0;
  1925. if (!ASN1Enc_ClearToken(enc, &(val)->type))
  1926. return 0;
  1927. return 1;
  1928. }
  1929. static int ASN1CALL ASN1Dec_EncodedGeneralToken(ASN1decoding_t dec, EncodedGeneralToken *val)
  1930. {
  1931. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  1932. return 0;
  1933. if (!ASN1Dec_ClearToken(dec, &(val)->type))
  1934. return 0;
  1935. return 1;
  1936. }
  1937. static void ASN1CALL ASN1Free_EncodedGeneralToken(EncodedGeneralToken *val)
  1938. {
  1939. if (val) {
  1940. ASN1objectidentifier_free(&(val)->id);
  1941. ASN1Free_ClearToken(&(val)->type);
  1942. }
  1943. }
  1944. static int ASN1CALL ASN1Enc_PwdCertToken(ASN1encoding_t enc, PwdCertToken *val)
  1945. {
  1946. if (!ASN1Enc_ClearToken(enc, val))
  1947. return 0;
  1948. return 1;
  1949. }
  1950. static int ASN1CALL ASN1Dec_PwdCertToken(ASN1decoding_t dec, PwdCertToken *val)
  1951. {
  1952. if (!ASN1Dec_ClearToken(dec, val))
  1953. return 0;
  1954. return 1;
  1955. }
  1956. static void ASN1CALL ASN1Free_PwdCertToken(PwdCertToken *val)
  1957. {
  1958. if (val) {
  1959. ASN1Free_ClearToken(val);
  1960. }
  1961. }
  1962. static int ASN1CALL ASN1Enc_EncodedPwdCertToken(ASN1encoding_t enc, EncodedPwdCertToken *val)
  1963. {
  1964. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  1965. return 0;
  1966. if (!ASN1Enc_PwdCertToken(enc, &(val)->type))
  1967. return 0;
  1968. return 1;
  1969. }
  1970. static int ASN1CALL ASN1Dec_EncodedPwdCertToken(ASN1decoding_t dec, EncodedPwdCertToken *val)
  1971. {
  1972. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  1973. return 0;
  1974. if (!ASN1Dec_PwdCertToken(dec, &(val)->type))
  1975. return 0;
  1976. return 1;
  1977. }
  1978. static void ASN1CALL ASN1Free_EncodedPwdCertToken(EncodedPwdCertToken *val)
  1979. {
  1980. if (val) {
  1981. ASN1objectidentifier_free(&(val)->id);
  1982. ASN1Free_PwdCertToken(&(val)->type);
  1983. }
  1984. }
  1985. static int ASN1CALL ASN1Enc_ReleaseCompleteReason(ASN1encoding_t enc, ReleaseCompleteReason *val)
  1986. {
  1987. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 12))
  1988. return 0;
  1989. return 1;
  1990. }
  1991. static int ASN1CALL ASN1Dec_ReleaseCompleteReason(ASN1decoding_t dec, ReleaseCompleteReason *val)
  1992. {
  1993. //nik:
  1994. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 4, 12))
  1995. return 0;
  1996. return 1;
  1997. }
  1998. static int ASN1CALL ASN1Enc_FacilityReason(ASN1encoding_t enc, FacilityReason *val)
  1999. {
  2000. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  2001. return 0;
  2002. return 1;
  2003. }
  2004. static int ASN1CALL ASN1Dec_FacilityReason(ASN1decoding_t dec, FacilityReason *val)
  2005. {
  2006. //nik:
  2007. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  2008. return 0;
  2009. return 1;
  2010. }
  2011. static int ASN1CALL ASN1Enc_H221NonStandard(ASN1encoding_t enc, H221NonStandard *val)
  2012. {
  2013. if (!ASN1PEREncExtensionBitClear(enc))
  2014. return 0;
  2015. ASN1PEREncAlignment(enc);
  2016. if (!ASN1PEREncBitVal(enc, 8, (val)->t35CountryCode))
  2017. return 0;
  2018. ASN1PEREncAlignment(enc);
  2019. if (!ASN1PEREncBitVal(enc, 8, (val)->t35Extension))
  2020. return 0;
  2021. if (!ASN1PEREncUnsignedShort(enc, (val)->manufacturerCode))
  2022. return 0;
  2023. return 1;
  2024. }
  2025. static int ASN1CALL ASN1Dec_H221NonStandard(ASN1decoding_t dec, H221NonStandard *val)
  2026. {
  2027. ASN1uint32_t y;
  2028. if (!ASN1PERDecExtensionBit(dec, &y))
  2029. return 0;
  2030. ASN1PERDecAlignment(dec);
  2031. if (!ASN1PERDecU16Val(dec, 8, &(val)->t35CountryCode))
  2032. return 0;
  2033. ASN1PERDecAlignment(dec);
  2034. if (!ASN1PERDecU16Val(dec, 8, &(val)->t35Extension))
  2035. return 0;
  2036. if (!ASN1PERDecUnsignedShort(dec, &(val)->manufacturerCode))
  2037. return 0;
  2038. if (y) {
  2039. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2040. return 0;
  2041. }
  2042. return 1;
  2043. }
  2044. static int ASN1CALL ASN1Enc_H225NonStandardIdentifier(ASN1encoding_t enc, H225NonStandardIdentifier *val)
  2045. {
  2046. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  2047. return 0;
  2048. switch ((val)->choice) {
  2049. case 1:
  2050. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.object))
  2051. return 0;
  2052. break;
  2053. case 2:
  2054. if (!ASN1Enc_H221NonStandard(enc, &(val)->u.h221NonStandard))
  2055. return 0;
  2056. break;
  2057. default:
  2058. /* impossible */
  2059. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2060. return 0;
  2061. }
  2062. return 1;
  2063. }
  2064. static int ASN1CALL ASN1Dec_H225NonStandardIdentifier(ASN1decoding_t dec, H225NonStandardIdentifier *val)
  2065. {
  2066. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  2067. return 0;
  2068. switch ((val)->choice) {
  2069. case 1:
  2070. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.object))
  2071. return 0;
  2072. break;
  2073. case 2:
  2074. if (!ASN1Dec_H221NonStandard(dec, &(val)->u.h221NonStandard))
  2075. return 0;
  2076. break;
  2077. case 0:
  2078. /* extension case */
  2079. if (!ASN1PERDecSkipFragmented(dec, 8))
  2080. return 0;
  2081. break;
  2082. default:
  2083. /* impossible */
  2084. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2085. return 0;
  2086. }
  2087. return 1;
  2088. }
  2089. static void ASN1CALL ASN1Free_H225NonStandardIdentifier(H225NonStandardIdentifier *val)
  2090. {
  2091. if (val) {
  2092. switch ((val)->choice) {
  2093. case 1:
  2094. ASN1objectidentifier_free(&(val)->u.object);
  2095. break;
  2096. }
  2097. }
  2098. }
  2099. static int ASN1CALL ASN1Enc_PublicTypeOfNumber(ASN1encoding_t enc, PublicTypeOfNumber *val)
  2100. {
  2101. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  2102. return 0;
  2103. return 1;
  2104. }
  2105. static int ASN1CALL ASN1Dec_PublicTypeOfNumber(ASN1decoding_t dec, PublicTypeOfNumber *val)
  2106. {
  2107. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  2108. return 0;
  2109. return 1;
  2110. }
  2111. static int ASN1CALL ASN1Enc_PrivateTypeOfNumber(ASN1encoding_t enc, PrivateTypeOfNumber *val)
  2112. {
  2113. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  2114. return 0;
  2115. return 1;
  2116. }
  2117. static int ASN1CALL ASN1Dec_PrivateTypeOfNumber(ASN1decoding_t dec, PrivateTypeOfNumber *val)
  2118. {
  2119. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  2120. return 0;
  2121. return 1;
  2122. }
  2123. static int ASN1CALL ASN1Enc_AltGKInfo(ASN1encoding_t enc, AltGKInfo *val)
  2124. {
  2125. if (!ASN1PEREncExtensionBitClear(enc))
  2126. return 0;
  2127. if (!ASN1Enc_AltGKInfo_alternateGatekeeper(enc, &(val)->alternateGatekeeper))
  2128. return 0;
  2129. if (!ASN1PEREncBoolean(enc, (val)->altGKisPermanent))
  2130. return 0;
  2131. return 1;
  2132. }
  2133. static int ASN1CALL ASN1Dec_AltGKInfo(ASN1decoding_t dec, AltGKInfo *val)
  2134. {
  2135. ASN1uint32_t y;
  2136. if (!ASN1PERDecExtensionBit(dec, &y))
  2137. return 0;
  2138. if (!ASN1Dec_AltGKInfo_alternateGatekeeper(dec, &(val)->alternateGatekeeper))
  2139. return 0;
  2140. if (!ASN1PERDecBoolean(dec, &(val)->altGKisPermanent))
  2141. return 0;
  2142. if (y) {
  2143. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2144. return 0;
  2145. }
  2146. return 1;
  2147. }
  2148. static void ASN1CALL ASN1Free_AltGKInfo(AltGKInfo *val)
  2149. {
  2150. if (val) {
  2151. ASN1Free_AltGKInfo_alternateGatekeeper(&(val)->alternateGatekeeper);
  2152. }
  2153. }
  2154. static int ASN1CALL ASN1Enc_Q954Details(ASN1encoding_t enc, Q954Details *val)
  2155. {
  2156. if (!ASN1PEREncExtensionBitClear(enc))
  2157. return 0;
  2158. if (!ASN1PEREncBoolean(enc, (val)->conferenceCalling))
  2159. return 0;
  2160. if (!ASN1PEREncBoolean(enc, (val)->threePartyService))
  2161. return 0;
  2162. return 1;
  2163. }
  2164. static int ASN1CALL ASN1Dec_Q954Details(ASN1decoding_t dec, Q954Details *val)
  2165. {
  2166. ASN1uint32_t y;
  2167. if (!ASN1PERDecExtensionBit(dec, &y))
  2168. return 0;
  2169. if (!ASN1PERDecBoolean(dec, &(val)->conferenceCalling))
  2170. return 0;
  2171. if (!ASN1PERDecBoolean(dec, &(val)->threePartyService))
  2172. return 0;
  2173. if (y) {
  2174. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2175. return 0;
  2176. }
  2177. return 1;
  2178. }
  2179. static int ASN1CALL ASN1Enc_CallIdentifier(ASN1encoding_t enc, CallIdentifier *val)
  2180. {
  2181. if (!ASN1PEREncExtensionBitClear(enc))
  2182. return 0;
  2183. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->guid, 16))
  2184. return 0;
  2185. return 1;
  2186. }
  2187. static int ASN1CALL ASN1Dec_CallIdentifier(ASN1decoding_t dec, CallIdentifier *val)
  2188. {
  2189. ASN1uint32_t y;
  2190. if (!ASN1PERDecExtensionBit(dec, &y))
  2191. return 0;
  2192. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->guid, 16))
  2193. return 0;
  2194. if (y) {
  2195. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2196. return 0;
  2197. }
  2198. return 1;
  2199. }
  2200. static void ASN1CALL ASN1Free_CallIdentifier(CallIdentifier *val)
  2201. {
  2202. if (val) {
  2203. }
  2204. }
  2205. static int ASN1CALL ASN1Enc_ICV(ASN1encoding_t enc, ICV *val)
  2206. {
  2207. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  2208. return 0;
  2209. if (!ASN1PEREncFragmented(enc, ((val)->icv).length, ((val)->icv).value, 1))
  2210. return 0;
  2211. return 1;
  2212. }
  2213. static int ASN1CALL ASN1Dec_ICV(ASN1decoding_t dec, ICV *val)
  2214. {
  2215. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  2216. return 0;
  2217. if (!ASN1PERDecFragmented(dec, &((val)->icv).length, &((val)->icv).value, 1))
  2218. return 0;
  2219. return 1;
  2220. }
  2221. static void ASN1CALL ASN1Free_ICV(ICV *val)
  2222. {
  2223. if (val) {
  2224. ASN1objectidentifier_free(&(val)->algorithmOID);
  2225. ASN1bitstring_free(&(val)->icv);
  2226. }
  2227. }
  2228. static int ASN1CALL ASN1Enc_GatekeeperRejectReason(ASN1encoding_t enc, GatekeeperRejectReason *val)
  2229. {
  2230. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  2231. return 0;
  2232. return 1;
  2233. }
  2234. static int ASN1CALL ASN1Dec_GatekeeperRejectReason(ASN1decoding_t dec, GatekeeperRejectReason *val)
  2235. {
  2236. //nik:
  2237. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  2238. return 0;
  2239. return 1;
  2240. }
  2241. static int ASN1CALL ASN1Enc_RegistrationRejectReason(ASN1encoding_t enc, RegistrationRejectReason *val)
  2242. {
  2243. ASN1encoding_t ee;
  2244. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 8))
  2245. return 0;
  2246. switch ((val)->choice) {
  2247. case 1:
  2248. break;
  2249. case 2:
  2250. break;
  2251. case 3:
  2252. break;
  2253. case 4:
  2254. break;
  2255. case 5:
  2256. if (!ASN1Enc_RegistrationRejectReason_duplicateAlias(enc, &(val)->u.duplicateAlias))
  2257. return 0;
  2258. break;
  2259. case 6:
  2260. break;
  2261. case 7:
  2262. break;
  2263. case 8:
  2264. break;
  2265. case 9:
  2266. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2267. return 0;
  2268. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2269. return 0;
  2270. ASN1_CloseEncoder2(ee);
  2271. break;
  2272. case 10:
  2273. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2274. return 0;
  2275. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2276. return 0;
  2277. ASN1_CloseEncoder2(ee);
  2278. break;
  2279. case 11:
  2280. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2281. return 0;
  2282. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2283. return 0;
  2284. ASN1_CloseEncoder2(ee);
  2285. break;
  2286. case 12:
  2287. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2288. return 0;
  2289. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2290. return 0;
  2291. ASN1_CloseEncoder2(ee);
  2292. break;
  2293. default:
  2294. /* impossible */
  2295. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2296. return 0;
  2297. }
  2298. return 1;
  2299. }
  2300. static int ASN1CALL ASN1Dec_RegistrationRejectReason(ASN1decoding_t dec, RegistrationRejectReason *val)
  2301. {
  2302. ASN1decoding_t dd;
  2303. ASN1octet_t *db;
  2304. ASN1uint32_t ds;
  2305. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 8))
  2306. return 0;
  2307. switch ((val)->choice) {
  2308. case 1:
  2309. break;
  2310. case 2:
  2311. break;
  2312. case 3:
  2313. break;
  2314. case 4:
  2315. break;
  2316. case 5:
  2317. if (!ASN1Dec_RegistrationRejectReason_duplicateAlias(dec, &(val)->u.duplicateAlias))
  2318. return 0;
  2319. break;
  2320. case 6:
  2321. break;
  2322. case 7:
  2323. break;
  2324. case 8:
  2325. break;
  2326. case 9:
  2327. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2328. return 0;
  2329. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2330. return 0;
  2331. ASN1_CloseDecoder(dd);
  2332. break;
  2333. case 10:
  2334. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2335. return 0;
  2336. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2337. return 0;
  2338. ASN1_CloseDecoder(dd);
  2339. break;
  2340. case 11:
  2341. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2342. return 0;
  2343. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2344. return 0;
  2345. ASN1_CloseDecoder(dd);
  2346. break;
  2347. case 12:
  2348. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2349. return 0;
  2350. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2351. return 0;
  2352. ASN1_CloseDecoder(dd);
  2353. break;
  2354. case 0:
  2355. /* extension case */
  2356. if (!ASN1PERDecSkipFragmented(dec, 8))
  2357. return 0;
  2358. break;
  2359. default:
  2360. /* impossible */
  2361. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2362. return 0;
  2363. }
  2364. return 1;
  2365. }
  2366. static void ASN1CALL ASN1Free_RegistrationRejectReason(RegistrationRejectReason *val)
  2367. {
  2368. if (val) {
  2369. switch ((val)->choice) {
  2370. case 5:
  2371. ASN1Free_RegistrationRejectReason_duplicateAlias(&(val)->u.duplicateAlias);
  2372. break;
  2373. }
  2374. }
  2375. }
  2376. static int ASN1CALL ASN1Enc_UnregRequestReason(ASN1encoding_t enc, UnregRequestReason *val)
  2377. {
  2378. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2379. return 0;
  2380. return 1;
  2381. }
  2382. static int ASN1CALL ASN1Dec_UnregRequestReason(ASN1decoding_t dec, UnregRequestReason *val)
  2383. {
  2384. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2385. return 0;
  2386. return 1;
  2387. }
  2388. static int ASN1CALL ASN1Enc_UnregRejectReason(ASN1encoding_t enc, UnregRejectReason *val)
  2389. {
  2390. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 3))
  2391. return 0;
  2392. return 1;
  2393. }
  2394. static int ASN1CALL ASN1Dec_UnregRejectReason(ASN1decoding_t dec, UnregRejectReason *val)
  2395. {
  2396. //nik:
  2397. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 2, 3))
  2398. return 0;
  2399. return 1;
  2400. }
  2401. static int ASN1CALL ASN1Enc_CallType(ASN1encoding_t enc, CallType *val)
  2402. {
  2403. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2404. return 0;
  2405. return 1;
  2406. }
  2407. static int ASN1CALL ASN1Dec_CallType(ASN1decoding_t dec, CallType *val)
  2408. {
  2409. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2410. return 0;
  2411. return 1;
  2412. }
  2413. static int ASN1CALL ASN1Enc_CallModel(ASN1encoding_t enc, CallModel *val)
  2414. {
  2415. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  2416. return 0;
  2417. return 1;
  2418. }
  2419. static int ASN1CALL ASN1Dec_CallModel(ASN1decoding_t dec, CallModel *val)
  2420. {
  2421. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  2422. return 0;
  2423. return 1;
  2424. }
  2425. static int ASN1CALL ASN1Enc_TransportQOS(ASN1encoding_t enc, TransportQOS *val)
  2426. {
  2427. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2428. return 0;
  2429. return 1;
  2430. }
  2431. static int ASN1CALL ASN1Dec_TransportQOS(ASN1decoding_t dec, TransportQOS *val)
  2432. {
  2433. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2434. return 0;
  2435. return 1;
  2436. }
  2437. static int ASN1CALL ASN1Enc_UUIEsRequested(ASN1encoding_t enc, UUIEsRequested *val)
  2438. {
  2439. if (!ASN1PEREncExtensionBitClear(enc))
  2440. return 0;
  2441. if (!ASN1PEREncBoolean(enc, (val)->setup))
  2442. return 0;
  2443. if (!ASN1PEREncBoolean(enc, (val)->callProceeding))
  2444. return 0;
  2445. if (!ASN1PEREncBoolean(enc, (val)->connect))
  2446. return 0;
  2447. if (!ASN1PEREncBoolean(enc, (val)->alerting))
  2448. return 0;
  2449. if (!ASN1PEREncBoolean(enc, (val)->information))
  2450. return 0;
  2451. if (!ASN1PEREncBoolean(enc, (val)->releaseComplete))
  2452. return 0;
  2453. if (!ASN1PEREncBoolean(enc, (val)->facility))
  2454. return 0;
  2455. if (!ASN1PEREncBoolean(enc, (val)->progress))
  2456. return 0;
  2457. if (!ASN1PEREncBoolean(enc, (val)->empty))
  2458. return 0;
  2459. return 1;
  2460. }
  2461. static int ASN1CALL ASN1Dec_UUIEsRequested(ASN1decoding_t dec, UUIEsRequested *val)
  2462. {
  2463. ASN1uint32_t y;
  2464. if (!ASN1PERDecExtensionBit(dec, &y))
  2465. return 0;
  2466. if (!ASN1PERDecBoolean(dec, &(val)->setup))
  2467. return 0;
  2468. if (!ASN1PERDecBoolean(dec, &(val)->callProceeding))
  2469. return 0;
  2470. if (!ASN1PERDecBoolean(dec, &(val)->connect))
  2471. return 0;
  2472. if (!ASN1PERDecBoolean(dec, &(val)->alerting))
  2473. return 0;
  2474. if (!ASN1PERDecBoolean(dec, &(val)->information))
  2475. return 0;
  2476. if (!ASN1PERDecBoolean(dec, &(val)->releaseComplete))
  2477. return 0;
  2478. if (!ASN1PERDecBoolean(dec, &(val)->facility))
  2479. return 0;
  2480. if (!ASN1PERDecBoolean(dec, &(val)->progress))
  2481. return 0;
  2482. if (!ASN1PERDecBoolean(dec, &(val)->empty))
  2483. return 0;
  2484. if (y) {
  2485. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2486. return 0;
  2487. }
  2488. return 1;
  2489. }
  2490. static int ASN1CALL ASN1Enc_AdmissionRejectReason(ASN1encoding_t enc, AdmissionRejectReason *val)
  2491. {
  2492. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 8))
  2493. return 0;
  2494. return 1;
  2495. }
  2496. static int ASN1CALL ASN1Dec_AdmissionRejectReason(ASN1decoding_t dec, AdmissionRejectReason *val)
  2497. {
  2498. //nik:
  2499. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 3, 8))
  2500. return 0;
  2501. return 1;
  2502. }
  2503. static int ASN1CALL ASN1Enc_BandRejectReason(ASN1encoding_t enc, BandRejectReason *val)
  2504. {
  2505. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 6))
  2506. return 0;
  2507. return 1;
  2508. }
  2509. static int ASN1CALL ASN1Dec_BandRejectReason(ASN1decoding_t dec, BandRejectReason *val)
  2510. {
  2511. //nik:
  2512. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 3, 6))
  2513. return 0;
  2514. return 1;
  2515. }
  2516. static int ASN1CALL ASN1Enc_LocationRejectReason(ASN1encoding_t enc, LocationRejectReason *val)
  2517. {
  2518. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  2519. return 0;
  2520. return 1;
  2521. }
  2522. static int ASN1CALL ASN1Dec_LocationRejectReason(ASN1decoding_t dec, LocationRejectReason *val)
  2523. {
  2524. //nik:
  2525. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  2526. return 0;
  2527. return 1;
  2528. }
  2529. static int ASN1CALL ASN1Enc_DisengageReason(ASN1encoding_t enc, DisengageReason *val)
  2530. {
  2531. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2532. return 0;
  2533. return 1;
  2534. }
  2535. static int ASN1CALL ASN1Dec_DisengageReason(ASN1decoding_t dec, DisengageReason *val)
  2536. {
  2537. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2538. return 0;
  2539. return 1;
  2540. }
  2541. static int ASN1CALL ASN1Enc_DisengageRejectReason(ASN1encoding_t enc, DisengageRejectReason *val)
  2542. {
  2543. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  2544. return 0;
  2545. return 1;
  2546. }
  2547. static int ASN1CALL ASN1Dec_DisengageRejectReason(ASN1decoding_t dec, DisengageRejectReason *val)
  2548. {
  2549. //nik:
  2550. if (!MyASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  2551. return 0;
  2552. return 1;
  2553. }
  2554. static int ASN1CALL ASN1Enc_InfoRequestNakReason(ASN1encoding_t enc, InfoRequestNakReason *val)
  2555. {
  2556. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2557. return 0;
  2558. return 1;
  2559. }
  2560. static int ASN1CALL ASN1Dec_InfoRequestNakReason(ASN1decoding_t dec, InfoRequestNakReason *val)
  2561. {
  2562. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2563. return 0;
  2564. return 1;
  2565. }
  2566. static int ASN1CALL ASN1Enc_UnknownMessageResponse(ASN1encoding_t enc, UnknownMessageResponse *val)
  2567. {
  2568. ASN1uint32_t y;
  2569. ASN1encoding_t ee;
  2570. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  2571. if (!ASN1PEREncBitVal(enc, 1, y))
  2572. return 0;
  2573. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  2574. return 0;
  2575. if (y) {
  2576. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  2577. return 0;
  2578. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2579. return 0;
  2580. if ((val)->o[0] & 0x80) {
  2581. if (!ASN1Enc_UnknownMessageResponse_tokens(ee, &(val)->tokens))
  2582. return 0;
  2583. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2584. return 0;
  2585. }
  2586. if ((val)->o[0] & 0x40) {
  2587. if (!ASN1Enc_UnknownMessageResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  2588. return 0;
  2589. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2590. return 0;
  2591. }
  2592. if ((val)->o[0] & 0x20) {
  2593. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  2594. return 0;
  2595. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2596. return 0;
  2597. }
  2598. ASN1_CloseEncoder2(ee);
  2599. }
  2600. return 1;
  2601. }
  2602. static int ASN1CALL ASN1Dec_UnknownMessageResponse(ASN1decoding_t dec, UnknownMessageResponse *val)
  2603. {
  2604. ASN1uint32_t y;
  2605. ASN1decoding_t dd;
  2606. ASN1octet_t *db;
  2607. ASN1uint32_t ds;
  2608. ASN1uint32_t i;
  2609. ASN1uint32_t e;
  2610. if (!ASN1PERDecExtensionBit(dec, &y))
  2611. return 0;
  2612. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  2613. return 0;
  2614. (val)->requestSeqNum += 1;
  2615. if (!y) {
  2616. ZeroMemory((val)->o + 0, 1);
  2617. } else {
  2618. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  2619. return 0;
  2620. if ((val)->o[0] & 0x80) {
  2621. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2622. return 0;
  2623. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2624. return 0;
  2625. if (!ASN1Dec_UnknownMessageResponse_tokens(dd, &(val)->tokens))
  2626. return 0;
  2627. ASN1_CloseDecoder(dd);
  2628. }
  2629. if ((val)->o[0] & 0x40) {
  2630. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2631. return 0;
  2632. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2633. return 0;
  2634. if (!ASN1Dec_UnknownMessageResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  2635. return 0;
  2636. ASN1_CloseDecoder(dd);
  2637. }
  2638. if ((val)->o[0] & 0x20) {
  2639. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2640. return 0;
  2641. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  2642. return 0;
  2643. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  2644. return 0;
  2645. ASN1_CloseDecoder(dd);
  2646. }
  2647. for (i = 0; i < e; i++) {
  2648. if (!ASN1PERDecSkipFragmented(dec, 8))
  2649. return 0;
  2650. }
  2651. }
  2652. return 1;
  2653. }
  2654. static void ASN1CALL ASN1Free_UnknownMessageResponse(UnknownMessageResponse *val)
  2655. {
  2656. if (val) {
  2657. if ((val)->o[0] & 0x80) {
  2658. ASN1Free_UnknownMessageResponse_tokens(&(val)->tokens);
  2659. }
  2660. if ((val)->o[0] & 0x40) {
  2661. ASN1Free_UnknownMessageResponse_cryptoTokens(&(val)->cryptoTokens);
  2662. }
  2663. if ((val)->o[0] & 0x20) {
  2664. ASN1Free_ICV(&(val)->integrityCheckValue);
  2665. }
  2666. }
  2667. }
  2668. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2669. {
  2670. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn);
  2671. }
  2672. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2673. {
  2674. if (!ASN1Enc_ClearToken(enc, &val->value))
  2675. return 0;
  2676. return 1;
  2677. }
  2678. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2679. {
  2680. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn, sizeof(**val));
  2681. }
  2682. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2683. {
  2684. if (!ASN1Dec_ClearToken(dec, &val->value))
  2685. return 0;
  2686. return 1;
  2687. }
  2688. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2689. {
  2690. if (val) {
  2691. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn);
  2692. }
  2693. }
  2694. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2695. {
  2696. if (val) {
  2697. ASN1Free_ClearToken(&val->value);
  2698. }
  2699. }
  2700. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens *val)
  2701. {
  2702. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_tokens_ElmFn);
  2703. }
  2704. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens val)
  2705. {
  2706. if (!ASN1Enc_ClearToken(enc, &val->value))
  2707. return 0;
  2708. return 1;
  2709. }
  2710. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens *val)
  2711. {
  2712. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_tokens_ElmFn, sizeof(**val));
  2713. }
  2714. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens val)
  2715. {
  2716. if (!ASN1Dec_ClearToken(dec, &val->value))
  2717. return 0;
  2718. return 1;
  2719. }
  2720. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens(PResourcesAvailableConfirm_tokens *val)
  2721. {
  2722. if (val) {
  2723. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_tokens_ElmFn);
  2724. }
  2725. }
  2726. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens_ElmFn(PResourcesAvailableConfirm_tokens val)
  2727. {
  2728. if (val) {
  2729. ASN1Free_ClearToken(&val->value);
  2730. }
  2731. }
  2732. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens *val)
  2733. {
  2734. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_tokens_ElmFn);
  2735. }
  2736. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens val)
  2737. {
  2738. if (!ASN1Enc_ClearToken(enc, &val->value))
  2739. return 0;
  2740. return 1;
  2741. }
  2742. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens *val)
  2743. {
  2744. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_tokens_ElmFn, sizeof(**val));
  2745. }
  2746. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens val)
  2747. {
  2748. if (!ASN1Dec_ClearToken(dec, &val->value))
  2749. return 0;
  2750. return 1;
  2751. }
  2752. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens(PResourcesAvailableIndicate_tokens *val)
  2753. {
  2754. if (val) {
  2755. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_tokens_ElmFn);
  2756. }
  2757. }
  2758. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens_ElmFn(PResourcesAvailableIndicate_tokens val)
  2759. {
  2760. if (val) {
  2761. ASN1Free_ClearToken(&val->value);
  2762. }
  2763. }
  2764. static int ASN1CALL ASN1Enc_RequestInProgress_tokens(ASN1encoding_t enc, PRequestInProgress_tokens *val)
  2765. {
  2766. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_tokens_ElmFn);
  2767. }
  2768. static int ASN1CALL ASN1Enc_RequestInProgress_tokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_tokens val)
  2769. {
  2770. if (!ASN1Enc_ClearToken(enc, &val->value))
  2771. return 0;
  2772. return 1;
  2773. }
  2774. static int ASN1CALL ASN1Dec_RequestInProgress_tokens(ASN1decoding_t dec, PRequestInProgress_tokens *val)
  2775. {
  2776. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_tokens_ElmFn, sizeof(**val));
  2777. }
  2778. static int ASN1CALL ASN1Dec_RequestInProgress_tokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_tokens val)
  2779. {
  2780. if (!ASN1Dec_ClearToken(dec, &val->value))
  2781. return 0;
  2782. return 1;
  2783. }
  2784. static void ASN1CALL ASN1Free_RequestInProgress_tokens(PRequestInProgress_tokens *val)
  2785. {
  2786. if (val) {
  2787. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_tokens_ElmFn);
  2788. }
  2789. }
  2790. static void ASN1CALL ASN1Free_RequestInProgress_tokens_ElmFn(PRequestInProgress_tokens val)
  2791. {
  2792. if (val) {
  2793. ASN1Free_ClearToken(&val->value);
  2794. }
  2795. }
  2796. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens(ASN1encoding_t enc, PUnknownMessageResponse_tokens *val)
  2797. {
  2798. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_tokens_ElmFn);
  2799. }
  2800. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_tokens val)
  2801. {
  2802. if (!ASN1Enc_ClearToken(enc, &val->value))
  2803. return 0;
  2804. return 1;
  2805. }
  2806. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens(ASN1decoding_t dec, PUnknownMessageResponse_tokens *val)
  2807. {
  2808. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_tokens_ElmFn, sizeof(**val));
  2809. }
  2810. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_tokens val)
  2811. {
  2812. if (!ASN1Dec_ClearToken(dec, &val->value))
  2813. return 0;
  2814. return 1;
  2815. }
  2816. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens(PUnknownMessageResponse_tokens *val)
  2817. {
  2818. if (val) {
  2819. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_tokens_ElmFn);
  2820. }
  2821. }
  2822. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens_ElmFn(PUnknownMessageResponse_tokens val)
  2823. {
  2824. if (val) {
  2825. ASN1Free_ClearToken(&val->value);
  2826. }
  2827. }
  2828. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens(ASN1encoding_t enc, PH225NonStandardMessage_tokens *val)
  2829. {
  2830. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_tokens_ElmFn);
  2831. }
  2832. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_tokens val)
  2833. {
  2834. if (!ASN1Enc_ClearToken(enc, &val->value))
  2835. return 0;
  2836. return 1;
  2837. }
  2838. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens(ASN1decoding_t dec, PH225NonStandardMessage_tokens *val)
  2839. {
  2840. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_tokens_ElmFn, sizeof(**val));
  2841. }
  2842. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_tokens val)
  2843. {
  2844. if (!ASN1Dec_ClearToken(dec, &val->value))
  2845. return 0;
  2846. return 1;
  2847. }
  2848. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens(PH225NonStandardMessage_tokens *val)
  2849. {
  2850. if (val) {
  2851. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_tokens_ElmFn);
  2852. }
  2853. }
  2854. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens_ElmFn(PH225NonStandardMessage_tokens val)
  2855. {
  2856. if (val) {
  2857. ASN1Free_ClearToken(&val->value);
  2858. }
  2859. }
  2860. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens(ASN1encoding_t enc, PInfoRequestNak_tokens *val)
  2861. {
  2862. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_tokens_ElmFn);
  2863. }
  2864. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_tokens val)
  2865. {
  2866. if (!ASN1Enc_ClearToken(enc, &val->value))
  2867. return 0;
  2868. return 1;
  2869. }
  2870. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens(ASN1decoding_t dec, PInfoRequestNak_tokens *val)
  2871. {
  2872. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_tokens_ElmFn, sizeof(**val));
  2873. }
  2874. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_tokens val)
  2875. {
  2876. if (!ASN1Dec_ClearToken(dec, &val->value))
  2877. return 0;
  2878. return 1;
  2879. }
  2880. static void ASN1CALL ASN1Free_InfoRequestNak_tokens(PInfoRequestNak_tokens *val)
  2881. {
  2882. if (val) {
  2883. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_tokens_ElmFn);
  2884. }
  2885. }
  2886. static void ASN1CALL ASN1Free_InfoRequestNak_tokens_ElmFn(PInfoRequestNak_tokens val)
  2887. {
  2888. if (val) {
  2889. ASN1Free_ClearToken(&val->value);
  2890. }
  2891. }
  2892. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens(ASN1encoding_t enc, PInfoRequestAck_tokens *val)
  2893. {
  2894. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_tokens_ElmFn);
  2895. }
  2896. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_tokens val)
  2897. {
  2898. if (!ASN1Enc_ClearToken(enc, &val->value))
  2899. return 0;
  2900. return 1;
  2901. }
  2902. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens(ASN1decoding_t dec, PInfoRequestAck_tokens *val)
  2903. {
  2904. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_tokens_ElmFn, sizeof(**val));
  2905. }
  2906. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_tokens val)
  2907. {
  2908. if (!ASN1Dec_ClearToken(dec, &val->value))
  2909. return 0;
  2910. return 1;
  2911. }
  2912. static void ASN1CALL ASN1Free_InfoRequestAck_tokens(PInfoRequestAck_tokens *val)
  2913. {
  2914. if (val) {
  2915. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_tokens_ElmFn);
  2916. }
  2917. }
  2918. static void ASN1CALL ASN1Free_InfoRequestAck_tokens_ElmFn(PInfoRequestAck_tokens val)
  2919. {
  2920. if (val) {
  2921. ASN1Free_ClearToken(&val->value);
  2922. }
  2923. }
  2924. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens(ASN1encoding_t enc, PInfoRequestResponse_tokens *val)
  2925. {
  2926. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_tokens_ElmFn);
  2927. }
  2928. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_tokens val)
  2929. {
  2930. if (!ASN1Enc_ClearToken(enc, &val->value))
  2931. return 0;
  2932. return 1;
  2933. }
  2934. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens(ASN1decoding_t dec, PInfoRequestResponse_tokens *val)
  2935. {
  2936. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_tokens_ElmFn, sizeof(**val));
  2937. }
  2938. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_tokens val)
  2939. {
  2940. if (!ASN1Dec_ClearToken(dec, &val->value))
  2941. return 0;
  2942. return 1;
  2943. }
  2944. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens(PInfoRequestResponse_tokens *val)
  2945. {
  2946. if (val) {
  2947. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_tokens_ElmFn);
  2948. }
  2949. }
  2950. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens_ElmFn(PInfoRequestResponse_tokens val)
  2951. {
  2952. if (val) {
  2953. ASN1Free_ClearToken(&val->value);
  2954. }
  2955. }
  2956. static int ASN1CALL ASN1Enc_InfoRequest_tokens(ASN1encoding_t enc, PInfoRequest_tokens *val)
  2957. {
  2958. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_tokens_ElmFn);
  2959. }
  2960. static int ASN1CALL ASN1Enc_InfoRequest_tokens_ElmFn(ASN1encoding_t enc, PInfoRequest_tokens val)
  2961. {
  2962. if (!ASN1Enc_ClearToken(enc, &val->value))
  2963. return 0;
  2964. return 1;
  2965. }
  2966. static int ASN1CALL ASN1Dec_InfoRequest_tokens(ASN1decoding_t dec, PInfoRequest_tokens *val)
  2967. {
  2968. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_tokens_ElmFn, sizeof(**val));
  2969. }
  2970. static int ASN1CALL ASN1Dec_InfoRequest_tokens_ElmFn(ASN1decoding_t dec, PInfoRequest_tokens val)
  2971. {
  2972. if (!ASN1Dec_ClearToken(dec, &val->value))
  2973. return 0;
  2974. return 1;
  2975. }
  2976. static void ASN1CALL ASN1Free_InfoRequest_tokens(PInfoRequest_tokens *val)
  2977. {
  2978. if (val) {
  2979. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_tokens_ElmFn);
  2980. }
  2981. }
  2982. static void ASN1CALL ASN1Free_InfoRequest_tokens_ElmFn(PInfoRequest_tokens val)
  2983. {
  2984. if (val) {
  2985. ASN1Free_ClearToken(&val->value);
  2986. }
  2987. }
  2988. static int ASN1CALL ASN1Enc_DisengageReject_tokens(ASN1encoding_t enc, PDisengageReject_tokens *val)
  2989. {
  2990. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_tokens_ElmFn);
  2991. }
  2992. static int ASN1CALL ASN1Enc_DisengageReject_tokens_ElmFn(ASN1encoding_t enc, PDisengageReject_tokens val)
  2993. {
  2994. if (!ASN1Enc_ClearToken(enc, &val->value))
  2995. return 0;
  2996. return 1;
  2997. }
  2998. static int ASN1CALL ASN1Dec_DisengageReject_tokens(ASN1decoding_t dec, PDisengageReject_tokens *val)
  2999. {
  3000. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_tokens_ElmFn, sizeof(**val));
  3001. }
  3002. static int ASN1CALL ASN1Dec_DisengageReject_tokens_ElmFn(ASN1decoding_t dec, PDisengageReject_tokens val)
  3003. {
  3004. if (!ASN1Dec_ClearToken(dec, &val->value))
  3005. return 0;
  3006. return 1;
  3007. }
  3008. static void ASN1CALL ASN1Free_DisengageReject_tokens(PDisengageReject_tokens *val)
  3009. {
  3010. if (val) {
  3011. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_tokens_ElmFn);
  3012. }
  3013. }
  3014. static void ASN1CALL ASN1Free_DisengageReject_tokens_ElmFn(PDisengageReject_tokens val)
  3015. {
  3016. if (val) {
  3017. ASN1Free_ClearToken(&val->value);
  3018. }
  3019. }
  3020. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens(ASN1encoding_t enc, PDisengageConfirm_tokens *val)
  3021. {
  3022. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_tokens_ElmFn);
  3023. }
  3024. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_tokens val)
  3025. {
  3026. if (!ASN1Enc_ClearToken(enc, &val->value))
  3027. return 0;
  3028. return 1;
  3029. }
  3030. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens(ASN1decoding_t dec, PDisengageConfirm_tokens *val)
  3031. {
  3032. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_tokens_ElmFn, sizeof(**val));
  3033. }
  3034. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_tokens val)
  3035. {
  3036. if (!ASN1Dec_ClearToken(dec, &val->value))
  3037. return 0;
  3038. return 1;
  3039. }
  3040. static void ASN1CALL ASN1Free_DisengageConfirm_tokens(PDisengageConfirm_tokens *val)
  3041. {
  3042. if (val) {
  3043. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_tokens_ElmFn);
  3044. }
  3045. }
  3046. static void ASN1CALL ASN1Free_DisengageConfirm_tokens_ElmFn(PDisengageConfirm_tokens val)
  3047. {
  3048. if (val) {
  3049. ASN1Free_ClearToken(&val->value);
  3050. }
  3051. }
  3052. static int ASN1CALL ASN1Enc_DisengageRequest_tokens(ASN1encoding_t enc, PDisengageRequest_tokens *val)
  3053. {
  3054. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_tokens_ElmFn);
  3055. }
  3056. static int ASN1CALL ASN1Enc_DisengageRequest_tokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_tokens val)
  3057. {
  3058. if (!ASN1Enc_ClearToken(enc, &val->value))
  3059. return 0;
  3060. return 1;
  3061. }
  3062. static int ASN1CALL ASN1Dec_DisengageRequest_tokens(ASN1decoding_t dec, PDisengageRequest_tokens *val)
  3063. {
  3064. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_tokens_ElmFn, sizeof(**val));
  3065. }
  3066. static int ASN1CALL ASN1Dec_DisengageRequest_tokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_tokens val)
  3067. {
  3068. if (!ASN1Dec_ClearToken(dec, &val->value))
  3069. return 0;
  3070. return 1;
  3071. }
  3072. static void ASN1CALL ASN1Free_DisengageRequest_tokens(PDisengageRequest_tokens *val)
  3073. {
  3074. if (val) {
  3075. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_tokens_ElmFn);
  3076. }
  3077. }
  3078. static void ASN1CALL ASN1Free_DisengageRequest_tokens_ElmFn(PDisengageRequest_tokens val)
  3079. {
  3080. if (val) {
  3081. ASN1Free_ClearToken(&val->value);
  3082. }
  3083. }
  3084. static int ASN1CALL ASN1Enc_LocationReject_tokens(ASN1encoding_t enc, PLocationReject_tokens *val)
  3085. {
  3086. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_tokens_ElmFn);
  3087. }
  3088. static int ASN1CALL ASN1Enc_LocationReject_tokens_ElmFn(ASN1encoding_t enc, PLocationReject_tokens val)
  3089. {
  3090. if (!ASN1Enc_ClearToken(enc, &val->value))
  3091. return 0;
  3092. return 1;
  3093. }
  3094. static int ASN1CALL ASN1Dec_LocationReject_tokens(ASN1decoding_t dec, PLocationReject_tokens *val)
  3095. {
  3096. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_tokens_ElmFn, sizeof(**val));
  3097. }
  3098. static int ASN1CALL ASN1Dec_LocationReject_tokens_ElmFn(ASN1decoding_t dec, PLocationReject_tokens val)
  3099. {
  3100. if (!ASN1Dec_ClearToken(dec, &val->value))
  3101. return 0;
  3102. return 1;
  3103. }
  3104. static void ASN1CALL ASN1Free_LocationReject_tokens(PLocationReject_tokens *val)
  3105. {
  3106. if (val) {
  3107. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_tokens_ElmFn);
  3108. }
  3109. }
  3110. static void ASN1CALL ASN1Free_LocationReject_tokens_ElmFn(PLocationReject_tokens val)
  3111. {
  3112. if (val) {
  3113. ASN1Free_ClearToken(&val->value);
  3114. }
  3115. }
  3116. static int ASN1CALL ASN1Enc_LocationConfirm_tokens(ASN1encoding_t enc, PLocationConfirm_tokens *val)
  3117. {
  3118. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_tokens_ElmFn);
  3119. }
  3120. static int ASN1CALL ASN1Enc_LocationConfirm_tokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_tokens val)
  3121. {
  3122. if (!ASN1Enc_ClearToken(enc, &val->value))
  3123. return 0;
  3124. return 1;
  3125. }
  3126. static int ASN1CALL ASN1Dec_LocationConfirm_tokens(ASN1decoding_t dec, PLocationConfirm_tokens *val)
  3127. {
  3128. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_tokens_ElmFn, sizeof(**val));
  3129. }
  3130. static int ASN1CALL ASN1Dec_LocationConfirm_tokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_tokens val)
  3131. {
  3132. if (!ASN1Dec_ClearToken(dec, &val->value))
  3133. return 0;
  3134. return 1;
  3135. }
  3136. static void ASN1CALL ASN1Free_LocationConfirm_tokens(PLocationConfirm_tokens *val)
  3137. {
  3138. if (val) {
  3139. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_tokens_ElmFn);
  3140. }
  3141. }
  3142. static void ASN1CALL ASN1Free_LocationConfirm_tokens_ElmFn(PLocationConfirm_tokens val)
  3143. {
  3144. if (val) {
  3145. ASN1Free_ClearToken(&val->value);
  3146. }
  3147. }
  3148. static int ASN1CALL ASN1Enc_LocationRequest_tokens(ASN1encoding_t enc, PLocationRequest_tokens *val)
  3149. {
  3150. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_tokens_ElmFn);
  3151. }
  3152. static int ASN1CALL ASN1Enc_LocationRequest_tokens_ElmFn(ASN1encoding_t enc, PLocationRequest_tokens val)
  3153. {
  3154. if (!ASN1Enc_ClearToken(enc, &val->value))
  3155. return 0;
  3156. return 1;
  3157. }
  3158. static int ASN1CALL ASN1Dec_LocationRequest_tokens(ASN1decoding_t dec, PLocationRequest_tokens *val)
  3159. {
  3160. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_tokens_ElmFn, sizeof(**val));
  3161. }
  3162. static int ASN1CALL ASN1Dec_LocationRequest_tokens_ElmFn(ASN1decoding_t dec, PLocationRequest_tokens val)
  3163. {
  3164. if (!ASN1Dec_ClearToken(dec, &val->value))
  3165. return 0;
  3166. return 1;
  3167. }
  3168. static void ASN1CALL ASN1Free_LocationRequest_tokens(PLocationRequest_tokens *val)
  3169. {
  3170. if (val) {
  3171. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_tokens_ElmFn);
  3172. }
  3173. }
  3174. static void ASN1CALL ASN1Free_LocationRequest_tokens_ElmFn(PLocationRequest_tokens val)
  3175. {
  3176. if (val) {
  3177. ASN1Free_ClearToken(&val->value);
  3178. }
  3179. }
  3180. static int ASN1CALL ASN1Enc_BandwidthReject_tokens(ASN1encoding_t enc, PBandwidthReject_tokens *val)
  3181. {
  3182. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_tokens_ElmFn);
  3183. }
  3184. static int ASN1CALL ASN1Enc_BandwidthReject_tokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_tokens val)
  3185. {
  3186. if (!ASN1Enc_ClearToken(enc, &val->value))
  3187. return 0;
  3188. return 1;
  3189. }
  3190. static int ASN1CALL ASN1Dec_BandwidthReject_tokens(ASN1decoding_t dec, PBandwidthReject_tokens *val)
  3191. {
  3192. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_tokens_ElmFn, sizeof(**val));
  3193. }
  3194. static int ASN1CALL ASN1Dec_BandwidthReject_tokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_tokens val)
  3195. {
  3196. if (!ASN1Dec_ClearToken(dec, &val->value))
  3197. return 0;
  3198. return 1;
  3199. }
  3200. static void ASN1CALL ASN1Free_BandwidthReject_tokens(PBandwidthReject_tokens *val)
  3201. {
  3202. if (val) {
  3203. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_tokens_ElmFn);
  3204. }
  3205. }
  3206. static void ASN1CALL ASN1Free_BandwidthReject_tokens_ElmFn(PBandwidthReject_tokens val)
  3207. {
  3208. if (val) {
  3209. ASN1Free_ClearToken(&val->value);
  3210. }
  3211. }
  3212. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens(ASN1encoding_t enc, PBandwidthConfirm_tokens *val)
  3213. {
  3214. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_tokens_ElmFn);
  3215. }
  3216. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_tokens val)
  3217. {
  3218. if (!ASN1Enc_ClearToken(enc, &val->value))
  3219. return 0;
  3220. return 1;
  3221. }
  3222. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens(ASN1decoding_t dec, PBandwidthConfirm_tokens *val)
  3223. {
  3224. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_tokens_ElmFn, sizeof(**val));
  3225. }
  3226. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_tokens val)
  3227. {
  3228. if (!ASN1Dec_ClearToken(dec, &val->value))
  3229. return 0;
  3230. return 1;
  3231. }
  3232. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens(PBandwidthConfirm_tokens *val)
  3233. {
  3234. if (val) {
  3235. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_tokens_ElmFn);
  3236. }
  3237. }
  3238. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens_ElmFn(PBandwidthConfirm_tokens val)
  3239. {
  3240. if (val) {
  3241. ASN1Free_ClearToken(&val->value);
  3242. }
  3243. }
  3244. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens(ASN1encoding_t enc, PBandwidthRequest_tokens *val)
  3245. {
  3246. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_tokens_ElmFn);
  3247. }
  3248. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_tokens val)
  3249. {
  3250. if (!ASN1Enc_ClearToken(enc, &val->value))
  3251. return 0;
  3252. return 1;
  3253. }
  3254. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens(ASN1decoding_t dec, PBandwidthRequest_tokens *val)
  3255. {
  3256. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_tokens_ElmFn, sizeof(**val));
  3257. }
  3258. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_tokens val)
  3259. {
  3260. if (!ASN1Dec_ClearToken(dec, &val->value))
  3261. return 0;
  3262. return 1;
  3263. }
  3264. static void ASN1CALL ASN1Free_BandwidthRequest_tokens(PBandwidthRequest_tokens *val)
  3265. {
  3266. if (val) {
  3267. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_tokens_ElmFn);
  3268. }
  3269. }
  3270. static void ASN1CALL ASN1Free_BandwidthRequest_tokens_ElmFn(PBandwidthRequest_tokens val)
  3271. {
  3272. if (val) {
  3273. ASN1Free_ClearToken(&val->value);
  3274. }
  3275. }
  3276. static int ASN1CALL ASN1Enc_AdmissionReject_tokens(ASN1encoding_t enc, PAdmissionReject_tokens *val)
  3277. {
  3278. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_tokens_ElmFn);
  3279. }
  3280. static int ASN1CALL ASN1Enc_AdmissionReject_tokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_tokens val)
  3281. {
  3282. if (!ASN1Enc_ClearToken(enc, &val->value))
  3283. return 0;
  3284. return 1;
  3285. }
  3286. static int ASN1CALL ASN1Dec_AdmissionReject_tokens(ASN1decoding_t dec, PAdmissionReject_tokens *val)
  3287. {
  3288. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_tokens_ElmFn, sizeof(**val));
  3289. }
  3290. static int ASN1CALL ASN1Dec_AdmissionReject_tokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_tokens val)
  3291. {
  3292. if (!ASN1Dec_ClearToken(dec, &val->value))
  3293. return 0;
  3294. return 1;
  3295. }
  3296. static void ASN1CALL ASN1Free_AdmissionReject_tokens(PAdmissionReject_tokens *val)
  3297. {
  3298. if (val) {
  3299. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_tokens_ElmFn);
  3300. }
  3301. }
  3302. static void ASN1CALL ASN1Free_AdmissionReject_tokens_ElmFn(PAdmissionReject_tokens val)
  3303. {
  3304. if (val) {
  3305. ASN1Free_ClearToken(&val->value);
  3306. }
  3307. }
  3308. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens(ASN1encoding_t enc, PAdmissionConfirm_tokens *val)
  3309. {
  3310. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_tokens_ElmFn);
  3311. }
  3312. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_tokens val)
  3313. {
  3314. if (!ASN1Enc_ClearToken(enc, &val->value))
  3315. return 0;
  3316. return 1;
  3317. }
  3318. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens(ASN1decoding_t dec, PAdmissionConfirm_tokens *val)
  3319. {
  3320. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_tokens_ElmFn, sizeof(**val));
  3321. }
  3322. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_tokens val)
  3323. {
  3324. if (!ASN1Dec_ClearToken(dec, &val->value))
  3325. return 0;
  3326. return 1;
  3327. }
  3328. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens(PAdmissionConfirm_tokens *val)
  3329. {
  3330. if (val) {
  3331. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_tokens_ElmFn);
  3332. }
  3333. }
  3334. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens_ElmFn(PAdmissionConfirm_tokens val)
  3335. {
  3336. if (val) {
  3337. ASN1Free_ClearToken(&val->value);
  3338. }
  3339. }
  3340. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens(ASN1encoding_t enc, PAdmissionRequest_tokens *val)
  3341. {
  3342. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_tokens_ElmFn);
  3343. }
  3344. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_tokens val)
  3345. {
  3346. if (!ASN1Enc_ClearToken(enc, &val->value))
  3347. return 0;
  3348. return 1;
  3349. }
  3350. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens(ASN1decoding_t dec, PAdmissionRequest_tokens *val)
  3351. {
  3352. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_tokens_ElmFn, sizeof(**val));
  3353. }
  3354. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_tokens val)
  3355. {
  3356. if (!ASN1Dec_ClearToken(dec, &val->value))
  3357. return 0;
  3358. return 1;
  3359. }
  3360. static void ASN1CALL ASN1Free_AdmissionRequest_tokens(PAdmissionRequest_tokens *val)
  3361. {
  3362. if (val) {
  3363. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_tokens_ElmFn);
  3364. }
  3365. }
  3366. static void ASN1CALL ASN1Free_AdmissionRequest_tokens_ElmFn(PAdmissionRequest_tokens val)
  3367. {
  3368. if (val) {
  3369. ASN1Free_ClearToken(&val->value);
  3370. }
  3371. }
  3372. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens(ASN1encoding_t enc, PUnregistrationReject_tokens *val)
  3373. {
  3374. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_tokens_ElmFn);
  3375. }
  3376. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_tokens val)
  3377. {
  3378. if (!ASN1Enc_ClearToken(enc, &val->value))
  3379. return 0;
  3380. return 1;
  3381. }
  3382. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens(ASN1decoding_t dec, PUnregistrationReject_tokens *val)
  3383. {
  3384. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_tokens_ElmFn, sizeof(**val));
  3385. }
  3386. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_tokens val)
  3387. {
  3388. if (!ASN1Dec_ClearToken(dec, &val->value))
  3389. return 0;
  3390. return 1;
  3391. }
  3392. static void ASN1CALL ASN1Free_UnregistrationReject_tokens(PUnregistrationReject_tokens *val)
  3393. {
  3394. if (val) {
  3395. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_tokens_ElmFn);
  3396. }
  3397. }
  3398. static void ASN1CALL ASN1Free_UnregistrationReject_tokens_ElmFn(PUnregistrationReject_tokens val)
  3399. {
  3400. if (val) {
  3401. ASN1Free_ClearToken(&val->value);
  3402. }
  3403. }
  3404. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens(ASN1encoding_t enc, PUnregistrationConfirm_tokens *val)
  3405. {
  3406. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_tokens_ElmFn);
  3407. }
  3408. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_tokens val)
  3409. {
  3410. if (!ASN1Enc_ClearToken(enc, &val->value))
  3411. return 0;
  3412. return 1;
  3413. }
  3414. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens(ASN1decoding_t dec, PUnregistrationConfirm_tokens *val)
  3415. {
  3416. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_tokens_ElmFn, sizeof(**val));
  3417. }
  3418. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_tokens val)
  3419. {
  3420. if (!ASN1Dec_ClearToken(dec, &val->value))
  3421. return 0;
  3422. return 1;
  3423. }
  3424. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens(PUnregistrationConfirm_tokens *val)
  3425. {
  3426. if (val) {
  3427. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_tokens_ElmFn);
  3428. }
  3429. }
  3430. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens_ElmFn(PUnregistrationConfirm_tokens val)
  3431. {
  3432. if (val) {
  3433. ASN1Free_ClearToken(&val->value);
  3434. }
  3435. }
  3436. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens(ASN1encoding_t enc, PUnregistrationRequest_tokens *val)
  3437. {
  3438. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_tokens_ElmFn);
  3439. }
  3440. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_tokens val)
  3441. {
  3442. if (!ASN1Enc_ClearToken(enc, &val->value))
  3443. return 0;
  3444. return 1;
  3445. }
  3446. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens(ASN1decoding_t dec, PUnregistrationRequest_tokens *val)
  3447. {
  3448. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_tokens_ElmFn, sizeof(**val));
  3449. }
  3450. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_tokens val)
  3451. {
  3452. if (!ASN1Dec_ClearToken(dec, &val->value))
  3453. return 0;
  3454. return 1;
  3455. }
  3456. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens(PUnregistrationRequest_tokens *val)
  3457. {
  3458. if (val) {
  3459. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_tokens_ElmFn);
  3460. }
  3461. }
  3462. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens_ElmFn(PUnregistrationRequest_tokens val)
  3463. {
  3464. if (val) {
  3465. ASN1Free_ClearToken(&val->value);
  3466. }
  3467. }
  3468. static int ASN1CALL ASN1Enc_RegistrationReject_tokens(ASN1encoding_t enc, PRegistrationReject_tokens *val)
  3469. {
  3470. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_tokens_ElmFn);
  3471. }
  3472. static int ASN1CALL ASN1Enc_RegistrationReject_tokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_tokens val)
  3473. {
  3474. if (!ASN1Enc_ClearToken(enc, &val->value))
  3475. return 0;
  3476. return 1;
  3477. }
  3478. static int ASN1CALL ASN1Dec_RegistrationReject_tokens(ASN1decoding_t dec, PRegistrationReject_tokens *val)
  3479. {
  3480. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_tokens_ElmFn, sizeof(**val));
  3481. }
  3482. static int ASN1CALL ASN1Dec_RegistrationReject_tokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_tokens val)
  3483. {
  3484. if (!ASN1Dec_ClearToken(dec, &val->value))
  3485. return 0;
  3486. return 1;
  3487. }
  3488. static void ASN1CALL ASN1Free_RegistrationReject_tokens(PRegistrationReject_tokens *val)
  3489. {
  3490. if (val) {
  3491. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_tokens_ElmFn);
  3492. }
  3493. }
  3494. static void ASN1CALL ASN1Free_RegistrationReject_tokens_ElmFn(PRegistrationReject_tokens val)
  3495. {
  3496. if (val) {
  3497. ASN1Free_ClearToken(&val->value);
  3498. }
  3499. }
  3500. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens(ASN1encoding_t enc, PRegistrationConfirm_tokens *val)
  3501. {
  3502. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_tokens_ElmFn);
  3503. }
  3504. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_tokens val)
  3505. {
  3506. if (!ASN1Enc_ClearToken(enc, &val->value))
  3507. return 0;
  3508. return 1;
  3509. }
  3510. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens(ASN1decoding_t dec, PRegistrationConfirm_tokens *val)
  3511. {
  3512. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_tokens_ElmFn, sizeof(**val));
  3513. }
  3514. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_tokens val)
  3515. {
  3516. if (!ASN1Dec_ClearToken(dec, &val->value))
  3517. return 0;
  3518. return 1;
  3519. }
  3520. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens(PRegistrationConfirm_tokens *val)
  3521. {
  3522. if (val) {
  3523. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_tokens_ElmFn);
  3524. }
  3525. }
  3526. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens_ElmFn(PRegistrationConfirm_tokens val)
  3527. {
  3528. if (val) {
  3529. ASN1Free_ClearToken(&val->value);
  3530. }
  3531. }
  3532. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens(ASN1encoding_t enc, PRegistrationRequest_tokens *val)
  3533. {
  3534. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_tokens_ElmFn);
  3535. }
  3536. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_tokens val)
  3537. {
  3538. if (!ASN1Enc_ClearToken(enc, &val->value))
  3539. return 0;
  3540. return 1;
  3541. }
  3542. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens(ASN1decoding_t dec, PRegistrationRequest_tokens *val)
  3543. {
  3544. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_tokens_ElmFn, sizeof(**val));
  3545. }
  3546. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_tokens val)
  3547. {
  3548. if (!ASN1Dec_ClearToken(dec, &val->value))
  3549. return 0;
  3550. return 1;
  3551. }
  3552. static void ASN1CALL ASN1Free_RegistrationRequest_tokens(PRegistrationRequest_tokens *val)
  3553. {
  3554. if (val) {
  3555. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_tokens_ElmFn);
  3556. }
  3557. }
  3558. static void ASN1CALL ASN1Free_RegistrationRequest_tokens_ElmFn(PRegistrationRequest_tokens val)
  3559. {
  3560. if (val) {
  3561. ASN1Free_ClearToken(&val->value);
  3562. }
  3563. }
  3564. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens(ASN1encoding_t enc, PGatekeeperReject_tokens *val)
  3565. {
  3566. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_tokens_ElmFn);
  3567. }
  3568. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_tokens val)
  3569. {
  3570. if (!ASN1Enc_ClearToken(enc, &val->value))
  3571. return 0;
  3572. return 1;
  3573. }
  3574. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens(ASN1decoding_t dec, PGatekeeperReject_tokens *val)
  3575. {
  3576. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_tokens_ElmFn, sizeof(**val));
  3577. }
  3578. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_tokens val)
  3579. {
  3580. if (!ASN1Dec_ClearToken(dec, &val->value))
  3581. return 0;
  3582. return 1;
  3583. }
  3584. static void ASN1CALL ASN1Free_GatekeeperReject_tokens(PGatekeeperReject_tokens *val)
  3585. {
  3586. if (val) {
  3587. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_tokens_ElmFn);
  3588. }
  3589. }
  3590. static void ASN1CALL ASN1Free_GatekeeperReject_tokens_ElmFn(PGatekeeperReject_tokens val)
  3591. {
  3592. if (val) {
  3593. ASN1Free_ClearToken(&val->value);
  3594. }
  3595. }
  3596. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens(ASN1encoding_t enc, PGatekeeperConfirm_tokens *val)
  3597. {
  3598. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_tokens_ElmFn);
  3599. }
  3600. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_tokens val)
  3601. {
  3602. if (!ASN1Enc_ClearToken(enc, &val->value))
  3603. return 0;
  3604. return 1;
  3605. }
  3606. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens(ASN1decoding_t dec, PGatekeeperConfirm_tokens *val)
  3607. {
  3608. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_tokens_ElmFn, sizeof(**val));
  3609. }
  3610. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_tokens val)
  3611. {
  3612. if (!ASN1Dec_ClearToken(dec, &val->value))
  3613. return 0;
  3614. return 1;
  3615. }
  3616. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens(PGatekeeperConfirm_tokens *val)
  3617. {
  3618. if (val) {
  3619. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_tokens_ElmFn);
  3620. }
  3621. }
  3622. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens_ElmFn(PGatekeeperConfirm_tokens val)
  3623. {
  3624. if (val) {
  3625. ASN1Free_ClearToken(&val->value);
  3626. }
  3627. }
  3628. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability *val)
  3629. {
  3630. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_authenticationCapability_ElmFn);
  3631. }
  3632. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability val)
  3633. {
  3634. if (!ASN1Enc_AuthenticationMechanism(enc, &val->value))
  3635. return 0;
  3636. return 1;
  3637. }
  3638. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability *val)
  3639. {
  3640. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_authenticationCapability_ElmFn, sizeof(**val));
  3641. }
  3642. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability val)
  3643. {
  3644. if (!ASN1Dec_AuthenticationMechanism(dec, &val->value))
  3645. return 0;
  3646. return 1;
  3647. }
  3648. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability(PGatekeeperRequest_authenticationCapability *val)
  3649. {
  3650. if (val) {
  3651. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_authenticationCapability_ElmFn);
  3652. }
  3653. }
  3654. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability_ElmFn(PGatekeeperRequest_authenticationCapability val)
  3655. {
  3656. if (val) {
  3657. ASN1Free_AuthenticationMechanism(&val->value);
  3658. }
  3659. }
  3660. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens(ASN1encoding_t enc, PGatekeeperRequest_tokens *val)
  3661. {
  3662. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_tokens_ElmFn);
  3663. }
  3664. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_tokens val)
  3665. {
  3666. if (!ASN1Enc_ClearToken(enc, &val->value))
  3667. return 0;
  3668. return 1;
  3669. }
  3670. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens(ASN1decoding_t dec, PGatekeeperRequest_tokens *val)
  3671. {
  3672. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_tokens_ElmFn, sizeof(**val));
  3673. }
  3674. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_tokens val)
  3675. {
  3676. if (!ASN1Dec_ClearToken(dec, &val->value))
  3677. return 0;
  3678. return 1;
  3679. }
  3680. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens(PGatekeeperRequest_tokens *val)
  3681. {
  3682. if (val) {
  3683. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_tokens_ElmFn);
  3684. }
  3685. }
  3686. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens_ElmFn(PGatekeeperRequest_tokens val)
  3687. {
  3688. if (val) {
  3689. ASN1Free_ClearToken(&val->value);
  3690. }
  3691. }
  3692. static int ASN1CALL ASN1Enc_Endpoint_tokens(ASN1encoding_t enc, PEndpoint_tokens *val)
  3693. {
  3694. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_tokens_ElmFn);
  3695. }
  3696. static int ASN1CALL ASN1Enc_Endpoint_tokens_ElmFn(ASN1encoding_t enc, PEndpoint_tokens val)
  3697. {
  3698. if (!ASN1Enc_ClearToken(enc, &val->value))
  3699. return 0;
  3700. return 1;
  3701. }
  3702. static int ASN1CALL ASN1Dec_Endpoint_tokens(ASN1decoding_t dec, PEndpoint_tokens *val)
  3703. {
  3704. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_tokens_ElmFn, sizeof(**val));
  3705. }
  3706. static int ASN1CALL ASN1Dec_Endpoint_tokens_ElmFn(ASN1decoding_t dec, PEndpoint_tokens val)
  3707. {
  3708. if (!ASN1Dec_ClearToken(dec, &val->value))
  3709. return 0;
  3710. return 1;
  3711. }
  3712. static void ASN1CALL ASN1Free_Endpoint_tokens(PEndpoint_tokens *val)
  3713. {
  3714. if (val) {
  3715. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_tokens_ElmFn);
  3716. }
  3717. }
  3718. static void ASN1CALL ASN1Free_Endpoint_tokens_ElmFn(PEndpoint_tokens val)
  3719. {
  3720. if (val) {
  3721. ASN1Free_ClearToken(&val->value);
  3722. }
  3723. }
  3724. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens(ASN1encoding_t enc, PProgress_UUIE_tokens *val)
  3725. {
  3726. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_tokens_ElmFn);
  3727. }
  3728. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_tokens val)
  3729. {
  3730. if (!ASN1Enc_ClearToken(enc, &val->value))
  3731. return 0;
  3732. return 1;
  3733. }
  3734. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens(ASN1decoding_t dec, PProgress_UUIE_tokens *val)
  3735. {
  3736. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_tokens_ElmFn, sizeof(**val));
  3737. }
  3738. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_tokens val)
  3739. {
  3740. if (!ASN1Dec_ClearToken(dec, &val->value))
  3741. return 0;
  3742. return 1;
  3743. }
  3744. static void ASN1CALL ASN1Free_Progress_UUIE_tokens(PProgress_UUIE_tokens *val)
  3745. {
  3746. if (val) {
  3747. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_tokens_ElmFn);
  3748. }
  3749. }
  3750. static void ASN1CALL ASN1Free_Progress_UUIE_tokens_ElmFn(PProgress_UUIE_tokens val)
  3751. {
  3752. if (val) {
  3753. ASN1Free_ClearToken(&val->value);
  3754. }
  3755. }
  3756. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens(ASN1encoding_t enc, PFacility_UUIE_tokens *val)
  3757. {
  3758. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_tokens_ElmFn);
  3759. }
  3760. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_tokens val)
  3761. {
  3762. if (!ASN1Enc_ClearToken(enc, &val->value))
  3763. return 0;
  3764. return 1;
  3765. }
  3766. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens(ASN1decoding_t dec, PFacility_UUIE_tokens *val)
  3767. {
  3768. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_tokens_ElmFn, sizeof(**val));
  3769. }
  3770. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_tokens val)
  3771. {
  3772. if (!ASN1Dec_ClearToken(dec, &val->value))
  3773. return 0;
  3774. return 1;
  3775. }
  3776. static void ASN1CALL ASN1Free_Facility_UUIE_tokens(PFacility_UUIE_tokens *val)
  3777. {
  3778. if (val) {
  3779. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_tokens_ElmFn);
  3780. }
  3781. }
  3782. static void ASN1CALL ASN1Free_Facility_UUIE_tokens_ElmFn(PFacility_UUIE_tokens val)
  3783. {
  3784. if (val) {
  3785. ASN1Free_ClearToken(&val->value);
  3786. }
  3787. }
  3788. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens(ASN1encoding_t enc, PSetup_UUIE_tokens *val)
  3789. {
  3790. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_tokens_ElmFn);
  3791. }
  3792. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_tokens val)
  3793. {
  3794. if (!ASN1Enc_ClearToken(enc, &val->value))
  3795. return 0;
  3796. return 1;
  3797. }
  3798. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens(ASN1decoding_t dec, PSetup_UUIE_tokens *val)
  3799. {
  3800. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_tokens_ElmFn, sizeof(**val));
  3801. }
  3802. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_tokens val)
  3803. {
  3804. if (!ASN1Dec_ClearToken(dec, &val->value))
  3805. return 0;
  3806. return 1;
  3807. }
  3808. static void ASN1CALL ASN1Free_Setup_UUIE_tokens(PSetup_UUIE_tokens *val)
  3809. {
  3810. if (val) {
  3811. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_tokens_ElmFn);
  3812. }
  3813. }
  3814. static void ASN1CALL ASN1Free_Setup_UUIE_tokens_ElmFn(PSetup_UUIE_tokens val)
  3815. {
  3816. if (val) {
  3817. ASN1Free_ClearToken(&val->value);
  3818. }
  3819. }
  3820. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens(ASN1encoding_t enc, PConnect_UUIE_tokens *val)
  3821. {
  3822. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_tokens_ElmFn);
  3823. }
  3824. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_tokens val)
  3825. {
  3826. if (!ASN1Enc_ClearToken(enc, &val->value))
  3827. return 0;
  3828. return 1;
  3829. }
  3830. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens(ASN1decoding_t dec, PConnect_UUIE_tokens *val)
  3831. {
  3832. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_tokens_ElmFn, sizeof(**val));
  3833. }
  3834. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_tokens val)
  3835. {
  3836. if (!ASN1Dec_ClearToken(dec, &val->value))
  3837. return 0;
  3838. return 1;
  3839. }
  3840. static void ASN1CALL ASN1Free_Connect_UUIE_tokens(PConnect_UUIE_tokens *val)
  3841. {
  3842. if (val) {
  3843. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_tokens_ElmFn);
  3844. }
  3845. }
  3846. static void ASN1CALL ASN1Free_Connect_UUIE_tokens_ElmFn(PConnect_UUIE_tokens val)
  3847. {
  3848. if (val) {
  3849. ASN1Free_ClearToken(&val->value);
  3850. }
  3851. }
  3852. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens(ASN1encoding_t enc, PCallProceeding_UUIE_tokens *val)
  3853. {
  3854. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_tokens_ElmFn);
  3855. }
  3856. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_tokens val)
  3857. {
  3858. if (!ASN1Enc_ClearToken(enc, &val->value))
  3859. return 0;
  3860. return 1;
  3861. }
  3862. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens(ASN1decoding_t dec, PCallProceeding_UUIE_tokens *val)
  3863. {
  3864. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_tokens_ElmFn, sizeof(**val));
  3865. }
  3866. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_tokens val)
  3867. {
  3868. if (!ASN1Dec_ClearToken(dec, &val->value))
  3869. return 0;
  3870. return 1;
  3871. }
  3872. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens(PCallProceeding_UUIE_tokens *val)
  3873. {
  3874. if (val) {
  3875. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_tokens_ElmFn);
  3876. }
  3877. }
  3878. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens_ElmFn(PCallProceeding_UUIE_tokens val)
  3879. {
  3880. if (val) {
  3881. ASN1Free_ClearToken(&val->value);
  3882. }
  3883. }
  3884. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens(ASN1encoding_t enc, PAlerting_UUIE_tokens *val)
  3885. {
  3886. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_tokens_ElmFn);
  3887. }
  3888. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_tokens val)
  3889. {
  3890. if (!ASN1Enc_ClearToken(enc, &val->value))
  3891. return 0;
  3892. return 1;
  3893. }
  3894. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens(ASN1decoding_t dec, PAlerting_UUIE_tokens *val)
  3895. {
  3896. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_tokens_ElmFn, sizeof(**val));
  3897. }
  3898. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_tokens val)
  3899. {
  3900. if (!ASN1Dec_ClearToken(dec, &val->value))
  3901. return 0;
  3902. return 1;
  3903. }
  3904. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens(PAlerting_UUIE_tokens *val)
  3905. {
  3906. if (val) {
  3907. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_tokens_ElmFn);
  3908. }
  3909. }
  3910. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens_ElmFn(PAlerting_UUIE_tokens val)
  3911. {
  3912. if (val) {
  3913. ASN1Free_ClearToken(&val->value);
  3914. }
  3915. }
  3916. static int ASN1CALL ASN1Enc_SIGNED_EncodedGeneralToken(ASN1encoding_t enc, SIGNED_EncodedGeneralToken *val)
  3917. {
  3918. if (!ASN1Enc_EncodedGeneralToken(enc, &(val)->toBeSigned))
  3919. return 0;
  3920. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3921. return 0;
  3922. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3923. return 0;
  3924. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  3925. return 0;
  3926. return 1;
  3927. }
  3928. static int ASN1CALL ASN1Dec_SIGNED_EncodedGeneralToken(ASN1decoding_t dec, SIGNED_EncodedGeneralToken *val)
  3929. {
  3930. if (!ASN1Dec_EncodedGeneralToken(dec, &(val)->toBeSigned))
  3931. return 0;
  3932. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3933. return 0;
  3934. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3935. return 0;
  3936. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  3937. return 0;
  3938. return 1;
  3939. }
  3940. static void ASN1CALL ASN1Free_SIGNED_EncodedGeneralToken(SIGNED_EncodedGeneralToken *val)
  3941. {
  3942. if (val) {
  3943. ASN1Free_EncodedGeneralToken(&(val)->toBeSigned);
  3944. ASN1objectidentifier_free(&(val)->algorithmOID);
  3945. ASN1Free_Params(&(val)->paramS);
  3946. ASN1bitstring_free(&(val)->signature);
  3947. }
  3948. }
  3949. static int ASN1CALL ASN1Enc_ENCRYPTED(ASN1encoding_t enc, ENCRYPTED *val)
  3950. {
  3951. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3952. return 0;
  3953. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3954. return 0;
  3955. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->encryptedData))
  3956. return 0;
  3957. return 1;
  3958. }
  3959. static int ASN1CALL ASN1Dec_ENCRYPTED(ASN1decoding_t dec, ENCRYPTED *val)
  3960. {
  3961. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3962. return 0;
  3963. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3964. return 0;
  3965. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->encryptedData))
  3966. return 0;
  3967. return 1;
  3968. }
  3969. static void ASN1CALL ASN1Free_ENCRYPTED(ENCRYPTED *val)
  3970. {
  3971. if (val) {
  3972. ASN1objectidentifier_free(&(val)->algorithmOID);
  3973. ASN1Free_Params(&(val)->paramS);
  3974. ASN1octetstring_free(&(val)->encryptedData);
  3975. }
  3976. }
  3977. static int ASN1CALL ASN1Enc_HASHED(ASN1encoding_t enc, HASHED *val)
  3978. {
  3979. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3980. return 0;
  3981. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3982. return 0;
  3983. if (!ASN1PEREncFragmented(enc, ((val)->hash).length, ((val)->hash).value, 1))
  3984. return 0;
  3985. return 1;
  3986. }
  3987. static int ASN1CALL ASN1Dec_HASHED(ASN1decoding_t dec, HASHED *val)
  3988. {
  3989. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3990. return 0;
  3991. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3992. return 0;
  3993. if (!ASN1PERDecFragmented(dec, &((val)->hash).length, &((val)->hash).value, 1))
  3994. return 0;
  3995. return 1;
  3996. }
  3997. static void ASN1CALL ASN1Free_HASHED(HASHED *val)
  3998. {
  3999. if (val) {
  4000. ASN1objectidentifier_free(&(val)->algorithmOID);
  4001. ASN1Free_Params(&(val)->paramS);
  4002. ASN1bitstring_free(&(val)->hash);
  4003. }
  4004. }
  4005. static int ASN1CALL ASN1Enc_SIGNED_EncodedPwdCertToken(ASN1encoding_t enc, SIGNED_EncodedPwdCertToken *val)
  4006. {
  4007. if (!ASN1Enc_EncodedPwdCertToken(enc, &(val)->toBeSigned))
  4008. return 0;
  4009. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  4010. return 0;
  4011. if (!ASN1Enc_Params(enc, &(val)->paramS))
  4012. return 0;
  4013. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  4014. return 0;
  4015. return 1;
  4016. }
  4017. static int ASN1CALL ASN1Dec_SIGNED_EncodedPwdCertToken(ASN1decoding_t dec, SIGNED_EncodedPwdCertToken *val)
  4018. {
  4019. if (!ASN1Dec_EncodedPwdCertToken(dec, &(val)->toBeSigned))
  4020. return 0;
  4021. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  4022. return 0;
  4023. if (!ASN1Dec_Params(dec, &(val)->paramS))
  4024. return 0;
  4025. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  4026. return 0;
  4027. return 1;
  4028. }
  4029. static void ASN1CALL ASN1Free_SIGNED_EncodedPwdCertToken(SIGNED_EncodedPwdCertToken *val)
  4030. {
  4031. if (val) {
  4032. ASN1Free_EncodedPwdCertToken(&(val)->toBeSigned);
  4033. ASN1objectidentifier_free(&(val)->algorithmOID);
  4034. ASN1Free_Params(&(val)->paramS);
  4035. ASN1bitstring_free(&(val)->signature);
  4036. }
  4037. }
  4038. static int ASN1CALL ASN1Enc_Information_UUIE(ASN1encoding_t enc, Information_UUIE *val)
  4039. {
  4040. ASN1octet_t o[1];
  4041. ASN1uint32_t y;
  4042. ASN1encoding_t ee;
  4043. CopyMemory(o, (val)->o, 1);
  4044. o[0] |= 0x80;
  4045. y = ASN1PEREncCheckExtensions(1, (val)->o + 0);
  4046. if (!ASN1PEREncBitVal(enc, 1, y))
  4047. return 0;
  4048. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4049. return 0;
  4050. if (y) {
  4051. if (!ASN1PEREncNormallySmallBits(enc, 1, o + 0))
  4052. return 0;
  4053. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4054. return 0;
  4055. if (o[0] & 0x80) {
  4056. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  4057. return 0;
  4058. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4059. return 0;
  4060. }
  4061. ASN1_CloseEncoder2(ee);
  4062. }
  4063. return 1;
  4064. }
  4065. static int ASN1CALL ASN1Dec_Information_UUIE(ASN1decoding_t dec, Information_UUIE *val)
  4066. {
  4067. ASN1uint32_t y;
  4068. ASN1decoding_t dd;
  4069. ASN1octet_t *db;
  4070. ASN1uint32_t ds;
  4071. ASN1uint32_t i;
  4072. ASN1uint32_t e;
  4073. if (!ASN1PERDecExtensionBit(dec, &y))
  4074. return 0;
  4075. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4076. return 0;
  4077. if (!y) {
  4078. ZeroMemory((val)->o + 0, 1);
  4079. } else {
  4080. if (!ASN1PERDecNormallySmallExtension(dec, &e, 1, (val)->o + 0))
  4081. return 0;
  4082. if ((val)->o[0] & 0x80) {
  4083. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4084. return 0;
  4085. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4086. return 0;
  4087. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  4088. return 0;
  4089. ASN1_CloseDecoder(dd);
  4090. }
  4091. for (i = 0; i < e; i++) {
  4092. if (!ASN1PERDecSkipFragmented(dec, 8))
  4093. return 0;
  4094. }
  4095. }
  4096. return 1;
  4097. }
  4098. static void ASN1CALL ASN1Free_Information_UUIE(Information_UUIE *val)
  4099. {
  4100. if (val) {
  4101. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4102. if ((val)->o[0] & 0x80) {
  4103. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  4104. }
  4105. }
  4106. }
  4107. static int ASN1CALL ASN1Enc_ReleaseComplete_UUIE(ASN1encoding_t enc, ReleaseComplete_UUIE *val)
  4108. {
  4109. ASN1octet_t o[2];
  4110. ASN1uint32_t y;
  4111. ASN1encoding_t ee;
  4112. CopyMemory(o, (val)->o, 2);
  4113. o[1] |= 0x80;
  4114. y = ASN1PEREncCheckExtensions(1, (val)->o + 1);
  4115. if (!ASN1PEREncBitVal(enc, 1, y))
  4116. return 0;
  4117. if (!ASN1PEREncBits(enc, 1, o))
  4118. return 0;
  4119. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4120. return 0;
  4121. if (o[0] & 0x80) {
  4122. if (!ASN1Enc_ReleaseCompleteReason(enc, &(val)->reason))
  4123. return 0;
  4124. }
  4125. if (y) {
  4126. if (!ASN1PEREncNormallySmallBits(enc, 1, o + 1))
  4127. return 0;
  4128. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4129. return 0;
  4130. if (o[1] & 0x80) {
  4131. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  4132. return 0;
  4133. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4134. return 0;
  4135. }
  4136. ASN1_CloseEncoder2(ee);
  4137. }
  4138. return 1;
  4139. }
  4140. static int ASN1CALL ASN1Dec_ReleaseComplete_UUIE(ASN1decoding_t dec, ReleaseComplete_UUIE *val)
  4141. {
  4142. ASN1uint32_t y;
  4143. ASN1decoding_t dd;
  4144. ASN1octet_t *db;
  4145. ASN1uint32_t ds;
  4146. ASN1uint32_t i;
  4147. ASN1uint32_t e;
  4148. if (!ASN1PERDecExtensionBit(dec, &y))
  4149. return 0;
  4150. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4151. return 0;
  4152. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4153. return 0;
  4154. if ((val)->o[0] & 0x80) {
  4155. if (!ASN1Dec_ReleaseCompleteReason(dec, &(val)->reason))
  4156. return 0;
  4157. }
  4158. if (!y) {
  4159. ZeroMemory((val)->o + 1, 1);
  4160. } else {
  4161. if (!ASN1PERDecNormallySmallExtension(dec, &e, 1, (val)->o + 1))
  4162. return 0;
  4163. if ((val)->o[1] & 0x80) {
  4164. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4165. return 0;
  4166. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4167. return 0;
  4168. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  4169. return 0;
  4170. ASN1_CloseDecoder(dd);
  4171. }
  4172. for (i = 0; i < e; i++) {
  4173. if (!ASN1PERDecSkipFragmented(dec, 8))
  4174. return 0;
  4175. }
  4176. }
  4177. return 1;
  4178. }
  4179. static void ASN1CALL ASN1Free_ReleaseComplete_UUIE(ReleaseComplete_UUIE *val)
  4180. {
  4181. if (val) {
  4182. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4183. if ((val)->o[1] & 0x80) {
  4184. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  4185. }
  4186. }
  4187. }
  4188. static int ASN1CALL ASN1Enc_VendorIdentifier(ASN1encoding_t enc, VendorIdentifier *val)
  4189. {
  4190. if (!ASN1PEREncExtensionBitClear(enc))
  4191. return 0;
  4192. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4193. return 0;
  4194. if (!ASN1Enc_H221NonStandard(enc, &(val)->vendor))
  4195. return 0;
  4196. if ((val)->o[0] & 0x80) {
  4197. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->productId, 1, 256, 8))
  4198. return 0;
  4199. }
  4200. if ((val)->o[0] & 0x40) {
  4201. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->versionId, 1, 256, 8))
  4202. return 0;
  4203. }
  4204. return 1;
  4205. }
  4206. static int ASN1CALL ASN1Dec_VendorIdentifier(ASN1decoding_t dec, VendorIdentifier *val)
  4207. {
  4208. ASN1uint32_t y;
  4209. if (!ASN1PERDecExtensionBit(dec, &y))
  4210. return 0;
  4211. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4212. return 0;
  4213. if (!ASN1Dec_H221NonStandard(dec, &(val)->vendor))
  4214. return 0;
  4215. if ((val)->o[0] & 0x80) {
  4216. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->productId, 1, 256, 8))
  4217. return 0;
  4218. }
  4219. if ((val)->o[0] & 0x40) {
  4220. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->versionId, 1, 256, 8))
  4221. return 0;
  4222. }
  4223. if (y) {
  4224. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4225. return 0;
  4226. }
  4227. return 1;
  4228. }
  4229. static void ASN1CALL ASN1Free_VendorIdentifier(VendorIdentifier *val)
  4230. {
  4231. if (val) {
  4232. if ((val)->o[0] & 0x80) {
  4233. }
  4234. if ((val)->o[0] & 0x40) {
  4235. }
  4236. }
  4237. }
  4238. static int ASN1CALL ASN1Enc_H225NonStandardParameter(ASN1encoding_t enc, H225NonStandardParameter *val)
  4239. {
  4240. if (!ASN1Enc_H225NonStandardIdentifier(enc, &(val)->nonStandardIdentifier))
  4241. return 0;
  4242. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->data))
  4243. return 0;
  4244. return 1;
  4245. }
  4246. static int ASN1CALL ASN1Dec_H225NonStandardParameter(ASN1decoding_t dec, H225NonStandardParameter *val)
  4247. {
  4248. if (!ASN1Dec_H225NonStandardIdentifier(dec, &(val)->nonStandardIdentifier))
  4249. return 0;
  4250. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->data))
  4251. return 0;
  4252. return 1;
  4253. }
  4254. static void ASN1CALL ASN1Free_H225NonStandardParameter(H225NonStandardParameter *val)
  4255. {
  4256. if (val) {
  4257. ASN1Free_H225NonStandardIdentifier(&(val)->nonStandardIdentifier);
  4258. ASN1octetstring_free(&(val)->data);
  4259. }
  4260. }
  4261. static ASN1stringtableentry_t PublicPartyNumber_publicNumberDigits_StringTableEntries[] = {
  4262. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  4263. { 48, 57, 3 },
  4264. };
  4265. static ASN1stringtable_t PublicPartyNumber_publicNumberDigits_StringTable = {
  4266. 4, PublicPartyNumber_publicNumberDigits_StringTableEntries
  4267. };
  4268. static int ASN1CALL ASN1Enc_PublicPartyNumber(ASN1encoding_t enc, PublicPartyNumber *val)
  4269. {
  4270. ASN1uint32_t t;
  4271. if (!ASN1Enc_PublicTypeOfNumber(enc, &(val)->publicTypeOfNumber))
  4272. return 0;
  4273. t = lstrlenA((val)->publicNumberDigits);
  4274. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  4275. return 0;
  4276. ASN1PEREncAlignment(enc);
  4277. if (!ASN1PEREncTableCharString(enc, t, (val)->publicNumberDigits, 4, &PublicPartyNumber_publicNumberDigits_StringTable))
  4278. return 0;
  4279. return 1;
  4280. }
  4281. static int ASN1CALL ASN1Dec_PublicPartyNumber(ASN1decoding_t dec, PublicPartyNumber *val)
  4282. {
  4283. ASN1uint32_t l;
  4284. if (!ASN1Dec_PublicTypeOfNumber(dec, &(val)->publicTypeOfNumber))
  4285. return 0;
  4286. if (!ASN1PERDecU32Val(dec, 7, &l))
  4287. return 0;
  4288. l += 1;
  4289. ASN1PERDecAlignment(dec);
  4290. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->publicNumberDigits, 4, &PublicPartyNumber_publicNumberDigits_StringTable))
  4291. return 0;
  4292. return 1;
  4293. }
  4294. static void ASN1CALL ASN1Free_PublicPartyNumber(PublicPartyNumber *val)
  4295. {
  4296. if (val) {
  4297. }
  4298. }
  4299. static ASN1stringtableentry_t PrivatePartyNumber_privateNumberDigits_StringTableEntries[] = {
  4300. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  4301. { 48, 57, 3 },
  4302. };
  4303. static ASN1stringtable_t PrivatePartyNumber_privateNumberDigits_StringTable = {
  4304. 4, PrivatePartyNumber_privateNumberDigits_StringTableEntries
  4305. };
  4306. static int ASN1CALL ASN1Enc_PrivatePartyNumber(ASN1encoding_t enc, PrivatePartyNumber *val)
  4307. {
  4308. ASN1uint32_t t;
  4309. if (!ASN1Enc_PrivateTypeOfNumber(enc, &(val)->privateTypeOfNumber))
  4310. return 0;
  4311. t = lstrlenA((val)->privateNumberDigits);
  4312. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  4313. return 0;
  4314. ASN1PEREncAlignment(enc);
  4315. if (!ASN1PEREncTableCharString(enc, t, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4316. return 0;
  4317. return 1;
  4318. }
  4319. static int ASN1CALL ASN1Dec_PrivatePartyNumber(ASN1decoding_t dec, PrivatePartyNumber *val)
  4320. {
  4321. ASN1uint32_t l;
  4322. if (!ASN1Dec_PrivateTypeOfNumber(dec, &(val)->privateTypeOfNumber))
  4323. return 0;
  4324. if (!ASN1PERDecU32Val(dec, 7, &l))
  4325. return 0;
  4326. l += 1;
  4327. ASN1PERDecAlignment(dec);
  4328. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4329. return 0;
  4330. return 1;
  4331. }
  4332. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val)
  4333. {
  4334. if (val) {
  4335. }
  4336. }
  4337. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val)
  4338. {
  4339. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4340. return 0;
  4341. switch ((val)->choice) {
  4342. case 1:
  4343. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4344. return 0;
  4345. break;
  4346. case 2:
  4347. break;
  4348. case 3:
  4349. break;
  4350. default:
  4351. /* impossible */
  4352. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4353. return 0;
  4354. }
  4355. return 1;
  4356. }
  4357. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val)
  4358. {
  4359. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4360. return 0;
  4361. switch ((val)->choice) {
  4362. case 1:
  4363. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4364. return 0;
  4365. break;
  4366. case 2:
  4367. break;
  4368. case 3:
  4369. break;
  4370. case 0:
  4371. /* extension case */
  4372. if (!ASN1PERDecSkipFragmented(dec, 8))
  4373. return 0;
  4374. break;
  4375. default:
  4376. /* impossible */
  4377. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4378. return 0;
  4379. }
  4380. return 1;
  4381. }
  4382. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val)
  4383. {
  4384. if (val) {
  4385. switch ((val)->choice) {
  4386. case 1:
  4387. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4388. break;
  4389. }
  4390. }
  4391. }
  4392. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val)
  4393. {
  4394. if (!ASN1PEREncExtensionBitClear(enc))
  4395. return 0;
  4396. if (!ASN1PEREncBits(enc, 1, (val)->o))
  4397. return 0;
  4398. if ((val)->o[0] & 0x80) {
  4399. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandard))
  4400. return 0;
  4401. }
  4402. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->encryption))
  4403. return 0;
  4404. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->authenticaton))
  4405. return 0;
  4406. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->integrity))
  4407. return 0;
  4408. return 1;
  4409. }
  4410. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val)
  4411. {
  4412. ASN1uint32_t y;
  4413. if (!ASN1PERDecExtensionBit(dec, &y))
  4414. return 0;
  4415. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4416. return 0;
  4417. if ((val)->o[0] & 0x80) {
  4418. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandard))
  4419. return 0;
  4420. }
  4421. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->encryption))
  4422. return 0;
  4423. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->authenticaton))
  4424. return 0;
  4425. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->integrity))
  4426. return 0;
  4427. if (y) {
  4428. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4429. return 0;
  4430. }
  4431. return 1;
  4432. }
  4433. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val)
  4434. {
  4435. if (val) {
  4436. if ((val)->o[0] & 0x80) {
  4437. ASN1Free_H225NonStandardParameter(&(val)->nonStandard);
  4438. }
  4439. ASN1Free_SecurityServiceMode(&(val)->encryption);
  4440. ASN1Free_SecurityServiceMode(&(val)->authenticaton);
  4441. ASN1Free_SecurityServiceMode(&(val)->integrity);
  4442. }
  4443. }
  4444. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val)
  4445. {
  4446. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4447. return 0;
  4448. switch ((val)->choice) {
  4449. case 1:
  4450. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4451. return 0;
  4452. break;
  4453. case 2:
  4454. break;
  4455. case 3:
  4456. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.tls))
  4457. return 0;
  4458. break;
  4459. case 4:
  4460. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.ipsec))
  4461. return 0;
  4462. break;
  4463. default:
  4464. /* impossible */
  4465. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4466. return 0;
  4467. }
  4468. return 1;
  4469. }
  4470. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val)
  4471. {
  4472. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4473. return 0;
  4474. switch ((val)->choice) {
  4475. case 1:
  4476. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4477. return 0;
  4478. break;
  4479. case 2:
  4480. break;
  4481. case 3:
  4482. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.tls))
  4483. return 0;
  4484. break;
  4485. case 4:
  4486. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.ipsec))
  4487. return 0;
  4488. break;
  4489. case 0:
  4490. /* extension case */
  4491. if (!ASN1PERDecSkipFragmented(dec, 8))
  4492. return 0;
  4493. break;
  4494. default:
  4495. /* impossible */
  4496. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4497. return 0;
  4498. }
  4499. return 1;
  4500. }
  4501. static void ASN1CALL ASN1Free_H245Security(H245Security *val)
  4502. {
  4503. if (val) {
  4504. switch ((val)->choice) {
  4505. case 1:
  4506. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4507. break;
  4508. case 3:
  4509. ASN1Free_SecurityCapabilities(&(val)->u.tls);
  4510. break;
  4511. case 4:
  4512. ASN1Free_SecurityCapabilities(&(val)->u.ipsec);
  4513. break;
  4514. }
  4515. }
  4516. }
  4517. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val)
  4518. {
  4519. if (!ASN1PEREncExtensionBitClear(enc))
  4520. return 0;
  4521. if (!ASN1PEREncBoolean(enc, (val)->q932Full))
  4522. return 0;
  4523. if (!ASN1PEREncBoolean(enc, (val)->q951Full))
  4524. return 0;
  4525. if (!ASN1PEREncBoolean(enc, (val)->q952Full))
  4526. return 0;
  4527. if (!ASN1PEREncBoolean(enc, (val)->q953Full))
  4528. return 0;
  4529. if (!ASN1PEREncBoolean(enc, (val)->q955Full))
  4530. return 0;
  4531. if (!ASN1PEREncBoolean(enc, (val)->q956Full))
  4532. return 0;
  4533. if (!ASN1PEREncBoolean(enc, (val)->q957Full))
  4534. return 0;
  4535. if (!ASN1Enc_Q954Details(enc, &(val)->q954Info))
  4536. return 0;
  4537. return 1;
  4538. }
  4539. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val)
  4540. {
  4541. ASN1uint32_t y;
  4542. if (!ASN1PERDecExtensionBit(dec, &y))
  4543. return 0;
  4544. if (!ASN1PERDecBoolean(dec, &(val)->q932Full))
  4545. return 0;
  4546. if (!ASN1PERDecBoolean(dec, &(val)->q951Full))
  4547. return 0;
  4548. if (!ASN1PERDecBoolean(dec, &(val)->q952Full))
  4549. return 0;
  4550. if (!ASN1PERDecBoolean(dec, &(val)->q953Full))
  4551. return 0;
  4552. if (!ASN1PERDecBoolean(dec, &(val)->q955Full))
  4553. return 0;
  4554. if (!ASN1PERDecBoolean(dec, &(val)->q956Full))
  4555. return 0;
  4556. if (!ASN1PERDecBoolean(dec, &(val)->q957Full))
  4557. return 0;
  4558. if (!ASN1Dec_Q954Details(dec, &(val)->q954Info))
  4559. return 0;
  4560. if (y) {
  4561. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4562. return 0;
  4563. }
  4564. return 1;
  4565. }
  4566. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val)
  4567. {
  4568. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  4569. return 0;
  4570. switch ((val)->choice) {
  4571. case 1:
  4572. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4573. return 0;
  4574. break;
  4575. case 2:
  4576. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.isoAlgorithm))
  4577. return 0;
  4578. break;
  4579. default:
  4580. /* impossible */
  4581. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4582. return 0;
  4583. }
  4584. return 1;
  4585. }
  4586. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val)
  4587. {
  4588. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  4589. return 0;
  4590. switch ((val)->choice) {
  4591. case 1:
  4592. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4593. return 0;
  4594. break;
  4595. case 2:
  4596. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.isoAlgorithm))
  4597. return 0;
  4598. break;
  4599. case 0:
  4600. /* extension case */
  4601. if (!ASN1PERDecSkipFragmented(dec, 8))
  4602. return 0;
  4603. break;
  4604. default:
  4605. /* impossible */
  4606. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4607. return 0;
  4608. }
  4609. return 1;
  4610. }
  4611. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val)
  4612. {
  4613. if (val) {
  4614. switch ((val)->choice) {
  4615. case 1:
  4616. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4617. break;
  4618. case 2:
  4619. ASN1objectidentifier_free(&(val)->u.isoAlgorithm);
  4620. break;
  4621. }
  4622. }
  4623. }
  4624. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val)
  4625. {
  4626. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4627. return 0;
  4628. switch ((val)->choice) {
  4629. case 1:
  4630. break;
  4631. case 2:
  4632. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_s))
  4633. return 0;
  4634. break;
  4635. case 3:
  4636. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_l))
  4637. return 0;
  4638. break;
  4639. case 4:
  4640. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.hMAC_iso10118_3))
  4641. return 0;
  4642. break;
  4643. default:
  4644. /* impossible */
  4645. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4646. return 0;
  4647. }
  4648. return 1;
  4649. }
  4650. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val)
  4651. {
  4652. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4653. return 0;
  4654. switch ((val)->choice) {
  4655. case 1:
  4656. break;
  4657. case 2:
  4658. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_s))
  4659. return 0;
  4660. break;
  4661. case 3:
  4662. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_l))
  4663. return 0;
  4664. break;
  4665. case 4:
  4666. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.hMAC_iso10118_3))
  4667. return 0;
  4668. break;
  4669. case 0:
  4670. /* extension case */
  4671. if (!ASN1PERDecSkipFragmented(dec, 8))
  4672. return 0;
  4673. break;
  4674. default:
  4675. /* impossible */
  4676. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4677. return 0;
  4678. }
  4679. return 1;
  4680. }
  4681. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val)
  4682. {
  4683. if (val) {
  4684. switch ((val)->choice) {
  4685. case 2:
  4686. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_s);
  4687. break;
  4688. case 3:
  4689. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_l);
  4690. break;
  4691. case 4:
  4692. ASN1objectidentifier_free(&(val)->u.hMAC_iso10118_3);
  4693. break;
  4694. }
  4695. }
  4696. }
  4697. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val)
  4698. {
  4699. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4700. return 0;
  4701. switch ((val)->choice) {
  4702. case 1:
  4703. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4704. return 0;
  4705. break;
  4706. case 2:
  4707. break;
  4708. case 3:
  4709. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.iso9797))
  4710. return 0;
  4711. break;
  4712. case 4:
  4713. if (!ASN1Enc_NonIsoIntegrityMechanism(enc, &(val)->u.nonIsoIM))
  4714. return 0;
  4715. break;
  4716. default:
  4717. /* impossible */
  4718. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4719. return 0;
  4720. }
  4721. return 1;
  4722. }
  4723. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val)
  4724. {
  4725. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4726. return 0;
  4727. switch ((val)->choice) {
  4728. case 1:
  4729. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4730. return 0;
  4731. break;
  4732. case 2:
  4733. break;
  4734. case 3:
  4735. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.iso9797))
  4736. return 0;
  4737. break;
  4738. case 4:
  4739. if (!ASN1Dec_NonIsoIntegrityMechanism(dec, &(val)->u.nonIsoIM))
  4740. return 0;
  4741. break;
  4742. case 0:
  4743. /* extension case */
  4744. if (!ASN1PERDecSkipFragmented(dec, 8))
  4745. return 0;
  4746. break;
  4747. default:
  4748. /* impossible */
  4749. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4750. return 0;
  4751. }
  4752. return 1;
  4753. }
  4754. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val)
  4755. {
  4756. if (val) {
  4757. switch ((val)->choice) {
  4758. case 1:
  4759. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4760. break;
  4761. case 3:
  4762. ASN1objectidentifier_free(&(val)->u.iso9797);
  4763. break;
  4764. case 4:
  4765. ASN1Free_NonIsoIntegrityMechanism(&(val)->u.nonIsoIM);
  4766. break;
  4767. }
  4768. }
  4769. }
  4770. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val)
  4771. {
  4772. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  4773. return 0;
  4774. if (!ASN1Enc_FastStartToken(enc, &(val)->type))
  4775. return 0;
  4776. return 1;
  4777. }
  4778. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val)
  4779. {
  4780. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  4781. return 0;
  4782. if (!ASN1Dec_FastStartToken(dec, &(val)->type))
  4783. return 0;
  4784. return 1;
  4785. }
  4786. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val)
  4787. {
  4788. if (val) {
  4789. ASN1objectidentifier_free(&(val)->id);
  4790. ASN1Free_FastStartToken(&(val)->type);
  4791. }
  4792. }
  4793. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val)
  4794. {
  4795. ASN1uint32_t l;
  4796. if (!ASN1PEREncExtensionBitClear(enc))
  4797. return 0;
  4798. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4799. return 0;
  4800. if ((val)->o[0] & 0x80) {
  4801. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4802. return 0;
  4803. }
  4804. l = ASN1uint32_uoctets((val)->channelRate);
  4805. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  4806. return 0;
  4807. ASN1PEREncAlignment(enc);
  4808. if (!ASN1PEREncBitVal(enc, l * 8, (val)->channelRate))
  4809. return 0;
  4810. if ((val)->o[0] & 0x40) {
  4811. ASN1PEREncAlignment(enc);
  4812. if (!ASN1PEREncBitVal(enc, 8, (val)->channelMultiplier - 1))
  4813. return 0;
  4814. }
  4815. return 1;
  4816. }
  4817. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val)
  4818. {
  4819. ASN1uint32_t y;
  4820. ASN1uint32_t l;
  4821. if (!ASN1PERDecExtensionBit(dec, &y))
  4822. return 0;
  4823. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4824. return 0;
  4825. if ((val)->o[0] & 0x80) {
  4826. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4827. return 0;
  4828. }
  4829. if (!ASN1PERDecU32Val(dec, 2, &l))
  4830. return 0;
  4831. l += 1;
  4832. ASN1PERDecAlignment(dec);
  4833. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->channelRate))
  4834. return 0;
  4835. if ((val)->o[0] & 0x40) {
  4836. ASN1PERDecAlignment(dec);
  4837. if (!ASN1PERDecU16Val(dec, 8, &(val)->channelMultiplier))
  4838. return 0;
  4839. (val)->channelMultiplier += 1;
  4840. }
  4841. if (y) {
  4842. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4843. return 0;
  4844. }
  4845. return 1;
  4846. }
  4847. static void ASN1CALL ASN1Free_DataRate(DataRate *val)
  4848. {
  4849. if (val) {
  4850. if ((val)->o[0] & 0x80) {
  4851. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4852. }
  4853. }
  4854. }
  4855. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val)
  4856. {
  4857. ASN1uint32_t y;
  4858. ASN1encoding_t ee;
  4859. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  4860. if (!ASN1PEREncBitVal(enc, 1, y))
  4861. return 0;
  4862. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4863. return 0;
  4864. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  4865. return 0;
  4866. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4867. return 0;
  4868. if ((val)->o[0] & 0x80) {
  4869. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4870. return 0;
  4871. }
  4872. if ((val)->o[0] & 0x40) {
  4873. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  4874. return 0;
  4875. ASN1PEREncAlignment(enc);
  4876. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  4877. return 0;
  4878. }
  4879. if (!ASN1Enc_GatekeeperRejectReason(enc, &(val)->rejectReason))
  4880. return 0;
  4881. if (y) {
  4882. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  4883. return 0;
  4884. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4885. return 0;
  4886. if ((val)->o[1] & 0x80) {
  4887. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  4888. return 0;
  4889. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4890. return 0;
  4891. }
  4892. if ((val)->o[1] & 0x40) {
  4893. if (!ASN1Enc_GatekeeperReject_tokens(ee, &(val)->tokens))
  4894. return 0;
  4895. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4896. return 0;
  4897. }
  4898. if ((val)->o[1] & 0x20) {
  4899. if (!ASN1Enc_GatekeeperReject_cryptoTokens(ee, &(val)->cryptoTokens))
  4900. return 0;
  4901. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4902. return 0;
  4903. }
  4904. if ((val)->o[1] & 0x10) {
  4905. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  4906. return 0;
  4907. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4908. return 0;
  4909. }
  4910. ASN1_CloseEncoder2(ee);
  4911. }
  4912. return 1;
  4913. }
  4914. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val)
  4915. {
  4916. ASN1uint32_t y;
  4917. ASN1decoding_t dd;
  4918. ASN1octet_t *db;
  4919. ASN1uint32_t ds;
  4920. ASN1uint32_t i;
  4921. ASN1uint32_t e;
  4922. if (!ASN1PERDecExtensionBit(dec, &y))
  4923. return 0;
  4924. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4925. return 0;
  4926. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  4927. return 0;
  4928. (val)->requestSeqNum += 1;
  4929. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4930. return 0;
  4931. if ((val)->o[0] & 0x80) {
  4932. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4933. return 0;
  4934. }
  4935. if ((val)->o[0] & 0x40) {
  4936. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  4937. return 0;
  4938. ((val)->gatekeeperIdentifier).length += 1;
  4939. ASN1PERDecAlignment(dec);
  4940. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  4941. return 0;
  4942. }
  4943. if (!ASN1Dec_GatekeeperRejectReason(dec, &(val)->rejectReason))
  4944. return 0;
  4945. if (!y) {
  4946. ZeroMemory((val)->o + 1, 1);
  4947. } else {
  4948. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  4949. return 0;
  4950. if ((val)->o[1] & 0x80) {
  4951. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4952. return 0;
  4953. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4954. return 0;
  4955. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  4956. return 0;
  4957. ASN1_CloseDecoder(dd);
  4958. }
  4959. if ((val)->o[1] & 0x40) {
  4960. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4961. return 0;
  4962. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4963. return 0;
  4964. if (!ASN1Dec_GatekeeperReject_tokens(dd, &(val)->tokens))
  4965. return 0;
  4966. ASN1_CloseDecoder(dd);
  4967. }
  4968. if ((val)->o[1] & 0x20) {
  4969. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4970. return 0;
  4971. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4972. return 0;
  4973. if (!ASN1Dec_GatekeeperReject_cryptoTokens(dd, &(val)->cryptoTokens))
  4974. return 0;
  4975. ASN1_CloseDecoder(dd);
  4976. }
  4977. if ((val)->o[1] & 0x10) {
  4978. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4979. return 0;
  4980. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  4981. return 0;
  4982. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  4983. return 0;
  4984. ASN1_CloseDecoder(dd);
  4985. }
  4986. for (i = 0; i < e; i++) {
  4987. if (!ASN1PERDecSkipFragmented(dec, 8))
  4988. return 0;
  4989. }
  4990. }
  4991. return 1;
  4992. }
  4993. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val)
  4994. {
  4995. if (val) {
  4996. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4997. if ((val)->o[0] & 0x80) {
  4998. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4999. }
  5000. if ((val)->o[0] & 0x40) {
  5001. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5002. }
  5003. if ((val)->o[1] & 0x80) {
  5004. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5005. }
  5006. if ((val)->o[1] & 0x40) {
  5007. ASN1Free_GatekeeperReject_tokens(&(val)->tokens);
  5008. }
  5009. if ((val)->o[1] & 0x20) {
  5010. ASN1Free_GatekeeperReject_cryptoTokens(&(val)->cryptoTokens);
  5011. }
  5012. if ((val)->o[1] & 0x10) {
  5013. ASN1Free_ICV(&(val)->integrityCheckValue);
  5014. }
  5015. }
  5016. }
  5017. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val)
  5018. {
  5019. ASN1octet_t o[2];
  5020. ASN1uint32_t y;
  5021. ASN1encoding_t ee;
  5022. ASN1uint32_t l;
  5023. CopyMemory(o, (val)->o, 2);
  5024. o[1] |= 0x4;
  5025. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  5026. if (!ASN1PEREncBitVal(enc, 1, y))
  5027. return 0;
  5028. if (!ASN1PEREncBits(enc, 3, o))
  5029. return 0;
  5030. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5031. return 0;
  5032. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5033. return 0;
  5034. if (o[0] & 0x80) {
  5035. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5036. return 0;
  5037. }
  5038. if (!ASN1Enc_RegistrationConfirm_callSignalAddress(enc, &(val)->callSignalAddress))
  5039. return 0;
  5040. if (o[0] & 0x40) {
  5041. if (!ASN1Enc_RegistrationConfirm_terminalAlias(enc, &(val)->terminalAlias))
  5042. return 0;
  5043. }
  5044. if (o[0] & 0x20) {
  5045. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5046. return 0;
  5047. ASN1PEREncAlignment(enc);
  5048. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5049. return 0;
  5050. }
  5051. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5052. return 0;
  5053. ASN1PEREncAlignment(enc);
  5054. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5055. return 0;
  5056. if (y) {
  5057. if (!ASN1PEREncNormallySmallBits(enc, 7, o + 1))
  5058. return 0;
  5059. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5060. return 0;
  5061. if (o[1] & 0x80) {
  5062. if (!ASN1Enc_RegistrationConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  5063. return 0;
  5064. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5065. return 0;
  5066. }
  5067. if (o[1] & 0x40) {
  5068. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  5069. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  5070. return 0;
  5071. ASN1PEREncAlignment(ee);
  5072. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  5073. return 0;
  5074. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5075. return 0;
  5076. }
  5077. if (o[1] & 0x20) {
  5078. if (!ASN1Enc_RegistrationConfirm_tokens(ee, &(val)->tokens))
  5079. return 0;
  5080. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5081. return 0;
  5082. }
  5083. if (o[1] & 0x10) {
  5084. if (!ASN1Enc_RegistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5085. return 0;
  5086. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5087. return 0;
  5088. }
  5089. if (o[1] & 0x8) {
  5090. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5091. return 0;
  5092. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5093. return 0;
  5094. }
  5095. if (o[1] & 0x4) {
  5096. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  5097. return 0;
  5098. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5099. return 0;
  5100. }
  5101. if (o[1] & 0x2) {
  5102. if (!ASN1Enc_RegistrationConfirm_preGrantedARQ(ee, &(val)->preGrantedARQ))
  5103. return 0;
  5104. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5105. return 0;
  5106. }
  5107. ASN1_CloseEncoder2(ee);
  5108. }
  5109. return 1;
  5110. }
  5111. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val)
  5112. {
  5113. ASN1uint32_t y;
  5114. ASN1decoding_t dd;
  5115. ASN1octet_t *db;
  5116. ASN1uint32_t ds;
  5117. ASN1uint32_t l;
  5118. ASN1uint32_t i;
  5119. ASN1uint32_t e;
  5120. if (!ASN1PERDecExtensionBit(dec, &y))
  5121. return 0;
  5122. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5123. return 0;
  5124. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5125. return 0;
  5126. (val)->requestSeqNum += 1;
  5127. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5128. return 0;
  5129. if ((val)->o[0] & 0x80) {
  5130. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5131. return 0;
  5132. }
  5133. if (!ASN1Dec_RegistrationConfirm_callSignalAddress(dec, &(val)->callSignalAddress))
  5134. return 0;
  5135. if ((val)->o[0] & 0x40) {
  5136. if (!ASN1Dec_RegistrationConfirm_terminalAlias(dec, &(val)->terminalAlias))
  5137. return 0;
  5138. }
  5139. if ((val)->o[0] & 0x20) {
  5140. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5141. return 0;
  5142. ((val)->gatekeeperIdentifier).length += 1;
  5143. ASN1PERDecAlignment(dec);
  5144. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5145. return 0;
  5146. }
  5147. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5148. return 0;
  5149. ((val)->endpointIdentifier).length += 1;
  5150. ASN1PERDecAlignment(dec);
  5151. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5152. return 0;
  5153. if (!y) {
  5154. ZeroMemory((val)->o + 1, 1);
  5155. } else {
  5156. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  5157. return 0;
  5158. if ((val)->o[1] & 0x80) {
  5159. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5160. return 0;
  5161. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5162. return 0;
  5163. if (!ASN1Dec_RegistrationConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  5164. return 0;
  5165. ASN1_CloseDecoder(dd);
  5166. }
  5167. if ((val)->o[1] & 0x40) {
  5168. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5169. return 0;
  5170. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5171. return 0;
  5172. if (!ASN1PERDecU32Val(dd, 2, &l))
  5173. return 0;
  5174. l += 1;
  5175. ASN1PERDecAlignment(dd);
  5176. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  5177. return 0;
  5178. (val)->timeToLive += 1;
  5179. ASN1_CloseDecoder(dd);
  5180. }
  5181. if ((val)->o[1] & 0x20) {
  5182. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5183. return 0;
  5184. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5185. return 0;
  5186. if (!ASN1Dec_RegistrationConfirm_tokens(dd, &(val)->tokens))
  5187. return 0;
  5188. ASN1_CloseDecoder(dd);
  5189. }
  5190. if ((val)->o[1] & 0x10) {
  5191. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5192. return 0;
  5193. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5194. return 0;
  5195. if (!ASN1Dec_RegistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5196. return 0;
  5197. ASN1_CloseDecoder(dd);
  5198. }
  5199. if ((val)->o[1] & 0x8) {
  5200. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5201. return 0;
  5202. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5203. return 0;
  5204. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5205. return 0;
  5206. ASN1_CloseDecoder(dd);
  5207. }
  5208. if ((val)->o[1] & 0x4) {
  5209. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5210. return 0;
  5211. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5212. return 0;
  5213. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  5214. return 0;
  5215. ASN1_CloseDecoder(dd);
  5216. }
  5217. if ((val)->o[1] & 0x2) {
  5218. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5219. return 0;
  5220. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5221. return 0;
  5222. if (!ASN1Dec_RegistrationConfirm_preGrantedARQ(dd, &(val)->preGrantedARQ))
  5223. return 0;
  5224. ASN1_CloseDecoder(dd);
  5225. }
  5226. for (i = 0; i < e; i++) {
  5227. if (!ASN1PERDecSkipFragmented(dec, 8))
  5228. return 0;
  5229. }
  5230. }
  5231. return 1;
  5232. }
  5233. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val)
  5234. {
  5235. if (val) {
  5236. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5237. if ((val)->o[0] & 0x80) {
  5238. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5239. }
  5240. ASN1Free_RegistrationConfirm_callSignalAddress(&(val)->callSignalAddress);
  5241. if ((val)->o[0] & 0x40) {
  5242. ASN1Free_RegistrationConfirm_terminalAlias(&(val)->terminalAlias);
  5243. }
  5244. if ((val)->o[0] & 0x20) {
  5245. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5246. }
  5247. ASN1char16string_free(&(val)->endpointIdentifier);
  5248. if ((val)->o[1] & 0x80) {
  5249. ASN1Free_RegistrationConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  5250. }
  5251. if ((val)->o[1] & 0x20) {
  5252. ASN1Free_RegistrationConfirm_tokens(&(val)->tokens);
  5253. }
  5254. if ((val)->o[1] & 0x10) {
  5255. ASN1Free_RegistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5256. }
  5257. if ((val)->o[1] & 0x8) {
  5258. ASN1Free_ICV(&(val)->integrityCheckValue);
  5259. }
  5260. }
  5261. }
  5262. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val)
  5263. {
  5264. ASN1uint32_t y;
  5265. ASN1encoding_t ee;
  5266. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5267. if (!ASN1PEREncBitVal(enc, 1, y))
  5268. return 0;
  5269. if (!ASN1PEREncBits(enc, 2, (val)->o))
  5270. return 0;
  5271. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5272. return 0;
  5273. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5274. return 0;
  5275. if ((val)->o[0] & 0x80) {
  5276. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5277. return 0;
  5278. }
  5279. if (!ASN1Enc_RegistrationRejectReason(enc, &(val)->rejectReason))
  5280. return 0;
  5281. if ((val)->o[0] & 0x40) {
  5282. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5283. return 0;
  5284. ASN1PEREncAlignment(enc);
  5285. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5286. return 0;
  5287. }
  5288. if (y) {
  5289. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5290. return 0;
  5291. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5292. return 0;
  5293. if ((val)->o[1] & 0x80) {
  5294. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5295. return 0;
  5296. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5297. return 0;
  5298. }
  5299. if ((val)->o[1] & 0x40) {
  5300. if (!ASN1Enc_RegistrationReject_tokens(ee, &(val)->tokens))
  5301. return 0;
  5302. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5303. return 0;
  5304. }
  5305. if ((val)->o[1] & 0x20) {
  5306. if (!ASN1Enc_RegistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5307. return 0;
  5308. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5309. return 0;
  5310. }
  5311. if ((val)->o[1] & 0x10) {
  5312. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5313. return 0;
  5314. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5315. return 0;
  5316. }
  5317. ASN1_CloseEncoder2(ee);
  5318. }
  5319. return 1;
  5320. }
  5321. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val)
  5322. {
  5323. ASN1uint32_t y;
  5324. ASN1decoding_t dd;
  5325. ASN1octet_t *db;
  5326. ASN1uint32_t ds;
  5327. ASN1uint32_t i;
  5328. ASN1uint32_t e;
  5329. if (!ASN1PERDecExtensionBit(dec, &y))
  5330. return 0;
  5331. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  5332. return 0;
  5333. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5334. return 0;
  5335. (val)->requestSeqNum += 1;
  5336. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5337. return 0;
  5338. if ((val)->o[0] & 0x80) {
  5339. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5340. return 0;
  5341. }
  5342. if (!ASN1Dec_RegistrationRejectReason(dec, &(val)->rejectReason))
  5343. return 0;
  5344. if ((val)->o[0] & 0x40) {
  5345. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5346. return 0;
  5347. ((val)->gatekeeperIdentifier).length += 1;
  5348. ASN1PERDecAlignment(dec);
  5349. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5350. return 0;
  5351. }
  5352. if (!y) {
  5353. ZeroMemory((val)->o + 1, 1);
  5354. } else {
  5355. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5356. return 0;
  5357. if ((val)->o[1] & 0x80) {
  5358. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5359. return 0;
  5360. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5361. return 0;
  5362. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5363. return 0;
  5364. ASN1_CloseDecoder(dd);
  5365. }
  5366. if ((val)->o[1] & 0x40) {
  5367. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5368. return 0;
  5369. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5370. return 0;
  5371. if (!ASN1Dec_RegistrationReject_tokens(dd, &(val)->tokens))
  5372. return 0;
  5373. ASN1_CloseDecoder(dd);
  5374. }
  5375. if ((val)->o[1] & 0x20) {
  5376. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5377. return 0;
  5378. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5379. return 0;
  5380. if (!ASN1Dec_RegistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5381. return 0;
  5382. ASN1_CloseDecoder(dd);
  5383. }
  5384. if ((val)->o[1] & 0x10) {
  5385. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5386. return 0;
  5387. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5388. return 0;
  5389. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5390. return 0;
  5391. ASN1_CloseDecoder(dd);
  5392. }
  5393. for (i = 0; i < e; i++) {
  5394. if (!ASN1PERDecSkipFragmented(dec, 8))
  5395. return 0;
  5396. }
  5397. }
  5398. return 1;
  5399. }
  5400. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val)
  5401. {
  5402. if (val) {
  5403. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5404. if ((val)->o[0] & 0x80) {
  5405. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5406. }
  5407. ASN1Free_RegistrationRejectReason(&(val)->rejectReason);
  5408. if ((val)->o[0] & 0x40) {
  5409. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5410. }
  5411. if ((val)->o[1] & 0x80) {
  5412. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5413. }
  5414. if ((val)->o[1] & 0x40) {
  5415. ASN1Free_RegistrationReject_tokens(&(val)->tokens);
  5416. }
  5417. if ((val)->o[1] & 0x20) {
  5418. ASN1Free_RegistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5419. }
  5420. if ((val)->o[1] & 0x10) {
  5421. ASN1Free_ICV(&(val)->integrityCheckValue);
  5422. }
  5423. }
  5424. }
  5425. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val)
  5426. {
  5427. ASN1uint32_t y;
  5428. ASN1encoding_t ee;
  5429. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  5430. if (!ASN1PEREncBitVal(enc, 1, y))
  5431. return 0;
  5432. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5433. return 0;
  5434. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5435. return 0;
  5436. if (!ASN1Enc_UnregistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  5437. return 0;
  5438. if ((val)->o[0] & 0x80) {
  5439. if (!ASN1Enc_UnregistrationRequest_endpointAlias(enc, &(val)->endpointAlias))
  5440. return 0;
  5441. }
  5442. if ((val)->o[0] & 0x40) {
  5443. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5444. return 0;
  5445. }
  5446. if ((val)->o[0] & 0x20) {
  5447. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5448. return 0;
  5449. ASN1PEREncAlignment(enc);
  5450. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5451. return 0;
  5452. }
  5453. if (y) {
  5454. if (!ASN1PEREncNormallySmallBits(enc, 6, (val)->o + 1))
  5455. return 0;
  5456. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5457. return 0;
  5458. if ((val)->o[1] & 0x80) {
  5459. if (!ASN1Enc_UnregistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  5460. return 0;
  5461. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5462. return 0;
  5463. }
  5464. if ((val)->o[1] & 0x40) {
  5465. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  5466. return 0;
  5467. ASN1PEREncAlignment(ee);
  5468. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5469. return 0;
  5470. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5471. return 0;
  5472. }
  5473. if ((val)->o[1] & 0x20) {
  5474. if (!ASN1Enc_UnregistrationRequest_tokens(ee, &(val)->tokens))
  5475. return 0;
  5476. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5477. return 0;
  5478. }
  5479. if ((val)->o[1] & 0x10) {
  5480. if (!ASN1Enc_UnregistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  5481. return 0;
  5482. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5483. return 0;
  5484. }
  5485. if ((val)->o[1] & 0x8) {
  5486. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5487. return 0;
  5488. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5489. return 0;
  5490. }
  5491. if ((val)->o[1] & 0x4) {
  5492. if (!ASN1Enc_UnregRequestReason(ee, &(val)->reason))
  5493. return 0;
  5494. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5495. return 0;
  5496. }
  5497. ASN1_CloseEncoder2(ee);
  5498. }
  5499. return 1;
  5500. }
  5501. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val)
  5502. {
  5503. ASN1uint32_t y;
  5504. ASN1decoding_t dd;
  5505. ASN1octet_t *db;
  5506. ASN1uint32_t ds;
  5507. ASN1uint32_t i;
  5508. ASN1uint32_t e;
  5509. if (!ASN1PERDecExtensionBit(dec, &y))
  5510. return 0;
  5511. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5512. return 0;
  5513. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5514. return 0;
  5515. (val)->requestSeqNum += 1;
  5516. if (!ASN1Dec_UnregistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  5517. return 0;
  5518. if ((val)->o[0] & 0x80) {
  5519. if (!ASN1Dec_UnregistrationRequest_endpointAlias(dec, &(val)->endpointAlias))
  5520. return 0;
  5521. }
  5522. if ((val)->o[0] & 0x40) {
  5523. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5524. return 0;
  5525. }
  5526. if ((val)->o[0] & 0x20) {
  5527. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5528. return 0;
  5529. ((val)->endpointIdentifier).length += 1;
  5530. ASN1PERDecAlignment(dec);
  5531. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5532. return 0;
  5533. }
  5534. if (!y) {
  5535. ZeroMemory((val)->o + 1, 1);
  5536. } else {
  5537. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  5538. return 0;
  5539. if ((val)->o[1] & 0x80) {
  5540. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5541. return 0;
  5542. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5543. return 0;
  5544. if (!ASN1Dec_UnregistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  5545. return 0;
  5546. ASN1_CloseDecoder(dd);
  5547. }
  5548. if ((val)->o[1] & 0x40) {
  5549. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5550. return 0;
  5551. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5552. return 0;
  5553. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  5554. return 0;
  5555. ((val)->gatekeeperIdentifier).length += 1;
  5556. ASN1PERDecAlignment(dd);
  5557. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5558. return 0;
  5559. ASN1_CloseDecoder(dd);
  5560. }
  5561. if ((val)->o[1] & 0x20) {
  5562. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5563. return 0;
  5564. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5565. return 0;
  5566. if (!ASN1Dec_UnregistrationRequest_tokens(dd, &(val)->tokens))
  5567. return 0;
  5568. ASN1_CloseDecoder(dd);
  5569. }
  5570. if ((val)->o[1] & 0x10) {
  5571. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5572. return 0;
  5573. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5574. return 0;
  5575. if (!ASN1Dec_UnregistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  5576. return 0;
  5577. ASN1_CloseDecoder(dd);
  5578. }
  5579. if ((val)->o[1] & 0x8) {
  5580. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5581. return 0;
  5582. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5583. return 0;
  5584. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5585. return 0;
  5586. ASN1_CloseDecoder(dd);
  5587. }
  5588. if ((val)->o[1] & 0x4) {
  5589. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5590. return 0;
  5591. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5592. return 0;
  5593. if (!ASN1Dec_UnregRequestReason(dd, &(val)->reason))
  5594. return 0;
  5595. ASN1_CloseDecoder(dd);
  5596. }
  5597. for (i = 0; i < e; i++) {
  5598. if (!ASN1PERDecSkipFragmented(dec, 8))
  5599. return 0;
  5600. }
  5601. }
  5602. return 1;
  5603. }
  5604. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val)
  5605. {
  5606. if (val) {
  5607. ASN1Free_UnregistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  5608. if ((val)->o[0] & 0x80) {
  5609. ASN1Free_UnregistrationRequest_endpointAlias(&(val)->endpointAlias);
  5610. }
  5611. if ((val)->o[0] & 0x40) {
  5612. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5613. }
  5614. if ((val)->o[0] & 0x20) {
  5615. ASN1char16string_free(&(val)->endpointIdentifier);
  5616. }
  5617. if ((val)->o[1] & 0x80) {
  5618. ASN1Free_UnregistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  5619. }
  5620. if ((val)->o[1] & 0x40) {
  5621. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5622. }
  5623. if ((val)->o[1] & 0x20) {
  5624. ASN1Free_UnregistrationRequest_tokens(&(val)->tokens);
  5625. }
  5626. if ((val)->o[1] & 0x10) {
  5627. ASN1Free_UnregistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  5628. }
  5629. if ((val)->o[1] & 0x8) {
  5630. ASN1Free_ICV(&(val)->integrityCheckValue);
  5631. }
  5632. }
  5633. }
  5634. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val)
  5635. {
  5636. ASN1uint32_t y;
  5637. ASN1encoding_t ee;
  5638. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  5639. if (!ASN1PEREncBitVal(enc, 1, y))
  5640. return 0;
  5641. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5642. return 0;
  5643. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5644. return 0;
  5645. if ((val)->o[0] & 0x80) {
  5646. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5647. return 0;
  5648. }
  5649. if (y) {
  5650. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  5651. return 0;
  5652. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5653. return 0;
  5654. if ((val)->o[1] & 0x80) {
  5655. if (!ASN1Enc_UnregistrationConfirm_tokens(ee, &(val)->tokens))
  5656. return 0;
  5657. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5658. return 0;
  5659. }
  5660. if ((val)->o[1] & 0x40) {
  5661. if (!ASN1Enc_UnregistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5662. return 0;
  5663. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5664. return 0;
  5665. }
  5666. if ((val)->o[1] & 0x20) {
  5667. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5668. return 0;
  5669. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5670. return 0;
  5671. }
  5672. ASN1_CloseEncoder2(ee);
  5673. }
  5674. return 1;
  5675. }
  5676. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val)
  5677. {
  5678. ASN1uint32_t y;
  5679. ASN1decoding_t dd;
  5680. ASN1octet_t *db;
  5681. ASN1uint32_t ds;
  5682. ASN1uint32_t i;
  5683. ASN1uint32_t e;
  5684. if (!ASN1PERDecExtensionBit(dec, &y))
  5685. return 0;
  5686. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5687. return 0;
  5688. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5689. return 0;
  5690. (val)->requestSeqNum += 1;
  5691. if ((val)->o[0] & 0x80) {
  5692. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5693. return 0;
  5694. }
  5695. if (!y) {
  5696. ZeroMemory((val)->o + 1, 1);
  5697. } else {
  5698. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  5699. return 0;
  5700. if ((val)->o[1] & 0x80) {
  5701. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5702. return 0;
  5703. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5704. return 0;
  5705. if (!ASN1Dec_UnregistrationConfirm_tokens(dd, &(val)->tokens))
  5706. return 0;
  5707. ASN1_CloseDecoder(dd);
  5708. }
  5709. if ((val)->o[1] & 0x40) {
  5710. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5711. return 0;
  5712. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5713. return 0;
  5714. if (!ASN1Dec_UnregistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5715. return 0;
  5716. ASN1_CloseDecoder(dd);
  5717. }
  5718. if ((val)->o[1] & 0x20) {
  5719. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5720. return 0;
  5721. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5722. return 0;
  5723. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5724. return 0;
  5725. ASN1_CloseDecoder(dd);
  5726. }
  5727. for (i = 0; i < e; i++) {
  5728. if (!ASN1PERDecSkipFragmented(dec, 8))
  5729. return 0;
  5730. }
  5731. }
  5732. return 1;
  5733. }
  5734. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val)
  5735. {
  5736. if (val) {
  5737. if ((val)->o[0] & 0x80) {
  5738. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5739. }
  5740. if ((val)->o[1] & 0x80) {
  5741. ASN1Free_UnregistrationConfirm_tokens(&(val)->tokens);
  5742. }
  5743. if ((val)->o[1] & 0x40) {
  5744. ASN1Free_UnregistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5745. }
  5746. if ((val)->o[1] & 0x20) {
  5747. ASN1Free_ICV(&(val)->integrityCheckValue);
  5748. }
  5749. }
  5750. }
  5751. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val)
  5752. {
  5753. ASN1uint32_t y;
  5754. ASN1encoding_t ee;
  5755. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5756. if (!ASN1PEREncBitVal(enc, 1, y))
  5757. return 0;
  5758. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5759. return 0;
  5760. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5761. return 0;
  5762. if (!ASN1Enc_UnregRejectReason(enc, &(val)->rejectReason))
  5763. return 0;
  5764. if ((val)->o[0] & 0x80) {
  5765. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5766. return 0;
  5767. }
  5768. if (y) {
  5769. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5770. return 0;
  5771. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5772. return 0;
  5773. if ((val)->o[1] & 0x80) {
  5774. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5775. return 0;
  5776. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5777. return 0;
  5778. }
  5779. if ((val)->o[1] & 0x40) {
  5780. if (!ASN1Enc_UnregistrationReject_tokens(ee, &(val)->tokens))
  5781. return 0;
  5782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5783. return 0;
  5784. }
  5785. if ((val)->o[1] & 0x20) {
  5786. if (!ASN1Enc_UnregistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5787. return 0;
  5788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5789. return 0;
  5790. }
  5791. if ((val)->o[1] & 0x10) {
  5792. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5793. return 0;
  5794. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5795. return 0;
  5796. }
  5797. ASN1_CloseEncoder2(ee);
  5798. }
  5799. return 1;
  5800. }
  5801. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val)
  5802. {
  5803. ASN1uint32_t y;
  5804. ASN1decoding_t dd;
  5805. ASN1octet_t *db;
  5806. ASN1uint32_t ds;
  5807. ASN1uint32_t i;
  5808. ASN1uint32_t e;
  5809. if (!ASN1PERDecExtensionBit(dec, &y))
  5810. return 0;
  5811. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5812. return 0;
  5813. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5814. return 0;
  5815. (val)->requestSeqNum += 1;
  5816. if (!ASN1Dec_UnregRejectReason(dec, &(val)->rejectReason))
  5817. return 0;
  5818. if ((val)->o[0] & 0x80) {
  5819. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5820. return 0;
  5821. }
  5822. if (!y) {
  5823. ZeroMemory((val)->o + 1, 1);
  5824. } else {
  5825. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5826. return 0;
  5827. if ((val)->o[1] & 0x80) {
  5828. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5829. return 0;
  5830. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5831. return 0;
  5832. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5833. return 0;
  5834. ASN1_CloseDecoder(dd);
  5835. }
  5836. if ((val)->o[1] & 0x40) {
  5837. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5838. return 0;
  5839. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5840. return 0;
  5841. if (!ASN1Dec_UnregistrationReject_tokens(dd, &(val)->tokens))
  5842. return 0;
  5843. ASN1_CloseDecoder(dd);
  5844. }
  5845. if ((val)->o[1] & 0x20) {
  5846. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5847. return 0;
  5848. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5849. return 0;
  5850. if (!ASN1Dec_UnregistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5851. return 0;
  5852. ASN1_CloseDecoder(dd);
  5853. }
  5854. if ((val)->o[1] & 0x10) {
  5855. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5856. return 0;
  5857. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5858. return 0;
  5859. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5860. return 0;
  5861. ASN1_CloseDecoder(dd);
  5862. }
  5863. for (i = 0; i < e; i++) {
  5864. if (!ASN1PERDecSkipFragmented(dec, 8))
  5865. return 0;
  5866. }
  5867. }
  5868. return 1;
  5869. }
  5870. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val)
  5871. {
  5872. if (val) {
  5873. if ((val)->o[0] & 0x80) {
  5874. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5875. }
  5876. if ((val)->o[1] & 0x80) {
  5877. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5878. }
  5879. if ((val)->o[1] & 0x40) {
  5880. ASN1Free_UnregistrationReject_tokens(&(val)->tokens);
  5881. }
  5882. if ((val)->o[1] & 0x20) {
  5883. ASN1Free_UnregistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5884. }
  5885. if ((val)->o[1] & 0x10) {
  5886. ASN1Free_ICV(&(val)->integrityCheckValue);
  5887. }
  5888. }
  5889. }
  5890. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val)
  5891. {
  5892. ASN1uint32_t y;
  5893. ASN1encoding_t ee;
  5894. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  5895. if (!ASN1PEREncBitVal(enc, 1, y))
  5896. return 0;
  5897. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5898. return 0;
  5899. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5900. return 0;
  5901. if (!ASN1Enc_AdmissionRejectReason(enc, &(val)->rejectReason))
  5902. return 0;
  5903. if ((val)->o[0] & 0x80) {
  5904. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5905. return 0;
  5906. }
  5907. if (y) {
  5908. if (!ASN1PEREncNormallySmallBits(enc, 5, (val)->o + 1))
  5909. return 0;
  5910. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5911. return 0;
  5912. if ((val)->o[1] & 0x80) {
  5913. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5914. return 0;
  5915. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5916. return 0;
  5917. }
  5918. if ((val)->o[1] & 0x40) {
  5919. if (!ASN1Enc_AdmissionReject_tokens(ee, &(val)->tokens))
  5920. return 0;
  5921. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5922. return 0;
  5923. }
  5924. if ((val)->o[1] & 0x20) {
  5925. if (!ASN1Enc_AdmissionReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5926. return 0;
  5927. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5928. return 0;
  5929. }
  5930. if ((val)->o[1] & 0x10) {
  5931. if (!ASN1Enc_AdmissionReject_callSignalAddress(ee, &(val)->callSignalAddress))
  5932. return 0;
  5933. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5934. return 0;
  5935. }
  5936. if ((val)->o[1] & 0x8) {
  5937. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5938. return 0;
  5939. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5940. return 0;
  5941. }
  5942. ASN1_CloseEncoder2(ee);
  5943. }
  5944. return 1;
  5945. }
  5946. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val)
  5947. {
  5948. ASN1uint32_t y;
  5949. ASN1decoding_t dd;
  5950. ASN1octet_t *db;
  5951. ASN1uint32_t ds;
  5952. ASN1uint32_t i;
  5953. ASN1uint32_t e;
  5954. if (!ASN1PERDecExtensionBit(dec, &y))
  5955. return 0;
  5956. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5957. return 0;
  5958. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5959. return 0;
  5960. (val)->requestSeqNum += 1;
  5961. if (!ASN1Dec_AdmissionRejectReason(dec, &(val)->rejectReason))
  5962. return 0;
  5963. if ((val)->o[0] & 0x80) {
  5964. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5965. return 0;
  5966. }
  5967. if (!y) {
  5968. ZeroMemory((val)->o + 1, 1);
  5969. } else {
  5970. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  5971. return 0;
  5972. if ((val)->o[1] & 0x80) {
  5973. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5974. return 0;
  5975. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5976. return 0;
  5977. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5978. return 0;
  5979. ASN1_CloseDecoder(dd);
  5980. }
  5981. if ((val)->o[1] & 0x40) {
  5982. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5983. return 0;
  5984. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5985. return 0;
  5986. if (!ASN1Dec_AdmissionReject_tokens(dd, &(val)->tokens))
  5987. return 0;
  5988. ASN1_CloseDecoder(dd);
  5989. }
  5990. if ((val)->o[1] & 0x20) {
  5991. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5992. return 0;
  5993. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  5994. return 0;
  5995. if (!ASN1Dec_AdmissionReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5996. return 0;
  5997. ASN1_CloseDecoder(dd);
  5998. }
  5999. if ((val)->o[1] & 0x10) {
  6000. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6001. return 0;
  6002. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6003. return 0;
  6004. if (!ASN1Dec_AdmissionReject_callSignalAddress(dd, &(val)->callSignalAddress))
  6005. return 0;
  6006. ASN1_CloseDecoder(dd);
  6007. }
  6008. if ((val)->o[1] & 0x8) {
  6009. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6010. return 0;
  6011. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6012. return 0;
  6013. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6014. return 0;
  6015. ASN1_CloseDecoder(dd);
  6016. }
  6017. for (i = 0; i < e; i++) {
  6018. if (!ASN1PERDecSkipFragmented(dec, 8))
  6019. return 0;
  6020. }
  6021. }
  6022. return 1;
  6023. }
  6024. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val)
  6025. {
  6026. if (val) {
  6027. if ((val)->o[0] & 0x80) {
  6028. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6029. }
  6030. if ((val)->o[1] & 0x80) {
  6031. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6032. }
  6033. if ((val)->o[1] & 0x40) {
  6034. ASN1Free_AdmissionReject_tokens(&(val)->tokens);
  6035. }
  6036. if ((val)->o[1] & 0x20) {
  6037. ASN1Free_AdmissionReject_cryptoTokens(&(val)->cryptoTokens);
  6038. }
  6039. if ((val)->o[1] & 0x10) {
  6040. ASN1Free_AdmissionReject_callSignalAddress(&(val)->callSignalAddress);
  6041. }
  6042. if ((val)->o[1] & 0x8) {
  6043. ASN1Free_ICV(&(val)->integrityCheckValue);
  6044. }
  6045. }
  6046. }
  6047. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val)
  6048. {
  6049. ASN1octet_t o[2];
  6050. ASN1uint32_t y;
  6051. ASN1uint32_t l;
  6052. ASN1encoding_t ee;
  6053. CopyMemory(o, (val)->o, 2);
  6054. o[1] |= 0x80;
  6055. o[1] |= 0x4;
  6056. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6057. if (!ASN1PEREncBitVal(enc, 1, y))
  6058. return 0;
  6059. if (!ASN1PEREncBits(enc, 2, o))
  6060. return 0;
  6061. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6062. return 0;
  6063. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6064. return 0;
  6065. ASN1PEREncAlignment(enc);
  6066. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6067. return 0;
  6068. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6069. return 0;
  6070. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6071. return 0;
  6072. if (o[0] & 0x80) {
  6073. if (!ASN1Enc_CallType(enc, &(val)->callType))
  6074. return 0;
  6075. }
  6076. l = ASN1uint32_uoctets((val)->bandWidth);
  6077. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6078. return 0;
  6079. ASN1PEREncAlignment(enc);
  6080. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6081. return 0;
  6082. if (o[0] & 0x40) {
  6083. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6084. return 0;
  6085. }
  6086. if (y) {
  6087. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6088. return 0;
  6089. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6090. return 0;
  6091. if (o[1] & 0x80) {
  6092. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6093. return 0;
  6094. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6095. return 0;
  6096. }
  6097. if (o[1] & 0x40) {
  6098. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6099. return 0;
  6100. ASN1PEREncAlignment(ee);
  6101. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6102. return 0;
  6103. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6104. return 0;
  6105. }
  6106. if (o[1] & 0x20) {
  6107. if (!ASN1Enc_BandwidthRequest_tokens(ee, &(val)->tokens))
  6108. return 0;
  6109. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6110. return 0;
  6111. }
  6112. if (o[1] & 0x10) {
  6113. if (!ASN1Enc_BandwidthRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6114. return 0;
  6115. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6116. return 0;
  6117. }
  6118. if (o[1] & 0x8) {
  6119. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6120. return 0;
  6121. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6122. return 0;
  6123. }
  6124. if (o[1] & 0x4) {
  6125. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6126. return 0;
  6127. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6128. return 0;
  6129. }
  6130. ASN1_CloseEncoder2(ee);
  6131. }
  6132. return 1;
  6133. }
  6134. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val)
  6135. {
  6136. ASN1uint32_t y;
  6137. ASN1uint32_t l;
  6138. ASN1decoding_t dd;
  6139. ASN1octet_t *db;
  6140. ASN1uint32_t ds;
  6141. ASN1uint32_t i;
  6142. ASN1uint32_t e;
  6143. if (!ASN1PERDecExtensionBit(dec, &y))
  6144. return 0;
  6145. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  6146. return 0;
  6147. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6148. return 0;
  6149. (val)->requestSeqNum += 1;
  6150. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6151. return 0;
  6152. ((val)->endpointIdentifier).length += 1;
  6153. ASN1PERDecAlignment(dec);
  6154. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6155. return 0;
  6156. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6157. return 0;
  6158. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6159. return 0;
  6160. if ((val)->o[0] & 0x80) {
  6161. if (!ASN1Dec_CallType(dec, &(val)->callType))
  6162. return 0;
  6163. }
  6164. if (!ASN1PERDecU32Val(dec, 2, &l))
  6165. return 0;
  6166. l += 1;
  6167. ASN1PERDecAlignment(dec);
  6168. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6169. return 0;
  6170. if ((val)->o[0] & 0x40) {
  6171. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6172. return 0;
  6173. }
  6174. if (!y) {
  6175. ZeroMemory((val)->o + 1, 1);
  6176. } else {
  6177. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6178. return 0;
  6179. if ((val)->o[1] & 0x80) {
  6180. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6181. return 0;
  6182. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6183. return 0;
  6184. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6185. return 0;
  6186. ASN1_CloseDecoder(dd);
  6187. }
  6188. if ((val)->o[1] & 0x40) {
  6189. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6190. return 0;
  6191. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6192. return 0;
  6193. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6194. return 0;
  6195. ((val)->gatekeeperIdentifier).length += 1;
  6196. ASN1PERDecAlignment(dd);
  6197. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6198. return 0;
  6199. ASN1_CloseDecoder(dd);
  6200. }
  6201. if ((val)->o[1] & 0x20) {
  6202. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6203. return 0;
  6204. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6205. return 0;
  6206. if (!ASN1Dec_BandwidthRequest_tokens(dd, &(val)->tokens))
  6207. return 0;
  6208. ASN1_CloseDecoder(dd);
  6209. }
  6210. if ((val)->o[1] & 0x10) {
  6211. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6212. return 0;
  6213. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6214. return 0;
  6215. if (!ASN1Dec_BandwidthRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6216. return 0;
  6217. ASN1_CloseDecoder(dd);
  6218. }
  6219. if ((val)->o[1] & 0x8) {
  6220. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6221. return 0;
  6222. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6223. return 0;
  6224. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6225. return 0;
  6226. ASN1_CloseDecoder(dd);
  6227. }
  6228. if ((val)->o[1] & 0x4) {
  6229. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6230. return 0;
  6231. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6232. return 0;
  6233. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6234. return 0;
  6235. ASN1_CloseDecoder(dd);
  6236. }
  6237. for (i = 0; i < e; i++) {
  6238. if (!ASN1PERDecSkipFragmented(dec, 8))
  6239. return 0;
  6240. }
  6241. }
  6242. return 1;
  6243. }
  6244. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val)
  6245. {
  6246. if (val) {
  6247. ASN1char16string_free(&(val)->endpointIdentifier);
  6248. if ((val)->o[0] & 0x40) {
  6249. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6250. }
  6251. if ((val)->o[1] & 0x80) {
  6252. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6253. }
  6254. if ((val)->o[1] & 0x40) {
  6255. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6256. }
  6257. if ((val)->o[1] & 0x20) {
  6258. ASN1Free_BandwidthRequest_tokens(&(val)->tokens);
  6259. }
  6260. if ((val)->o[1] & 0x10) {
  6261. ASN1Free_BandwidthRequest_cryptoTokens(&(val)->cryptoTokens);
  6262. }
  6263. if ((val)->o[1] & 0x8) {
  6264. ASN1Free_ICV(&(val)->integrityCheckValue);
  6265. }
  6266. }
  6267. }
  6268. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val)
  6269. {
  6270. ASN1uint32_t y;
  6271. ASN1uint32_t l;
  6272. ASN1encoding_t ee;
  6273. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6274. if (!ASN1PEREncBitVal(enc, 1, y))
  6275. return 0;
  6276. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6277. return 0;
  6278. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6279. return 0;
  6280. l = ASN1uint32_uoctets((val)->bandWidth);
  6281. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6282. return 0;
  6283. ASN1PEREncAlignment(enc);
  6284. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6285. return 0;
  6286. if ((val)->o[0] & 0x80) {
  6287. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6288. return 0;
  6289. }
  6290. if (y) {
  6291. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6292. return 0;
  6293. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6294. return 0;
  6295. if ((val)->o[1] & 0x80) {
  6296. if (!ASN1Enc_BandwidthConfirm_tokens(ee, &(val)->tokens))
  6297. return 0;
  6298. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6299. return 0;
  6300. }
  6301. if ((val)->o[1] & 0x40) {
  6302. if (!ASN1Enc_BandwidthConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6303. return 0;
  6304. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6305. return 0;
  6306. }
  6307. if ((val)->o[1] & 0x20) {
  6308. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6309. return 0;
  6310. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6311. return 0;
  6312. }
  6313. ASN1_CloseEncoder2(ee);
  6314. }
  6315. return 1;
  6316. }
  6317. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val)
  6318. {
  6319. ASN1uint32_t y;
  6320. ASN1uint32_t l;
  6321. ASN1decoding_t dd;
  6322. ASN1octet_t *db;
  6323. ASN1uint32_t ds;
  6324. ASN1uint32_t i;
  6325. ASN1uint32_t e;
  6326. if (!ASN1PERDecExtensionBit(dec, &y))
  6327. return 0;
  6328. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6329. return 0;
  6330. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6331. return 0;
  6332. (val)->requestSeqNum += 1;
  6333. if (!ASN1PERDecU32Val(dec, 2, &l))
  6334. return 0;
  6335. l += 1;
  6336. ASN1PERDecAlignment(dec);
  6337. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6338. return 0;
  6339. if ((val)->o[0] & 0x80) {
  6340. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6341. return 0;
  6342. }
  6343. if (!y) {
  6344. ZeroMemory((val)->o + 1, 1);
  6345. } else {
  6346. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6347. return 0;
  6348. if ((val)->o[1] & 0x80) {
  6349. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6350. return 0;
  6351. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6352. return 0;
  6353. if (!ASN1Dec_BandwidthConfirm_tokens(dd, &(val)->tokens))
  6354. return 0;
  6355. ASN1_CloseDecoder(dd);
  6356. }
  6357. if ((val)->o[1] & 0x40) {
  6358. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6359. return 0;
  6360. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6361. return 0;
  6362. if (!ASN1Dec_BandwidthConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  6363. return 0;
  6364. ASN1_CloseDecoder(dd);
  6365. }
  6366. if ((val)->o[1] & 0x20) {
  6367. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6368. return 0;
  6369. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6370. return 0;
  6371. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6372. return 0;
  6373. ASN1_CloseDecoder(dd);
  6374. }
  6375. for (i = 0; i < e; i++) {
  6376. if (!ASN1PERDecSkipFragmented(dec, 8))
  6377. return 0;
  6378. }
  6379. }
  6380. return 1;
  6381. }
  6382. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val)
  6383. {
  6384. if (val) {
  6385. if ((val)->o[0] & 0x80) {
  6386. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6387. }
  6388. if ((val)->o[1] & 0x80) {
  6389. ASN1Free_BandwidthConfirm_tokens(&(val)->tokens);
  6390. }
  6391. if ((val)->o[1] & 0x40) {
  6392. ASN1Free_BandwidthConfirm_cryptoTokens(&(val)->cryptoTokens);
  6393. }
  6394. if ((val)->o[1] & 0x20) {
  6395. ASN1Free_ICV(&(val)->integrityCheckValue);
  6396. }
  6397. }
  6398. }
  6399. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val)
  6400. {
  6401. ASN1uint32_t y;
  6402. ASN1uint32_t l;
  6403. ASN1encoding_t ee;
  6404. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6405. if (!ASN1PEREncBitVal(enc, 1, y))
  6406. return 0;
  6407. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6408. return 0;
  6409. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6410. return 0;
  6411. if (!ASN1Enc_BandRejectReason(enc, &(val)->rejectReason))
  6412. return 0;
  6413. l = ASN1uint32_uoctets((val)->allowedBandWidth);
  6414. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6415. return 0;
  6416. ASN1PEREncAlignment(enc);
  6417. if (!ASN1PEREncBitVal(enc, l * 8, (val)->allowedBandWidth))
  6418. return 0;
  6419. if ((val)->o[0] & 0x80) {
  6420. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6421. return 0;
  6422. }
  6423. if (y) {
  6424. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6425. return 0;
  6426. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6427. return 0;
  6428. if ((val)->o[1] & 0x80) {
  6429. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6430. return 0;
  6431. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6432. return 0;
  6433. }
  6434. if ((val)->o[1] & 0x40) {
  6435. if (!ASN1Enc_BandwidthReject_tokens(ee, &(val)->tokens))
  6436. return 0;
  6437. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6438. return 0;
  6439. }
  6440. if ((val)->o[1] & 0x20) {
  6441. if (!ASN1Enc_BandwidthReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6442. return 0;
  6443. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6444. return 0;
  6445. }
  6446. if ((val)->o[1] & 0x10) {
  6447. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6448. return 0;
  6449. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6450. return 0;
  6451. }
  6452. ASN1_CloseEncoder2(ee);
  6453. }
  6454. return 1;
  6455. }
  6456. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val)
  6457. {
  6458. ASN1uint32_t y;
  6459. ASN1uint32_t l;
  6460. ASN1decoding_t dd;
  6461. ASN1octet_t *db;
  6462. ASN1uint32_t ds;
  6463. ASN1uint32_t i;
  6464. ASN1uint32_t e;
  6465. if (!ASN1PERDecExtensionBit(dec, &y))
  6466. return 0;
  6467. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6468. return 0;
  6469. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6470. return 0;
  6471. (val)->requestSeqNum += 1;
  6472. if (!ASN1Dec_BandRejectReason(dec, &(val)->rejectReason))
  6473. return 0;
  6474. if (!ASN1PERDecU32Val(dec, 2, &l))
  6475. return 0;
  6476. l += 1;
  6477. ASN1PERDecAlignment(dec);
  6478. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->allowedBandWidth))
  6479. return 0;
  6480. if ((val)->o[0] & 0x80) {
  6481. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6482. return 0;
  6483. }
  6484. if (!y) {
  6485. ZeroMemory((val)->o + 1, 1);
  6486. } else {
  6487. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6488. return 0;
  6489. if ((val)->o[1] & 0x80) {
  6490. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6491. return 0;
  6492. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6493. return 0;
  6494. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6495. return 0;
  6496. ASN1_CloseDecoder(dd);
  6497. }
  6498. if ((val)->o[1] & 0x40) {
  6499. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6500. return 0;
  6501. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6502. return 0;
  6503. if (!ASN1Dec_BandwidthReject_tokens(dd, &(val)->tokens))
  6504. return 0;
  6505. ASN1_CloseDecoder(dd);
  6506. }
  6507. if ((val)->o[1] & 0x20) {
  6508. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6509. return 0;
  6510. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6511. return 0;
  6512. if (!ASN1Dec_BandwidthReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6513. return 0;
  6514. ASN1_CloseDecoder(dd);
  6515. }
  6516. if ((val)->o[1] & 0x10) {
  6517. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6518. return 0;
  6519. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6520. return 0;
  6521. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6522. return 0;
  6523. ASN1_CloseDecoder(dd);
  6524. }
  6525. for (i = 0; i < e; i++) {
  6526. if (!ASN1PERDecSkipFragmented(dec, 8))
  6527. return 0;
  6528. }
  6529. }
  6530. return 1;
  6531. }
  6532. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val)
  6533. {
  6534. if (val) {
  6535. if ((val)->o[0] & 0x80) {
  6536. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6537. }
  6538. if ((val)->o[1] & 0x80) {
  6539. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6540. }
  6541. if ((val)->o[1] & 0x40) {
  6542. ASN1Free_BandwidthReject_tokens(&(val)->tokens);
  6543. }
  6544. if ((val)->o[1] & 0x20) {
  6545. ASN1Free_BandwidthReject_cryptoTokens(&(val)->cryptoTokens);
  6546. }
  6547. if ((val)->o[1] & 0x10) {
  6548. ASN1Free_ICV(&(val)->integrityCheckValue);
  6549. }
  6550. }
  6551. }
  6552. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val)
  6553. {
  6554. ASN1uint32_t y;
  6555. ASN1encoding_t ee;
  6556. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6557. if (!ASN1PEREncBitVal(enc, 1, y))
  6558. return 0;
  6559. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6560. return 0;
  6561. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6562. return 0;
  6563. if (!ASN1Enc_LocationRejectReason(enc, &(val)->rejectReason))
  6564. return 0;
  6565. if ((val)->o[0] & 0x80) {
  6566. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6567. return 0;
  6568. }
  6569. if (y) {
  6570. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6571. return 0;
  6572. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6573. return 0;
  6574. if ((val)->o[1] & 0x80) {
  6575. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6576. return 0;
  6577. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6578. return 0;
  6579. }
  6580. if ((val)->o[1] & 0x40) {
  6581. if (!ASN1Enc_LocationReject_tokens(ee, &(val)->tokens))
  6582. return 0;
  6583. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6584. return 0;
  6585. }
  6586. if ((val)->o[1] & 0x20) {
  6587. if (!ASN1Enc_LocationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6588. return 0;
  6589. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6590. return 0;
  6591. }
  6592. if ((val)->o[1] & 0x10) {
  6593. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6594. return 0;
  6595. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6596. return 0;
  6597. }
  6598. ASN1_CloseEncoder2(ee);
  6599. }
  6600. return 1;
  6601. }
  6602. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val)
  6603. {
  6604. ASN1uint32_t y;
  6605. ASN1decoding_t dd;
  6606. ASN1octet_t *db;
  6607. ASN1uint32_t ds;
  6608. ASN1uint32_t i;
  6609. ASN1uint32_t e;
  6610. if (!ASN1PERDecExtensionBit(dec, &y))
  6611. return 0;
  6612. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6613. return 0;
  6614. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6615. return 0;
  6616. (val)->requestSeqNum += 1;
  6617. if (!ASN1Dec_LocationRejectReason(dec, &(val)->rejectReason))
  6618. return 0;
  6619. if ((val)->o[0] & 0x80) {
  6620. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6621. return 0;
  6622. }
  6623. if (!y) {
  6624. ZeroMemory((val)->o + 1, 1);
  6625. } else {
  6626. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6627. return 0;
  6628. if ((val)->o[1] & 0x80) {
  6629. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6630. return 0;
  6631. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6632. return 0;
  6633. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6634. return 0;
  6635. ASN1_CloseDecoder(dd);
  6636. }
  6637. if ((val)->o[1] & 0x40) {
  6638. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6639. return 0;
  6640. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6641. return 0;
  6642. if (!ASN1Dec_LocationReject_tokens(dd, &(val)->tokens))
  6643. return 0;
  6644. ASN1_CloseDecoder(dd);
  6645. }
  6646. if ((val)->o[1] & 0x20) {
  6647. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6648. return 0;
  6649. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6650. return 0;
  6651. if (!ASN1Dec_LocationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6652. return 0;
  6653. ASN1_CloseDecoder(dd);
  6654. }
  6655. if ((val)->o[1] & 0x10) {
  6656. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6657. return 0;
  6658. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6659. return 0;
  6660. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6661. return 0;
  6662. ASN1_CloseDecoder(dd);
  6663. }
  6664. for (i = 0; i < e; i++) {
  6665. if (!ASN1PERDecSkipFragmented(dec, 8))
  6666. return 0;
  6667. }
  6668. }
  6669. return 1;
  6670. }
  6671. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val)
  6672. {
  6673. if (val) {
  6674. if ((val)->o[0] & 0x80) {
  6675. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6676. }
  6677. if ((val)->o[1] & 0x80) {
  6678. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6679. }
  6680. if ((val)->o[1] & 0x40) {
  6681. ASN1Free_LocationReject_tokens(&(val)->tokens);
  6682. }
  6683. if ((val)->o[1] & 0x20) {
  6684. ASN1Free_LocationReject_cryptoTokens(&(val)->cryptoTokens);
  6685. }
  6686. if ((val)->o[1] & 0x10) {
  6687. ASN1Free_ICV(&(val)->integrityCheckValue);
  6688. }
  6689. }
  6690. }
  6691. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val)
  6692. {
  6693. ASN1octet_t o[2];
  6694. ASN1uint32_t y;
  6695. ASN1encoding_t ee;
  6696. CopyMemory(o, (val)->o, 2);
  6697. o[1] |= 0x80;
  6698. o[1] |= 0x4;
  6699. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6700. if (!ASN1PEREncBitVal(enc, 1, y))
  6701. return 0;
  6702. if (!ASN1PEREncBits(enc, 1, o))
  6703. return 0;
  6704. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6705. return 0;
  6706. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6707. return 0;
  6708. ASN1PEREncAlignment(enc);
  6709. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6710. return 0;
  6711. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6712. return 0;
  6713. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6714. return 0;
  6715. if (!ASN1Enc_DisengageReason(enc, &(val)->disengageReason))
  6716. return 0;
  6717. if (o[0] & 0x80) {
  6718. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6719. return 0;
  6720. }
  6721. if (y) {
  6722. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6723. return 0;
  6724. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6725. return 0;
  6726. if (o[1] & 0x80) {
  6727. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6728. return 0;
  6729. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6730. return 0;
  6731. }
  6732. if (o[1] & 0x40) {
  6733. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6734. return 0;
  6735. ASN1PEREncAlignment(ee);
  6736. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6737. return 0;
  6738. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6739. return 0;
  6740. }
  6741. if (o[1] & 0x20) {
  6742. if (!ASN1Enc_DisengageRequest_tokens(ee, &(val)->tokens))
  6743. return 0;
  6744. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6745. return 0;
  6746. }
  6747. if (o[1] & 0x10) {
  6748. if (!ASN1Enc_DisengageRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6749. return 0;
  6750. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6751. return 0;
  6752. }
  6753. if (o[1] & 0x8) {
  6754. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6755. return 0;
  6756. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6757. return 0;
  6758. }
  6759. if (o[1] & 0x4) {
  6760. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6761. return 0;
  6762. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6763. return 0;
  6764. }
  6765. ASN1_CloseEncoder2(ee);
  6766. }
  6767. return 1;
  6768. }
  6769. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val)
  6770. {
  6771. ASN1uint32_t y;
  6772. ASN1decoding_t dd;
  6773. ASN1octet_t *db;
  6774. ASN1uint32_t ds;
  6775. ASN1uint32_t i;
  6776. ASN1uint32_t e;
  6777. if (!ASN1PERDecExtensionBit(dec, &y))
  6778. return 0;
  6779. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6780. return 0;
  6781. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6782. return 0;
  6783. (val)->requestSeqNum += 1;
  6784. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6785. return 0;
  6786. ((val)->endpointIdentifier).length += 1;
  6787. ASN1PERDecAlignment(dec);
  6788. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6789. return 0;
  6790. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6791. return 0;
  6792. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6793. return 0;
  6794. if (!ASN1Dec_DisengageReason(dec, &(val)->disengageReason))
  6795. return 0;
  6796. if ((val)->o[0] & 0x80) {
  6797. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6798. return 0;
  6799. }
  6800. if (!y) {
  6801. ZeroMemory((val)->o + 1, 1);
  6802. } else {
  6803. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6804. return 0;
  6805. if ((val)->o[1] & 0x80) {
  6806. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6807. return 0;
  6808. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6809. return 0;
  6810. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6811. return 0;
  6812. ASN1_CloseDecoder(dd);
  6813. }
  6814. if ((val)->o[1] & 0x40) {
  6815. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6816. return 0;
  6817. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6818. return 0;
  6819. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6820. return 0;
  6821. ((val)->gatekeeperIdentifier).length += 1;
  6822. ASN1PERDecAlignment(dd);
  6823. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6824. return 0;
  6825. ASN1_CloseDecoder(dd);
  6826. }
  6827. if ((val)->o[1] & 0x20) {
  6828. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6829. return 0;
  6830. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6831. return 0;
  6832. if (!ASN1Dec_DisengageRequest_tokens(dd, &(val)->tokens))
  6833. return 0;
  6834. ASN1_CloseDecoder(dd);
  6835. }
  6836. if ((val)->o[1] & 0x10) {
  6837. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6838. return 0;
  6839. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6840. return 0;
  6841. if (!ASN1Dec_DisengageRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6842. return 0;
  6843. ASN1_CloseDecoder(dd);
  6844. }
  6845. if ((val)->o[1] & 0x8) {
  6846. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6847. return 0;
  6848. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6849. return 0;
  6850. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6851. return 0;
  6852. ASN1_CloseDecoder(dd);
  6853. }
  6854. if ((val)->o[1] & 0x4) {
  6855. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6856. return 0;
  6857. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6858. return 0;
  6859. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6860. return 0;
  6861. ASN1_CloseDecoder(dd);
  6862. }
  6863. for (i = 0; i < e; i++) {
  6864. if (!ASN1PERDecSkipFragmented(dec, 8))
  6865. return 0;
  6866. }
  6867. }
  6868. return 1;
  6869. }
  6870. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val)
  6871. {
  6872. if (val) {
  6873. ASN1char16string_free(&(val)->endpointIdentifier);
  6874. if ((val)->o[0] & 0x80) {
  6875. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6876. }
  6877. if ((val)->o[1] & 0x80) {
  6878. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6879. }
  6880. if ((val)->o[1] & 0x40) {
  6881. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6882. }
  6883. if ((val)->o[1] & 0x20) {
  6884. ASN1Free_DisengageRequest_tokens(&(val)->tokens);
  6885. }
  6886. if ((val)->o[1] & 0x10) {
  6887. ASN1Free_DisengageRequest_cryptoTokens(&(val)->cryptoTokens);
  6888. }
  6889. if ((val)->o[1] & 0x8) {
  6890. ASN1Free_ICV(&(val)->integrityCheckValue);
  6891. }
  6892. }
  6893. }
  6894. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val)
  6895. {
  6896. ASN1uint32_t y;
  6897. ASN1encoding_t ee;
  6898. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6899. if (!ASN1PEREncBitVal(enc, 1, y))
  6900. return 0;
  6901. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6902. return 0;
  6903. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6904. return 0;
  6905. if ((val)->o[0] & 0x80) {
  6906. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6907. return 0;
  6908. }
  6909. if (y) {
  6910. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6911. return 0;
  6912. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6913. return 0;
  6914. if ((val)->o[1] & 0x80) {
  6915. if (!ASN1Enc_DisengageConfirm_tokens(ee, &(val)->tokens))
  6916. return 0;
  6917. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6918. return 0;
  6919. }
  6920. if ((val)->o[1] & 0x40) {
  6921. if (!ASN1Enc_DisengageConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6922. return 0;
  6923. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6924. return 0;
  6925. }
  6926. if ((val)->o[1] & 0x20) {
  6927. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6928. return 0;
  6929. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6930. return 0;
  6931. }
  6932. ASN1_CloseEncoder2(ee);
  6933. }
  6934. return 1;
  6935. }
  6936. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val)
  6937. {
  6938. ASN1uint32_t y;
  6939. ASN1decoding_t dd;
  6940. ASN1octet_t *db;
  6941. ASN1uint32_t ds;
  6942. ASN1uint32_t i;
  6943. ASN1uint32_t e;
  6944. if (!ASN1PERDecExtensionBit(dec, &y))
  6945. return 0;
  6946. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6947. return 0;
  6948. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6949. return 0;
  6950. (val)->requestSeqNum += 1;
  6951. if ((val)->o[0] & 0x80) {
  6952. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6953. return 0;
  6954. }
  6955. if (!y) {
  6956. ZeroMemory((val)->o + 1, 1);
  6957. } else {
  6958. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6959. return 0;
  6960. if ((val)->o[1] & 0x80) {
  6961. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6962. return 0;
  6963. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6964. return 0;
  6965. if (!ASN1Dec_DisengageConfirm_tokens(dd, &(val)->tokens))
  6966. return 0;
  6967. ASN1_CloseDecoder(dd);
  6968. }
  6969. if ((val)->o[1] & 0x40) {
  6970. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6971. return 0;
  6972. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6973. return 0;
  6974. if (!ASN1Dec_DisengageConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  6975. return 0;
  6976. ASN1_CloseDecoder(dd);
  6977. }
  6978. if ((val)->o[1] & 0x20) {
  6979. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6980. return 0;
  6981. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  6982. return 0;
  6983. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6984. return 0;
  6985. ASN1_CloseDecoder(dd);
  6986. }
  6987. for (i = 0; i < e; i++) {
  6988. if (!ASN1PERDecSkipFragmented(dec, 8))
  6989. return 0;
  6990. }
  6991. }
  6992. return 1;
  6993. }
  6994. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val)
  6995. {
  6996. if (val) {
  6997. if ((val)->o[0] & 0x80) {
  6998. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6999. }
  7000. if ((val)->o[1] & 0x80) {
  7001. ASN1Free_DisengageConfirm_tokens(&(val)->tokens);
  7002. }
  7003. if ((val)->o[1] & 0x40) {
  7004. ASN1Free_DisengageConfirm_cryptoTokens(&(val)->cryptoTokens);
  7005. }
  7006. if ((val)->o[1] & 0x20) {
  7007. ASN1Free_ICV(&(val)->integrityCheckValue);
  7008. }
  7009. }
  7010. }
  7011. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val)
  7012. {
  7013. ASN1uint32_t y;
  7014. ASN1encoding_t ee;
  7015. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  7016. if (!ASN1PEREncBitVal(enc, 1, y))
  7017. return 0;
  7018. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7019. return 0;
  7020. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7021. return 0;
  7022. if (!ASN1Enc_DisengageRejectReason(enc, &(val)->rejectReason))
  7023. return 0;
  7024. if ((val)->o[0] & 0x80) {
  7025. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7026. return 0;
  7027. }
  7028. if (y) {
  7029. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  7030. return 0;
  7031. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7032. return 0;
  7033. if ((val)->o[1] & 0x80) {
  7034. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  7035. return 0;
  7036. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7037. return 0;
  7038. }
  7039. if ((val)->o[1] & 0x40) {
  7040. if (!ASN1Enc_DisengageReject_tokens(ee, &(val)->tokens))
  7041. return 0;
  7042. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7043. return 0;
  7044. }
  7045. if ((val)->o[1] & 0x20) {
  7046. if (!ASN1Enc_DisengageReject_cryptoTokens(ee, &(val)->cryptoTokens))
  7047. return 0;
  7048. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7049. return 0;
  7050. }
  7051. if ((val)->o[1] & 0x10) {
  7052. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7053. return 0;
  7054. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7055. return 0;
  7056. }
  7057. ASN1_CloseEncoder2(ee);
  7058. }
  7059. return 1;
  7060. }
  7061. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val)
  7062. {
  7063. ASN1uint32_t y;
  7064. ASN1decoding_t dd;
  7065. ASN1octet_t *db;
  7066. ASN1uint32_t ds;
  7067. ASN1uint32_t i;
  7068. ASN1uint32_t e;
  7069. if (!ASN1PERDecExtensionBit(dec, &y))
  7070. return 0;
  7071. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7072. return 0;
  7073. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7074. return 0;
  7075. (val)->requestSeqNum += 1;
  7076. if (!ASN1Dec_DisengageRejectReason(dec, &(val)->rejectReason))
  7077. return 0;
  7078. if ((val)->o[0] & 0x80) {
  7079. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7080. return 0;
  7081. }
  7082. if (!y) {
  7083. ZeroMemory((val)->o + 1, 1);
  7084. } else {
  7085. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  7086. return 0;
  7087. if ((val)->o[1] & 0x80) {
  7088. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7089. return 0;
  7090. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7091. return 0;
  7092. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  7093. return 0;
  7094. ASN1_CloseDecoder(dd);
  7095. }
  7096. if ((val)->o[1] & 0x40) {
  7097. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7098. return 0;
  7099. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7100. return 0;
  7101. if (!ASN1Dec_DisengageReject_tokens(dd, &(val)->tokens))
  7102. return 0;
  7103. ASN1_CloseDecoder(dd);
  7104. }
  7105. if ((val)->o[1] & 0x20) {
  7106. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7107. return 0;
  7108. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7109. return 0;
  7110. if (!ASN1Dec_DisengageReject_cryptoTokens(dd, &(val)->cryptoTokens))
  7111. return 0;
  7112. ASN1_CloseDecoder(dd);
  7113. }
  7114. if ((val)->o[1] & 0x10) {
  7115. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7116. return 0;
  7117. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7118. return 0;
  7119. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7120. return 0;
  7121. ASN1_CloseDecoder(dd);
  7122. }
  7123. for (i = 0; i < e; i++) {
  7124. if (!ASN1PERDecSkipFragmented(dec, 8))
  7125. return 0;
  7126. }
  7127. }
  7128. return 1;
  7129. }
  7130. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val)
  7131. {
  7132. if (val) {
  7133. if ((val)->o[0] & 0x80) {
  7134. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7135. }
  7136. if ((val)->o[1] & 0x80) {
  7137. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7138. }
  7139. if ((val)->o[1] & 0x40) {
  7140. ASN1Free_DisengageReject_tokens(&(val)->tokens);
  7141. }
  7142. if ((val)->o[1] & 0x20) {
  7143. ASN1Free_DisengageReject_cryptoTokens(&(val)->cryptoTokens);
  7144. }
  7145. if ((val)->o[1] & 0x10) {
  7146. ASN1Free_ICV(&(val)->integrityCheckValue);
  7147. }
  7148. }
  7149. }
  7150. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val)
  7151. {
  7152. if (!ASN1PEREncExtensionBitClear(enc))
  7153. return 0;
  7154. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7155. return 0;
  7156. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7157. return 0;
  7158. if ((val)->o[0] & 0x80) {
  7159. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7160. return 0;
  7161. }
  7162. if ((val)->o[0] & 0x40) {
  7163. if (!ASN1Enc_InfoRequestAck_tokens(enc, &(val)->tokens))
  7164. return 0;
  7165. }
  7166. if ((val)->o[0] & 0x20) {
  7167. if (!ASN1Enc_InfoRequestAck_cryptoTokens(enc, &(val)->cryptoTokens))
  7168. return 0;
  7169. }
  7170. if ((val)->o[0] & 0x10) {
  7171. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7172. return 0;
  7173. }
  7174. return 1;
  7175. }
  7176. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val)
  7177. {
  7178. ASN1uint32_t y;
  7179. if (!ASN1PERDecExtensionBit(dec, &y))
  7180. return 0;
  7181. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7182. return 0;
  7183. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7184. return 0;
  7185. (val)->requestSeqNum += 1;
  7186. if ((val)->o[0] & 0x80) {
  7187. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7188. return 0;
  7189. }
  7190. if ((val)->o[0] & 0x40) {
  7191. if (!ASN1Dec_InfoRequestAck_tokens(dec, &(val)->tokens))
  7192. return 0;
  7193. }
  7194. if ((val)->o[0] & 0x20) {
  7195. if (!ASN1Dec_InfoRequestAck_cryptoTokens(dec, &(val)->cryptoTokens))
  7196. return 0;
  7197. }
  7198. if ((val)->o[0] & 0x10) {
  7199. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7200. return 0;
  7201. }
  7202. if (y) {
  7203. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7204. return 0;
  7205. }
  7206. return 1;
  7207. }
  7208. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val)
  7209. {
  7210. if (val) {
  7211. if ((val)->o[0] & 0x80) {
  7212. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7213. }
  7214. if ((val)->o[0] & 0x40) {
  7215. ASN1Free_InfoRequestAck_tokens(&(val)->tokens);
  7216. }
  7217. if ((val)->o[0] & 0x20) {
  7218. ASN1Free_InfoRequestAck_cryptoTokens(&(val)->cryptoTokens);
  7219. }
  7220. if ((val)->o[0] & 0x10) {
  7221. ASN1Free_ICV(&(val)->integrityCheckValue);
  7222. }
  7223. }
  7224. }
  7225. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val)
  7226. {
  7227. if (!ASN1PEREncExtensionBitClear(enc))
  7228. return 0;
  7229. if (!ASN1PEREncBits(enc, 5, (val)->o))
  7230. return 0;
  7231. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7232. return 0;
  7233. if ((val)->o[0] & 0x80) {
  7234. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7235. return 0;
  7236. }
  7237. if (!ASN1Enc_InfoRequestNakReason(enc, &(val)->nakReason))
  7238. return 0;
  7239. if ((val)->o[0] & 0x40) {
  7240. if (!ASN1Enc_AltGKInfo(enc, &(val)->altGKInfo))
  7241. return 0;
  7242. }
  7243. if ((val)->o[0] & 0x20) {
  7244. if (!ASN1Enc_InfoRequestNak_tokens(enc, &(val)->tokens))
  7245. return 0;
  7246. }
  7247. if ((val)->o[0] & 0x10) {
  7248. if (!ASN1Enc_InfoRequestNak_cryptoTokens(enc, &(val)->cryptoTokens))
  7249. return 0;
  7250. }
  7251. if ((val)->o[0] & 0x8) {
  7252. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7253. return 0;
  7254. }
  7255. return 1;
  7256. }
  7257. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val)
  7258. {
  7259. ASN1uint32_t y;
  7260. if (!ASN1PERDecExtensionBit(dec, &y))
  7261. return 0;
  7262. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7263. return 0;
  7264. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7265. return 0;
  7266. (val)->requestSeqNum += 1;
  7267. if ((val)->o[0] & 0x80) {
  7268. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7269. return 0;
  7270. }
  7271. if (!ASN1Dec_InfoRequestNakReason(dec, &(val)->nakReason))
  7272. return 0;
  7273. if ((val)->o[0] & 0x40) {
  7274. if (!ASN1Dec_AltGKInfo(dec, &(val)->altGKInfo))
  7275. return 0;
  7276. }
  7277. if ((val)->o[0] & 0x20) {
  7278. if (!ASN1Dec_InfoRequestNak_tokens(dec, &(val)->tokens))
  7279. return 0;
  7280. }
  7281. if ((val)->o[0] & 0x10) {
  7282. if (!ASN1Dec_InfoRequestNak_cryptoTokens(dec, &(val)->cryptoTokens))
  7283. return 0;
  7284. }
  7285. if ((val)->o[0] & 0x8) {
  7286. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7287. return 0;
  7288. }
  7289. if (y) {
  7290. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7291. return 0;
  7292. }
  7293. return 1;
  7294. }
  7295. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val)
  7296. {
  7297. if (val) {
  7298. if ((val)->o[0] & 0x80) {
  7299. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7300. }
  7301. if ((val)->o[0] & 0x40) {
  7302. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7303. }
  7304. if ((val)->o[0] & 0x20) {
  7305. ASN1Free_InfoRequestNak_tokens(&(val)->tokens);
  7306. }
  7307. if ((val)->o[0] & 0x10) {
  7308. ASN1Free_InfoRequestNak_cryptoTokens(&(val)->cryptoTokens);
  7309. }
  7310. if ((val)->o[0] & 0x8) {
  7311. ASN1Free_ICV(&(val)->integrityCheckValue);
  7312. }
  7313. }
  7314. }
  7315. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val)
  7316. {
  7317. ASN1uint32_t y;
  7318. ASN1encoding_t ee;
  7319. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  7320. if (!ASN1PEREncBitVal(enc, 1, y))
  7321. return 0;
  7322. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7323. return 0;
  7324. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7325. return 0;
  7326. if (y) {
  7327. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  7328. return 0;
  7329. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7330. return 0;
  7331. if ((val)->o[0] & 0x80) {
  7332. if (!ASN1Enc_H225NonStandardMessage_tokens(ee, &(val)->tokens))
  7333. return 0;
  7334. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7335. return 0;
  7336. }
  7337. if ((val)->o[0] & 0x40) {
  7338. if (!ASN1Enc_H225NonStandardMessage_cryptoTokens(ee, &(val)->cryptoTokens))
  7339. return 0;
  7340. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7341. return 0;
  7342. }
  7343. if ((val)->o[0] & 0x20) {
  7344. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7345. return 0;
  7346. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7347. return 0;
  7348. }
  7349. ASN1_CloseEncoder2(ee);
  7350. }
  7351. return 1;
  7352. }
  7353. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val)
  7354. {
  7355. ASN1uint32_t y;
  7356. ASN1decoding_t dd;
  7357. ASN1octet_t *db;
  7358. ASN1uint32_t ds;
  7359. ASN1uint32_t i;
  7360. ASN1uint32_t e;
  7361. if (!ASN1PERDecExtensionBit(dec, &y))
  7362. return 0;
  7363. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7364. return 0;
  7365. (val)->requestSeqNum += 1;
  7366. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7367. return 0;
  7368. if (!y) {
  7369. ZeroMemory((val)->o + 0, 1);
  7370. } else {
  7371. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  7372. return 0;
  7373. if ((val)->o[0] & 0x80) {
  7374. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7375. return 0;
  7376. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7377. return 0;
  7378. if (!ASN1Dec_H225NonStandardMessage_tokens(dd, &(val)->tokens))
  7379. return 0;
  7380. ASN1_CloseDecoder(dd);
  7381. }
  7382. if ((val)->o[0] & 0x40) {
  7383. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7384. return 0;
  7385. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7386. return 0;
  7387. if (!ASN1Dec_H225NonStandardMessage_cryptoTokens(dd, &(val)->cryptoTokens))
  7388. return 0;
  7389. ASN1_CloseDecoder(dd);
  7390. }
  7391. if ((val)->o[0] & 0x20) {
  7392. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7393. return 0;
  7394. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  7395. return 0;
  7396. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7397. return 0;
  7398. ASN1_CloseDecoder(dd);
  7399. }
  7400. for (i = 0; i < e; i++) {
  7401. if (!ASN1PERDecSkipFragmented(dec, 8))
  7402. return 0;
  7403. }
  7404. }
  7405. return 1;
  7406. }
  7407. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val)
  7408. {
  7409. if (val) {
  7410. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7411. if ((val)->o[0] & 0x80) {
  7412. ASN1Free_H225NonStandardMessage_tokens(&(val)->tokens);
  7413. }
  7414. if ((val)->o[0] & 0x40) {
  7415. ASN1Free_H225NonStandardMessage_cryptoTokens(&(val)->cryptoTokens);
  7416. }
  7417. if ((val)->o[0] & 0x20) {
  7418. ASN1Free_ICV(&(val)->integrityCheckValue);
  7419. }
  7420. }
  7421. }
  7422. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val)
  7423. {
  7424. if (!ASN1PEREncExtensionBitClear(enc))
  7425. return 0;
  7426. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7427. return 0;
  7428. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7429. return 0;
  7430. if ((val)->o[0] & 0x80) {
  7431. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7432. return 0;
  7433. }
  7434. if ((val)->o[0] & 0x40) {
  7435. if (!ASN1Enc_RequestInProgress_tokens(enc, &(val)->tokens))
  7436. return 0;
  7437. }
  7438. if ((val)->o[0] & 0x20) {
  7439. if (!ASN1Enc_RequestInProgress_cryptoTokens(enc, &(val)->cryptoTokens))
  7440. return 0;
  7441. }
  7442. if ((val)->o[0] & 0x10) {
  7443. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7444. return 0;
  7445. }
  7446. if (!ASN1PEREncUnsignedShort(enc, (val)->delay - 1))
  7447. return 0;
  7448. return 1;
  7449. }
  7450. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val)
  7451. {
  7452. ASN1uint32_t y;
  7453. if (!ASN1PERDecExtensionBit(dec, &y))
  7454. return 0;
  7455. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7456. return 0;
  7457. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7458. return 0;
  7459. (val)->requestSeqNum += 1;
  7460. if ((val)->o[0] & 0x80) {
  7461. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7462. return 0;
  7463. }
  7464. if ((val)->o[0] & 0x40) {
  7465. if (!ASN1Dec_RequestInProgress_tokens(dec, &(val)->tokens))
  7466. return 0;
  7467. }
  7468. if ((val)->o[0] & 0x20) {
  7469. if (!ASN1Dec_RequestInProgress_cryptoTokens(dec, &(val)->cryptoTokens))
  7470. return 0;
  7471. }
  7472. if ((val)->o[0] & 0x10) {
  7473. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7474. return 0;
  7475. }
  7476. if (!ASN1PERDecUnsignedShort(dec, &(val)->delay))
  7477. return 0;
  7478. (val)->delay += 1;
  7479. if (y) {
  7480. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7481. return 0;
  7482. }
  7483. return 1;
  7484. }
  7485. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val)
  7486. {
  7487. if (val) {
  7488. if ((val)->o[0] & 0x80) {
  7489. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7490. }
  7491. if ((val)->o[0] & 0x40) {
  7492. ASN1Free_RequestInProgress_tokens(&(val)->tokens);
  7493. }
  7494. if ((val)->o[0] & 0x20) {
  7495. ASN1Free_RequestInProgress_cryptoTokens(&(val)->cryptoTokens);
  7496. }
  7497. if ((val)->o[0] & 0x10) {
  7498. ASN1Free_ICV(&(val)->integrityCheckValue);
  7499. }
  7500. }
  7501. }
  7502. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val)
  7503. {
  7504. if (!ASN1PEREncExtensionBitClear(enc))
  7505. return 0;
  7506. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7507. return 0;
  7508. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7509. return 0;
  7510. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7511. return 0;
  7512. if ((val)->o[0] & 0x80) {
  7513. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7514. return 0;
  7515. }
  7516. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  7517. return 0;
  7518. ASN1PEREncAlignment(enc);
  7519. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  7520. return 0;
  7521. if (!ASN1Enc_ResourcesAvailableIndicate_protocols(enc, &(val)->protocols))
  7522. return 0;
  7523. if (!ASN1PEREncBoolean(enc, (val)->almostOutOfResources))
  7524. return 0;
  7525. if ((val)->o[0] & 0x40) {
  7526. if (!ASN1Enc_ResourcesAvailableIndicate_tokens(enc, &(val)->tokens))
  7527. return 0;
  7528. }
  7529. if ((val)->o[0] & 0x20) {
  7530. if (!ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(enc, &(val)->cryptoTokens))
  7531. return 0;
  7532. }
  7533. if ((val)->o[0] & 0x10) {
  7534. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7535. return 0;
  7536. }
  7537. return 1;
  7538. }
  7539. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val)
  7540. {
  7541. ASN1uint32_t y;
  7542. if (!ASN1PERDecExtensionBit(dec, &y))
  7543. return 0;
  7544. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7545. return 0;
  7546. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7547. return 0;
  7548. (val)->requestSeqNum += 1;
  7549. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7550. return 0;
  7551. if ((val)->o[0] & 0x80) {
  7552. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7553. return 0;
  7554. }
  7555. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  7556. return 0;
  7557. ((val)->endpointIdentifier).length += 1;
  7558. ASN1PERDecAlignment(dec);
  7559. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  7560. return 0;
  7561. if (!ASN1Dec_ResourcesAvailableIndicate_protocols(dec, &(val)->protocols))
  7562. return 0;
  7563. if (!ASN1PERDecBoolean(dec, &(val)->almostOutOfResources))
  7564. return 0;
  7565. if ((val)->o[0] & 0x40) {
  7566. if (!ASN1Dec_ResourcesAvailableIndicate_tokens(dec, &(val)->tokens))
  7567. return 0;
  7568. }
  7569. if ((val)->o[0] & 0x20) {
  7570. if (!ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(dec, &(val)->cryptoTokens))
  7571. return 0;
  7572. }
  7573. if ((val)->o[0] & 0x10) {
  7574. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7575. return 0;
  7576. }
  7577. if (y) {
  7578. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7579. return 0;
  7580. }
  7581. return 1;
  7582. }
  7583. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val)
  7584. {
  7585. if (val) {
  7586. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7587. if ((val)->o[0] & 0x80) {
  7588. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7589. }
  7590. ASN1char16string_free(&(val)->endpointIdentifier);
  7591. ASN1Free_ResourcesAvailableIndicate_protocols(&(val)->protocols);
  7592. if ((val)->o[0] & 0x40) {
  7593. ASN1Free_ResourcesAvailableIndicate_tokens(&(val)->tokens);
  7594. }
  7595. if ((val)->o[0] & 0x20) {
  7596. ASN1Free_ResourcesAvailableIndicate_cryptoTokens(&(val)->cryptoTokens);
  7597. }
  7598. if ((val)->o[0] & 0x10) {
  7599. ASN1Free_ICV(&(val)->integrityCheckValue);
  7600. }
  7601. }
  7602. }
  7603. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val)
  7604. {
  7605. if (!ASN1PEREncExtensionBitClear(enc))
  7606. return 0;
  7607. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7608. return 0;
  7609. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7610. return 0;
  7611. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7612. return 0;
  7613. if ((val)->o[0] & 0x80) {
  7614. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7615. return 0;
  7616. }
  7617. if ((val)->o[0] & 0x40) {
  7618. if (!ASN1Enc_ResourcesAvailableConfirm_tokens(enc, &(val)->tokens))
  7619. return 0;
  7620. }
  7621. if ((val)->o[0] & 0x20) {
  7622. if (!ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(enc, &(val)->cryptoTokens))
  7623. return 0;
  7624. }
  7625. if ((val)->o[0] & 0x10) {
  7626. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7627. return 0;
  7628. }
  7629. return 1;
  7630. }
  7631. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val)
  7632. {
  7633. ASN1uint32_t y;
  7634. if (!ASN1PERDecExtensionBit(dec, &y))
  7635. return 0;
  7636. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7637. return 0;
  7638. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7639. return 0;
  7640. (val)->requestSeqNum += 1;
  7641. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7642. return 0;
  7643. if ((val)->o[0] & 0x80) {
  7644. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7645. return 0;
  7646. }
  7647. if ((val)->o[0] & 0x40) {
  7648. if (!ASN1Dec_ResourcesAvailableConfirm_tokens(dec, &(val)->tokens))
  7649. return 0;
  7650. }
  7651. if ((val)->o[0] & 0x20) {
  7652. if (!ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(dec, &(val)->cryptoTokens))
  7653. return 0;
  7654. }
  7655. if ((val)->o[0] & 0x10) {
  7656. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7657. return 0;
  7658. }
  7659. if (y) {
  7660. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7661. return 0;
  7662. }
  7663. return 1;
  7664. }
  7665. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val)
  7666. {
  7667. if (val) {
  7668. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7669. if ((val)->o[0] & 0x80) {
  7670. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7671. }
  7672. if ((val)->o[0] & 0x40) {
  7673. ASN1Free_ResourcesAvailableConfirm_tokens(&(val)->tokens);
  7674. }
  7675. if ((val)->o[0] & 0x20) {
  7676. ASN1Free_ResourcesAvailableConfirm_cryptoTokens(&(val)->cryptoTokens);
  7677. }
  7678. if ((val)->o[0] & 0x10) {
  7679. ASN1Free_ICV(&(val)->integrityCheckValue);
  7680. }
  7681. }
  7682. }
  7683. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val)
  7684. {
  7685. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_integrity_ElmFn);
  7686. }
  7687. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_integrity val)
  7688. {
  7689. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7690. return 0;
  7691. return 1;
  7692. }
  7693. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val)
  7694. {
  7695. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_integrity_ElmFn, sizeof(**val));
  7696. }
  7697. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_integrity val)
  7698. {
  7699. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7700. return 0;
  7701. return 1;
  7702. }
  7703. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val)
  7704. {
  7705. if (val) {
  7706. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_integrity_ElmFn);
  7707. }
  7708. }
  7709. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity_ElmFn(PGatekeeperConfirm_integrity val)
  7710. {
  7711. if (val) {
  7712. ASN1Free_IntegrityMechanism(&val->value);
  7713. }
  7714. }
  7715. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val)
  7716. {
  7717. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_integrity_ElmFn);
  7718. }
  7719. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_integrity val)
  7720. {
  7721. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7722. return 0;
  7723. return 1;
  7724. }
  7725. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val)
  7726. {
  7727. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_integrity_ElmFn, sizeof(**val));
  7728. }
  7729. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_integrity val)
  7730. {
  7731. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7732. return 0;
  7733. return 1;
  7734. }
  7735. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val)
  7736. {
  7737. if (val) {
  7738. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_integrity_ElmFn);
  7739. }
  7740. }
  7741. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity_ElmFn(PGatekeeperRequest_integrity val)
  7742. {
  7743. if (val) {
  7744. ASN1Free_IntegrityMechanism(&val->value);
  7745. }
  7746. }
  7747. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val)
  7748. {
  7749. ASN1uint32_t l;
  7750. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperId).length - 1))
  7751. return 0;
  7752. ASN1PEREncAlignment(enc);
  7753. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperId).length, ((val)->gatekeeperId).value, 16))
  7754. return 0;
  7755. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  7756. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  7757. return 0;
  7758. ASN1PEREncAlignment(enc);
  7759. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  7760. return 0;
  7761. if (!ASN1Enc_HASHED(enc, &(val)->token))
  7762. return 0;
  7763. return 1;
  7764. }
  7765. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val)
  7766. {
  7767. ASN1uint32_t l;
  7768. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperId).length))
  7769. return 0;
  7770. ((val)->gatekeeperId).length += 1;
  7771. ASN1PERDecAlignment(dec);
  7772. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperId).length, &((val)->gatekeeperId).value, 16))
  7773. return 0;
  7774. if (!ASN1PERDecU32Val(dec, 2, &l))
  7775. return 0;
  7776. l += 1;
  7777. ASN1PERDecAlignment(dec);
  7778. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  7779. return 0;
  7780. (val)->timeStamp += 1;
  7781. if (!ASN1Dec_HASHED(dec, &(val)->token))
  7782. return 0;
  7783. return 1;
  7784. }
  7785. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val)
  7786. {
  7787. if (val) {
  7788. ASN1char16string_free(&(val)->gatekeeperId);
  7789. ASN1Free_HASHED(&(val)->token);
  7790. }
  7791. }
  7792. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val)
  7793. {
  7794. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn);
  7795. }
  7796. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported val)
  7797. {
  7798. if (!ASN1Enc_DataRate(enc, &val->value))
  7799. return 0;
  7800. return 1;
  7801. }
  7802. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val)
  7803. {
  7804. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn, sizeof(**val));
  7805. }
  7806. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported val)
  7807. {
  7808. if (!ASN1Dec_DataRate(dec, &val->value))
  7809. return 0;
  7810. return 1;
  7811. }
  7812. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val)
  7813. {
  7814. if (val) {
  7815. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn);
  7816. }
  7817. }
  7818. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn(PNonStandardProtocol_dataRatesSupported val)
  7819. {
  7820. if (val) {
  7821. ASN1Free_DataRate(&val->value);
  7822. }
  7823. }
  7824. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val)
  7825. {
  7826. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn);
  7827. }
  7828. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported val)
  7829. {
  7830. if (!ASN1Enc_DataRate(enc, &val->value))
  7831. return 0;
  7832. return 1;
  7833. }
  7834. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val)
  7835. {
  7836. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7837. }
  7838. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported val)
  7839. {
  7840. if (!ASN1Dec_DataRate(dec, &val->value))
  7841. return 0;
  7842. return 1;
  7843. }
  7844. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val)
  7845. {
  7846. if (val) {
  7847. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn);
  7848. }
  7849. }
  7850. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn(PT120OnlyCaps_dataRatesSupported val)
  7851. {
  7852. if (val) {
  7853. ASN1Free_DataRate(&val->value);
  7854. }
  7855. }
  7856. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val)
  7857. {
  7858. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn);
  7859. }
  7860. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported val)
  7861. {
  7862. if (!ASN1Enc_DataRate(enc, &val->value))
  7863. return 0;
  7864. return 1;
  7865. }
  7866. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val)
  7867. {
  7868. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7869. }
  7870. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported val)
  7871. {
  7872. if (!ASN1Dec_DataRate(dec, &val->value))
  7873. return 0;
  7874. return 1;
  7875. }
  7876. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val)
  7877. {
  7878. if (val) {
  7879. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_dataRatesSupported_ElmFn);
  7880. }
  7881. }
  7882. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported_ElmFn(PVoiceCaps_dataRatesSupported val)
  7883. {
  7884. if (val) {
  7885. ASN1Free_DataRate(&val->value);
  7886. }
  7887. }
  7888. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val)
  7889. {
  7890. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_dataRatesSupported_ElmFn);
  7891. }
  7892. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH324Caps_dataRatesSupported val)
  7893. {
  7894. if (!ASN1Enc_DataRate(enc, &val->value))
  7895. return 0;
  7896. return 1;
  7897. }
  7898. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val)
  7899. {
  7900. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7901. }
  7902. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH324Caps_dataRatesSupported val)
  7903. {
  7904. if (!ASN1Dec_DataRate(dec, &val->value))
  7905. return 0;
  7906. return 1;
  7907. }
  7908. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val)
  7909. {
  7910. if (val) {
  7911. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_dataRatesSupported_ElmFn);
  7912. }
  7913. }
  7914. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported_ElmFn(PH324Caps_dataRatesSupported val)
  7915. {
  7916. if (val) {
  7917. ASN1Free_DataRate(&val->value);
  7918. }
  7919. }
  7920. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val)
  7921. {
  7922. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_dataRatesSupported_ElmFn);
  7923. }
  7924. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH323Caps_dataRatesSupported val)
  7925. {
  7926. if (!ASN1Enc_DataRate(enc, &val->value))
  7927. return 0;
  7928. return 1;
  7929. }
  7930. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val)
  7931. {
  7932. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7933. }
  7934. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH323Caps_dataRatesSupported val)
  7935. {
  7936. if (!ASN1Dec_DataRate(dec, &val->value))
  7937. return 0;
  7938. return 1;
  7939. }
  7940. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val)
  7941. {
  7942. if (val) {
  7943. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_dataRatesSupported_ElmFn);
  7944. }
  7945. }
  7946. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported_ElmFn(PH323Caps_dataRatesSupported val)
  7947. {
  7948. if (val) {
  7949. ASN1Free_DataRate(&val->value);
  7950. }
  7951. }
  7952. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val)
  7953. {
  7954. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_dataRatesSupported_ElmFn);
  7955. }
  7956. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH322Caps_dataRatesSupported val)
  7957. {
  7958. if (!ASN1Enc_DataRate(enc, &val->value))
  7959. return 0;
  7960. return 1;
  7961. }
  7962. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val)
  7963. {
  7964. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7965. }
  7966. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH322Caps_dataRatesSupported val)
  7967. {
  7968. if (!ASN1Dec_DataRate(dec, &val->value))
  7969. return 0;
  7970. return 1;
  7971. }
  7972. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val)
  7973. {
  7974. if (val) {
  7975. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_dataRatesSupported_ElmFn);
  7976. }
  7977. }
  7978. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported_ElmFn(PH322Caps_dataRatesSupported val)
  7979. {
  7980. if (val) {
  7981. ASN1Free_DataRate(&val->value);
  7982. }
  7983. }
  7984. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val)
  7985. {
  7986. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_dataRatesSupported_ElmFn);
  7987. }
  7988. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH321Caps_dataRatesSupported val)
  7989. {
  7990. if (!ASN1Enc_DataRate(enc, &val->value))
  7991. return 0;
  7992. return 1;
  7993. }
  7994. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val)
  7995. {
  7996. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7997. }
  7998. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH321Caps_dataRatesSupported val)
  7999. {
  8000. if (!ASN1Dec_DataRate(dec, &val->value))
  8001. return 0;
  8002. return 1;
  8003. }
  8004. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val)
  8005. {
  8006. if (val) {
  8007. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_dataRatesSupported_ElmFn);
  8008. }
  8009. }
  8010. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported_ElmFn(PH321Caps_dataRatesSupported val)
  8011. {
  8012. if (val) {
  8013. ASN1Free_DataRate(&val->value);
  8014. }
  8015. }
  8016. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val)
  8017. {
  8018. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_dataRatesSupported_ElmFn);
  8019. }
  8020. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH320Caps_dataRatesSupported val)
  8021. {
  8022. if (!ASN1Enc_DataRate(enc, &val->value))
  8023. return 0;
  8024. return 1;
  8025. }
  8026. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val)
  8027. {
  8028. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8029. }
  8030. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH320Caps_dataRatesSupported val)
  8031. {
  8032. if (!ASN1Dec_DataRate(dec, &val->value))
  8033. return 0;
  8034. return 1;
  8035. }
  8036. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val)
  8037. {
  8038. if (val) {
  8039. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_dataRatesSupported_ElmFn);
  8040. }
  8041. }
  8042. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported_ElmFn(PH320Caps_dataRatesSupported val)
  8043. {
  8044. if (val) {
  8045. ASN1Free_DataRate(&val->value);
  8046. }
  8047. }
  8048. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val)
  8049. {
  8050. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_dataRatesSupported_ElmFn);
  8051. }
  8052. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH310Caps_dataRatesSupported val)
  8053. {
  8054. if (!ASN1Enc_DataRate(enc, &val->value))
  8055. return 0;
  8056. return 1;
  8057. }
  8058. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val)
  8059. {
  8060. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8061. }
  8062. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH310Caps_dataRatesSupported val)
  8063. {
  8064. if (!ASN1Dec_DataRate(dec, &val->value))
  8065. return 0;
  8066. return 1;
  8067. }
  8068. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val)
  8069. {
  8070. if (val) {
  8071. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_dataRatesSupported_ElmFn);
  8072. }
  8073. }
  8074. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported_ElmFn(PH310Caps_dataRatesSupported val)
  8075. {
  8076. if (val) {
  8077. ASN1Free_DataRate(&val->value);
  8078. }
  8079. }
  8080. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val)
  8081. {
  8082. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn);
  8083. }
  8084. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability val)
  8085. {
  8086. if (!ASN1Enc_H245Security(enc, &val->value))
  8087. return 0;
  8088. return 1;
  8089. }
  8090. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val)
  8091. {
  8092. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn, sizeof(**val));
  8093. }
  8094. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability val)
  8095. {
  8096. if (!ASN1Dec_H245Security(dec, &val->value))
  8097. return 0;
  8098. return 1;
  8099. }
  8100. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val)
  8101. {
  8102. if (val) {
  8103. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn);
  8104. }
  8105. }
  8106. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn(PSetup_UUIE_h245SecurityCapability val)
  8107. {
  8108. if (val) {
  8109. ASN1Free_H245Security(&val->value);
  8110. }
  8111. }
  8112. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val)
  8113. {
  8114. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn);
  8115. }
  8116. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl val)
  8117. {
  8118. if (!ASN1Enc_H225NonStandardParameter(enc, &val->value))
  8119. return 0;
  8120. return 1;
  8121. }
  8122. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val)
  8123. {
  8124. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn, sizeof(**val));
  8125. }
  8126. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl val)
  8127. {
  8128. if (!ASN1Dec_H225NonStandardParameter(dec, &val->value))
  8129. return 0;
  8130. return 1;
  8131. }
  8132. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val)
  8133. {
  8134. if (val) {
  8135. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn);
  8136. }
  8137. }
  8138. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn(PH323_UU_PDU_nonStandardControl val)
  8139. {
  8140. if (val) {
  8141. ASN1Free_H225NonStandardParameter(&val->value);
  8142. }
  8143. }
  8144. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val)
  8145. {
  8146. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8147. return 0;
  8148. if (!ASN1Enc_ClearToken(enc, &(val)->hashedVals))
  8149. return 0;
  8150. if (!ASN1Enc_HASHED(enc, &(val)->token))
  8151. return 0;
  8152. return 1;
  8153. }
  8154. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val)
  8155. {
  8156. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8157. return 0;
  8158. if (!ASN1Dec_ClearToken(dec, &(val)->hashedVals))
  8159. return 0;
  8160. if (!ASN1Dec_HASHED(dec, &(val)->token))
  8161. return 0;
  8162. return 1;
  8163. }
  8164. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val)
  8165. {
  8166. if (val) {
  8167. ASN1objectidentifier_free(&(val)->tokenOID);
  8168. ASN1Free_ClearToken(&(val)->hashedVals);
  8169. ASN1Free_HASHED(&(val)->token);
  8170. }
  8171. }
  8172. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val)
  8173. {
  8174. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8175. return 0;
  8176. if (!ASN1Enc_SIGNED_EncodedGeneralToken(enc, &(val)->token))
  8177. return 0;
  8178. return 1;
  8179. }
  8180. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val)
  8181. {
  8182. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8183. return 0;
  8184. if (!ASN1Dec_SIGNED_EncodedGeneralToken(dec, &(val)->token))
  8185. return 0;
  8186. return 1;
  8187. }
  8188. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val)
  8189. {
  8190. if (val) {
  8191. ASN1objectidentifier_free(&(val)->tokenOID);
  8192. ASN1Free_SIGNED_EncodedGeneralToken(&(val)->token);
  8193. }
  8194. }
  8195. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val)
  8196. {
  8197. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8198. return 0;
  8199. if (!ASN1Enc_ENCRYPTED(enc, &(val)->token))
  8200. return 0;
  8201. return 1;
  8202. }
  8203. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val)
  8204. {
  8205. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8206. return 0;
  8207. if (!ASN1Dec_ENCRYPTED(dec, &(val)->token))
  8208. return 0;
  8209. return 1;
  8210. }
  8211. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val)
  8212. {
  8213. if (val) {
  8214. ASN1objectidentifier_free(&(val)->tokenOID);
  8215. ASN1Free_ENCRYPTED(&(val)->token);
  8216. }
  8217. }
  8218. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val)
  8219. {
  8220. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  8221. return 0;
  8222. switch ((val)->choice) {
  8223. case 1:
  8224. if (!ASN1Enc_CryptoToken_cryptoEncryptedToken(enc, &(val)->u.cryptoEncryptedToken))
  8225. return 0;
  8226. break;
  8227. case 2:
  8228. if (!ASN1Enc_CryptoToken_cryptoSignedToken(enc, &(val)->u.cryptoSignedToken))
  8229. return 0;
  8230. break;
  8231. case 3:
  8232. if (!ASN1Enc_CryptoToken_cryptoHashedToken(enc, &(val)->u.cryptoHashedToken))
  8233. return 0;
  8234. break;
  8235. case 4:
  8236. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoPwdEncr))
  8237. return 0;
  8238. break;
  8239. default:
  8240. /* impossible */
  8241. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8242. return 0;
  8243. }
  8244. return 1;
  8245. }
  8246. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val)
  8247. {
  8248. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  8249. return 0;
  8250. switch ((val)->choice) {
  8251. case 1:
  8252. if (!ASN1Dec_CryptoToken_cryptoEncryptedToken(dec, &(val)->u.cryptoEncryptedToken))
  8253. return 0;
  8254. break;
  8255. case 2:
  8256. if (!ASN1Dec_CryptoToken_cryptoSignedToken(dec, &(val)->u.cryptoSignedToken))
  8257. return 0;
  8258. break;
  8259. case 3:
  8260. if (!ASN1Dec_CryptoToken_cryptoHashedToken(dec, &(val)->u.cryptoHashedToken))
  8261. return 0;
  8262. break;
  8263. case 4:
  8264. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoPwdEncr))
  8265. return 0;
  8266. break;
  8267. case 0:
  8268. /* extension case */
  8269. if (!ASN1PERDecSkipFragmented(dec, 8))
  8270. return 0;
  8271. break;
  8272. default:
  8273. /* impossible */
  8274. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8275. return 0;
  8276. }
  8277. return 1;
  8278. }
  8279. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val)
  8280. {
  8281. if (val) {
  8282. switch ((val)->choice) {
  8283. case 1:
  8284. ASN1Free_CryptoToken_cryptoEncryptedToken(&(val)->u.cryptoEncryptedToken);
  8285. break;
  8286. case 2:
  8287. ASN1Free_CryptoToken_cryptoSignedToken(&(val)->u.cryptoSignedToken);
  8288. break;
  8289. case 3:
  8290. ASN1Free_CryptoToken_cryptoHashedToken(&(val)->u.cryptoHashedToken);
  8291. break;
  8292. case 4:
  8293. ASN1Free_ENCRYPTED(&(val)->u.cryptoPwdEncr);
  8294. break;
  8295. }
  8296. }
  8297. }
  8298. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val)
  8299. {
  8300. if (!ASN1Enc_EncodedFastStartToken(enc, &(val)->toBeSigned))
  8301. return 0;
  8302. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  8303. return 0;
  8304. if (!ASN1Enc_Params(enc, &(val)->paramS))
  8305. return 0;
  8306. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  8307. return 0;
  8308. return 1;
  8309. }
  8310. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val)
  8311. {
  8312. if (!ASN1Dec_EncodedFastStartToken(dec, &(val)->toBeSigned))
  8313. return 0;
  8314. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  8315. return 0;
  8316. if (!ASN1Dec_Params(dec, &(val)->paramS))
  8317. return 0;
  8318. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  8319. return 0;
  8320. return 1;
  8321. }
  8322. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val)
  8323. {
  8324. if (val) {
  8325. ASN1Free_EncodedFastStartToken(&(val)->toBeSigned);
  8326. ASN1objectidentifier_free(&(val)->algorithmOID);
  8327. ASN1Free_Params(&(val)->paramS);
  8328. ASN1bitstring_free(&(val)->signature);
  8329. }
  8330. }
  8331. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val)
  8332. {
  8333. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8334. return 0;
  8335. switch ((val)->choice) {
  8336. case 1:
  8337. if (!ASN1Enc_TransportAddress_ipAddress(enc, &(val)->u.ipAddress))
  8338. return 0;
  8339. break;
  8340. case 2:
  8341. if (!ASN1Enc_TransportAddress_ipSourceRoute(enc, &(val)->u.ipSourceRoute))
  8342. return 0;
  8343. break;
  8344. case 3:
  8345. if (!ASN1Enc_TransportAddress_ipxAddress(enc, &(val)->u.ipxAddress))
  8346. return 0;
  8347. break;
  8348. case 4:
  8349. if (!ASN1Enc_TransportAddress_ip6Address(enc, &(val)->u.ip6Address))
  8350. return 0;
  8351. break;
  8352. case 5:
  8353. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8354. return 0;
  8355. break;
  8356. case 6:
  8357. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8358. return 0;
  8359. break;
  8360. case 7:
  8361. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardAddress))
  8362. return 0;
  8363. break;
  8364. default:
  8365. /* impossible */
  8366. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8367. return 0;
  8368. }
  8369. return 1;
  8370. }
  8371. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val)
  8372. {
  8373. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8374. return 0;
  8375. switch ((val)->choice) {
  8376. case 1:
  8377. if (!ASN1Dec_TransportAddress_ipAddress(dec, &(val)->u.ipAddress))
  8378. return 0;
  8379. break;
  8380. case 2:
  8381. if (!ASN1Dec_TransportAddress_ipSourceRoute(dec, &(val)->u.ipSourceRoute))
  8382. return 0;
  8383. break;
  8384. case 3:
  8385. if (!ASN1Dec_TransportAddress_ipxAddress(dec, &(val)->u.ipxAddress))
  8386. return 0;
  8387. break;
  8388. case 4:
  8389. if (!ASN1Dec_TransportAddress_ip6Address(dec, &(val)->u.ip6Address))
  8390. return 0;
  8391. break;
  8392. case 5:
  8393. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8394. return 0;
  8395. break;
  8396. case 6:
  8397. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8398. return 0;
  8399. break;
  8400. case 7:
  8401. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardAddress))
  8402. return 0;
  8403. break;
  8404. case 0:
  8405. /* extension case */
  8406. if (!ASN1PERDecSkipFragmented(dec, 8))
  8407. return 0;
  8408. break;
  8409. default:
  8410. /* impossible */
  8411. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8412. return 0;
  8413. }
  8414. return 1;
  8415. }
  8416. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val)
  8417. {
  8418. if (val) {
  8419. switch ((val)->choice) {
  8420. case 1:
  8421. ASN1Free_TransportAddress_ipAddress(&(val)->u.ipAddress);
  8422. break;
  8423. case 2:
  8424. ASN1Free_TransportAddress_ipSourceRoute(&(val)->u.ipSourceRoute);
  8425. break;
  8426. case 3:
  8427. ASN1Free_TransportAddress_ipxAddress(&(val)->u.ipxAddress);
  8428. break;
  8429. case 4:
  8430. ASN1Free_TransportAddress_ip6Address(&(val)->u.ip6Address);
  8431. break;
  8432. case 5:
  8433. break;
  8434. case 6:
  8435. break;
  8436. case 7:
  8437. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardAddress);
  8438. break;
  8439. }
  8440. }
  8441. }
  8442. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val)
  8443. {
  8444. if (!ASN1PEREncExtensionBitClear(enc))
  8445. return 0;
  8446. if (!ASN1PEREncBits(enc, 2, (val)->o))
  8447. return 0;
  8448. if ((val)->o[0] & 0x80) {
  8449. if (!ASN1Enc_GatewayInfo_protocol(enc, &(val)->protocol))
  8450. return 0;
  8451. }
  8452. if ((val)->o[0] & 0x40) {
  8453. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8454. return 0;
  8455. }
  8456. return 1;
  8457. }
  8458. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val)
  8459. {
  8460. ASN1uint32_t y;
  8461. if (!ASN1PERDecExtensionBit(dec, &y))
  8462. return 0;
  8463. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  8464. return 0;
  8465. if ((val)->o[0] & 0x80) {
  8466. if (!ASN1Dec_GatewayInfo_protocol(dec, &(val)->protocol))
  8467. return 0;
  8468. }
  8469. if ((val)->o[0] & 0x40) {
  8470. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8471. return 0;
  8472. }
  8473. if (y) {
  8474. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8475. return 0;
  8476. }
  8477. return 1;
  8478. }
  8479. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val)
  8480. {
  8481. if (val) {
  8482. if ((val)->o[0] & 0x80) {
  8483. ASN1Free_GatewayInfo_protocol(&(val)->protocol);
  8484. }
  8485. if ((val)->o[0] & 0x40) {
  8486. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8487. }
  8488. }
  8489. }
  8490. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val)
  8491. {
  8492. ASN1octet_t o[2];
  8493. ASN1uint32_t y;
  8494. ASN1encoding_t ee;
  8495. CopyMemory(o, (val)->o, 2);
  8496. o[1] |= 0x40;
  8497. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8498. if (!ASN1PEREncBitVal(enc, 1, y))
  8499. return 0;
  8500. if (!ASN1PEREncBits(enc, 1, o))
  8501. return 0;
  8502. if (o[0] & 0x80) {
  8503. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8504. return 0;
  8505. }
  8506. if (y) {
  8507. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8508. return 0;
  8509. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8510. return 0;
  8511. if (o[1] & 0x80) {
  8512. if (!ASN1Enc_H310Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8513. return 0;
  8514. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8515. return 0;
  8516. }
  8517. if (o[1] & 0x40) {
  8518. if (!ASN1Enc_H310Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8519. return 0;
  8520. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8521. return 0;
  8522. }
  8523. ASN1_CloseEncoder2(ee);
  8524. }
  8525. return 1;
  8526. }
  8527. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val)
  8528. {
  8529. ASN1uint32_t y;
  8530. ASN1decoding_t dd;
  8531. ASN1octet_t *db;
  8532. ASN1uint32_t ds;
  8533. ASN1uint32_t i;
  8534. ASN1uint32_t e;
  8535. if (!ASN1PERDecExtensionBit(dec, &y))
  8536. return 0;
  8537. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8538. return 0;
  8539. if ((val)->o[0] & 0x80) {
  8540. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8541. return 0;
  8542. }
  8543. if (!y) {
  8544. ZeroMemory((val)->o + 1, 1);
  8545. } else {
  8546. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8547. return 0;
  8548. if ((val)->o[1] & 0x80) {
  8549. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8550. return 0;
  8551. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8552. return 0;
  8553. if (!ASN1Dec_H310Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8554. return 0;
  8555. ASN1_CloseDecoder(dd);
  8556. }
  8557. if ((val)->o[1] & 0x40) {
  8558. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8559. return 0;
  8560. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8561. return 0;
  8562. if (!ASN1Dec_H310Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8563. return 0;
  8564. ASN1_CloseDecoder(dd);
  8565. }
  8566. for (i = 0; i < e; i++) {
  8567. if (!ASN1PERDecSkipFragmented(dec, 8))
  8568. return 0;
  8569. }
  8570. }
  8571. return 1;
  8572. }
  8573. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val)
  8574. {
  8575. if (val) {
  8576. if ((val)->o[0] & 0x80) {
  8577. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8578. }
  8579. if ((val)->o[1] & 0x80) {
  8580. ASN1Free_H310Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8581. }
  8582. if ((val)->o[1] & 0x40) {
  8583. ASN1Free_H310Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8584. }
  8585. }
  8586. }
  8587. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val)
  8588. {
  8589. ASN1octet_t o[2];
  8590. ASN1uint32_t y;
  8591. ASN1encoding_t ee;
  8592. CopyMemory(o, (val)->o, 2);
  8593. o[1] |= 0x40;
  8594. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8595. if (!ASN1PEREncBitVal(enc, 1, y))
  8596. return 0;
  8597. if (!ASN1PEREncBits(enc, 1, o))
  8598. return 0;
  8599. if (o[0] & 0x80) {
  8600. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8601. return 0;
  8602. }
  8603. if (y) {
  8604. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8605. return 0;
  8606. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8607. return 0;
  8608. if (o[1] & 0x80) {
  8609. if (!ASN1Enc_H320Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8610. return 0;
  8611. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8612. return 0;
  8613. }
  8614. if (o[1] & 0x40) {
  8615. if (!ASN1Enc_H320Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8616. return 0;
  8617. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8618. return 0;
  8619. }
  8620. ASN1_CloseEncoder2(ee);
  8621. }
  8622. return 1;
  8623. }
  8624. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val)
  8625. {
  8626. ASN1uint32_t y;
  8627. ASN1decoding_t dd;
  8628. ASN1octet_t *db;
  8629. ASN1uint32_t ds;
  8630. ASN1uint32_t i;
  8631. ASN1uint32_t e;
  8632. if (!ASN1PERDecExtensionBit(dec, &y))
  8633. return 0;
  8634. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8635. return 0;
  8636. if ((val)->o[0] & 0x80) {
  8637. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8638. return 0;
  8639. }
  8640. if (!y) {
  8641. ZeroMemory((val)->o + 1, 1);
  8642. } else {
  8643. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8644. return 0;
  8645. if ((val)->o[1] & 0x80) {
  8646. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8647. return 0;
  8648. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8649. return 0;
  8650. if (!ASN1Dec_H320Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8651. return 0;
  8652. ASN1_CloseDecoder(dd);
  8653. }
  8654. if ((val)->o[1] & 0x40) {
  8655. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8656. return 0;
  8657. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8658. return 0;
  8659. if (!ASN1Dec_H320Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8660. return 0;
  8661. ASN1_CloseDecoder(dd);
  8662. }
  8663. for (i = 0; i < e; i++) {
  8664. if (!ASN1PERDecSkipFragmented(dec, 8))
  8665. return 0;
  8666. }
  8667. }
  8668. return 1;
  8669. }
  8670. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val)
  8671. {
  8672. if (val) {
  8673. if ((val)->o[0] & 0x80) {
  8674. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8675. }
  8676. if ((val)->o[1] & 0x80) {
  8677. ASN1Free_H320Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8678. }
  8679. if ((val)->o[1] & 0x40) {
  8680. ASN1Free_H320Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8681. }
  8682. }
  8683. }
  8684. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val)
  8685. {
  8686. ASN1octet_t o[2];
  8687. ASN1uint32_t y;
  8688. ASN1encoding_t ee;
  8689. CopyMemory(o, (val)->o, 2);
  8690. o[1] |= 0x40;
  8691. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8692. if (!ASN1PEREncBitVal(enc, 1, y))
  8693. return 0;
  8694. if (!ASN1PEREncBits(enc, 1, o))
  8695. return 0;
  8696. if (o[0] & 0x80) {
  8697. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8698. return 0;
  8699. }
  8700. if (y) {
  8701. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8702. return 0;
  8703. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8704. return 0;
  8705. if (o[1] & 0x80) {
  8706. if (!ASN1Enc_H321Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8707. return 0;
  8708. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8709. return 0;
  8710. }
  8711. if (o[1] & 0x40) {
  8712. if (!ASN1Enc_H321Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8713. return 0;
  8714. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8715. return 0;
  8716. }
  8717. ASN1_CloseEncoder2(ee);
  8718. }
  8719. return 1;
  8720. }
  8721. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val)
  8722. {
  8723. ASN1uint32_t y;
  8724. ASN1decoding_t dd;
  8725. ASN1octet_t *db;
  8726. ASN1uint32_t ds;
  8727. ASN1uint32_t i;
  8728. ASN1uint32_t e;
  8729. if (!ASN1PERDecExtensionBit(dec, &y))
  8730. return 0;
  8731. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8732. return 0;
  8733. if ((val)->o[0] & 0x80) {
  8734. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8735. return 0;
  8736. }
  8737. if (!y) {
  8738. ZeroMemory((val)->o + 1, 1);
  8739. } else {
  8740. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8741. return 0;
  8742. if ((val)->o[1] & 0x80) {
  8743. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8744. return 0;
  8745. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8746. return 0;
  8747. if (!ASN1Dec_H321Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8748. return 0;
  8749. ASN1_CloseDecoder(dd);
  8750. }
  8751. if ((val)->o[1] & 0x40) {
  8752. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8753. return 0;
  8754. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8755. return 0;
  8756. if (!ASN1Dec_H321Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8757. return 0;
  8758. ASN1_CloseDecoder(dd);
  8759. }
  8760. for (i = 0; i < e; i++) {
  8761. if (!ASN1PERDecSkipFragmented(dec, 8))
  8762. return 0;
  8763. }
  8764. }
  8765. return 1;
  8766. }
  8767. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val)
  8768. {
  8769. if (val) {
  8770. if ((val)->o[0] & 0x80) {
  8771. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8772. }
  8773. if ((val)->o[1] & 0x80) {
  8774. ASN1Free_H321Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8775. }
  8776. if ((val)->o[1] & 0x40) {
  8777. ASN1Free_H321Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8778. }
  8779. }
  8780. }
  8781. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val)
  8782. {
  8783. ASN1octet_t o[2];
  8784. ASN1uint32_t y;
  8785. ASN1encoding_t ee;
  8786. CopyMemory(o, (val)->o, 2);
  8787. o[1] |= 0x40;
  8788. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8789. if (!ASN1PEREncBitVal(enc, 1, y))
  8790. return 0;
  8791. if (!ASN1PEREncBits(enc, 1, o))
  8792. return 0;
  8793. if (o[0] & 0x80) {
  8794. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8795. return 0;
  8796. }
  8797. if (y) {
  8798. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8799. return 0;
  8800. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8801. return 0;
  8802. if (o[1] & 0x80) {
  8803. if (!ASN1Enc_H322Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8804. return 0;
  8805. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8806. return 0;
  8807. }
  8808. if (o[1] & 0x40) {
  8809. if (!ASN1Enc_H322Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8810. return 0;
  8811. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8812. return 0;
  8813. }
  8814. ASN1_CloseEncoder2(ee);
  8815. }
  8816. return 1;
  8817. }
  8818. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val)
  8819. {
  8820. ASN1uint32_t y;
  8821. ASN1decoding_t dd;
  8822. ASN1octet_t *db;
  8823. ASN1uint32_t ds;
  8824. ASN1uint32_t i;
  8825. ASN1uint32_t e;
  8826. if (!ASN1PERDecExtensionBit(dec, &y))
  8827. return 0;
  8828. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8829. return 0;
  8830. if ((val)->o[0] & 0x80) {
  8831. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8832. return 0;
  8833. }
  8834. if (!y) {
  8835. ZeroMemory((val)->o + 1, 1);
  8836. } else {
  8837. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8838. return 0;
  8839. if ((val)->o[1] & 0x80) {
  8840. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8841. return 0;
  8842. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8843. return 0;
  8844. if (!ASN1Dec_H322Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8845. return 0;
  8846. ASN1_CloseDecoder(dd);
  8847. }
  8848. if ((val)->o[1] & 0x40) {
  8849. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8850. return 0;
  8851. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8852. return 0;
  8853. if (!ASN1Dec_H322Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8854. return 0;
  8855. ASN1_CloseDecoder(dd);
  8856. }
  8857. for (i = 0; i < e; i++) {
  8858. if (!ASN1PERDecSkipFragmented(dec, 8))
  8859. return 0;
  8860. }
  8861. }
  8862. return 1;
  8863. }
  8864. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val)
  8865. {
  8866. if (val) {
  8867. if ((val)->o[0] & 0x80) {
  8868. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8869. }
  8870. if ((val)->o[1] & 0x80) {
  8871. ASN1Free_H322Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8872. }
  8873. if ((val)->o[1] & 0x40) {
  8874. ASN1Free_H322Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8875. }
  8876. }
  8877. }
  8878. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val)
  8879. {
  8880. ASN1octet_t o[2];
  8881. ASN1uint32_t y;
  8882. ASN1encoding_t ee;
  8883. CopyMemory(o, (val)->o, 2);
  8884. o[1] |= 0x40;
  8885. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8886. if (!ASN1PEREncBitVal(enc, 1, y))
  8887. return 0;
  8888. if (!ASN1PEREncBits(enc, 1, o))
  8889. return 0;
  8890. if (o[0] & 0x80) {
  8891. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8892. return 0;
  8893. }
  8894. if (y) {
  8895. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8896. return 0;
  8897. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8898. return 0;
  8899. if (o[1] & 0x80) {
  8900. if (!ASN1Enc_H323Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8901. return 0;
  8902. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8903. return 0;
  8904. }
  8905. if (o[1] & 0x40) {
  8906. if (!ASN1Enc_H323Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8907. return 0;
  8908. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8909. return 0;
  8910. }
  8911. ASN1_CloseEncoder2(ee);
  8912. }
  8913. return 1;
  8914. }
  8915. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val)
  8916. {
  8917. ASN1uint32_t y;
  8918. ASN1decoding_t dd;
  8919. ASN1octet_t *db;
  8920. ASN1uint32_t ds;
  8921. ASN1uint32_t i;
  8922. ASN1uint32_t e;
  8923. if (!ASN1PERDecExtensionBit(dec, &y))
  8924. return 0;
  8925. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8926. return 0;
  8927. if ((val)->o[0] & 0x80) {
  8928. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8929. return 0;
  8930. }
  8931. if (!y) {
  8932. ZeroMemory((val)->o + 1, 1);
  8933. } else {
  8934. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8935. return 0;
  8936. if ((val)->o[1] & 0x80) {
  8937. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8938. return 0;
  8939. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8940. return 0;
  8941. if (!ASN1Dec_H323Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8942. return 0;
  8943. ASN1_CloseDecoder(dd);
  8944. }
  8945. if ((val)->o[1] & 0x40) {
  8946. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8947. return 0;
  8948. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  8949. return 0;
  8950. if (!ASN1Dec_H323Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8951. return 0;
  8952. ASN1_CloseDecoder(dd);
  8953. }
  8954. for (i = 0; i < e; i++) {
  8955. if (!ASN1PERDecSkipFragmented(dec, 8))
  8956. return 0;
  8957. }
  8958. }
  8959. return 1;
  8960. }
  8961. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val)
  8962. {
  8963. if (val) {
  8964. if ((val)->o[0] & 0x80) {
  8965. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8966. }
  8967. if ((val)->o[1] & 0x80) {
  8968. ASN1Free_H323Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8969. }
  8970. if ((val)->o[1] & 0x40) {
  8971. ASN1Free_H323Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8972. }
  8973. }
  8974. }
  8975. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val)
  8976. {
  8977. ASN1octet_t o[2];
  8978. ASN1uint32_t y;
  8979. ASN1encoding_t ee;
  8980. CopyMemory(o, (val)->o, 2);
  8981. o[1] |= 0x40;
  8982. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8983. if (!ASN1PEREncBitVal(enc, 1, y))
  8984. return 0;
  8985. if (!ASN1PEREncBits(enc, 1, o))
  8986. return 0;
  8987. if (o[0] & 0x80) {
  8988. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8989. return 0;
  8990. }
  8991. if (y) {
  8992. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8993. return 0;
  8994. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8995. return 0;
  8996. if (o[1] & 0x80) {
  8997. if (!ASN1Enc_H324Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8998. return 0;
  8999. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9000. return 0;
  9001. }
  9002. if (o[1] & 0x40) {
  9003. if (!ASN1Enc_H324Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9004. return 0;
  9005. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9006. return 0;
  9007. }
  9008. ASN1_CloseEncoder2(ee);
  9009. }
  9010. return 1;
  9011. }
  9012. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val)
  9013. {
  9014. ASN1uint32_t y;
  9015. ASN1decoding_t dd;
  9016. ASN1octet_t *db;
  9017. ASN1uint32_t ds;
  9018. ASN1uint32_t i;
  9019. ASN1uint32_t e;
  9020. if (!ASN1PERDecExtensionBit(dec, &y))
  9021. return 0;
  9022. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9023. return 0;
  9024. if ((val)->o[0] & 0x80) {
  9025. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9026. return 0;
  9027. }
  9028. if (!y) {
  9029. ZeroMemory((val)->o + 1, 1);
  9030. } else {
  9031. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9032. return 0;
  9033. if ((val)->o[1] & 0x80) {
  9034. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9035. return 0;
  9036. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9037. return 0;
  9038. if (!ASN1Dec_H324Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9039. return 0;
  9040. ASN1_CloseDecoder(dd);
  9041. }
  9042. if ((val)->o[1] & 0x40) {
  9043. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9044. return 0;
  9045. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9046. return 0;
  9047. if (!ASN1Dec_H324Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9048. return 0;
  9049. ASN1_CloseDecoder(dd);
  9050. }
  9051. for (i = 0; i < e; i++) {
  9052. if (!ASN1PERDecSkipFragmented(dec, 8))
  9053. return 0;
  9054. }
  9055. }
  9056. return 1;
  9057. }
  9058. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val)
  9059. {
  9060. if (val) {
  9061. if ((val)->o[0] & 0x80) {
  9062. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9063. }
  9064. if ((val)->o[1] & 0x80) {
  9065. ASN1Free_H324Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9066. }
  9067. if ((val)->o[1] & 0x40) {
  9068. ASN1Free_H324Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9069. }
  9070. }
  9071. }
  9072. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val)
  9073. {
  9074. ASN1octet_t o[2];
  9075. ASN1uint32_t y;
  9076. ASN1encoding_t ee;
  9077. CopyMemory(o, (val)->o, 2);
  9078. o[1] |= 0x40;
  9079. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9080. if (!ASN1PEREncBitVal(enc, 1, y))
  9081. return 0;
  9082. if (!ASN1PEREncBits(enc, 1, o))
  9083. return 0;
  9084. if (o[0] & 0x80) {
  9085. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9086. return 0;
  9087. }
  9088. if (y) {
  9089. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9090. return 0;
  9091. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9092. return 0;
  9093. if (o[1] & 0x80) {
  9094. if (!ASN1Enc_VoiceCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9095. return 0;
  9096. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9097. return 0;
  9098. }
  9099. if (o[1] & 0x40) {
  9100. if (!ASN1Enc_VoiceCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9101. return 0;
  9102. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9103. return 0;
  9104. }
  9105. ASN1_CloseEncoder2(ee);
  9106. }
  9107. return 1;
  9108. }
  9109. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val)
  9110. {
  9111. ASN1uint32_t y;
  9112. ASN1decoding_t dd;
  9113. ASN1octet_t *db;
  9114. ASN1uint32_t ds;
  9115. ASN1uint32_t i;
  9116. ASN1uint32_t e;
  9117. if (!ASN1PERDecExtensionBit(dec, &y))
  9118. return 0;
  9119. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9120. return 0;
  9121. if ((val)->o[0] & 0x80) {
  9122. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9123. return 0;
  9124. }
  9125. if (!y) {
  9126. ZeroMemory((val)->o + 1, 1);
  9127. } else {
  9128. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9129. return 0;
  9130. if ((val)->o[1] & 0x80) {
  9131. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9132. return 0;
  9133. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9134. return 0;
  9135. if (!ASN1Dec_VoiceCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9136. return 0;
  9137. ASN1_CloseDecoder(dd);
  9138. }
  9139. if ((val)->o[1] & 0x40) {
  9140. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9141. return 0;
  9142. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9143. return 0;
  9144. if (!ASN1Dec_VoiceCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9145. return 0;
  9146. ASN1_CloseDecoder(dd);
  9147. }
  9148. for (i = 0; i < e; i++) {
  9149. if (!ASN1PERDecSkipFragmented(dec, 8))
  9150. return 0;
  9151. }
  9152. }
  9153. return 1;
  9154. }
  9155. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val)
  9156. {
  9157. if (val) {
  9158. if ((val)->o[0] & 0x80) {
  9159. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9160. }
  9161. if ((val)->o[1] & 0x80) {
  9162. ASN1Free_VoiceCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9163. }
  9164. if ((val)->o[1] & 0x40) {
  9165. ASN1Free_VoiceCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9166. }
  9167. }
  9168. }
  9169. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val)
  9170. {
  9171. ASN1octet_t o[2];
  9172. ASN1uint32_t y;
  9173. ASN1encoding_t ee;
  9174. CopyMemory(o, (val)->o, 2);
  9175. o[1] |= 0x40;
  9176. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9177. if (!ASN1PEREncBitVal(enc, 1, y))
  9178. return 0;
  9179. if (!ASN1PEREncBits(enc, 1, o))
  9180. return 0;
  9181. if (o[0] & 0x80) {
  9182. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9183. return 0;
  9184. }
  9185. if (y) {
  9186. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9187. return 0;
  9188. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9189. return 0;
  9190. if (o[1] & 0x80) {
  9191. if (!ASN1Enc_T120OnlyCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9192. return 0;
  9193. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9194. return 0;
  9195. }
  9196. if (o[1] & 0x40) {
  9197. if (!ASN1Enc_T120OnlyCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9198. return 0;
  9199. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9200. return 0;
  9201. }
  9202. ASN1_CloseEncoder2(ee);
  9203. }
  9204. return 1;
  9205. }
  9206. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val)
  9207. {
  9208. ASN1uint32_t y;
  9209. ASN1decoding_t dd;
  9210. ASN1octet_t *db;
  9211. ASN1uint32_t ds;
  9212. ASN1uint32_t i;
  9213. ASN1uint32_t e;
  9214. if (!ASN1PERDecExtensionBit(dec, &y))
  9215. return 0;
  9216. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9217. return 0;
  9218. if ((val)->o[0] & 0x80) {
  9219. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9220. return 0;
  9221. }
  9222. if (!y) {
  9223. ZeroMemory((val)->o + 1, 1);
  9224. } else {
  9225. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9226. return 0;
  9227. if ((val)->o[1] & 0x80) {
  9228. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9229. return 0;
  9230. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9231. return 0;
  9232. if (!ASN1Dec_T120OnlyCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9233. return 0;
  9234. ASN1_CloseDecoder(dd);
  9235. }
  9236. if ((val)->o[1] & 0x40) {
  9237. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9238. return 0;
  9239. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9240. return 0;
  9241. if (!ASN1Dec_T120OnlyCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9242. return 0;
  9243. ASN1_CloseDecoder(dd);
  9244. }
  9245. for (i = 0; i < e; i++) {
  9246. if (!ASN1PERDecSkipFragmented(dec, 8))
  9247. return 0;
  9248. }
  9249. }
  9250. return 1;
  9251. }
  9252. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val)
  9253. {
  9254. if (val) {
  9255. if ((val)->o[0] & 0x80) {
  9256. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9257. }
  9258. if ((val)->o[1] & 0x80) {
  9259. ASN1Free_T120OnlyCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9260. }
  9261. if ((val)->o[1] & 0x40) {
  9262. ASN1Free_T120OnlyCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9263. }
  9264. }
  9265. }
  9266. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val)
  9267. {
  9268. if (!ASN1PEREncExtensionBitClear(enc))
  9269. return 0;
  9270. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9271. return 0;
  9272. if ((val)->o[0] & 0x80) {
  9273. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9274. return 0;
  9275. }
  9276. if ((val)->o[0] & 0x40) {
  9277. if (!ASN1Enc_NonStandardProtocol_dataRatesSupported(enc, &(val)->dataRatesSupported))
  9278. return 0;
  9279. }
  9280. if (!ASN1Enc_NonStandardProtocol_supportedPrefixes(enc, &(val)->supportedPrefixes))
  9281. return 0;
  9282. return 1;
  9283. }
  9284. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val)
  9285. {
  9286. ASN1uint32_t y;
  9287. if (!ASN1PERDecExtensionBit(dec, &y))
  9288. return 0;
  9289. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9290. return 0;
  9291. if ((val)->o[0] & 0x80) {
  9292. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9293. return 0;
  9294. }
  9295. if ((val)->o[0] & 0x40) {
  9296. if (!ASN1Dec_NonStandardProtocol_dataRatesSupported(dec, &(val)->dataRatesSupported))
  9297. return 0;
  9298. }
  9299. if (!ASN1Dec_NonStandardProtocol_supportedPrefixes(dec, &(val)->supportedPrefixes))
  9300. return 0;
  9301. if (y) {
  9302. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9303. return 0;
  9304. }
  9305. return 1;
  9306. }
  9307. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val)
  9308. {
  9309. if (val) {
  9310. if ((val)->o[0] & 0x80) {
  9311. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9312. }
  9313. if ((val)->o[0] & 0x40) {
  9314. ASN1Free_NonStandardProtocol_dataRatesSupported(&(val)->dataRatesSupported);
  9315. }
  9316. ASN1Free_NonStandardProtocol_supportedPrefixes(&(val)->supportedPrefixes);
  9317. }
  9318. }
  9319. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val)
  9320. {
  9321. if (!ASN1PEREncExtensionBitClear(enc))
  9322. return 0;
  9323. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9324. return 0;
  9325. if ((val)->o[0] & 0x80) {
  9326. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9327. return 0;
  9328. }
  9329. return 1;
  9330. }
  9331. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val)
  9332. {
  9333. ASN1uint32_t y;
  9334. if (!ASN1PERDecExtensionBit(dec, &y))
  9335. return 0;
  9336. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9337. return 0;
  9338. if ((val)->o[0] & 0x80) {
  9339. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9340. return 0;
  9341. }
  9342. if (y) {
  9343. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9344. return 0;
  9345. }
  9346. return 1;
  9347. }
  9348. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val)
  9349. {
  9350. if (val) {
  9351. if ((val)->o[0] & 0x80) {
  9352. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9353. }
  9354. }
  9355. }
  9356. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val)
  9357. {
  9358. if (!ASN1PEREncExtensionBitClear(enc))
  9359. return 0;
  9360. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9361. return 0;
  9362. if ((val)->o[0] & 0x80) {
  9363. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9364. return 0;
  9365. }
  9366. return 1;
  9367. }
  9368. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val)
  9369. {
  9370. ASN1uint32_t y;
  9371. if (!ASN1PERDecExtensionBit(dec, &y))
  9372. return 0;
  9373. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9374. return 0;
  9375. if ((val)->o[0] & 0x80) {
  9376. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9377. return 0;
  9378. }
  9379. if (y) {
  9380. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9381. return 0;
  9382. }
  9383. return 1;
  9384. }
  9385. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val)
  9386. {
  9387. if (val) {
  9388. if ((val)->o[0] & 0x80) {
  9389. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9390. }
  9391. }
  9392. }
  9393. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val)
  9394. {
  9395. if (!ASN1PEREncExtensionBitClear(enc))
  9396. return 0;
  9397. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9398. return 0;
  9399. if ((val)->o[0] & 0x80) {
  9400. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9401. return 0;
  9402. }
  9403. return 1;
  9404. }
  9405. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val)
  9406. {
  9407. ASN1uint32_t y;
  9408. if (!ASN1PERDecExtensionBit(dec, &y))
  9409. return 0;
  9410. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9411. return 0;
  9412. if ((val)->o[0] & 0x80) {
  9413. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9414. return 0;
  9415. }
  9416. if (y) {
  9417. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9418. return 0;
  9419. }
  9420. return 1;
  9421. }
  9422. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val)
  9423. {
  9424. if (val) {
  9425. if ((val)->o[0] & 0x80) {
  9426. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9427. }
  9428. }
  9429. }
  9430. static ASN1stringtableentry_t PartyNumber_dataPartyNumber_StringTableEntries[] = {
  9431. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9432. { 48, 57, 3 },
  9433. };
  9434. static ASN1stringtable_t PartyNumber_dataPartyNumber_StringTable = {
  9435. 4, PartyNumber_dataPartyNumber_StringTableEntries
  9436. };
  9437. static ASN1stringtableentry_t PartyNumber_telexPartyNumber_StringTableEntries[] = {
  9438. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9439. { 48, 57, 3 },
  9440. };
  9441. static ASN1stringtable_t PartyNumber_telexPartyNumber_StringTable = {
  9442. 4, PartyNumber_telexPartyNumber_StringTableEntries
  9443. };
  9444. static ASN1stringtableentry_t PartyNumber_nationalStandardPartyNumber_StringTableEntries[] = {
  9445. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9446. { 48, 57, 3 },
  9447. };
  9448. static ASN1stringtable_t PartyNumber_nationalStandardPartyNumber_StringTable = {
  9449. 4, PartyNumber_nationalStandardPartyNumber_StringTableEntries
  9450. };
  9451. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val)
  9452. {
  9453. ASN1uint32_t t;
  9454. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  9455. return 0;
  9456. switch ((val)->choice) {
  9457. case 1:
  9458. if (!ASN1Enc_PublicPartyNumber(enc, &(val)->u.publicNumber))
  9459. return 0;
  9460. break;
  9461. case 2:
  9462. t = lstrlenA((val)->u.dataPartyNumber);
  9463. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9464. return 0;
  9465. ASN1PEREncAlignment(enc);
  9466. if (!ASN1PEREncTableCharString(enc, t, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9467. return 0;
  9468. break;
  9469. case 3:
  9470. t = lstrlenA((val)->u.telexPartyNumber);
  9471. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9472. return 0;
  9473. ASN1PEREncAlignment(enc);
  9474. if (!ASN1PEREncTableCharString(enc, t, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9475. return 0;
  9476. break;
  9477. case 4:
  9478. if (!ASN1Enc_PrivatePartyNumber(enc, &(val)->u.privateNumber))
  9479. return 0;
  9480. break;
  9481. case 5:
  9482. t = lstrlenA((val)->u.nationalStandardPartyNumber);
  9483. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9484. return 0;
  9485. ASN1PEREncAlignment(enc);
  9486. if (!ASN1PEREncTableCharString(enc, t, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9487. return 0;
  9488. break;
  9489. default:
  9490. /* impossible */
  9491. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  9492. return 0;
  9493. }
  9494. return 1;
  9495. }
  9496. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val)
  9497. {
  9498. ASN1uint32_t l;
  9499. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  9500. return 0;
  9501. switch ((val)->choice) {
  9502. case 1:
  9503. if (!ASN1Dec_PublicPartyNumber(dec, &(val)->u.publicNumber))
  9504. return 0;
  9505. break;
  9506. case 2:
  9507. if (!ASN1PERDecU32Val(dec, 7, &l))
  9508. return 0;
  9509. l += 1;
  9510. ASN1PERDecAlignment(dec);
  9511. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9512. return 0;
  9513. break;
  9514. case 3:
  9515. if (!ASN1PERDecU32Val(dec, 7, &l))
  9516. return 0;
  9517. l += 1;
  9518. ASN1PERDecAlignment(dec);
  9519. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9520. return 0;
  9521. break;
  9522. case 4:
  9523. if (!ASN1Dec_PrivatePartyNumber(dec, &(val)->u.privateNumber))
  9524. return 0;
  9525. break;
  9526. case 5:
  9527. if (!ASN1PERDecU32Val(dec, 7, &l))
  9528. return 0;
  9529. l += 1;
  9530. ASN1PERDecAlignment(dec);
  9531. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9532. return 0;
  9533. break;
  9534. case 0:
  9535. /* extension case */
  9536. if (!ASN1PERDecSkipFragmented(dec, 8))
  9537. return 0;
  9538. break;
  9539. default:
  9540. /* impossible */
  9541. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  9542. return 0;
  9543. }
  9544. return 1;
  9545. }
  9546. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val)
  9547. {
  9548. if (val) {
  9549. switch ((val)->choice) {
  9550. case 1:
  9551. ASN1Free_PublicPartyNumber(&(val)->u.publicNumber);
  9552. break;
  9553. case 2:
  9554. break;
  9555. case 3:
  9556. break;
  9557. case 4:
  9558. ASN1Free_PrivatePartyNumber(&(val)->u.privateNumber);
  9559. break;
  9560. case 5:
  9561. break;
  9562. }
  9563. }
  9564. }
  9565. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val)
  9566. {
  9567. if (!ASN1PEREncExtensionBitClear(enc))
  9568. return 0;
  9569. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9570. return 0;
  9571. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9572. return 0;
  9573. if ((val)->o[0] & 0x80) {
  9574. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9575. return 0;
  9576. ASN1PEREncAlignment(enc);
  9577. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9578. return 0;
  9579. }
  9580. if (!ASN1PEREncBoolean(enc, (val)->needToRegister))
  9581. return 0;
  9582. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  9583. return 0;
  9584. return 1;
  9585. }
  9586. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val)
  9587. {
  9588. ASN1uint32_t y;
  9589. if (!ASN1PERDecExtensionBit(dec, &y))
  9590. return 0;
  9591. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9592. return 0;
  9593. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9594. return 0;
  9595. if ((val)->o[0] & 0x80) {
  9596. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9597. return 0;
  9598. ((val)->gatekeeperIdentifier).length += 1;
  9599. ASN1PERDecAlignment(dec);
  9600. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9601. return 0;
  9602. }
  9603. if (!ASN1PERDecBoolean(dec, &(val)->needToRegister))
  9604. return 0;
  9605. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  9606. return 0;
  9607. if (y) {
  9608. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9609. return 0;
  9610. }
  9611. return 1;
  9612. }
  9613. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val)
  9614. {
  9615. if (val) {
  9616. ASN1Free_TransportAddress(&(val)->rasAddress);
  9617. if ((val)->o[0] & 0x80) {
  9618. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9619. }
  9620. }
  9621. }
  9622. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val)
  9623. {
  9624. ASN1uint32_t y;
  9625. ASN1encoding_t ee;
  9626. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  9627. if (!ASN1PEREncBitVal(enc, 1, y))
  9628. return 0;
  9629. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9630. return 0;
  9631. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9632. return 0;
  9633. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  9634. return 0;
  9635. if ((val)->o[0] & 0x80) {
  9636. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9637. return 0;
  9638. }
  9639. if ((val)->o[0] & 0x40) {
  9640. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9641. return 0;
  9642. ASN1PEREncAlignment(enc);
  9643. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9644. return 0;
  9645. }
  9646. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9647. return 0;
  9648. if (y) {
  9649. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  9650. return 0;
  9651. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9652. return 0;
  9653. if ((val)->o[1] & 0x80) {
  9654. if (!ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  9655. return 0;
  9656. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9657. return 0;
  9658. }
  9659. if ((val)->o[1] & 0x40) {
  9660. if (!ASN1Enc_AuthenticationMechanism(ee, &(val)->authenticationMode))
  9661. return 0;
  9662. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9663. return 0;
  9664. }
  9665. if ((val)->o[1] & 0x20) {
  9666. if (!ASN1Enc_GatekeeperConfirm_tokens(ee, &(val)->tokens))
  9667. return 0;
  9668. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9669. return 0;
  9670. }
  9671. if ((val)->o[1] & 0x10) {
  9672. if (!ASN1Enc_GatekeeperConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  9673. return 0;
  9674. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9675. return 0;
  9676. }
  9677. if ((val)->o[1] & 0x8) {
  9678. if (!ASN1PEREncObjectIdentifier(ee, &(val)->algorithmOID))
  9679. return 0;
  9680. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9681. return 0;
  9682. }
  9683. if ((val)->o[1] & 0x4) {
  9684. if (!ASN1Enc_GatekeeperConfirm_integrity(ee, &(val)->integrity))
  9685. return 0;
  9686. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9687. return 0;
  9688. }
  9689. if ((val)->o[1] & 0x2) {
  9690. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  9691. return 0;
  9692. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9693. return 0;
  9694. }
  9695. ASN1_CloseEncoder2(ee);
  9696. }
  9697. return 1;
  9698. }
  9699. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val)
  9700. {
  9701. ASN1uint32_t y;
  9702. ASN1decoding_t dd;
  9703. ASN1octet_t *db;
  9704. ASN1uint32_t ds;
  9705. ASN1uint32_t i;
  9706. ASN1uint32_t e;
  9707. if (!ASN1PERDecExtensionBit(dec, &y))
  9708. return 0;
  9709. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9710. return 0;
  9711. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  9712. return 0;
  9713. (val)->requestSeqNum += 1;
  9714. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  9715. return 0;
  9716. if ((val)->o[0] & 0x80) {
  9717. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9718. return 0;
  9719. }
  9720. if ((val)->o[0] & 0x40) {
  9721. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9722. return 0;
  9723. ((val)->gatekeeperIdentifier).length += 1;
  9724. ASN1PERDecAlignment(dec);
  9725. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9726. return 0;
  9727. }
  9728. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9729. return 0;
  9730. if (!y) {
  9731. ZeroMemory((val)->o + 1, 1);
  9732. } else {
  9733. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  9734. return 0;
  9735. if ((val)->o[1] & 0x80) {
  9736. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9737. return 0;
  9738. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9739. return 0;
  9740. if (!ASN1Dec_GatekeeperConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  9741. return 0;
  9742. ASN1_CloseDecoder(dd);
  9743. }
  9744. if ((val)->o[1] & 0x40) {
  9745. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9746. return 0;
  9747. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9748. return 0;
  9749. if (!ASN1Dec_AuthenticationMechanism(dd, &(val)->authenticationMode))
  9750. return 0;
  9751. ASN1_CloseDecoder(dd);
  9752. }
  9753. if ((val)->o[1] & 0x20) {
  9754. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9755. return 0;
  9756. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9757. return 0;
  9758. if (!ASN1Dec_GatekeeperConfirm_tokens(dd, &(val)->tokens))
  9759. return 0;
  9760. ASN1_CloseDecoder(dd);
  9761. }
  9762. if ((val)->o[1] & 0x10) {
  9763. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9764. return 0;
  9765. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9766. return 0;
  9767. if (!ASN1Dec_GatekeeperConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  9768. return 0;
  9769. ASN1_CloseDecoder(dd);
  9770. }
  9771. if ((val)->o[1] & 0x8) {
  9772. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9773. return 0;
  9774. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9775. return 0;
  9776. if (!ASN1PERDecObjectIdentifier(dd, &(val)->algorithmOID))
  9777. return 0;
  9778. ASN1_CloseDecoder(dd);
  9779. }
  9780. if ((val)->o[1] & 0x4) {
  9781. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9782. return 0;
  9783. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9784. return 0;
  9785. if (!ASN1Dec_GatekeeperConfirm_integrity(dd, &(val)->integrity))
  9786. return 0;
  9787. ASN1_CloseDecoder(dd);
  9788. }
  9789. if ((val)->o[1] & 0x2) {
  9790. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9791. return 0;
  9792. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  9793. return 0;
  9794. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  9795. return 0;
  9796. ASN1_CloseDecoder(dd);
  9797. }
  9798. for (i = 0; i < e; i++) {
  9799. if (!ASN1PERDecSkipFragmented(dec, 8))
  9800. return 0;
  9801. }
  9802. }
  9803. return 1;
  9804. }
  9805. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val)
  9806. {
  9807. if (val) {
  9808. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  9809. if ((val)->o[0] & 0x80) {
  9810. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9811. }
  9812. if ((val)->o[0] & 0x40) {
  9813. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9814. }
  9815. ASN1Free_TransportAddress(&(val)->rasAddress);
  9816. if ((val)->o[1] & 0x80) {
  9817. ASN1Free_GatekeeperConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  9818. }
  9819. if ((val)->o[1] & 0x40) {
  9820. ASN1Free_AuthenticationMechanism(&(val)->authenticationMode);
  9821. }
  9822. if ((val)->o[1] & 0x20) {
  9823. ASN1Free_GatekeeperConfirm_tokens(&(val)->tokens);
  9824. }
  9825. if ((val)->o[1] & 0x10) {
  9826. ASN1Free_GatekeeperConfirm_cryptoTokens(&(val)->cryptoTokens);
  9827. }
  9828. if ((val)->o[1] & 0x8) {
  9829. ASN1objectidentifier_free(&(val)->algorithmOID);
  9830. }
  9831. if ((val)->o[1] & 0x4) {
  9832. ASN1Free_GatekeeperConfirm_integrity(&(val)->integrity);
  9833. }
  9834. if ((val)->o[1] & 0x2) {
  9835. ASN1Free_ICV(&(val)->integrityCheckValue);
  9836. }
  9837. }
  9838. }
  9839. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val)
  9840. {
  9841. ASN1octet_t o[3];
  9842. ASN1uint32_t y;
  9843. ASN1uint32_t l;
  9844. ASN1encoding_t ee;
  9845. CopyMemory(o, (val)->o, 3);
  9846. o[1] |= 0x80;
  9847. o[1] |= 0x40;
  9848. o[2] |= 0x40;
  9849. y = ASN1PEREncCheckExtensions(10, (val)->o + 1);
  9850. if (!ASN1PEREncBitVal(enc, 1, y))
  9851. return 0;
  9852. if (!ASN1PEREncBits(enc, 7, o))
  9853. return 0;
  9854. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9855. return 0;
  9856. if (!ASN1Enc_CallType(enc, &(val)->callType))
  9857. return 0;
  9858. if (o[0] & 0x80) {
  9859. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  9860. return 0;
  9861. }
  9862. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  9863. return 0;
  9864. ASN1PEREncAlignment(enc);
  9865. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  9866. return 0;
  9867. if (o[0] & 0x40) {
  9868. if (!ASN1Enc_AdmissionRequest_destinationInfo(enc, &(val)->destinationInfo))
  9869. return 0;
  9870. }
  9871. if (o[0] & 0x20) {
  9872. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  9873. return 0;
  9874. }
  9875. if (o[0] & 0x10) {
  9876. if (!ASN1Enc_AdmissionRequest_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  9877. return 0;
  9878. }
  9879. if (!ASN1Enc_AdmissionRequest_srcInfo(enc, &(val)->srcInfo))
  9880. return 0;
  9881. if (o[0] & 0x8) {
  9882. if (!ASN1Enc_TransportAddress(enc, &(val)->srcCallSignalAddress))
  9883. return 0;
  9884. }
  9885. l = ASN1uint32_uoctets((val)->bandWidth);
  9886. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  9887. return 0;
  9888. ASN1PEREncAlignment(enc);
  9889. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  9890. return 0;
  9891. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  9892. return 0;
  9893. if (o[0] & 0x4) {
  9894. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9895. return 0;
  9896. }
  9897. if (o[0] & 0x2) {
  9898. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  9899. return 0;
  9900. }
  9901. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  9902. return 0;
  9903. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  9904. return 0;
  9905. if (!ASN1PEREncBoolean(enc, (val)->answerCall))
  9906. return 0;
  9907. if (y) {
  9908. if (!ASN1PEREncNormallySmallBits(enc, 10, o + 1))
  9909. return 0;
  9910. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9911. return 0;
  9912. if (o[1] & 0x80) {
  9913. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  9914. return 0;
  9915. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9916. return 0;
  9917. }
  9918. if (o[1] & 0x40) {
  9919. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  9920. return 0;
  9921. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9922. return 0;
  9923. }
  9924. if (o[1] & 0x20) {
  9925. if (!ASN1Enc_AdmissionRequest_srcAlternatives(ee, &(val)->srcAlternatives))
  9926. return 0;
  9927. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9928. return 0;
  9929. }
  9930. if (o[1] & 0x10) {
  9931. if (!ASN1Enc_AdmissionRequest_destAlternatives(ee, &(val)->destAlternatives))
  9932. return 0;
  9933. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9934. return 0;
  9935. }
  9936. if (o[1] & 0x8) {
  9937. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  9938. return 0;
  9939. ASN1PEREncAlignment(ee);
  9940. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9941. return 0;
  9942. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9943. return 0;
  9944. }
  9945. if (o[1] & 0x4) {
  9946. if (!ASN1Enc_AdmissionRequest_tokens(ee, &(val)->tokens))
  9947. return 0;
  9948. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9949. return 0;
  9950. }
  9951. if (o[1] & 0x2) {
  9952. if (!ASN1Enc_AdmissionRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  9953. return 0;
  9954. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9955. return 0;
  9956. }
  9957. if (o[1] & 0x1) {
  9958. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  9959. return 0;
  9960. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9961. return 0;
  9962. }
  9963. if (o[2] & 0x80) {
  9964. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  9965. return 0;
  9966. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9967. return 0;
  9968. }
  9969. if (o[2] & 0x40) {
  9970. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  9971. return 0;
  9972. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9973. return 0;
  9974. }
  9975. ASN1_CloseEncoder2(ee);
  9976. }
  9977. return 1;
  9978. }
  9979. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val)
  9980. {
  9981. ASN1uint32_t y;
  9982. ASN1uint32_t l;
  9983. ASN1decoding_t dd;
  9984. ASN1octet_t *db;
  9985. ASN1uint32_t ds;
  9986. ASN1uint32_t i;
  9987. ASN1uint32_t e;
  9988. if (!ASN1PERDecExtensionBit(dec, &y))
  9989. return 0;
  9990. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  9991. return 0;
  9992. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  9993. return 0;
  9994. (val)->requestSeqNum += 1;
  9995. if (!ASN1Dec_CallType(dec, &(val)->callType))
  9996. return 0;
  9997. if ((val)->o[0] & 0x80) {
  9998. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  9999. return 0;
  10000. }
  10001. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10002. return 0;
  10003. ((val)->endpointIdentifier).length += 1;
  10004. ASN1PERDecAlignment(dec);
  10005. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10006. return 0;
  10007. if ((val)->o[0] & 0x40) {
  10008. if (!ASN1Dec_AdmissionRequest_destinationInfo(dec, &(val)->destinationInfo))
  10009. return 0;
  10010. }
  10011. if ((val)->o[0] & 0x20) {
  10012. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  10013. return 0;
  10014. }
  10015. if ((val)->o[0] & 0x10) {
  10016. if (!ASN1Dec_AdmissionRequest_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  10017. return 0;
  10018. }
  10019. if (!ASN1Dec_AdmissionRequest_srcInfo(dec, &(val)->srcInfo))
  10020. return 0;
  10021. if ((val)->o[0] & 0x8) {
  10022. if (!ASN1Dec_TransportAddress(dec, &(val)->srcCallSignalAddress))
  10023. return 0;
  10024. }
  10025. if (!ASN1PERDecU32Val(dec, 2, &l))
  10026. return 0;
  10027. l += 1;
  10028. ASN1PERDecAlignment(dec);
  10029. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10030. return 0;
  10031. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10032. return 0;
  10033. if ((val)->o[0] & 0x4) {
  10034. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10035. return 0;
  10036. }
  10037. if ((val)->o[0] & 0x2) {
  10038. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  10039. return 0;
  10040. }
  10041. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10042. return 0;
  10043. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  10044. return 0;
  10045. if (!ASN1PERDecBoolean(dec, &(val)->answerCall))
  10046. return 0;
  10047. if (!y) {
  10048. ZeroMemory((val)->o + 1, 2);
  10049. } else {
  10050. if (!ASN1PERDecNormallySmallExtension(dec, &e, 10, (val)->o + 1))
  10051. return 0;
  10052. if ((val)->o[1] & 0x80) {
  10053. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10054. return 0;
  10055. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10056. return 0;
  10057. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10058. return 0;
  10059. ASN1_CloseDecoder(dd);
  10060. }
  10061. if ((val)->o[1] & 0x40) {
  10062. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10063. return 0;
  10064. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10065. return 0;
  10066. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10067. return 0;
  10068. ASN1_CloseDecoder(dd);
  10069. }
  10070. if ((val)->o[1] & 0x20) {
  10071. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10072. return 0;
  10073. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10074. return 0;
  10075. if (!ASN1Dec_AdmissionRequest_srcAlternatives(dd, &(val)->srcAlternatives))
  10076. return 0;
  10077. ASN1_CloseDecoder(dd);
  10078. }
  10079. if ((val)->o[1] & 0x10) {
  10080. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10081. return 0;
  10082. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10083. return 0;
  10084. if (!ASN1Dec_AdmissionRequest_destAlternatives(dd, &(val)->destAlternatives))
  10085. return 0;
  10086. ASN1_CloseDecoder(dd);
  10087. }
  10088. if ((val)->o[1] & 0x8) {
  10089. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10090. return 0;
  10091. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10092. return 0;
  10093. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10094. return 0;
  10095. ((val)->gatekeeperIdentifier).length += 1;
  10096. ASN1PERDecAlignment(dd);
  10097. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10098. return 0;
  10099. ASN1_CloseDecoder(dd);
  10100. }
  10101. if ((val)->o[1] & 0x4) {
  10102. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10103. return 0;
  10104. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10105. return 0;
  10106. if (!ASN1Dec_AdmissionRequest_tokens(dd, &(val)->tokens))
  10107. return 0;
  10108. ASN1_CloseDecoder(dd);
  10109. }
  10110. if ((val)->o[1] & 0x2) {
  10111. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10112. return 0;
  10113. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10114. return 0;
  10115. if (!ASN1Dec_AdmissionRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10116. return 0;
  10117. ASN1_CloseDecoder(dd);
  10118. }
  10119. if ((val)->o[1] & 0x1) {
  10120. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10121. return 0;
  10122. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10123. return 0;
  10124. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10125. return 0;
  10126. ASN1_CloseDecoder(dd);
  10127. }
  10128. if ((val)->o[2] & 0x80) {
  10129. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10130. return 0;
  10131. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10132. return 0;
  10133. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  10134. return 0;
  10135. ASN1_CloseDecoder(dd);
  10136. }
  10137. if ((val)->o[2] & 0x40) {
  10138. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10139. return 0;
  10140. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10141. return 0;
  10142. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  10143. return 0;
  10144. ASN1_CloseDecoder(dd);
  10145. }
  10146. for (i = 0; i < e; i++) {
  10147. if (!ASN1PERDecSkipFragmented(dec, 8))
  10148. return 0;
  10149. }
  10150. }
  10151. return 1;
  10152. }
  10153. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val)
  10154. {
  10155. if (val) {
  10156. ASN1char16string_free(&(val)->endpointIdentifier);
  10157. if ((val)->o[0] & 0x40) {
  10158. ASN1Free_AdmissionRequest_destinationInfo(&(val)->destinationInfo);
  10159. }
  10160. if ((val)->o[0] & 0x20) {
  10161. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  10162. }
  10163. if ((val)->o[0] & 0x10) {
  10164. ASN1Free_AdmissionRequest_destExtraCallInfo(&(val)->destExtraCallInfo);
  10165. }
  10166. ASN1Free_AdmissionRequest_srcInfo(&(val)->srcInfo);
  10167. if ((val)->o[0] & 0x8) {
  10168. ASN1Free_TransportAddress(&(val)->srcCallSignalAddress);
  10169. }
  10170. if ((val)->o[0] & 0x4) {
  10171. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10172. }
  10173. if ((val)->o[1] & 0x40) {
  10174. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10175. }
  10176. if ((val)->o[1] & 0x20) {
  10177. ASN1Free_AdmissionRequest_srcAlternatives(&(val)->srcAlternatives);
  10178. }
  10179. if ((val)->o[1] & 0x10) {
  10180. ASN1Free_AdmissionRequest_destAlternatives(&(val)->destAlternatives);
  10181. }
  10182. if ((val)->o[1] & 0x8) {
  10183. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10184. }
  10185. if ((val)->o[1] & 0x4) {
  10186. ASN1Free_AdmissionRequest_tokens(&(val)->tokens);
  10187. }
  10188. if ((val)->o[1] & 0x2) {
  10189. ASN1Free_AdmissionRequest_cryptoTokens(&(val)->cryptoTokens);
  10190. }
  10191. if ((val)->o[1] & 0x1) {
  10192. ASN1Free_ICV(&(val)->integrityCheckValue);
  10193. }
  10194. }
  10195. }
  10196. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val)
  10197. {
  10198. ASN1octet_t o[2];
  10199. ASN1uint32_t y;
  10200. ASN1encoding_t ee;
  10201. CopyMemory(o, (val)->o, 2);
  10202. o[1] |= 0x40;
  10203. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  10204. if (!ASN1PEREncBitVal(enc, 1, y))
  10205. return 0;
  10206. if (!ASN1PEREncBits(enc, 2, o))
  10207. return 0;
  10208. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10209. return 0;
  10210. if (o[0] & 0x80) {
  10211. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  10212. return 0;
  10213. ASN1PEREncAlignment(enc);
  10214. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  10215. return 0;
  10216. }
  10217. if (!ASN1Enc_LocationRequest_destinationInfo(enc, &(val)->destinationInfo))
  10218. return 0;
  10219. if (o[0] & 0x40) {
  10220. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10221. return 0;
  10222. }
  10223. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10224. return 0;
  10225. if (y) {
  10226. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  10227. return 0;
  10228. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10229. return 0;
  10230. if (o[1] & 0x80) {
  10231. if (!ASN1Enc_LocationRequest_sourceInfo(ee, &(val)->sourceInfo))
  10232. return 0;
  10233. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10234. return 0;
  10235. }
  10236. if (o[1] & 0x40) {
  10237. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10238. return 0;
  10239. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10240. return 0;
  10241. }
  10242. if (o[1] & 0x20) {
  10243. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10244. return 0;
  10245. ASN1PEREncAlignment(ee);
  10246. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10247. return 0;
  10248. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10249. return 0;
  10250. }
  10251. if (o[1] & 0x10) {
  10252. if (!ASN1Enc_LocationRequest_tokens(ee, &(val)->tokens))
  10253. return 0;
  10254. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10255. return 0;
  10256. }
  10257. if (o[1] & 0x8) {
  10258. if (!ASN1Enc_LocationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10259. return 0;
  10260. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10261. return 0;
  10262. }
  10263. if (o[1] & 0x4) {
  10264. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10265. return 0;
  10266. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10267. return 0;
  10268. }
  10269. ASN1_CloseEncoder2(ee);
  10270. }
  10271. return 1;
  10272. }
  10273. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val)
  10274. {
  10275. ASN1uint32_t y;
  10276. ASN1decoding_t dd;
  10277. ASN1octet_t *db;
  10278. ASN1uint32_t ds;
  10279. ASN1uint32_t i;
  10280. ASN1uint32_t e;
  10281. if (!ASN1PERDecExtensionBit(dec, &y))
  10282. return 0;
  10283. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10284. return 0;
  10285. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10286. return 0;
  10287. (val)->requestSeqNum += 1;
  10288. if ((val)->o[0] & 0x80) {
  10289. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10290. return 0;
  10291. ((val)->endpointIdentifier).length += 1;
  10292. ASN1PERDecAlignment(dec);
  10293. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10294. return 0;
  10295. }
  10296. if (!ASN1Dec_LocationRequest_destinationInfo(dec, &(val)->destinationInfo))
  10297. return 0;
  10298. if ((val)->o[0] & 0x40) {
  10299. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10300. return 0;
  10301. }
  10302. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10303. return 0;
  10304. if (!y) {
  10305. ZeroMemory((val)->o + 1, 1);
  10306. } else {
  10307. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  10308. return 0;
  10309. if ((val)->o[1] & 0x80) {
  10310. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10311. return 0;
  10312. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10313. return 0;
  10314. if (!ASN1Dec_LocationRequest_sourceInfo(dd, &(val)->sourceInfo))
  10315. return 0;
  10316. ASN1_CloseDecoder(dd);
  10317. }
  10318. if ((val)->o[1] & 0x40) {
  10319. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10320. return 0;
  10321. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10322. return 0;
  10323. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10324. return 0;
  10325. ASN1_CloseDecoder(dd);
  10326. }
  10327. if ((val)->o[1] & 0x20) {
  10328. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10329. return 0;
  10330. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10331. return 0;
  10332. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10333. return 0;
  10334. ((val)->gatekeeperIdentifier).length += 1;
  10335. ASN1PERDecAlignment(dd);
  10336. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10337. return 0;
  10338. ASN1_CloseDecoder(dd);
  10339. }
  10340. if ((val)->o[1] & 0x10) {
  10341. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10342. return 0;
  10343. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10344. return 0;
  10345. if (!ASN1Dec_LocationRequest_tokens(dd, &(val)->tokens))
  10346. return 0;
  10347. ASN1_CloseDecoder(dd);
  10348. }
  10349. if ((val)->o[1] & 0x8) {
  10350. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10351. return 0;
  10352. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10353. return 0;
  10354. if (!ASN1Dec_LocationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10355. return 0;
  10356. ASN1_CloseDecoder(dd);
  10357. }
  10358. if ((val)->o[1] & 0x4) {
  10359. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10360. return 0;
  10361. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10362. return 0;
  10363. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10364. return 0;
  10365. ASN1_CloseDecoder(dd);
  10366. }
  10367. for (i = 0; i < e; i++) {
  10368. if (!ASN1PERDecSkipFragmented(dec, 8))
  10369. return 0;
  10370. }
  10371. }
  10372. return 1;
  10373. }
  10374. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val)
  10375. {
  10376. if (val) {
  10377. if ((val)->o[0] & 0x80) {
  10378. ASN1char16string_free(&(val)->endpointIdentifier);
  10379. }
  10380. ASN1Free_LocationRequest_destinationInfo(&(val)->destinationInfo);
  10381. if ((val)->o[0] & 0x40) {
  10382. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10383. }
  10384. ASN1Free_TransportAddress(&(val)->replyAddress);
  10385. if ((val)->o[1] & 0x80) {
  10386. ASN1Free_LocationRequest_sourceInfo(&(val)->sourceInfo);
  10387. }
  10388. if ((val)->o[1] & 0x20) {
  10389. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10390. }
  10391. if ((val)->o[1] & 0x10) {
  10392. ASN1Free_LocationRequest_tokens(&(val)->tokens);
  10393. }
  10394. if ((val)->o[1] & 0x8) {
  10395. ASN1Free_LocationRequest_cryptoTokens(&(val)->cryptoTokens);
  10396. }
  10397. if ((val)->o[1] & 0x4) {
  10398. ASN1Free_ICV(&(val)->integrityCheckValue);
  10399. }
  10400. }
  10401. }
  10402. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val)
  10403. {
  10404. ASN1octet_t o[2];
  10405. ASN1uint32_t y;
  10406. ASN1encoding_t ee;
  10407. CopyMemory(o, (val)->o, 2);
  10408. o[1] |= 0x80;
  10409. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10410. if (!ASN1PEREncBitVal(enc, 1, y))
  10411. return 0;
  10412. if (!ASN1PEREncBits(enc, 2, o))
  10413. return 0;
  10414. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10415. return 0;
  10416. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10417. return 0;
  10418. if (o[0] & 0x80) {
  10419. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10420. return 0;
  10421. }
  10422. if (o[0] & 0x40) {
  10423. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10424. return 0;
  10425. }
  10426. if (y) {
  10427. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10428. return 0;
  10429. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10430. return 0;
  10431. if (o[1] & 0x80) {
  10432. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10433. return 0;
  10434. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10435. return 0;
  10436. }
  10437. if (o[1] & 0x40) {
  10438. if (!ASN1Enc_InfoRequest_tokens(ee, &(val)->tokens))
  10439. return 0;
  10440. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10441. return 0;
  10442. }
  10443. if (o[1] & 0x20) {
  10444. if (!ASN1Enc_InfoRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10445. return 0;
  10446. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10447. return 0;
  10448. }
  10449. if (o[1] & 0x10) {
  10450. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10451. return 0;
  10452. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10453. return 0;
  10454. }
  10455. if (o[1] & 0x8) {
  10456. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  10457. return 0;
  10458. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10459. return 0;
  10460. }
  10461. ASN1_CloseEncoder2(ee);
  10462. }
  10463. return 1;
  10464. }
  10465. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val)
  10466. {
  10467. ASN1uint32_t y;
  10468. ASN1decoding_t dd;
  10469. ASN1octet_t *db;
  10470. ASN1uint32_t ds;
  10471. ASN1uint32_t i;
  10472. ASN1uint32_t e;
  10473. if (!ASN1PERDecExtensionBit(dec, &y))
  10474. return 0;
  10475. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10476. return 0;
  10477. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10478. return 0;
  10479. (val)->requestSeqNum += 1;
  10480. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10481. return 0;
  10482. if ((val)->o[0] & 0x80) {
  10483. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10484. return 0;
  10485. }
  10486. if ((val)->o[0] & 0x40) {
  10487. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10488. return 0;
  10489. }
  10490. if (!y) {
  10491. ZeroMemory((val)->o + 1, 1);
  10492. } else {
  10493. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  10494. return 0;
  10495. if ((val)->o[1] & 0x80) {
  10496. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10497. return 0;
  10498. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10499. return 0;
  10500. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10501. return 0;
  10502. ASN1_CloseDecoder(dd);
  10503. }
  10504. if ((val)->o[1] & 0x40) {
  10505. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10506. return 0;
  10507. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10508. return 0;
  10509. if (!ASN1Dec_InfoRequest_tokens(dd, &(val)->tokens))
  10510. return 0;
  10511. ASN1_CloseDecoder(dd);
  10512. }
  10513. if ((val)->o[1] & 0x20) {
  10514. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10515. return 0;
  10516. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10517. return 0;
  10518. if (!ASN1Dec_InfoRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10519. return 0;
  10520. ASN1_CloseDecoder(dd);
  10521. }
  10522. if ((val)->o[1] & 0x10) {
  10523. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10524. return 0;
  10525. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10526. return 0;
  10527. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10528. return 0;
  10529. ASN1_CloseDecoder(dd);
  10530. }
  10531. if ((val)->o[1] & 0x8) {
  10532. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10533. return 0;
  10534. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10535. return 0;
  10536. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  10537. return 0;
  10538. ASN1_CloseDecoder(dd);
  10539. }
  10540. for (i = 0; i < e; i++) {
  10541. if (!ASN1PERDecSkipFragmented(dec, 8))
  10542. return 0;
  10543. }
  10544. }
  10545. return 1;
  10546. }
  10547. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val)
  10548. {
  10549. if (val) {
  10550. if ((val)->o[0] & 0x80) {
  10551. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10552. }
  10553. if ((val)->o[0] & 0x40) {
  10554. ASN1Free_TransportAddress(&(val)->replyAddress);
  10555. }
  10556. if ((val)->o[1] & 0x80) {
  10557. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10558. }
  10559. if ((val)->o[1] & 0x40) {
  10560. ASN1Free_InfoRequest_tokens(&(val)->tokens);
  10561. }
  10562. if ((val)->o[1] & 0x20) {
  10563. ASN1Free_InfoRequest_cryptoTokens(&(val)->cryptoTokens);
  10564. }
  10565. if ((val)->o[1] & 0x10) {
  10566. ASN1Free_ICV(&(val)->integrityCheckValue);
  10567. }
  10568. }
  10569. }
  10570. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val)
  10571. {
  10572. if (!ASN1PEREncExtensionBitClear(enc))
  10573. return 0;
  10574. if (!ASN1PEREncBits(enc, 2, (val)->o))
  10575. return 0;
  10576. if ((val)->o[0] & 0x80) {
  10577. if (!ASN1Enc_TransportAddress(enc, &(val)->sendAddress))
  10578. return 0;
  10579. }
  10580. if ((val)->o[0] & 0x40) {
  10581. if (!ASN1Enc_TransportAddress(enc, &(val)->recvAddress))
  10582. return 0;
  10583. }
  10584. return 1;
  10585. }
  10586. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val)
  10587. {
  10588. ASN1uint32_t y;
  10589. if (!ASN1PERDecExtensionBit(dec, &y))
  10590. return 0;
  10591. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10592. return 0;
  10593. if ((val)->o[0] & 0x80) {
  10594. if (!ASN1Dec_TransportAddress(dec, &(val)->sendAddress))
  10595. return 0;
  10596. }
  10597. if ((val)->o[0] & 0x40) {
  10598. if (!ASN1Dec_TransportAddress(dec, &(val)->recvAddress))
  10599. return 0;
  10600. }
  10601. if (y) {
  10602. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10603. return 0;
  10604. }
  10605. return 1;
  10606. }
  10607. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val)
  10608. {
  10609. if (val) {
  10610. if ((val)->o[0] & 0x80) {
  10611. ASN1Free_TransportAddress(&(val)->sendAddress);
  10612. }
  10613. if ((val)->o[0] & 0x40) {
  10614. ASN1Free_TransportAddress(&(val)->recvAddress);
  10615. }
  10616. }
  10617. }
  10618. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val)
  10619. {
  10620. ASN1uint32_t t;
  10621. ASN1uint32_t l;
  10622. if (!ASN1PEREncExtensionBitClear(enc))
  10623. return 0;
  10624. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtpAddress))
  10625. return 0;
  10626. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtcpAddress))
  10627. return 0;
  10628. t = lstrlenA((val)->cname);
  10629. if (!ASN1PEREncFragmentedCharString(enc, t, (val)->cname, 8))
  10630. return 0;
  10631. l = ASN1uint32_uoctets((val)->ssrc - 1);
  10632. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10633. return 0;
  10634. ASN1PEREncAlignment(enc);
  10635. if (!ASN1PEREncBitVal(enc, l * 8, (val)->ssrc - 1))
  10636. return 0;
  10637. if (!ASN1PEREncBitVal(enc, 8, (val)->sessionId - 1))
  10638. return 0;
  10639. if (!ASN1Enc_RTPSession_associatedSessionIds(enc, &(val)->associatedSessionIds))
  10640. return 0;
  10641. return 1;
  10642. }
  10643. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val)
  10644. {
  10645. ASN1uint32_t y;
  10646. ASN1uint32_t l;
  10647. if (!ASN1PERDecExtensionBit(dec, &y))
  10648. return 0;
  10649. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtpAddress))
  10650. return 0;
  10651. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtcpAddress))
  10652. return 0;
  10653. if (!ASN1PERDecFragmentedZeroCharString(dec, &(val)->cname, 8))
  10654. return 0;
  10655. if (!ASN1PERDecU32Val(dec, 2, &l))
  10656. return 0;
  10657. l += 1;
  10658. ASN1PERDecAlignment(dec);
  10659. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->ssrc))
  10660. return 0;
  10661. (val)->ssrc += 1;
  10662. if (!ASN1PERDecU16Val(dec, 8, &(val)->sessionId))
  10663. return 0;
  10664. (val)->sessionId += 1;
  10665. if (!ASN1Dec_RTPSession_associatedSessionIds(dec, &(val)->associatedSessionIds))
  10666. return 0;
  10667. if (y) {
  10668. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10669. return 0;
  10670. }
  10671. return 1;
  10672. }
  10673. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val)
  10674. {
  10675. if (val) {
  10676. ASN1Free_TransportChannelInfo(&(val)->rtpAddress);
  10677. ASN1Free_TransportChannelInfo(&(val)->rtcpAddress);
  10678. ASN1ztcharstring_free((val)->cname);
  10679. ASN1Free_RTPSession_associatedSessionIds(&(val)->associatedSessionIds);
  10680. }
  10681. }
  10682. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10683. {
  10684. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10685. }
  10686. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data val)
  10687. {
  10688. if (!ASN1Enc_TransportChannelInfo(enc, &val->value))
  10689. return 0;
  10690. return 1;
  10691. }
  10692. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10693. {
  10694. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn, sizeof(**val));
  10695. }
  10696. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data val)
  10697. {
  10698. if (!ASN1Dec_TransportChannelInfo(dec, &val->value))
  10699. return 0;
  10700. return 1;
  10701. }
  10702. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val)
  10703. {
  10704. if (val) {
  10705. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10706. }
  10707. }
  10708. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(PInfoRequestResponse_perCallInfo_Seq_data val)
  10709. {
  10710. if (val) {
  10711. ASN1Free_TransportChannelInfo(&val->value);
  10712. }
  10713. }
  10714. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10715. {
  10716. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10717. }
  10718. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video val)
  10719. {
  10720. if (!ASN1Enc_RTPSession(enc, &val->value))
  10721. return 0;
  10722. return 1;
  10723. }
  10724. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10725. {
  10726. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn, sizeof(**val));
  10727. }
  10728. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video val)
  10729. {
  10730. if (!ASN1Dec_RTPSession(dec, &val->value))
  10731. return 0;
  10732. return 1;
  10733. }
  10734. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val)
  10735. {
  10736. if (val) {
  10737. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10738. }
  10739. }
  10740. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(PInfoRequestResponse_perCallInfo_Seq_video val)
  10741. {
  10742. if (val) {
  10743. ASN1Free_RTPSession(&val->value);
  10744. }
  10745. }
  10746. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10747. {
  10748. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10749. }
  10750. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10751. {
  10752. if (!ASN1Enc_RTPSession(enc, &val->value))
  10753. return 0;
  10754. return 1;
  10755. }
  10756. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10757. {
  10758. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn, sizeof(**val));
  10759. }
  10760. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10761. {
  10762. if (!ASN1Dec_RTPSession(dec, &val->value))
  10763. return 0;
  10764. return 1;
  10765. }
  10766. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10767. {
  10768. if (val) {
  10769. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10770. }
  10771. }
  10772. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(PInfoRequestResponse_perCallInfo_Seq_audio val)
  10773. {
  10774. if (val) {
  10775. ASN1Free_RTPSession(&val->value);
  10776. }
  10777. }
  10778. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val)
  10779. {
  10780. ASN1octet_t o[2];
  10781. ASN1uint32_t y;
  10782. ASN1uint32_t l;
  10783. ASN1encoding_t ee;
  10784. CopyMemory(o, (val)->o, 2);
  10785. o[1] |= 0x80;
  10786. o[1] |= 0x10;
  10787. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10788. if (!ASN1PEREncBitVal(enc, 1, y))
  10789. return 0;
  10790. if (!ASN1PEREncBits(enc, 5, o))
  10791. return 0;
  10792. if (o[0] & 0x80) {
  10793. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10794. return 0;
  10795. }
  10796. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10797. return 0;
  10798. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10799. return 0;
  10800. if (o[0] & 0x40) {
  10801. if (!ASN1PEREncBoolean(enc, (val)->originator))
  10802. return 0;
  10803. }
  10804. if (o[0] & 0x20) {
  10805. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(enc, &(val)->audio))
  10806. return 0;
  10807. }
  10808. if (o[0] & 0x10) {
  10809. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(enc, &(val)->video))
  10810. return 0;
  10811. }
  10812. if (o[0] & 0x8) {
  10813. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(enc, &(val)->data))
  10814. return 0;
  10815. }
  10816. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->h245))
  10817. return 0;
  10818. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->callSignaling))
  10819. return 0;
  10820. if (!ASN1Enc_CallType(enc, &(val)->callType))
  10821. return 0;
  10822. l = ASN1uint32_uoctets((val)->bandWidth);
  10823. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10824. return 0;
  10825. ASN1PEREncAlignment(enc);
  10826. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  10827. return 0;
  10828. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  10829. return 0;
  10830. if (y) {
  10831. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10832. return 0;
  10833. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10834. return 0;
  10835. if (o[1] & 0x80) {
  10836. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10837. return 0;
  10838. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10839. return 0;
  10840. }
  10841. if (o[1] & 0x40) {
  10842. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ee, &(val)->tokens))
  10843. return 0;
  10844. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10845. return 0;
  10846. }
  10847. if (o[1] & 0x20) {
  10848. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ee, &(val)->cryptoTokens))
  10849. return 0;
  10850. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10851. return 0;
  10852. }
  10853. if (o[1] & 0x10) {
  10854. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ee, &(val)->substituteConfIDs))
  10855. return 0;
  10856. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10857. return 0;
  10858. }
  10859. if (o[1] & 0x8) {
  10860. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ee, &(val)->pdu))
  10861. return 0;
  10862. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10863. return 0;
  10864. }
  10865. ASN1_CloseEncoder2(ee);
  10866. }
  10867. return 1;
  10868. }
  10869. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val)
  10870. {
  10871. ASN1uint32_t y;
  10872. ASN1uint32_t l;
  10873. ASN1decoding_t dd;
  10874. ASN1octet_t *db;
  10875. ASN1uint32_t ds;
  10876. ASN1uint32_t i;
  10877. ASN1uint32_t e;
  10878. if (!ASN1PERDecExtensionBit(dec, &y))
  10879. return 0;
  10880. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  10881. return 0;
  10882. if ((val)->o[0] & 0x80) {
  10883. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10884. return 0;
  10885. }
  10886. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10887. return 0;
  10888. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10889. return 0;
  10890. if ((val)->o[0] & 0x40) {
  10891. if (!ASN1PERDecBoolean(dec, &(val)->originator))
  10892. return 0;
  10893. }
  10894. if ((val)->o[0] & 0x20) {
  10895. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(dec, &(val)->audio))
  10896. return 0;
  10897. }
  10898. if ((val)->o[0] & 0x10) {
  10899. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(dec, &(val)->video))
  10900. return 0;
  10901. }
  10902. if ((val)->o[0] & 0x8) {
  10903. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(dec, &(val)->data))
  10904. return 0;
  10905. }
  10906. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->h245))
  10907. return 0;
  10908. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->callSignaling))
  10909. return 0;
  10910. if (!ASN1Dec_CallType(dec, &(val)->callType))
  10911. return 0;
  10912. if (!ASN1PERDecU32Val(dec, 2, &l))
  10913. return 0;
  10914. l += 1;
  10915. ASN1PERDecAlignment(dec);
  10916. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10917. return 0;
  10918. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  10919. return 0;
  10920. if (!y) {
  10921. ZeroMemory((val)->o + 1, 1);
  10922. } else {
  10923. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  10924. return 0;
  10925. if ((val)->o[1] & 0x80) {
  10926. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10927. return 0;
  10928. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10929. return 0;
  10930. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10931. return 0;
  10932. ASN1_CloseDecoder(dd);
  10933. }
  10934. if ((val)->o[1] & 0x40) {
  10935. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10936. return 0;
  10937. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10938. return 0;
  10939. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(dd, &(val)->tokens))
  10940. return 0;
  10941. ASN1_CloseDecoder(dd);
  10942. }
  10943. if ((val)->o[1] & 0x20) {
  10944. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10945. return 0;
  10946. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10947. return 0;
  10948. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(dd, &(val)->cryptoTokens))
  10949. return 0;
  10950. ASN1_CloseDecoder(dd);
  10951. }
  10952. if ((val)->o[1] & 0x10) {
  10953. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10954. return 0;
  10955. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10956. return 0;
  10957. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(dd, &(val)->substituteConfIDs))
  10958. return 0;
  10959. ASN1_CloseDecoder(dd);
  10960. }
  10961. if ((val)->o[1] & 0x8) {
  10962. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10963. return 0;
  10964. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  10965. return 0;
  10966. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(dd, &(val)->pdu))
  10967. return 0;
  10968. ASN1_CloseDecoder(dd);
  10969. }
  10970. for (i = 0; i < e; i++) {
  10971. if (!ASN1PERDecSkipFragmented(dec, 8))
  10972. return 0;
  10973. }
  10974. }
  10975. return 1;
  10976. }
  10977. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val)
  10978. {
  10979. if (val) {
  10980. if ((val)->o[0] & 0x80) {
  10981. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10982. }
  10983. if ((val)->o[0] & 0x20) {
  10984. ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(&(val)->audio);
  10985. }
  10986. if ((val)->o[0] & 0x10) {
  10987. ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(&(val)->video);
  10988. }
  10989. if ((val)->o[0] & 0x8) {
  10990. ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(&(val)->data);
  10991. }
  10992. ASN1Free_TransportChannelInfo(&(val)->h245);
  10993. ASN1Free_TransportChannelInfo(&(val)->callSignaling);
  10994. if ((val)->o[1] & 0x80) {
  10995. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10996. }
  10997. if ((val)->o[1] & 0x40) {
  10998. ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(&(val)->tokens);
  10999. }
  11000. if ((val)->o[1] & 0x20) {
  11001. ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(&(val)->cryptoTokens);
  11002. }
  11003. if ((val)->o[1] & 0x10) {
  11004. ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(&(val)->substituteConfIDs);
  11005. }
  11006. if ((val)->o[1] & 0x8) {
  11007. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(&(val)->pdu);
  11008. }
  11009. }
  11010. }
  11011. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val)
  11012. {
  11013. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn);
  11014. }
  11015. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo val)
  11016. {
  11017. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq(enc, &val->value))
  11018. return 0;
  11019. return 1;
  11020. }
  11021. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val)
  11022. {
  11023. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn, sizeof(**val));
  11024. }
  11025. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo val)
  11026. {
  11027. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq(dec, &val->value))
  11028. return 0;
  11029. return 1;
  11030. }
  11031. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val)
  11032. {
  11033. if (val) {
  11034. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_ElmFn);
  11035. }
  11036. }
  11037. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_ElmFn(PInfoRequestResponse_perCallInfo val)
  11038. {
  11039. if (val) {
  11040. ASN1Free_InfoRequestResponse_perCallInfo_Seq(&val->value);
  11041. }
  11042. }
  11043. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val)
  11044. {
  11045. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn);
  11046. }
  11047. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress val)
  11048. {
  11049. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11050. return 0;
  11051. return 1;
  11052. }
  11053. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val)
  11054. {
  11055. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn, sizeof(**val));
  11056. }
  11057. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress val)
  11058. {
  11059. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11060. return 0;
  11061. return 1;
  11062. }
  11063. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val)
  11064. {
  11065. if (val) {
  11066. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn);
  11067. }
  11068. }
  11069. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn(PInfoRequestResponse_callSignalAddress val)
  11070. {
  11071. if (val) {
  11072. ASN1Free_TransportAddress(&val->value);
  11073. }
  11074. }
  11075. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val)
  11076. {
  11077. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_callSignalAddress_ElmFn);
  11078. }
  11079. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress_ElmFn(ASN1encoding_t enc, PAdmissionReject_callSignalAddress val)
  11080. {
  11081. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11082. return 0;
  11083. return 1;
  11084. }
  11085. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val)
  11086. {
  11087. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_callSignalAddress_ElmFn, sizeof(**val));
  11088. }
  11089. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress_ElmFn(ASN1decoding_t dec, PAdmissionReject_callSignalAddress val)
  11090. {
  11091. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11092. return 0;
  11093. return 1;
  11094. }
  11095. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val)
  11096. {
  11097. if (val) {
  11098. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_callSignalAddress_ElmFn);
  11099. }
  11100. }
  11101. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress_ElmFn(PAdmissionReject_callSignalAddress val)
  11102. {
  11103. if (val) {
  11104. ASN1Free_TransportAddress(&val->value);
  11105. }
  11106. }
  11107. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val)
  11108. {
  11109. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn);
  11110. }
  11111. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress val)
  11112. {
  11113. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11114. return 0;
  11115. return 1;
  11116. }
  11117. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val)
  11118. {
  11119. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11120. }
  11121. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress val)
  11122. {
  11123. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11124. return 0;
  11125. return 1;
  11126. }
  11127. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val)
  11128. {
  11129. if (val) {
  11130. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn);
  11131. }
  11132. }
  11133. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn(PUnregistrationRequest_callSignalAddress val)
  11134. {
  11135. if (val) {
  11136. ASN1Free_TransportAddress(&val->value);
  11137. }
  11138. }
  11139. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val)
  11140. {
  11141. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11142. }
  11143. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper val)
  11144. {
  11145. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11146. return 0;
  11147. return 1;
  11148. }
  11149. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val)
  11150. {
  11151. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11152. }
  11153. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper val)
  11154. {
  11155. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11156. return 0;
  11157. return 1;
  11158. }
  11159. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val)
  11160. {
  11161. if (val) {
  11162. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11163. }
  11164. }
  11165. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn(PRegistrationConfirm_alternateGatekeeper val)
  11166. {
  11167. if (val) {
  11168. ASN1Free_AlternateGK(&val->value);
  11169. }
  11170. }
  11171. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val)
  11172. {
  11173. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn);
  11174. }
  11175. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress val)
  11176. {
  11177. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11178. return 0;
  11179. return 1;
  11180. }
  11181. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val)
  11182. {
  11183. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn, sizeof(**val));
  11184. }
  11185. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress val)
  11186. {
  11187. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11188. return 0;
  11189. return 1;
  11190. }
  11191. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val)
  11192. {
  11193. if (val) {
  11194. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn);
  11195. }
  11196. }
  11197. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn(PRegistrationConfirm_callSignalAddress val)
  11198. {
  11199. if (val) {
  11200. ASN1Free_TransportAddress(&val->value);
  11201. }
  11202. }
  11203. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val)
  11204. {
  11205. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_rasAddress_ElmFn);
  11206. }
  11207. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_rasAddress val)
  11208. {
  11209. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11210. return 0;
  11211. return 1;
  11212. }
  11213. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val)
  11214. {
  11215. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_rasAddress_ElmFn, sizeof(**val));
  11216. }
  11217. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_rasAddress val)
  11218. {
  11219. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11220. return 0;
  11221. return 1;
  11222. }
  11223. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val)
  11224. {
  11225. if (val) {
  11226. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_rasAddress_ElmFn);
  11227. }
  11228. }
  11229. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress_ElmFn(PRegistrationRequest_rasAddress val)
  11230. {
  11231. if (val) {
  11232. ASN1Free_TransportAddress(&val->value);
  11233. }
  11234. }
  11235. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val)
  11236. {
  11237. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn);
  11238. }
  11239. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress val)
  11240. {
  11241. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11242. return 0;
  11243. return 1;
  11244. }
  11245. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val)
  11246. {
  11247. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11248. }
  11249. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress val)
  11250. {
  11251. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11252. return 0;
  11253. return 1;
  11254. }
  11255. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val)
  11256. {
  11257. if (val) {
  11258. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_callSignalAddress_ElmFn);
  11259. }
  11260. }
  11261. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress_ElmFn(PRegistrationRequest_callSignalAddress val)
  11262. {
  11263. if (val) {
  11264. ASN1Free_TransportAddress(&val->value);
  11265. }
  11266. }
  11267. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val)
  11268. {
  11269. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11270. }
  11271. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper val)
  11272. {
  11273. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11274. return 0;
  11275. return 1;
  11276. }
  11277. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val)
  11278. {
  11279. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11280. }
  11281. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper val)
  11282. {
  11283. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11284. return 0;
  11285. return 1;
  11286. }
  11287. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val)
  11288. {
  11289. if (val) {
  11290. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11291. }
  11292. }
  11293. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn(PGatekeeperConfirm_alternateGatekeeper val)
  11294. {
  11295. if (val) {
  11296. ASN1Free_AlternateGK(&val->value);
  11297. }
  11298. }
  11299. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val)
  11300. {
  11301. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn);
  11302. }
  11303. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper val)
  11304. {
  11305. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11306. return 0;
  11307. return 1;
  11308. }
  11309. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val)
  11310. {
  11311. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn, sizeof(**val));
  11312. }
  11313. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper val)
  11314. {
  11315. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11316. return 0;
  11317. return 1;
  11318. }
  11319. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val)
  11320. {
  11321. if (val) {
  11322. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn);
  11323. }
  11324. }
  11325. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn(PAltGKInfo_alternateGatekeeper val)
  11326. {
  11327. if (val) {
  11328. ASN1Free_AlternateGK(&val->value);
  11329. }
  11330. }
  11331. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val)
  11332. {
  11333. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_rasAddress_ElmFn);
  11334. }
  11335. static int ASN1CALL ASN1Enc_Endpoint_rasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_rasAddress val)
  11336. {
  11337. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11338. return 0;
  11339. return 1;
  11340. }
  11341. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val)
  11342. {
  11343. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_rasAddress_ElmFn, sizeof(**val));
  11344. }
  11345. static int ASN1CALL ASN1Dec_Endpoint_rasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_rasAddress val)
  11346. {
  11347. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11348. return 0;
  11349. return 1;
  11350. }
  11351. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val)
  11352. {
  11353. if (val) {
  11354. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_rasAddress_ElmFn);
  11355. }
  11356. }
  11357. static void ASN1CALL ASN1Free_Endpoint_rasAddress_ElmFn(PEndpoint_rasAddress val)
  11358. {
  11359. if (val) {
  11360. ASN1Free_TransportAddress(&val->value);
  11361. }
  11362. }
  11363. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val)
  11364. {
  11365. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_callSignalAddress_ElmFn);
  11366. }
  11367. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress_ElmFn(ASN1encoding_t enc, PEndpoint_callSignalAddress val)
  11368. {
  11369. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11370. return 0;
  11371. return 1;
  11372. }
  11373. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val)
  11374. {
  11375. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_callSignalAddress_ElmFn, sizeof(**val));
  11376. }
  11377. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress_ElmFn(ASN1decoding_t dec, PEndpoint_callSignalAddress val)
  11378. {
  11379. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11380. return 0;
  11381. return 1;
  11382. }
  11383. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val)
  11384. {
  11385. if (val) {
  11386. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_callSignalAddress_ElmFn);
  11387. }
  11388. }
  11389. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress_ElmFn(PEndpoint_callSignalAddress val)
  11390. {
  11391. if (val) {
  11392. ASN1Free_TransportAddress(&val->value);
  11393. }
  11394. }
  11395. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val)
  11396. {
  11397. if (!ASN1PEREncExtensionBitClear(enc))
  11398. return 0;
  11399. if (!ASN1PEREncBits(enc, 6, (val)->o))
  11400. return 0;
  11401. if ((val)->o[0] & 0x80) {
  11402. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11403. return 0;
  11404. }
  11405. if ((val)->o[0] & 0x40) {
  11406. if (!ASN1Enc_VendorIdentifier(enc, &(val)->vendor))
  11407. return 0;
  11408. }
  11409. if ((val)->o[0] & 0x20) {
  11410. if (!ASN1Enc_GatekeeperInfo(enc, &(val)->gatekeeper))
  11411. return 0;
  11412. }
  11413. if ((val)->o[0] & 0x10) {
  11414. if (!ASN1Enc_GatewayInfo(enc, &(val)->gateway))
  11415. return 0;
  11416. }
  11417. if ((val)->o[0] & 0x8) {
  11418. if (!ASN1Enc_McuInfo(enc, &(val)->mcu))
  11419. return 0;
  11420. }
  11421. if ((val)->o[0] & 0x4) {
  11422. if (!ASN1Enc_TerminalInfo(enc, &(val)->terminal))
  11423. return 0;
  11424. }
  11425. if (!ASN1PEREncBoolean(enc, (val)->mc))
  11426. return 0;
  11427. if (!ASN1PEREncBoolean(enc, (val)->undefinedNode))
  11428. return 0;
  11429. return 1;
  11430. }
  11431. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val)
  11432. {
  11433. ASN1uint32_t y;
  11434. if (!ASN1PERDecExtensionBit(dec, &y))
  11435. return 0;
  11436. if (!ASN1PERDecExtension(dec, 6, (val)->o))
  11437. return 0;
  11438. if ((val)->o[0] & 0x80) {
  11439. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11440. return 0;
  11441. }
  11442. if ((val)->o[0] & 0x40) {
  11443. if (!ASN1Dec_VendorIdentifier(dec, &(val)->vendor))
  11444. return 0;
  11445. }
  11446. if ((val)->o[0] & 0x20) {
  11447. if (!ASN1Dec_GatekeeperInfo(dec, &(val)->gatekeeper))
  11448. return 0;
  11449. }
  11450. if ((val)->o[0] & 0x10) {
  11451. if (!ASN1Dec_GatewayInfo(dec, &(val)->gateway))
  11452. return 0;
  11453. }
  11454. if ((val)->o[0] & 0x8) {
  11455. if (!ASN1Dec_McuInfo(dec, &(val)->mcu))
  11456. return 0;
  11457. }
  11458. if ((val)->o[0] & 0x4) {
  11459. if (!ASN1Dec_TerminalInfo(dec, &(val)->terminal))
  11460. return 0;
  11461. }
  11462. if (!ASN1PERDecBoolean(dec, &(val)->mc))
  11463. return 0;
  11464. if (!ASN1PERDecBoolean(dec, &(val)->undefinedNode))
  11465. return 0;
  11466. if (y) {
  11467. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  11468. return 0;
  11469. }
  11470. return 1;
  11471. }
  11472. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val)
  11473. {
  11474. if (val) {
  11475. if ((val)->o[0] & 0x80) {
  11476. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11477. }
  11478. if ((val)->o[0] & 0x40) {
  11479. ASN1Free_VendorIdentifier(&(val)->vendor);
  11480. }
  11481. if ((val)->o[0] & 0x20) {
  11482. ASN1Free_GatekeeperInfo(&(val)->gatekeeper);
  11483. }
  11484. if ((val)->o[0] & 0x10) {
  11485. ASN1Free_GatewayInfo(&(val)->gateway);
  11486. }
  11487. if ((val)->o[0] & 0x8) {
  11488. ASN1Free_McuInfo(&(val)->mcu);
  11489. }
  11490. if ((val)->o[0] & 0x4) {
  11491. ASN1Free_TerminalInfo(&(val)->terminal);
  11492. }
  11493. }
  11494. }
  11495. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val)
  11496. {
  11497. ASN1encoding_t ee;
  11498. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 9))
  11499. return 0;
  11500. switch ((val)->choice) {
  11501. case 1:
  11502. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardData))
  11503. return 0;
  11504. break;
  11505. case 2:
  11506. if (!ASN1Enc_H310Caps(enc, &(val)->u.h310))
  11507. return 0;
  11508. break;
  11509. case 3:
  11510. if (!ASN1Enc_H320Caps(enc, &(val)->u.h320))
  11511. return 0;
  11512. break;
  11513. case 4:
  11514. if (!ASN1Enc_H321Caps(enc, &(val)->u.h321))
  11515. return 0;
  11516. break;
  11517. case 5:
  11518. if (!ASN1Enc_H322Caps(enc, &(val)->u.h322))
  11519. return 0;
  11520. break;
  11521. case 6:
  11522. if (!ASN1Enc_H323Caps(enc, &(val)->u.h323))
  11523. return 0;
  11524. break;
  11525. case 7:
  11526. if (!ASN1Enc_H324Caps(enc, &(val)->u.h324))
  11527. return 0;
  11528. break;
  11529. case 8:
  11530. if (!ASN1Enc_VoiceCaps(enc, &(val)->u.voice))
  11531. return 0;
  11532. break;
  11533. case 9:
  11534. if (!ASN1Enc_T120OnlyCaps(enc, &(val)->u.t120_only))
  11535. return 0;
  11536. break;
  11537. case 10:
  11538. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11539. return 0;
  11540. if (!ASN1Enc_NonStandardProtocol(ee, &(val)->u.nonStandardProtocol))
  11541. return 0;
  11542. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11543. return 0;
  11544. ASN1_CloseEncoder2(ee);
  11545. break;
  11546. default:
  11547. /* impossible */
  11548. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11549. return 0;
  11550. }
  11551. return 1;
  11552. }
  11553. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val)
  11554. {
  11555. ASN1decoding_t dd;
  11556. ASN1octet_t *db;
  11557. ASN1uint32_t ds;
  11558. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 4, 9))
  11559. return 0;
  11560. switch ((val)->choice) {
  11561. case 1:
  11562. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardData))
  11563. return 0;
  11564. break;
  11565. case 2:
  11566. if (!ASN1Dec_H310Caps(dec, &(val)->u.h310))
  11567. return 0;
  11568. break;
  11569. case 3:
  11570. if (!ASN1Dec_H320Caps(dec, &(val)->u.h320))
  11571. return 0;
  11572. break;
  11573. case 4:
  11574. if (!ASN1Dec_H321Caps(dec, &(val)->u.h321))
  11575. return 0;
  11576. break;
  11577. case 5:
  11578. if (!ASN1Dec_H322Caps(dec, &(val)->u.h322))
  11579. return 0;
  11580. break;
  11581. case 6:
  11582. if (!ASN1Dec_H323Caps(dec, &(val)->u.h323))
  11583. return 0;
  11584. break;
  11585. case 7:
  11586. if (!ASN1Dec_H324Caps(dec, &(val)->u.h324))
  11587. return 0;
  11588. break;
  11589. case 8:
  11590. if (!ASN1Dec_VoiceCaps(dec, &(val)->u.voice))
  11591. return 0;
  11592. break;
  11593. case 9:
  11594. if (!ASN1Dec_T120OnlyCaps(dec, &(val)->u.t120_only))
  11595. return 0;
  11596. break;
  11597. case 10:
  11598. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11599. return 0;
  11600. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  11601. return 0;
  11602. if (!ASN1Dec_NonStandardProtocol(dd, &(val)->u.nonStandardProtocol))
  11603. return 0;
  11604. ASN1_CloseDecoder(dd);
  11605. break;
  11606. case 0:
  11607. /* extension case */
  11608. if (!ASN1PERDecSkipFragmented(dec, 8))
  11609. return 0;
  11610. break;
  11611. default:
  11612. /* impossible */
  11613. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11614. return 0;
  11615. }
  11616. return 1;
  11617. }
  11618. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val)
  11619. {
  11620. if (val) {
  11621. switch ((val)->choice) {
  11622. case 1:
  11623. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardData);
  11624. break;
  11625. case 2:
  11626. ASN1Free_H310Caps(&(val)->u.h310);
  11627. break;
  11628. case 3:
  11629. ASN1Free_H320Caps(&(val)->u.h320);
  11630. break;
  11631. case 4:
  11632. ASN1Free_H321Caps(&(val)->u.h321);
  11633. break;
  11634. case 5:
  11635. ASN1Free_H322Caps(&(val)->u.h322);
  11636. break;
  11637. case 6:
  11638. ASN1Free_H323Caps(&(val)->u.h323);
  11639. break;
  11640. case 7:
  11641. ASN1Free_H324Caps(&(val)->u.h324);
  11642. break;
  11643. case 8:
  11644. ASN1Free_VoiceCaps(&(val)->u.voice);
  11645. break;
  11646. case 9:
  11647. ASN1Free_T120OnlyCaps(&(val)->u.t120_only);
  11648. break;
  11649. case 10:
  11650. ASN1Free_NonStandardProtocol(&(val)->u.nonStandardProtocol);
  11651. break;
  11652. }
  11653. }
  11654. }
  11655. static ASN1stringtableentry_t AliasAddress_e164_StringTableEntries[] = {
  11656. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  11657. { 48, 57, 3 },
  11658. };
  11659. static ASN1stringtable_t AliasAddress_e164_StringTable = {
  11660. 4, AliasAddress_e164_StringTableEntries
  11661. };
  11662. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val)
  11663. {
  11664. ASN1uint32_t t;
  11665. ASN1encoding_t ee;
  11666. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  11667. return 0;
  11668. switch ((val)->choice) {
  11669. case 1:
  11670. t = lstrlenA((val)->u.e164);
  11671. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  11672. return 0;
  11673. ASN1PEREncAlignment(enc);
  11674. if (!ASN1PEREncTableCharString(enc, t, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11675. return 0;
  11676. break;
  11677. case 2:
  11678. ASN1PEREncAlignment(enc);
  11679. if (!ASN1PEREncBitVal(enc, 8, ((val)->u.h323_ID).length - 1))
  11680. return 0;
  11681. if (!ASN1PEREncChar16String(enc, ((val)->u.h323_ID).length, ((val)->u.h323_ID).value, 16))
  11682. return 0;
  11683. break;
  11684. case 3:
  11685. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11686. return 0;
  11687. t = lstrlenA((val)->u.url_ID);
  11688. ASN1PEREncAlignment(ee);
  11689. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11690. return 0;
  11691. if (!ASN1PEREncCharString(ee, t, (val)->u.url_ID, 8))
  11692. return 0;
  11693. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11694. return 0;
  11695. ASN1_CloseEncoder2(ee);
  11696. break;
  11697. case 4:
  11698. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11699. return 0;
  11700. if (!ASN1Enc_TransportAddress(ee, &(val)->u.transportID))
  11701. return 0;
  11702. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11703. return 0;
  11704. ASN1_CloseEncoder2(ee);
  11705. break;
  11706. case 5:
  11707. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11708. return 0;
  11709. t = lstrlenA((val)->u.email_ID);
  11710. ASN1PEREncAlignment(ee);
  11711. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11712. return 0;
  11713. if (!ASN1PEREncCharString(ee, t, (val)->u.email_ID, 8))
  11714. return 0;
  11715. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11716. return 0;
  11717. ASN1_CloseEncoder2(ee);
  11718. break;
  11719. case 6:
  11720. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11721. return 0;
  11722. if (!ASN1Enc_PartyNumber(ee, &(val)->u.partyNumber))
  11723. return 0;
  11724. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11725. return 0;
  11726. ASN1_CloseEncoder2(ee);
  11727. break;
  11728. default:
  11729. /* impossible */
  11730. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11731. return 0;
  11732. }
  11733. return 1;
  11734. }
  11735. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val)
  11736. {
  11737. ASN1uint32_t l;
  11738. ASN1decoding_t dd;
  11739. ASN1octet_t *db;
  11740. ASN1uint32_t ds;
  11741. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  11742. return 0;
  11743. switch ((val)->choice) {
  11744. case 1:
  11745. if (!ASN1PERDecU32Val(dec, 7, &l))
  11746. return 0;
  11747. l += 1;
  11748. ASN1PERDecAlignment(dec);
  11749. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11750. return 0;
  11751. break;
  11752. case 2:
  11753. ASN1PERDecAlignment(dec);
  11754. if (!ASN1PERDecU32Val(dec, 8, &((val)->u.h323_ID).length))
  11755. return 0;
  11756. ((val)->u.h323_ID).length += 1;
  11757. if (!ASN1PERDecChar16String(dec, ((val)->u.h323_ID).length, &((val)->u.h323_ID).value, 16))
  11758. return 0;
  11759. break;
  11760. case 3:
  11761. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11762. return 0;
  11763. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  11764. return 0;
  11765. ASN1PERDecAlignment(dd);
  11766. if (!ASN1PERDecU32Val(dd, 16, &l))
  11767. return 0;
  11768. l += 1;
  11769. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.url_ID, 8))
  11770. return 0;
  11771. ASN1_CloseDecoder(dd);
  11772. break;
  11773. case 4:
  11774. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11775. return 0;
  11776. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  11777. return 0;
  11778. if (!ASN1Dec_TransportAddress(dd, &(val)->u.transportID))
  11779. return 0;
  11780. ASN1_CloseDecoder(dd);
  11781. break;
  11782. case 5:
  11783. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11784. return 0;
  11785. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  11786. return 0;
  11787. ASN1PERDecAlignment(dd);
  11788. if (!ASN1PERDecU32Val(dd, 16, &l))
  11789. return 0;
  11790. l += 1;
  11791. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.email_ID, 8))
  11792. return 0;
  11793. ASN1_CloseDecoder(dd);
  11794. break;
  11795. case 6:
  11796. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11797. return 0;
  11798. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  11799. return 0;
  11800. if (!ASN1Dec_PartyNumber(dd, &(val)->u.partyNumber))
  11801. return 0;
  11802. ASN1_CloseDecoder(dd);
  11803. break;
  11804. case 0:
  11805. /* extension case */
  11806. if (!ASN1PERDecSkipFragmented(dec, 8))
  11807. return 0;
  11808. break;
  11809. default:
  11810. /* impossible */
  11811. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11812. return 0;
  11813. }
  11814. return 1;
  11815. }
  11816. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val)
  11817. {
  11818. if (val) {
  11819. switch ((val)->choice) {
  11820. case 1:
  11821. break;
  11822. case 2:
  11823. ASN1char16string_free(&(val)->u.h323_ID);
  11824. break;
  11825. case 3:
  11826. break;
  11827. case 4:
  11828. ASN1Free_TransportAddress(&(val)->u.transportID);
  11829. break;
  11830. case 5:
  11831. break;
  11832. case 6:
  11833. ASN1Free_PartyNumber(&(val)->u.partyNumber);
  11834. break;
  11835. }
  11836. }
  11837. }
  11838. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val)
  11839. {
  11840. if (!ASN1PEREncExtensionBitClear(enc))
  11841. return 0;
  11842. if (!ASN1PEREncBits(enc, 10, (val)->o))
  11843. return 0;
  11844. if ((val)->o[0] & 0x80) {
  11845. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11846. return 0;
  11847. }
  11848. if ((val)->o[0] & 0x40) {
  11849. if (!ASN1Enc_Endpoint_aliasAddress(enc, &(val)->aliasAddress))
  11850. return 0;
  11851. }
  11852. if ((val)->o[0] & 0x20) {
  11853. if (!ASN1Enc_Endpoint_callSignalAddress(enc, &(val)->callSignalAddress))
  11854. return 0;
  11855. }
  11856. if ((val)->o[0] & 0x10) {
  11857. if (!ASN1Enc_Endpoint_rasAddress(enc, &(val)->rasAddress))
  11858. return 0;
  11859. }
  11860. if ((val)->o[0] & 0x8) {
  11861. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  11862. return 0;
  11863. }
  11864. if ((val)->o[0] & 0x4) {
  11865. if (!ASN1Enc_Endpoint_tokens(enc, &(val)->tokens))
  11866. return 0;
  11867. }
  11868. if ((val)->o[0] & 0x2) {
  11869. if (!ASN1Enc_Endpoint_cryptoTokens(enc, &(val)->cryptoTokens))
  11870. return 0;
  11871. }
  11872. if ((val)->o[0] & 0x1) {
  11873. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  11874. return 0;
  11875. }
  11876. if ((val)->o[1] & 0x80) {
  11877. if (!ASN1Enc_Endpoint_remoteExtensionAddress(enc, &(val)->remoteExtensionAddress))
  11878. return 0;
  11879. }
  11880. if ((val)->o[1] & 0x40) {
  11881. if (!ASN1Enc_Endpoint_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  11882. return 0;
  11883. }
  11884. return 1;
  11885. }
  11886. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val)
  11887. {
  11888. ASN1uint32_t y;
  11889. if (!ASN1PERDecExtensionBit(dec, &y))
  11890. return 0;
  11891. if (!ASN1PERDecExtension(dec, 10, (val)->o))
  11892. return 0;
  11893. if ((val)->o[0] & 0x80) {
  11894. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11895. return 0;
  11896. }
  11897. if ((val)->o[0] & 0x40) {
  11898. if (!ASN1Dec_Endpoint_aliasAddress(dec, &(val)->aliasAddress))
  11899. return 0;
  11900. }
  11901. if ((val)->o[0] & 0x20) {
  11902. if (!ASN1Dec_Endpoint_callSignalAddress(dec, &(val)->callSignalAddress))
  11903. return 0;
  11904. }
  11905. if ((val)->o[0] & 0x10) {
  11906. if (!ASN1Dec_Endpoint_rasAddress(dec, &(val)->rasAddress))
  11907. return 0;
  11908. }
  11909. if ((val)->o[0] & 0x8) {
  11910. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  11911. return 0;
  11912. }
  11913. if ((val)->o[0] & 0x4) {
  11914. if (!ASN1Dec_Endpoint_tokens(dec, &(val)->tokens))
  11915. return 0;
  11916. }
  11917. if ((val)->o[0] & 0x2) {
  11918. if (!ASN1Dec_Endpoint_cryptoTokens(dec, &(val)->cryptoTokens))
  11919. return 0;
  11920. }
  11921. if ((val)->o[0] & 0x1) {
  11922. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  11923. return 0;
  11924. }
  11925. if ((val)->o[1] & 0x80) {
  11926. if (!ASN1Dec_Endpoint_remoteExtensionAddress(dec, &(val)->remoteExtensionAddress))
  11927. return 0;
  11928. }
  11929. if ((val)->o[1] & 0x40) {
  11930. if (!ASN1Dec_Endpoint_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  11931. return 0;
  11932. }
  11933. if (y) {
  11934. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  11935. return 0;
  11936. }
  11937. return 1;
  11938. }
  11939. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val)
  11940. {
  11941. if (val) {
  11942. if ((val)->o[0] & 0x80) {
  11943. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11944. }
  11945. if ((val)->o[0] & 0x40) {
  11946. ASN1Free_Endpoint_aliasAddress(&(val)->aliasAddress);
  11947. }
  11948. if ((val)->o[0] & 0x20) {
  11949. ASN1Free_Endpoint_callSignalAddress(&(val)->callSignalAddress);
  11950. }
  11951. if ((val)->o[0] & 0x10) {
  11952. ASN1Free_Endpoint_rasAddress(&(val)->rasAddress);
  11953. }
  11954. if ((val)->o[0] & 0x8) {
  11955. ASN1Free_EndpointType(&(val)->endpointType);
  11956. }
  11957. if ((val)->o[0] & 0x4) {
  11958. ASN1Free_Endpoint_tokens(&(val)->tokens);
  11959. }
  11960. if ((val)->o[0] & 0x2) {
  11961. ASN1Free_Endpoint_cryptoTokens(&(val)->cryptoTokens);
  11962. }
  11963. if ((val)->o[1] & 0x80) {
  11964. ASN1Free_Endpoint_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  11965. }
  11966. if ((val)->o[1] & 0x40) {
  11967. ASN1Free_Endpoint_destExtraCallInfo(&(val)->destExtraCallInfo);
  11968. }
  11969. }
  11970. }
  11971. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val)
  11972. {
  11973. if (!ASN1PEREncExtensionBitClear(enc))
  11974. return 0;
  11975. if (!ASN1PEREncBits(enc, 1, (val)->o))
  11976. return 0;
  11977. if ((val)->o[0] & 0x80) {
  11978. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11979. return 0;
  11980. }
  11981. if (!ASN1Enc_AliasAddress(enc, &(val)->prefix))
  11982. return 0;
  11983. return 1;
  11984. }
  11985. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val)
  11986. {
  11987. ASN1uint32_t y;
  11988. if (!ASN1PERDecExtensionBit(dec, &y))
  11989. return 0;
  11990. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  11991. return 0;
  11992. if ((val)->o[0] & 0x80) {
  11993. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11994. return 0;
  11995. }
  11996. if (!ASN1Dec_AliasAddress(dec, &(val)->prefix))
  11997. return 0;
  11998. if (y) {
  11999. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12000. return 0;
  12001. }
  12002. return 1;
  12003. }
  12004. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val)
  12005. {
  12006. if (val) {
  12007. if ((val)->o[0] & 0x80) {
  12008. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12009. }
  12010. ASN1Free_AliasAddress(&(val)->prefix);
  12011. }
  12012. }
  12013. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val)
  12014. {
  12015. ASN1uint32_t y;
  12016. ASN1encoding_t ee;
  12017. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  12018. if (!ASN1PEREncBitVal(enc, 1, y))
  12019. return 0;
  12020. if (!ASN1PEREncBits(enc, 4, (val)->o))
  12021. return 0;
  12022. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12023. return 0;
  12024. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12025. return 0;
  12026. if ((val)->o[0] & 0x80) {
  12027. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12028. return 0;
  12029. }
  12030. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12031. return 0;
  12032. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12033. return 0;
  12034. if ((val)->o[0] & 0x40) {
  12035. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12036. return 0;
  12037. ASN1PEREncAlignment(enc);
  12038. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12039. return 0;
  12040. }
  12041. if ((val)->o[0] & 0x20) {
  12042. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  12043. return 0;
  12044. }
  12045. if ((val)->o[0] & 0x10) {
  12046. if (!ASN1Enc_GatekeeperRequest_endpointAlias(enc, &(val)->endpointAlias))
  12047. return 0;
  12048. }
  12049. if (y) {
  12050. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  12051. return 0;
  12052. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12053. return 0;
  12054. if ((val)->o[1] & 0x80) {
  12055. if (!ASN1Enc_GatekeeperRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12056. return 0;
  12057. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12058. return 0;
  12059. }
  12060. if ((val)->o[1] & 0x40) {
  12061. if (!ASN1Enc_GatekeeperRequest_tokens(ee, &(val)->tokens))
  12062. return 0;
  12063. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12064. return 0;
  12065. }
  12066. if ((val)->o[1] & 0x20) {
  12067. if (!ASN1Enc_GatekeeperRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12068. return 0;
  12069. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12070. return 0;
  12071. }
  12072. if ((val)->o[1] & 0x10) {
  12073. if (!ASN1Enc_GatekeeperRequest_authenticationCapability(ee, &(val)->authenticationCapability))
  12074. return 0;
  12075. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12076. return 0;
  12077. }
  12078. if ((val)->o[1] & 0x8) {
  12079. if (!ASN1Enc_GatekeeperRequest_algorithmOIDs(ee, &(val)->algorithmOIDs))
  12080. return 0;
  12081. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12082. return 0;
  12083. }
  12084. if ((val)->o[1] & 0x4) {
  12085. if (!ASN1Enc_GatekeeperRequest_integrity(ee, &(val)->integrity))
  12086. return 0;
  12087. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12088. return 0;
  12089. }
  12090. if ((val)->o[1] & 0x2) {
  12091. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12092. return 0;
  12093. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12094. return 0;
  12095. }
  12096. ASN1_CloseEncoder2(ee);
  12097. }
  12098. return 1;
  12099. }
  12100. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val)
  12101. {
  12102. ASN1uint32_t y;
  12103. ASN1decoding_t dd;
  12104. ASN1octet_t *db;
  12105. ASN1uint32_t ds;
  12106. ASN1uint32_t i;
  12107. ASN1uint32_t e;
  12108. if (!ASN1PERDecExtensionBit(dec, &y))
  12109. return 0;
  12110. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  12111. return 0;
  12112. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12113. return 0;
  12114. (val)->requestSeqNum += 1;
  12115. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12116. return 0;
  12117. if ((val)->o[0] & 0x80) {
  12118. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12119. return 0;
  12120. }
  12121. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  12122. return 0;
  12123. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12124. return 0;
  12125. if ((val)->o[0] & 0x40) {
  12126. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12127. return 0;
  12128. ((val)->gatekeeperIdentifier).length += 1;
  12129. ASN1PERDecAlignment(dec);
  12130. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12131. return 0;
  12132. }
  12133. if ((val)->o[0] & 0x20) {
  12134. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  12135. return 0;
  12136. }
  12137. if ((val)->o[0] & 0x10) {
  12138. if (!ASN1Dec_GatekeeperRequest_endpointAlias(dec, &(val)->endpointAlias))
  12139. return 0;
  12140. }
  12141. if (!y) {
  12142. ZeroMemory((val)->o + 1, 1);
  12143. } else {
  12144. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  12145. return 0;
  12146. if ((val)->o[1] & 0x80) {
  12147. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12148. return 0;
  12149. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12150. return 0;
  12151. if (!ASN1Dec_GatekeeperRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12152. return 0;
  12153. ASN1_CloseDecoder(dd);
  12154. }
  12155. if ((val)->o[1] & 0x40) {
  12156. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12157. return 0;
  12158. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12159. return 0;
  12160. if (!ASN1Dec_GatekeeperRequest_tokens(dd, &(val)->tokens))
  12161. return 0;
  12162. ASN1_CloseDecoder(dd);
  12163. }
  12164. if ((val)->o[1] & 0x20) {
  12165. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12166. return 0;
  12167. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12168. return 0;
  12169. if (!ASN1Dec_GatekeeperRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12170. return 0;
  12171. ASN1_CloseDecoder(dd);
  12172. }
  12173. if ((val)->o[1] & 0x10) {
  12174. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12175. return 0;
  12176. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12177. return 0;
  12178. if (!ASN1Dec_GatekeeperRequest_authenticationCapability(dd, &(val)->authenticationCapability))
  12179. return 0;
  12180. ASN1_CloseDecoder(dd);
  12181. }
  12182. if ((val)->o[1] & 0x8) {
  12183. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12184. return 0;
  12185. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12186. return 0;
  12187. if (!ASN1Dec_GatekeeperRequest_algorithmOIDs(dd, &(val)->algorithmOIDs))
  12188. return 0;
  12189. ASN1_CloseDecoder(dd);
  12190. }
  12191. if ((val)->o[1] & 0x4) {
  12192. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12193. return 0;
  12194. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12195. return 0;
  12196. if (!ASN1Dec_GatekeeperRequest_integrity(dd, &(val)->integrity))
  12197. return 0;
  12198. ASN1_CloseDecoder(dd);
  12199. }
  12200. if ((val)->o[1] & 0x2) {
  12201. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12202. return 0;
  12203. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12204. return 0;
  12205. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12206. return 0;
  12207. ASN1_CloseDecoder(dd);
  12208. }
  12209. for (i = 0; i < e; i++) {
  12210. if (!ASN1PERDecSkipFragmented(dec, 8))
  12211. return 0;
  12212. }
  12213. }
  12214. return 1;
  12215. }
  12216. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val)
  12217. {
  12218. if (val) {
  12219. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12220. if ((val)->o[0] & 0x80) {
  12221. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12222. }
  12223. ASN1Free_TransportAddress(&(val)->rasAddress);
  12224. ASN1Free_EndpointType(&(val)->endpointType);
  12225. if ((val)->o[0] & 0x40) {
  12226. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12227. }
  12228. if ((val)->o[0] & 0x10) {
  12229. ASN1Free_GatekeeperRequest_endpointAlias(&(val)->endpointAlias);
  12230. }
  12231. if ((val)->o[1] & 0x80) {
  12232. ASN1Free_GatekeeperRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12233. }
  12234. if ((val)->o[1] & 0x40) {
  12235. ASN1Free_GatekeeperRequest_tokens(&(val)->tokens);
  12236. }
  12237. if ((val)->o[1] & 0x20) {
  12238. ASN1Free_GatekeeperRequest_cryptoTokens(&(val)->cryptoTokens);
  12239. }
  12240. if ((val)->o[1] & 0x10) {
  12241. ASN1Free_GatekeeperRequest_authenticationCapability(&(val)->authenticationCapability);
  12242. }
  12243. if ((val)->o[1] & 0x8) {
  12244. ASN1Free_GatekeeperRequest_algorithmOIDs(&(val)->algorithmOIDs);
  12245. }
  12246. if ((val)->o[1] & 0x4) {
  12247. ASN1Free_GatekeeperRequest_integrity(&(val)->integrity);
  12248. }
  12249. if ((val)->o[1] & 0x2) {
  12250. ASN1Free_ICV(&(val)->integrityCheckValue);
  12251. }
  12252. }
  12253. }
  12254. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val)
  12255. {
  12256. ASN1octet_t o[2];
  12257. ASN1uint32_t y;
  12258. ASN1encoding_t ee;
  12259. ASN1uint32_t l;
  12260. CopyMemory(o, (val)->o, 2);
  12261. o[1] |= 0x4;
  12262. o[1] |= 0x1;
  12263. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12264. if (!ASN1PEREncBitVal(enc, 1, y))
  12265. return 0;
  12266. if (!ASN1PEREncBits(enc, 3, o))
  12267. return 0;
  12268. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12269. return 0;
  12270. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12271. return 0;
  12272. if (o[0] & 0x80) {
  12273. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12274. return 0;
  12275. }
  12276. if (!ASN1PEREncBoolean(enc, (val)->discoveryComplete))
  12277. return 0;
  12278. if (!ASN1Enc_RegistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  12279. return 0;
  12280. if (!ASN1Enc_RegistrationRequest_rasAddress(enc, &(val)->rasAddress))
  12281. return 0;
  12282. if (!ASN1Enc_EndpointType(enc, &(val)->terminalType))
  12283. return 0;
  12284. if (o[0] & 0x40) {
  12285. if (!ASN1Enc_RegistrationRequest_terminalAlias(enc, &(val)->terminalAlias))
  12286. return 0;
  12287. }
  12288. if (o[0] & 0x20) {
  12289. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12290. return 0;
  12291. ASN1PEREncAlignment(enc);
  12292. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12293. return 0;
  12294. }
  12295. if (!ASN1Enc_VendorIdentifier(enc, &(val)->endpointVendor))
  12296. return 0;
  12297. if (y) {
  12298. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  12299. return 0;
  12300. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12301. return 0;
  12302. if (o[1] & 0x80) {
  12303. if (!ASN1Enc_RegistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12304. return 0;
  12305. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12306. return 0;
  12307. }
  12308. if (o[1] & 0x40) {
  12309. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  12310. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  12311. return 0;
  12312. ASN1PEREncAlignment(ee);
  12313. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  12314. return 0;
  12315. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12316. return 0;
  12317. }
  12318. if (o[1] & 0x20) {
  12319. if (!ASN1Enc_RegistrationRequest_tokens(ee, &(val)->tokens))
  12320. return 0;
  12321. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12322. return 0;
  12323. }
  12324. if (o[1] & 0x10) {
  12325. if (!ASN1Enc_RegistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12326. return 0;
  12327. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12328. return 0;
  12329. }
  12330. if (o[1] & 0x8) {
  12331. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12332. return 0;
  12333. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12334. return 0;
  12335. }
  12336. if (o[1] & 0x4) {
  12337. if (!ASN1PEREncBoolean(ee, (val)->keepAlive))
  12338. return 0;
  12339. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12340. return 0;
  12341. }
  12342. if (o[1] & 0x2) {
  12343. if (!ASN1PEREncBitVal(ee, 7, ((val)->endpointIdentifier).length - 1))
  12344. return 0;
  12345. ASN1PEREncAlignment(ee);
  12346. if (!ASN1PEREncChar16String(ee, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  12347. return 0;
  12348. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12349. return 0;
  12350. }
  12351. if (o[1] & 0x1) {
  12352. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  12353. return 0;
  12354. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12355. return 0;
  12356. }
  12357. ASN1_CloseEncoder2(ee);
  12358. }
  12359. return 1;
  12360. }
  12361. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val)
  12362. {
  12363. ASN1uint32_t y;
  12364. ASN1decoding_t dd;
  12365. ASN1octet_t *db;
  12366. ASN1uint32_t ds;
  12367. ASN1uint32_t l;
  12368. ASN1uint32_t i;
  12369. ASN1uint32_t e;
  12370. if (!ASN1PERDecExtensionBit(dec, &y))
  12371. return 0;
  12372. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  12373. return 0;
  12374. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12375. return 0;
  12376. (val)->requestSeqNum += 1;
  12377. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12378. return 0;
  12379. if ((val)->o[0] & 0x80) {
  12380. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12381. return 0;
  12382. }
  12383. if (!ASN1PERDecBoolean(dec, &(val)->discoveryComplete))
  12384. return 0;
  12385. if (!ASN1Dec_RegistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  12386. return 0;
  12387. if (!ASN1Dec_RegistrationRequest_rasAddress(dec, &(val)->rasAddress))
  12388. return 0;
  12389. if (!ASN1Dec_EndpointType(dec, &(val)->terminalType))
  12390. return 0;
  12391. if ((val)->o[0] & 0x40) {
  12392. if (!ASN1Dec_RegistrationRequest_terminalAlias(dec, &(val)->terminalAlias))
  12393. return 0;
  12394. }
  12395. if ((val)->o[0] & 0x20) {
  12396. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12397. return 0;
  12398. ((val)->gatekeeperIdentifier).length += 1;
  12399. ASN1PERDecAlignment(dec);
  12400. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12401. return 0;
  12402. }
  12403. if (!ASN1Dec_VendorIdentifier(dec, &(val)->endpointVendor))
  12404. return 0;
  12405. if (!y) {
  12406. ZeroMemory((val)->o + 1, 1);
  12407. } else {
  12408. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  12409. return 0;
  12410. if ((val)->o[1] & 0x80) {
  12411. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12412. return 0;
  12413. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12414. return 0;
  12415. if (!ASN1Dec_RegistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12416. return 0;
  12417. ASN1_CloseDecoder(dd);
  12418. }
  12419. if ((val)->o[1] & 0x40) {
  12420. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12421. return 0;
  12422. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12423. return 0;
  12424. if (!ASN1PERDecU32Val(dd, 2, &l))
  12425. return 0;
  12426. l += 1;
  12427. ASN1PERDecAlignment(dd);
  12428. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  12429. return 0;
  12430. (val)->timeToLive += 1;
  12431. ASN1_CloseDecoder(dd);
  12432. }
  12433. if ((val)->o[1] & 0x20) {
  12434. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12435. return 0;
  12436. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12437. return 0;
  12438. if (!ASN1Dec_RegistrationRequest_tokens(dd, &(val)->tokens))
  12439. return 0;
  12440. ASN1_CloseDecoder(dd);
  12441. }
  12442. if ((val)->o[1] & 0x10) {
  12443. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12444. return 0;
  12445. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12446. return 0;
  12447. if (!ASN1Dec_RegistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12448. return 0;
  12449. ASN1_CloseDecoder(dd);
  12450. }
  12451. if ((val)->o[1] & 0x8) {
  12452. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12453. return 0;
  12454. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12455. return 0;
  12456. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12457. return 0;
  12458. ASN1_CloseDecoder(dd);
  12459. }
  12460. if ((val)->o[1] & 0x4) {
  12461. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12462. return 0;
  12463. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12464. return 0;
  12465. if (!ASN1PERDecBoolean(dd, &(val)->keepAlive))
  12466. return 0;
  12467. ASN1_CloseDecoder(dd);
  12468. }
  12469. if ((val)->o[1] & 0x2) {
  12470. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12471. return 0;
  12472. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12473. return 0;
  12474. if (!ASN1PERDecU32Val(dd, 7, &((val)->endpointIdentifier).length))
  12475. return 0;
  12476. ((val)->endpointIdentifier).length += 1;
  12477. ASN1PERDecAlignment(dd);
  12478. if (!ASN1PERDecChar16String(dd, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  12479. return 0;
  12480. ASN1_CloseDecoder(dd);
  12481. }
  12482. if ((val)->o[1] & 0x1) {
  12483. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12484. return 0;
  12485. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12486. return 0;
  12487. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  12488. return 0;
  12489. ASN1_CloseDecoder(dd);
  12490. }
  12491. for (i = 0; i < e; i++) {
  12492. if (!ASN1PERDecSkipFragmented(dec, 8))
  12493. return 0;
  12494. }
  12495. }
  12496. return 1;
  12497. }
  12498. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val)
  12499. {
  12500. if (val) {
  12501. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12502. if ((val)->o[0] & 0x80) {
  12503. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12504. }
  12505. ASN1Free_RegistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  12506. ASN1Free_RegistrationRequest_rasAddress(&(val)->rasAddress);
  12507. ASN1Free_EndpointType(&(val)->terminalType);
  12508. if ((val)->o[0] & 0x40) {
  12509. ASN1Free_RegistrationRequest_terminalAlias(&(val)->terminalAlias);
  12510. }
  12511. if ((val)->o[0] & 0x20) {
  12512. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12513. }
  12514. ASN1Free_VendorIdentifier(&(val)->endpointVendor);
  12515. if ((val)->o[1] & 0x80) {
  12516. ASN1Free_RegistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12517. }
  12518. if ((val)->o[1] & 0x20) {
  12519. ASN1Free_RegistrationRequest_tokens(&(val)->tokens);
  12520. }
  12521. if ((val)->o[1] & 0x10) {
  12522. ASN1Free_RegistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  12523. }
  12524. if ((val)->o[1] & 0x8) {
  12525. ASN1Free_ICV(&(val)->integrityCheckValue);
  12526. }
  12527. if ((val)->o[1] & 0x2) {
  12528. ASN1char16string_free(&(val)->endpointIdentifier);
  12529. }
  12530. }
  12531. }
  12532. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val)
  12533. {
  12534. ASN1octet_t o[3];
  12535. ASN1uint32_t y;
  12536. ASN1uint32_t l;
  12537. ASN1encoding_t ee;
  12538. CopyMemory(o, (val)->o, 3);
  12539. o[2] |= 0x40;
  12540. o[2] |= 0x20;
  12541. y = ASN1PEREncCheckExtensions(11, (val)->o + 1);
  12542. if (!ASN1PEREncBitVal(enc, 1, y))
  12543. return 0;
  12544. if (!ASN1PEREncBits(enc, 2, o))
  12545. return 0;
  12546. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12547. return 0;
  12548. l = ASN1uint32_uoctets((val)->bandWidth);
  12549. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  12550. return 0;
  12551. ASN1PEREncAlignment(enc);
  12552. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  12553. return 0;
  12554. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  12555. return 0;
  12556. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  12557. return 0;
  12558. if (o[0] & 0x80) {
  12559. if (!ASN1PEREncUnsignedShort(enc, (val)->irrFrequency - 1))
  12560. return 0;
  12561. }
  12562. if (o[0] & 0x40) {
  12563. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12564. return 0;
  12565. }
  12566. if (y) {
  12567. if (!ASN1PEREncNormallySmallBits(enc, 11, o + 1))
  12568. return 0;
  12569. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12570. return 0;
  12571. if (o[1] & 0x80) {
  12572. if (!ASN1Enc_AdmissionConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12573. return 0;
  12574. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12575. return 0;
  12576. }
  12577. if (o[1] & 0x40) {
  12578. if (!ASN1Enc_AdmissionConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12579. return 0;
  12580. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12581. return 0;
  12582. }
  12583. if (o[1] & 0x20) {
  12584. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12585. return 0;
  12586. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12587. return 0;
  12588. }
  12589. if (o[1] & 0x10) {
  12590. if (!ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12591. return 0;
  12592. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12593. return 0;
  12594. }
  12595. if (o[1] & 0x8) {
  12596. if (!ASN1Enc_AdmissionConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12597. return 0;
  12598. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12599. return 0;
  12600. }
  12601. if (o[1] & 0x4) {
  12602. if (!ASN1Enc_AdmissionConfirm_tokens(ee, &(val)->tokens))
  12603. return 0;
  12604. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12605. return 0;
  12606. }
  12607. if (o[1] & 0x2) {
  12608. if (!ASN1Enc_AdmissionConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12609. return 0;
  12610. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12611. return 0;
  12612. }
  12613. if (o[1] & 0x1) {
  12614. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12615. return 0;
  12616. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12617. return 0;
  12618. }
  12619. if (o[2] & 0x80) {
  12620. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  12621. return 0;
  12622. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12623. return 0;
  12624. }
  12625. if (o[2] & 0x40) {
  12626. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  12627. return 0;
  12628. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12629. return 0;
  12630. }
  12631. if (o[2] & 0x20) {
  12632. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  12633. return 0;
  12634. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12635. return 0;
  12636. }
  12637. ASN1_CloseEncoder2(ee);
  12638. }
  12639. return 1;
  12640. }
  12641. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val)
  12642. {
  12643. ASN1uint32_t y;
  12644. ASN1uint32_t l;
  12645. ASN1decoding_t dd;
  12646. ASN1octet_t *db;
  12647. ASN1uint32_t ds;
  12648. ASN1uint32_t i;
  12649. ASN1uint32_t e;
  12650. if (!ASN1PERDecExtensionBit(dec, &y))
  12651. return 0;
  12652. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  12653. return 0;
  12654. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12655. return 0;
  12656. (val)->requestSeqNum += 1;
  12657. if (!ASN1PERDecU32Val(dec, 2, &l))
  12658. return 0;
  12659. l += 1;
  12660. ASN1PERDecAlignment(dec);
  12661. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  12662. return 0;
  12663. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  12664. return 0;
  12665. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  12666. return 0;
  12667. if ((val)->o[0] & 0x80) {
  12668. if (!ASN1PERDecUnsignedShort(dec, &(val)->irrFrequency))
  12669. return 0;
  12670. (val)->irrFrequency += 1;
  12671. }
  12672. if ((val)->o[0] & 0x40) {
  12673. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12674. return 0;
  12675. }
  12676. if (!y) {
  12677. ZeroMemory((val)->o + 1, 2);
  12678. } else {
  12679. if (!ASN1PERDecNormallySmallExtension(dec, &e, 11, (val)->o + 1))
  12680. return 0;
  12681. if ((val)->o[1] & 0x80) {
  12682. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12683. return 0;
  12684. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12685. return 0;
  12686. if (!ASN1Dec_AdmissionConfirm_destinationInfo(dd, &(val)->destinationInfo))
  12687. return 0;
  12688. ASN1_CloseDecoder(dd);
  12689. }
  12690. if ((val)->o[1] & 0x40) {
  12691. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12692. return 0;
  12693. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12694. return 0;
  12695. if (!ASN1Dec_AdmissionConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  12696. return 0;
  12697. ASN1_CloseDecoder(dd);
  12698. }
  12699. if ((val)->o[1] & 0x20) {
  12700. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12701. return 0;
  12702. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12703. return 0;
  12704. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  12705. return 0;
  12706. ASN1_CloseDecoder(dd);
  12707. }
  12708. if ((val)->o[1] & 0x10) {
  12709. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12710. return 0;
  12711. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12712. return 0;
  12713. if (!ASN1Dec_AdmissionConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  12714. return 0;
  12715. ASN1_CloseDecoder(dd);
  12716. }
  12717. if ((val)->o[1] & 0x8) {
  12718. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12719. return 0;
  12720. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12721. return 0;
  12722. if (!ASN1Dec_AdmissionConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12723. return 0;
  12724. ASN1_CloseDecoder(dd);
  12725. }
  12726. if ((val)->o[1] & 0x4) {
  12727. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12728. return 0;
  12729. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12730. return 0;
  12731. if (!ASN1Dec_AdmissionConfirm_tokens(dd, &(val)->tokens))
  12732. return 0;
  12733. ASN1_CloseDecoder(dd);
  12734. }
  12735. if ((val)->o[1] & 0x2) {
  12736. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12737. return 0;
  12738. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12739. return 0;
  12740. if (!ASN1Dec_AdmissionConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  12741. return 0;
  12742. ASN1_CloseDecoder(dd);
  12743. }
  12744. if ((val)->o[1] & 0x1) {
  12745. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12746. return 0;
  12747. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12748. return 0;
  12749. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12750. return 0;
  12751. ASN1_CloseDecoder(dd);
  12752. }
  12753. if ((val)->o[2] & 0x80) {
  12754. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12755. return 0;
  12756. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12757. return 0;
  12758. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  12759. return 0;
  12760. ASN1_CloseDecoder(dd);
  12761. }
  12762. if ((val)->o[2] & 0x40) {
  12763. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12764. return 0;
  12765. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12766. return 0;
  12767. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  12768. return 0;
  12769. ASN1_CloseDecoder(dd);
  12770. }
  12771. if ((val)->o[2] & 0x20) {
  12772. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12773. return 0;
  12774. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12775. return 0;
  12776. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  12777. return 0;
  12778. ASN1_CloseDecoder(dd);
  12779. }
  12780. for (i = 0; i < e; i++) {
  12781. if (!ASN1PERDecSkipFragmented(dec, 8))
  12782. return 0;
  12783. }
  12784. }
  12785. return 1;
  12786. }
  12787. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val)
  12788. {
  12789. if (val) {
  12790. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  12791. if ((val)->o[0] & 0x40) {
  12792. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12793. }
  12794. if ((val)->o[1] & 0x80) {
  12795. ASN1Free_AdmissionConfirm_destinationInfo(&(val)->destinationInfo);
  12796. }
  12797. if ((val)->o[1] & 0x40) {
  12798. ASN1Free_AdmissionConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  12799. }
  12800. if ((val)->o[1] & 0x20) {
  12801. ASN1Free_EndpointType(&(val)->destinationType);
  12802. }
  12803. if ((val)->o[1] & 0x10) {
  12804. ASN1Free_AdmissionConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12805. }
  12806. if ((val)->o[1] & 0x8) {
  12807. ASN1Free_AdmissionConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  12808. }
  12809. if ((val)->o[1] & 0x4) {
  12810. ASN1Free_AdmissionConfirm_tokens(&(val)->tokens);
  12811. }
  12812. if ((val)->o[1] & 0x2) {
  12813. ASN1Free_AdmissionConfirm_cryptoTokens(&(val)->cryptoTokens);
  12814. }
  12815. if ((val)->o[1] & 0x1) {
  12816. ASN1Free_ICV(&(val)->integrityCheckValue);
  12817. }
  12818. }
  12819. }
  12820. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val)
  12821. {
  12822. ASN1uint32_t y;
  12823. ASN1encoding_t ee;
  12824. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12825. if (!ASN1PEREncBitVal(enc, 1, y))
  12826. return 0;
  12827. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12828. return 0;
  12829. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12830. return 0;
  12831. if (!ASN1Enc_TransportAddress(enc, &(val)->callSignalAddress))
  12832. return 0;
  12833. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12834. return 0;
  12835. if ((val)->o[0] & 0x80) {
  12836. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12837. return 0;
  12838. }
  12839. if (y) {
  12840. if (!ASN1PEREncNormallySmallBits(enc, 8, (val)->o + 1))
  12841. return 0;
  12842. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12843. return 0;
  12844. if ((val)->o[1] & 0x80) {
  12845. if (!ASN1Enc_LocationConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12846. return 0;
  12847. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12848. return 0;
  12849. }
  12850. if ((val)->o[1] & 0x40) {
  12851. if (!ASN1Enc_LocationConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12852. return 0;
  12853. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12854. return 0;
  12855. }
  12856. if ((val)->o[1] & 0x20) {
  12857. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12858. return 0;
  12859. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12860. return 0;
  12861. }
  12862. if ((val)->o[1] & 0x10) {
  12863. if (!ASN1Enc_LocationConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12864. return 0;
  12865. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12866. return 0;
  12867. }
  12868. if ((val)->o[1] & 0x8) {
  12869. if (!ASN1Enc_LocationConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12870. return 0;
  12871. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12872. return 0;
  12873. }
  12874. if ((val)->o[1] & 0x4) {
  12875. if (!ASN1Enc_LocationConfirm_tokens(ee, &(val)->tokens))
  12876. return 0;
  12877. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12878. return 0;
  12879. }
  12880. if ((val)->o[1] & 0x2) {
  12881. if (!ASN1Enc_LocationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12882. return 0;
  12883. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12884. return 0;
  12885. }
  12886. if ((val)->o[1] & 0x1) {
  12887. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12888. return 0;
  12889. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12890. return 0;
  12891. }
  12892. ASN1_CloseEncoder2(ee);
  12893. }
  12894. return 1;
  12895. }
  12896. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val)
  12897. {
  12898. ASN1uint32_t y;
  12899. ASN1decoding_t dd;
  12900. ASN1octet_t *db;
  12901. ASN1uint32_t ds;
  12902. ASN1uint32_t i;
  12903. ASN1uint32_t e;
  12904. if (!ASN1PERDecExtensionBit(dec, &y))
  12905. return 0;
  12906. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  12907. return 0;
  12908. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12909. return 0;
  12910. (val)->requestSeqNum += 1;
  12911. if (!ASN1Dec_TransportAddress(dec, &(val)->callSignalAddress))
  12912. return 0;
  12913. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  12914. return 0;
  12915. if ((val)->o[0] & 0x80) {
  12916. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12917. return 0;
  12918. }
  12919. if (!y) {
  12920. ZeroMemory((val)->o + 1, 1);
  12921. } else {
  12922. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  12923. return 0;
  12924. if ((val)->o[1] & 0x80) {
  12925. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12926. return 0;
  12927. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12928. return 0;
  12929. if (!ASN1Dec_LocationConfirm_destinationInfo(dd, &(val)->destinationInfo))
  12930. return 0;
  12931. ASN1_CloseDecoder(dd);
  12932. }
  12933. if ((val)->o[1] & 0x40) {
  12934. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12935. return 0;
  12936. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12937. return 0;
  12938. if (!ASN1Dec_LocationConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  12939. return 0;
  12940. ASN1_CloseDecoder(dd);
  12941. }
  12942. if ((val)->o[1] & 0x20) {
  12943. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12944. return 0;
  12945. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12946. return 0;
  12947. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  12948. return 0;
  12949. ASN1_CloseDecoder(dd);
  12950. }
  12951. if ((val)->o[1] & 0x10) {
  12952. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12953. return 0;
  12954. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12955. return 0;
  12956. if (!ASN1Dec_LocationConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  12957. return 0;
  12958. ASN1_CloseDecoder(dd);
  12959. }
  12960. if ((val)->o[1] & 0x8) {
  12961. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12962. return 0;
  12963. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12964. return 0;
  12965. if (!ASN1Dec_LocationConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12966. return 0;
  12967. ASN1_CloseDecoder(dd);
  12968. }
  12969. if ((val)->o[1] & 0x4) {
  12970. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12971. return 0;
  12972. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12973. return 0;
  12974. if (!ASN1Dec_LocationConfirm_tokens(dd, &(val)->tokens))
  12975. return 0;
  12976. ASN1_CloseDecoder(dd);
  12977. }
  12978. if ((val)->o[1] & 0x2) {
  12979. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12980. return 0;
  12981. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12982. return 0;
  12983. if (!ASN1Dec_LocationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  12984. return 0;
  12985. ASN1_CloseDecoder(dd);
  12986. }
  12987. if ((val)->o[1] & 0x1) {
  12988. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12989. return 0;
  12990. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  12991. return 0;
  12992. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12993. return 0;
  12994. ASN1_CloseDecoder(dd);
  12995. }
  12996. for (i = 0; i < e; i++) {
  12997. if (!ASN1PERDecSkipFragmented(dec, 8))
  12998. return 0;
  12999. }
  13000. }
  13001. return 1;
  13002. }
  13003. static void ASN1CALL ASN1Free_LocationConfirm(LocationConfirm *val)
  13004. {
  13005. if (val) {
  13006. ASN1Free_TransportAddress(&(val)->callSignalAddress);
  13007. ASN1Free_TransportAddress(&(val)->rasAddress);
  13008. if ((val)->o[0] & 0x80) {
  13009. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13010. }
  13011. if ((val)->o[1] & 0x80) {
  13012. ASN1Free_LocationConfirm_destinationInfo(&(val)->destinationInfo);
  13013. }
  13014. if ((val)->o[1] & 0x40) {
  13015. ASN1Free_LocationConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  13016. }
  13017. if ((val)->o[1] & 0x20) {
  13018. ASN1Free_EndpointType(&(val)->destinationType);
  13019. }
  13020. if ((val)->o[1] & 0x10) {
  13021. ASN1Free_LocationConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  13022. }
  13023. if ((val)->o[1] & 0x8) {
  13024. ASN1Free_LocationConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  13025. }
  13026. if ((val)->o[1] & 0x4) {
  13027. ASN1Free_LocationConfirm_tokens(&(val)->tokens);
  13028. }
  13029. if ((val)->o[1] & 0x2) {
  13030. ASN1Free_LocationConfirm_cryptoTokens(&(val)->cryptoTokens);
  13031. }
  13032. if ((val)->o[1] & 0x1) {
  13033. ASN1Free_ICV(&(val)->integrityCheckValue);
  13034. }
  13035. }
  13036. }
  13037. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val)
  13038. {
  13039. ASN1octet_t o[2];
  13040. ASN1uint32_t y;
  13041. ASN1encoding_t ee;
  13042. CopyMemory(o, (val)->o, 2);
  13043. o[1] |= 0x10;
  13044. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  13045. if (!ASN1PEREncBitVal(enc, 1, y))
  13046. return 0;
  13047. if (!ASN1PEREncBits(enc, 3, o))
  13048. return 0;
  13049. if (o[0] & 0x80) {
  13050. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13051. return 0;
  13052. }
  13053. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  13054. return 0;
  13055. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  13056. return 0;
  13057. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  13058. return 0;
  13059. ASN1PEREncAlignment(enc);
  13060. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  13061. return 0;
  13062. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  13063. return 0;
  13064. if (!ASN1Enc_InfoRequestResponse_callSignalAddress(enc, &(val)->callSignalAddress))
  13065. return 0;
  13066. if (o[0] & 0x40) {
  13067. if (!ASN1Enc_InfoRequestResponse_endpointAlias(enc, &(val)->endpointAlias))
  13068. return 0;
  13069. }
  13070. if (o[0] & 0x20) {
  13071. if (!ASN1Enc_InfoRequestResponse_perCallInfo(enc, &(val)->perCallInfo))
  13072. return 0;
  13073. }
  13074. if (y) {
  13075. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  13076. return 0;
  13077. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13078. return 0;
  13079. if (o[1] & 0x80) {
  13080. if (!ASN1Enc_InfoRequestResponse_tokens(ee, &(val)->tokens))
  13081. return 0;
  13082. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13083. return 0;
  13084. }
  13085. if (o[1] & 0x40) {
  13086. if (!ASN1Enc_InfoRequestResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  13087. return 0;
  13088. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13089. return 0;
  13090. }
  13091. if (o[1] & 0x20) {
  13092. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13093. return 0;
  13094. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13095. return 0;
  13096. }
  13097. if (o[1] & 0x10) {
  13098. if (!ASN1PEREncBoolean(ee, (val)->needResponse))
  13099. return 0;
  13100. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13101. return 0;
  13102. }
  13103. ASN1_CloseEncoder2(ee);
  13104. }
  13105. return 1;
  13106. }
  13107. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val)
  13108. {
  13109. ASN1uint32_t y;
  13110. ASN1decoding_t dd;
  13111. ASN1octet_t *db;
  13112. ASN1uint32_t ds;
  13113. ASN1uint32_t i;
  13114. ASN1uint32_t e;
  13115. if (!ASN1PERDecExtensionBit(dec, &y))
  13116. return 0;
  13117. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  13118. return 0;
  13119. if ((val)->o[0] & 0x80) {
  13120. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13121. return 0;
  13122. }
  13123. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13124. return 0;
  13125. (val)->requestSeqNum += 1;
  13126. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  13127. return 0;
  13128. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  13129. return 0;
  13130. ((val)->endpointIdentifier).length += 1;
  13131. ASN1PERDecAlignment(dec);
  13132. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  13133. return 0;
  13134. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13135. return 0;
  13136. if (!ASN1Dec_InfoRequestResponse_callSignalAddress(dec, &(val)->callSignalAddress))
  13137. return 0;
  13138. if ((val)->o[0] & 0x40) {
  13139. if (!ASN1Dec_InfoRequestResponse_endpointAlias(dec, &(val)->endpointAlias))
  13140. return 0;
  13141. }
  13142. if ((val)->o[0] & 0x20) {
  13143. if (!ASN1Dec_InfoRequestResponse_perCallInfo(dec, &(val)->perCallInfo))
  13144. return 0;
  13145. }
  13146. if (!y) {
  13147. ZeroMemory((val)->o + 1, 1);
  13148. } else {
  13149. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  13150. return 0;
  13151. if ((val)->o[1] & 0x80) {
  13152. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13153. return 0;
  13154. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  13155. return 0;
  13156. if (!ASN1Dec_InfoRequestResponse_tokens(dd, &(val)->tokens))
  13157. return 0;
  13158. ASN1_CloseDecoder(dd);
  13159. }
  13160. if ((val)->o[1] & 0x40) {
  13161. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13162. return 0;
  13163. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  13164. return 0;
  13165. if (!ASN1Dec_InfoRequestResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  13166. return 0;
  13167. ASN1_CloseDecoder(dd);
  13168. }
  13169. if ((val)->o[1] & 0x20) {
  13170. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13171. return 0;
  13172. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  13173. return 0;
  13174. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13175. return 0;
  13176. ASN1_CloseDecoder(dd);
  13177. }
  13178. if ((val)->o[1] & 0x10) {
  13179. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13180. return 0;
  13181. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  13182. return 0;
  13183. if (!ASN1PERDecBoolean(dd, &(val)->needResponse))
  13184. return 0;
  13185. ASN1_CloseDecoder(dd);
  13186. }
  13187. for (i = 0; i < e; i++) {
  13188. if (!ASN1PERDecSkipFragmented(dec, 8))
  13189. return 0;
  13190. }
  13191. }
  13192. return 1;
  13193. }
  13194. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val)
  13195. {
  13196. if (val) {
  13197. if ((val)->o[0] & 0x80) {
  13198. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13199. }
  13200. ASN1Free_EndpointType(&(val)->endpointType);
  13201. ASN1char16string_free(&(val)->endpointIdentifier);
  13202. ASN1Free_TransportAddress(&(val)->rasAddress);
  13203. ASN1Free_InfoRequestResponse_callSignalAddress(&(val)->callSignalAddress);
  13204. if ((val)->o[0] & 0x40) {
  13205. ASN1Free_InfoRequestResponse_endpointAlias(&(val)->endpointAlias);
  13206. }
  13207. if ((val)->o[0] & 0x20) {
  13208. ASN1Free_InfoRequestResponse_perCallInfo(&(val)->perCallInfo);
  13209. }
  13210. if ((val)->o[1] & 0x80) {
  13211. ASN1Free_InfoRequestResponse_tokens(&(val)->tokens);
  13212. }
  13213. if ((val)->o[1] & 0x40) {
  13214. ASN1Free_InfoRequestResponse_cryptoTokens(&(val)->cryptoTokens);
  13215. }
  13216. if ((val)->o[1] & 0x20) {
  13217. ASN1Free_ICV(&(val)->integrityCheckValue);
  13218. }
  13219. }
  13220. }
  13221. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val)
  13222. {
  13223. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn);
  13224. }
  13225. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols val)
  13226. {
  13227. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  13228. return 0;
  13229. return 1;
  13230. }
  13231. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val)
  13232. {
  13233. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn, sizeof(**val));
  13234. }
  13235. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols val)
  13236. {
  13237. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  13238. return 0;
  13239. return 1;
  13240. }
  13241. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val)
  13242. {
  13243. if (val) {
  13244. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn);
  13245. }
  13246. }
  13247. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn(PResourcesAvailableIndicate_protocols val)
  13248. {
  13249. if (val) {
  13250. ASN1Free_SupportedProtocols(&val->value);
  13251. }
  13252. }
  13253. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val)
  13254. {
  13255. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn);
  13256. }
  13257. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias val)
  13258. {
  13259. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13260. return 0;
  13261. return 1;
  13262. }
  13263. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val)
  13264. {
  13265. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn, sizeof(**val));
  13266. }
  13267. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias val)
  13268. {
  13269. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13270. return 0;
  13271. return 1;
  13272. }
  13273. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val)
  13274. {
  13275. if (val) {
  13276. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_endpointAlias_ElmFn);
  13277. }
  13278. }
  13279. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias_ElmFn(PInfoRequestResponse_endpointAlias val)
  13280. {
  13281. if (val) {
  13282. ASN1Free_AliasAddress(&val->value);
  13283. }
  13284. }
  13285. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val)
  13286. {
  13287. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn);
  13288. }
  13289. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints val)
  13290. {
  13291. if (!ASN1Enc_Endpoint(enc, &val->value))
  13292. return 0;
  13293. return 1;
  13294. }
  13295. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val)
  13296. {
  13297. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13298. }
  13299. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints val)
  13300. {
  13301. if (!ASN1Dec_Endpoint(dec, &val->value))
  13302. return 0;
  13303. return 1;
  13304. }
  13305. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val)
  13306. {
  13307. if (val) {
  13308. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_alternateEndpoints_ElmFn);
  13309. }
  13310. }
  13311. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints_ElmFn(PLocationConfirm_alternateEndpoints val)
  13312. {
  13313. if (val) {
  13314. ASN1Free_Endpoint(&val->value);
  13315. }
  13316. }
  13317. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val)
  13318. {
  13319. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn);
  13320. }
  13321. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress val)
  13322. {
  13323. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13324. return 0;
  13325. return 1;
  13326. }
  13327. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val)
  13328. {
  13329. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13330. }
  13331. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress val)
  13332. {
  13333. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13334. return 0;
  13335. return 1;
  13336. }
  13337. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val)
  13338. {
  13339. if (val) {
  13340. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn);
  13341. }
  13342. }
  13343. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn(PLocationConfirm_remoteExtensionAddress val)
  13344. {
  13345. if (val) {
  13346. ASN1Free_AliasAddress(&val->value);
  13347. }
  13348. }
  13349. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val)
  13350. {
  13351. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn);
  13352. }
  13353. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo val)
  13354. {
  13355. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13356. return 0;
  13357. return 1;
  13358. }
  13359. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val)
  13360. {
  13361. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13362. }
  13363. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo val)
  13364. {
  13365. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13366. return 0;
  13367. return 1;
  13368. }
  13369. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val)
  13370. {
  13371. if (val) {
  13372. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn);
  13373. }
  13374. }
  13375. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn(PLocationConfirm_destExtraCallInfo val)
  13376. {
  13377. if (val) {
  13378. ASN1Free_AliasAddress(&val->value);
  13379. }
  13380. }
  13381. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val)
  13382. {
  13383. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destinationInfo_ElmFn);
  13384. }
  13385. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destinationInfo val)
  13386. {
  13387. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13388. return 0;
  13389. return 1;
  13390. }
  13391. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val)
  13392. {
  13393. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destinationInfo_ElmFn, sizeof(**val));
  13394. }
  13395. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destinationInfo val)
  13396. {
  13397. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13398. return 0;
  13399. return 1;
  13400. }
  13401. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val)
  13402. {
  13403. if (val) {
  13404. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destinationInfo_ElmFn);
  13405. }
  13406. }
  13407. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo_ElmFn(PLocationConfirm_destinationInfo val)
  13408. {
  13409. if (val) {
  13410. ASN1Free_AliasAddress(&val->value);
  13411. }
  13412. }
  13413. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val)
  13414. {
  13415. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_sourceInfo_ElmFn);
  13416. }
  13417. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_sourceInfo val)
  13418. {
  13419. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13420. return 0;
  13421. return 1;
  13422. }
  13423. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val)
  13424. {
  13425. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_sourceInfo_ElmFn, sizeof(**val));
  13426. }
  13427. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_sourceInfo val)
  13428. {
  13429. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13430. return 0;
  13431. return 1;
  13432. }
  13433. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val)
  13434. {
  13435. if (val) {
  13436. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_sourceInfo_ElmFn);
  13437. }
  13438. }
  13439. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo_ElmFn(PLocationRequest_sourceInfo val)
  13440. {
  13441. if (val) {
  13442. ASN1Free_AliasAddress(&val->value);
  13443. }
  13444. }
  13445. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val)
  13446. {
  13447. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_destinationInfo_ElmFn);
  13448. }
  13449. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_destinationInfo val)
  13450. {
  13451. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13452. return 0;
  13453. return 1;
  13454. }
  13455. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val)
  13456. {
  13457. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_destinationInfo_ElmFn, sizeof(**val));
  13458. }
  13459. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_destinationInfo val)
  13460. {
  13461. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13462. return 0;
  13463. return 1;
  13464. }
  13465. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val)
  13466. {
  13467. if (val) {
  13468. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_destinationInfo_ElmFn);
  13469. }
  13470. }
  13471. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo_ElmFn(PLocationRequest_destinationInfo val)
  13472. {
  13473. if (val) {
  13474. ASN1Free_AliasAddress(&val->value);
  13475. }
  13476. }
  13477. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val)
  13478. {
  13479. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn);
  13480. }
  13481. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints val)
  13482. {
  13483. if (!ASN1Enc_Endpoint(enc, &val->value))
  13484. return 0;
  13485. return 1;
  13486. }
  13487. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val)
  13488. {
  13489. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13490. }
  13491. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints val)
  13492. {
  13493. if (!ASN1Dec_Endpoint(dec, &val->value))
  13494. return 0;
  13495. return 1;
  13496. }
  13497. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val)
  13498. {
  13499. if (val) {
  13500. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn);
  13501. }
  13502. }
  13503. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn(PAdmissionConfirm_alternateEndpoints val)
  13504. {
  13505. if (val) {
  13506. ASN1Free_Endpoint(&val->value);
  13507. }
  13508. }
  13509. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val)
  13510. {
  13511. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13512. }
  13513. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress val)
  13514. {
  13515. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13516. return 0;
  13517. return 1;
  13518. }
  13519. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val)
  13520. {
  13521. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13522. }
  13523. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress val)
  13524. {
  13525. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13526. return 0;
  13527. return 1;
  13528. }
  13529. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val)
  13530. {
  13531. if (val) {
  13532. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13533. }
  13534. }
  13535. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn(PAdmissionConfirm_remoteExtensionAddress val)
  13536. {
  13537. if (val) {
  13538. ASN1Free_AliasAddress(&val->value);
  13539. }
  13540. }
  13541. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val)
  13542. {
  13543. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13544. }
  13545. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo val)
  13546. {
  13547. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13548. return 0;
  13549. return 1;
  13550. }
  13551. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val)
  13552. {
  13553. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13554. }
  13555. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo val)
  13556. {
  13557. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13558. return 0;
  13559. return 1;
  13560. }
  13561. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val)
  13562. {
  13563. if (val) {
  13564. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13565. }
  13566. }
  13567. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn(PAdmissionConfirm_destExtraCallInfo val)
  13568. {
  13569. if (val) {
  13570. ASN1Free_AliasAddress(&val->value);
  13571. }
  13572. }
  13573. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val)
  13574. {
  13575. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn);
  13576. }
  13577. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo val)
  13578. {
  13579. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13580. return 0;
  13581. return 1;
  13582. }
  13583. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val)
  13584. {
  13585. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn, sizeof(**val));
  13586. }
  13587. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo val)
  13588. {
  13589. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13590. return 0;
  13591. return 1;
  13592. }
  13593. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val)
  13594. {
  13595. if (val) {
  13596. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destinationInfo_ElmFn);
  13597. }
  13598. }
  13599. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo_ElmFn(PAdmissionConfirm_destinationInfo val)
  13600. {
  13601. if (val) {
  13602. ASN1Free_AliasAddress(&val->value);
  13603. }
  13604. }
  13605. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val)
  13606. {
  13607. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destAlternatives_ElmFn);
  13608. }
  13609. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destAlternatives val)
  13610. {
  13611. if (!ASN1Enc_Endpoint(enc, &val->value))
  13612. return 0;
  13613. return 1;
  13614. }
  13615. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val)
  13616. {
  13617. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destAlternatives_ElmFn, sizeof(**val));
  13618. }
  13619. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destAlternatives val)
  13620. {
  13621. if (!ASN1Dec_Endpoint(dec, &val->value))
  13622. return 0;
  13623. return 1;
  13624. }
  13625. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val)
  13626. {
  13627. if (val) {
  13628. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destAlternatives_ElmFn);
  13629. }
  13630. }
  13631. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives_ElmFn(PAdmissionRequest_destAlternatives val)
  13632. {
  13633. if (val) {
  13634. ASN1Free_Endpoint(&val->value);
  13635. }
  13636. }
  13637. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val)
  13638. {
  13639. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn);
  13640. }
  13641. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives val)
  13642. {
  13643. if (!ASN1Enc_Endpoint(enc, &val->value))
  13644. return 0;
  13645. return 1;
  13646. }
  13647. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val)
  13648. {
  13649. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn, sizeof(**val));
  13650. }
  13651. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives val)
  13652. {
  13653. if (!ASN1Dec_Endpoint(dec, &val->value))
  13654. return 0;
  13655. return 1;
  13656. }
  13657. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val)
  13658. {
  13659. if (val) {
  13660. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcAlternatives_ElmFn);
  13661. }
  13662. }
  13663. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives_ElmFn(PAdmissionRequest_srcAlternatives val)
  13664. {
  13665. if (val) {
  13666. ASN1Free_Endpoint(&val->value);
  13667. }
  13668. }
  13669. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val)
  13670. {
  13671. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcInfo_ElmFn);
  13672. }
  13673. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcInfo val)
  13674. {
  13675. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13676. return 0;
  13677. return 1;
  13678. }
  13679. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val)
  13680. {
  13681. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcInfo_ElmFn, sizeof(**val));
  13682. }
  13683. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcInfo val)
  13684. {
  13685. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13686. return 0;
  13687. return 1;
  13688. }
  13689. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val)
  13690. {
  13691. if (val) {
  13692. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcInfo_ElmFn);
  13693. }
  13694. }
  13695. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo_ElmFn(PAdmissionRequest_srcInfo val)
  13696. {
  13697. if (val) {
  13698. ASN1Free_AliasAddress(&val->value);
  13699. }
  13700. }
  13701. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val)
  13702. {
  13703. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn);
  13704. }
  13705. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo val)
  13706. {
  13707. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13708. return 0;
  13709. return 1;
  13710. }
  13711. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val)
  13712. {
  13713. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn, sizeof(**val));
  13714. }
  13715. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo val)
  13716. {
  13717. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13718. return 0;
  13719. return 1;
  13720. }
  13721. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val)
  13722. {
  13723. if (val) {
  13724. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn);
  13725. }
  13726. }
  13727. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn(PAdmissionRequest_destExtraCallInfo val)
  13728. {
  13729. if (val) {
  13730. ASN1Free_AliasAddress(&val->value);
  13731. }
  13732. }
  13733. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val)
  13734. {
  13735. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destinationInfo_ElmFn);
  13736. }
  13737. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destinationInfo val)
  13738. {
  13739. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13740. return 0;
  13741. return 1;
  13742. }
  13743. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val)
  13744. {
  13745. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destinationInfo_ElmFn, sizeof(**val));
  13746. }
  13747. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destinationInfo val)
  13748. {
  13749. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13750. return 0;
  13751. return 1;
  13752. }
  13753. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val)
  13754. {
  13755. if (val) {
  13756. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destinationInfo_ElmFn);
  13757. }
  13758. }
  13759. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo_ElmFn(PAdmissionRequest_destinationInfo val)
  13760. {
  13761. if (val) {
  13762. ASN1Free_AliasAddress(&val->value);
  13763. }
  13764. }
  13765. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val)
  13766. {
  13767. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn);
  13768. }
  13769. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints val)
  13770. {
  13771. if (!ASN1Enc_Endpoint(enc, &val->value))
  13772. return 0;
  13773. return 1;
  13774. }
  13775. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val)
  13776. {
  13777. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13778. }
  13779. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints val)
  13780. {
  13781. if (!ASN1Dec_Endpoint(dec, &val->value))
  13782. return 0;
  13783. return 1;
  13784. }
  13785. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val)
  13786. {
  13787. if (val) {
  13788. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn);
  13789. }
  13790. }
  13791. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn(PUnregistrationRequest_alternateEndpoints val)
  13792. {
  13793. if (val) {
  13794. ASN1Free_Endpoint(&val->value);
  13795. }
  13796. }
  13797. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val)
  13798. {
  13799. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn);
  13800. }
  13801. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias val)
  13802. {
  13803. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13804. return 0;
  13805. return 1;
  13806. }
  13807. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val)
  13808. {
  13809. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn, sizeof(**val));
  13810. }
  13811. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias val)
  13812. {
  13813. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13814. return 0;
  13815. return 1;
  13816. }
  13817. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val)
  13818. {
  13819. if (val) {
  13820. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_endpointAlias_ElmFn);
  13821. }
  13822. }
  13823. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias_ElmFn(PUnregistrationRequest_endpointAlias val)
  13824. {
  13825. if (val) {
  13826. ASN1Free_AliasAddress(&val->value);
  13827. }
  13828. }
  13829. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val)
  13830. {
  13831. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn);
  13832. }
  13833. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias val)
  13834. {
  13835. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13836. return 0;
  13837. return 1;
  13838. }
  13839. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val)
  13840. {
  13841. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn, sizeof(**val));
  13842. }
  13843. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias val)
  13844. {
  13845. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13846. return 0;
  13847. return 1;
  13848. }
  13849. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val)
  13850. {
  13851. if (val) {
  13852. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn);
  13853. }
  13854. }
  13855. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn(PRegistrationRejectReason_duplicateAlias val)
  13856. {
  13857. if (val) {
  13858. ASN1Free_AliasAddress(&val->value);
  13859. }
  13860. }
  13861. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val)
  13862. {
  13863. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn);
  13864. }
  13865. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias val)
  13866. {
  13867. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13868. return 0;
  13869. return 1;
  13870. }
  13871. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val)
  13872. {
  13873. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn, sizeof(**val));
  13874. }
  13875. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias val)
  13876. {
  13877. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13878. return 0;
  13879. return 1;
  13880. }
  13881. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val)
  13882. {
  13883. if (val) {
  13884. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_terminalAlias_ElmFn);
  13885. }
  13886. }
  13887. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias_ElmFn(PRegistrationConfirm_terminalAlias val)
  13888. {
  13889. if (val) {
  13890. ASN1Free_AliasAddress(&val->value);
  13891. }
  13892. }
  13893. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val)
  13894. {
  13895. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn);
  13896. }
  13897. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints val)
  13898. {
  13899. if (!ASN1Enc_Endpoint(enc, &val->value))
  13900. return 0;
  13901. return 1;
  13902. }
  13903. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val)
  13904. {
  13905. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13906. }
  13907. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints val)
  13908. {
  13909. if (!ASN1Dec_Endpoint(dec, &val->value))
  13910. return 0;
  13911. return 1;
  13912. }
  13913. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val)
  13914. {
  13915. if (val) {
  13916. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn);
  13917. }
  13918. }
  13919. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn(PRegistrationRequest_alternateEndpoints val)
  13920. {
  13921. if (val) {
  13922. ASN1Free_Endpoint(&val->value);
  13923. }
  13924. }
  13925. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val)
  13926. {
  13927. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_terminalAlias_ElmFn);
  13928. }
  13929. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationRequest_terminalAlias val)
  13930. {
  13931. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13932. return 0;
  13933. return 1;
  13934. }
  13935. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val)
  13936. {
  13937. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_terminalAlias_ElmFn, sizeof(**val));
  13938. }
  13939. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationRequest_terminalAlias val)
  13940. {
  13941. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13942. return 0;
  13943. return 1;
  13944. }
  13945. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val)
  13946. {
  13947. if (val) {
  13948. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_terminalAlias_ElmFn);
  13949. }
  13950. }
  13951. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias_ElmFn(PRegistrationRequest_terminalAlias val)
  13952. {
  13953. if (val) {
  13954. ASN1Free_AliasAddress(&val->value);
  13955. }
  13956. }
  13957. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val)
  13958. {
  13959. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn);
  13960. }
  13961. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints val)
  13962. {
  13963. if (!ASN1Enc_Endpoint(enc, &val->value))
  13964. return 0;
  13965. return 1;
  13966. }
  13967. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val)
  13968. {
  13969. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13970. }
  13971. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints val)
  13972. {
  13973. if (!ASN1Dec_Endpoint(dec, &val->value))
  13974. return 0;
  13975. return 1;
  13976. }
  13977. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val)
  13978. {
  13979. if (val) {
  13980. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn);
  13981. }
  13982. }
  13983. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn(PGatekeeperRequest_alternateEndpoints val)
  13984. {
  13985. if (val) {
  13986. ASN1Free_Endpoint(&val->value);
  13987. }
  13988. }
  13989. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val)
  13990. {
  13991. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn);
  13992. }
  13993. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias val)
  13994. {
  13995. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13996. return 0;
  13997. return 1;
  13998. }
  13999. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val)
  14000. {
  14001. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn, sizeof(**val));
  14002. }
  14003. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias val)
  14004. {
  14005. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14006. return 0;
  14007. return 1;
  14008. }
  14009. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val)
  14010. {
  14011. if (val) {
  14012. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_endpointAlias_ElmFn);
  14013. }
  14014. }
  14015. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias_ElmFn(PGatekeeperRequest_endpointAlias val)
  14016. {
  14017. if (val) {
  14018. ASN1Free_AliasAddress(&val->value);
  14019. }
  14020. }
  14021. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val)
  14022. {
  14023. ASN1uint32_t l;
  14024. if (!ASN1Enc_AliasAddress(enc, &(val)->alias))
  14025. return 0;
  14026. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  14027. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  14028. return 0;
  14029. ASN1PEREncAlignment(enc);
  14030. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  14031. return 0;
  14032. if (!ASN1Enc_HASHED(enc, &(val)->token))
  14033. return 0;
  14034. return 1;
  14035. }
  14036. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val)
  14037. {
  14038. ASN1uint32_t l;
  14039. if (!ASN1Dec_AliasAddress(dec, &(val)->alias))
  14040. return 0;
  14041. if (!ASN1PERDecU32Val(dec, 2, &l))
  14042. return 0;
  14043. l += 1;
  14044. ASN1PERDecAlignment(dec);
  14045. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  14046. return 0;
  14047. (val)->timeStamp += 1;
  14048. if (!ASN1Dec_HASHED(dec, &(val)->token))
  14049. return 0;
  14050. return 1;
  14051. }
  14052. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val)
  14053. {
  14054. if (val) {
  14055. ASN1Free_AliasAddress(&(val)->alias);
  14056. ASN1Free_HASHED(&(val)->token);
  14057. }
  14058. }
  14059. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val)
  14060. {
  14061. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_destExtraCallInfo_ElmFn);
  14062. }
  14063. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PEndpoint_destExtraCallInfo val)
  14064. {
  14065. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14066. return 0;
  14067. return 1;
  14068. }
  14069. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val)
  14070. {
  14071. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_destExtraCallInfo_ElmFn, sizeof(**val));
  14072. }
  14073. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PEndpoint_destExtraCallInfo val)
  14074. {
  14075. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14076. return 0;
  14077. return 1;
  14078. }
  14079. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val)
  14080. {
  14081. if (val) {
  14082. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_destExtraCallInfo_ElmFn);
  14083. }
  14084. }
  14085. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo_ElmFn(PEndpoint_destExtraCallInfo val)
  14086. {
  14087. if (val) {
  14088. ASN1Free_AliasAddress(&val->value);
  14089. }
  14090. }
  14091. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val)
  14092. {
  14093. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn);
  14094. }
  14095. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress val)
  14096. {
  14097. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14098. return 0;
  14099. return 1;
  14100. }
  14101. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val)
  14102. {
  14103. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn, sizeof(**val));
  14104. }
  14105. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress val)
  14106. {
  14107. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14108. return 0;
  14109. return 1;
  14110. }
  14111. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val)
  14112. {
  14113. if (val) {
  14114. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_remoteExtensionAddress_ElmFn);
  14115. }
  14116. }
  14117. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress_ElmFn(PEndpoint_remoteExtensionAddress val)
  14118. {
  14119. if (val) {
  14120. ASN1Free_AliasAddress(&val->value);
  14121. }
  14122. }
  14123. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val)
  14124. {
  14125. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_aliasAddress_ElmFn);
  14126. }
  14127. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_aliasAddress val)
  14128. {
  14129. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14130. return 0;
  14131. return 1;
  14132. }
  14133. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val)
  14134. {
  14135. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_aliasAddress_ElmFn, sizeof(**val));
  14136. }
  14137. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_aliasAddress val)
  14138. {
  14139. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14140. return 0;
  14141. return 1;
  14142. }
  14143. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val)
  14144. {
  14145. if (val) {
  14146. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_aliasAddress_ElmFn);
  14147. }
  14148. }
  14149. static void ASN1CALL ASN1Free_Endpoint_aliasAddress_ElmFn(PEndpoint_aliasAddress val)
  14150. {
  14151. if (val) {
  14152. ASN1Free_AliasAddress(&val->value);
  14153. }
  14154. }
  14155. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val)
  14156. {
  14157. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn);
  14158. }
  14159. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes val)
  14160. {
  14161. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14162. return 0;
  14163. return 1;
  14164. }
  14165. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val)
  14166. {
  14167. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn, sizeof(**val));
  14168. }
  14169. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes val)
  14170. {
  14171. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14172. return 0;
  14173. return 1;
  14174. }
  14175. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val)
  14176. {
  14177. if (val) {
  14178. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn);
  14179. }
  14180. }
  14181. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn(PNonStandardProtocol_supportedPrefixes val)
  14182. {
  14183. if (val) {
  14184. ASN1Free_SupportedPrefix(&val->value);
  14185. }
  14186. }
  14187. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val)
  14188. {
  14189. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn);
  14190. }
  14191. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes val)
  14192. {
  14193. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14194. return 0;
  14195. return 1;
  14196. }
  14197. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val)
  14198. {
  14199. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14200. }
  14201. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes val)
  14202. {
  14203. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14204. return 0;
  14205. return 1;
  14206. }
  14207. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val)
  14208. {
  14209. if (val) {
  14210. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn);
  14211. }
  14212. }
  14213. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn(PT120OnlyCaps_supportedPrefixes val)
  14214. {
  14215. if (val) {
  14216. ASN1Free_SupportedPrefix(&val->value);
  14217. }
  14218. }
  14219. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val)
  14220. {
  14221. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn);
  14222. }
  14223. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes val)
  14224. {
  14225. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14226. return 0;
  14227. return 1;
  14228. }
  14229. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val)
  14230. {
  14231. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14232. }
  14233. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes val)
  14234. {
  14235. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14236. return 0;
  14237. return 1;
  14238. }
  14239. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val)
  14240. {
  14241. if (val) {
  14242. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_supportedPrefixes_ElmFn);
  14243. }
  14244. }
  14245. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes_ElmFn(PVoiceCaps_supportedPrefixes val)
  14246. {
  14247. if (val) {
  14248. ASN1Free_SupportedPrefix(&val->value);
  14249. }
  14250. }
  14251. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val)
  14252. {
  14253. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_supportedPrefixes_ElmFn);
  14254. }
  14255. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH324Caps_supportedPrefixes val)
  14256. {
  14257. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14258. return 0;
  14259. return 1;
  14260. }
  14261. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val)
  14262. {
  14263. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14264. }
  14265. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH324Caps_supportedPrefixes val)
  14266. {
  14267. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14268. return 0;
  14269. return 1;
  14270. }
  14271. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val)
  14272. {
  14273. if (val) {
  14274. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_supportedPrefixes_ElmFn);
  14275. }
  14276. }
  14277. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes_ElmFn(PH324Caps_supportedPrefixes val)
  14278. {
  14279. if (val) {
  14280. ASN1Free_SupportedPrefix(&val->value);
  14281. }
  14282. }
  14283. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val)
  14284. {
  14285. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_supportedPrefixes_ElmFn);
  14286. }
  14287. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH323Caps_supportedPrefixes val)
  14288. {
  14289. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14290. return 0;
  14291. return 1;
  14292. }
  14293. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val)
  14294. {
  14295. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14296. }
  14297. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH323Caps_supportedPrefixes val)
  14298. {
  14299. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14300. return 0;
  14301. return 1;
  14302. }
  14303. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val)
  14304. {
  14305. if (val) {
  14306. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_supportedPrefixes_ElmFn);
  14307. }
  14308. }
  14309. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes_ElmFn(PH323Caps_supportedPrefixes val)
  14310. {
  14311. if (val) {
  14312. ASN1Free_SupportedPrefix(&val->value);
  14313. }
  14314. }
  14315. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val)
  14316. {
  14317. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_supportedPrefixes_ElmFn);
  14318. }
  14319. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH322Caps_supportedPrefixes val)
  14320. {
  14321. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14322. return 0;
  14323. return 1;
  14324. }
  14325. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val)
  14326. {
  14327. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14328. }
  14329. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH322Caps_supportedPrefixes val)
  14330. {
  14331. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14332. return 0;
  14333. return 1;
  14334. }
  14335. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val)
  14336. {
  14337. if (val) {
  14338. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_supportedPrefixes_ElmFn);
  14339. }
  14340. }
  14341. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes_ElmFn(PH322Caps_supportedPrefixes val)
  14342. {
  14343. if (val) {
  14344. ASN1Free_SupportedPrefix(&val->value);
  14345. }
  14346. }
  14347. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val)
  14348. {
  14349. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_supportedPrefixes_ElmFn);
  14350. }
  14351. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH321Caps_supportedPrefixes val)
  14352. {
  14353. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14354. return 0;
  14355. return 1;
  14356. }
  14357. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val)
  14358. {
  14359. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14360. }
  14361. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH321Caps_supportedPrefixes val)
  14362. {
  14363. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14364. return 0;
  14365. return 1;
  14366. }
  14367. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val)
  14368. {
  14369. if (val) {
  14370. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_supportedPrefixes_ElmFn);
  14371. }
  14372. }
  14373. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes_ElmFn(PH321Caps_supportedPrefixes val)
  14374. {
  14375. if (val) {
  14376. ASN1Free_SupportedPrefix(&val->value);
  14377. }
  14378. }
  14379. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val)
  14380. {
  14381. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_supportedPrefixes_ElmFn);
  14382. }
  14383. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH320Caps_supportedPrefixes val)
  14384. {
  14385. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14386. return 0;
  14387. return 1;
  14388. }
  14389. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val)
  14390. {
  14391. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14392. }
  14393. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH320Caps_supportedPrefixes val)
  14394. {
  14395. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14396. return 0;
  14397. return 1;
  14398. }
  14399. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val)
  14400. {
  14401. if (val) {
  14402. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_supportedPrefixes_ElmFn);
  14403. }
  14404. }
  14405. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes_ElmFn(PH320Caps_supportedPrefixes val)
  14406. {
  14407. if (val) {
  14408. ASN1Free_SupportedPrefix(&val->value);
  14409. }
  14410. }
  14411. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val)
  14412. {
  14413. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_supportedPrefixes_ElmFn);
  14414. }
  14415. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH310Caps_supportedPrefixes val)
  14416. {
  14417. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14418. return 0;
  14419. return 1;
  14420. }
  14421. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val)
  14422. {
  14423. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14424. }
  14425. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH310Caps_supportedPrefixes val)
  14426. {
  14427. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14428. return 0;
  14429. return 1;
  14430. }
  14431. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val)
  14432. {
  14433. if (val) {
  14434. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_supportedPrefixes_ElmFn);
  14435. }
  14436. }
  14437. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes_ElmFn(PH310Caps_supportedPrefixes val)
  14438. {
  14439. if (val) {
  14440. ASN1Free_SupportedPrefix(&val->value);
  14441. }
  14442. }
  14443. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val)
  14444. {
  14445. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatewayInfo_protocol_ElmFn);
  14446. }
  14447. static int ASN1CALL ASN1Enc_GatewayInfo_protocol_ElmFn(ASN1encoding_t enc, PGatewayInfo_protocol val)
  14448. {
  14449. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  14450. return 0;
  14451. return 1;
  14452. }
  14453. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val)
  14454. {
  14455. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatewayInfo_protocol_ElmFn, sizeof(**val));
  14456. }
  14457. static int ASN1CALL ASN1Dec_GatewayInfo_protocol_ElmFn(ASN1decoding_t dec, PGatewayInfo_protocol val)
  14458. {
  14459. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  14460. return 0;
  14461. return 1;
  14462. }
  14463. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val)
  14464. {
  14465. if (val) {
  14466. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatewayInfo_protocol_ElmFn);
  14467. }
  14468. }
  14469. static void ASN1CALL ASN1Free_GatewayInfo_protocol_ElmFn(PGatewayInfo_protocol val)
  14470. {
  14471. if (val) {
  14472. ASN1Free_SupportedProtocols(&val->value);
  14473. }
  14474. }
  14475. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val)
  14476. {
  14477. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn);
  14478. }
  14479. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo val)
  14480. {
  14481. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14482. return 0;
  14483. return 1;
  14484. }
  14485. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val)
  14486. {
  14487. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14488. }
  14489. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo val)
  14490. {
  14491. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14492. return 0;
  14493. return 1;
  14494. }
  14495. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val)
  14496. {
  14497. if (val) {
  14498. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn);
  14499. }
  14500. }
  14501. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn(PFacility_UUIE_destExtraCallInfo val)
  14502. {
  14503. if (val) {
  14504. ASN1Free_AliasAddress(&val->value);
  14505. }
  14506. }
  14507. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val)
  14508. {
  14509. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14510. }
  14511. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress val)
  14512. {
  14513. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14514. return 0;
  14515. return 1;
  14516. }
  14517. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val)
  14518. {
  14519. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn, sizeof(**val));
  14520. }
  14521. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress val)
  14522. {
  14523. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14524. return 0;
  14525. return 1;
  14526. }
  14527. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val)
  14528. {
  14529. if (val) {
  14530. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14531. }
  14532. }
  14533. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn(PFacility_UUIE_alternativeAliasAddress val)
  14534. {
  14535. if (val) {
  14536. ASN1Free_AliasAddress(&val->value);
  14537. }
  14538. }
  14539. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val)
  14540. {
  14541. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn);
  14542. }
  14543. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo val)
  14544. {
  14545. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14546. return 0;
  14547. return 1;
  14548. }
  14549. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val)
  14550. {
  14551. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14552. }
  14553. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo val)
  14554. {
  14555. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14556. return 0;
  14557. return 1;
  14558. }
  14559. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val)
  14560. {
  14561. if (val) {
  14562. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn);
  14563. }
  14564. }
  14565. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn(PSetup_UUIE_destExtraCallInfo val)
  14566. {
  14567. if (val) {
  14568. ASN1Free_AliasAddress(&val->value);
  14569. }
  14570. }
  14571. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val)
  14572. {
  14573. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destinationAddress_ElmFn);
  14574. }
  14575. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destinationAddress val)
  14576. {
  14577. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14578. return 0;
  14579. return 1;
  14580. }
  14581. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val)
  14582. {
  14583. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destinationAddress_ElmFn, sizeof(**val));
  14584. }
  14585. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destinationAddress val)
  14586. {
  14587. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14588. return 0;
  14589. return 1;
  14590. }
  14591. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val)
  14592. {
  14593. if (val) {
  14594. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destinationAddress_ElmFn);
  14595. }
  14596. }
  14597. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress_ElmFn(PSetup_UUIE_destinationAddress val)
  14598. {
  14599. if (val) {
  14600. ASN1Free_AliasAddress(&val->value);
  14601. }
  14602. }
  14603. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val)
  14604. {
  14605. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_sourceAddress_ElmFn);
  14606. }
  14607. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_sourceAddress val)
  14608. {
  14609. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14610. return 0;
  14611. return 1;
  14612. }
  14613. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val)
  14614. {
  14615. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_sourceAddress_ElmFn, sizeof(**val));
  14616. }
  14617. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_sourceAddress val)
  14618. {
  14619. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14620. return 0;
  14621. return 1;
  14622. }
  14623. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val)
  14624. {
  14625. if (val) {
  14626. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_sourceAddress_ElmFn);
  14627. }
  14628. }
  14629. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress_ElmFn(PSetup_UUIE_sourceAddress val)
  14630. {
  14631. if (val) {
  14632. ASN1Free_AliasAddress(&val->value);
  14633. }
  14634. }
  14635. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val)
  14636. {
  14637. ASN1octet_t o[2];
  14638. ASN1uint32_t y;
  14639. ASN1encoding_t ee;
  14640. CopyMemory(o, (val)->o, 2);
  14641. o[1] |= 0x80;
  14642. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14643. if (!ASN1PEREncBitVal(enc, 1, y))
  14644. return 0;
  14645. if (!ASN1PEREncBits(enc, 1, o))
  14646. return 0;
  14647. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14648. return 0;
  14649. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14650. return 0;
  14651. if (o[0] & 0x80) {
  14652. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14653. return 0;
  14654. }
  14655. if (y) {
  14656. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14657. return 0;
  14658. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14659. return 0;
  14660. if (o[1] & 0x80) {
  14661. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14662. return 0;
  14663. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14664. return 0;
  14665. }
  14666. if (o[1] & 0x40) {
  14667. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14668. return 0;
  14669. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14670. return 0;
  14671. }
  14672. if (o[1] & 0x20) {
  14673. if (!ASN1Enc_Alerting_UUIE_tokens(ee, &(val)->tokens))
  14674. return 0;
  14675. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14676. return 0;
  14677. }
  14678. if (o[1] & 0x10) {
  14679. if (!ASN1Enc_Alerting_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14680. return 0;
  14681. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14682. return 0;
  14683. }
  14684. if (o[1] & 0x8) {
  14685. if (!ASN1Enc_Alerting_UUIE_fastStart(ee, &(val)->fastStart))
  14686. return 0;
  14687. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14688. return 0;
  14689. }
  14690. ASN1_CloseEncoder2(ee);
  14691. }
  14692. return 1;
  14693. }
  14694. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val)
  14695. {
  14696. ASN1uint32_t y;
  14697. ASN1decoding_t dd;
  14698. ASN1octet_t *db;
  14699. ASN1uint32_t ds;
  14700. ASN1uint32_t i;
  14701. ASN1uint32_t e;
  14702. if (!ASN1PERDecExtensionBit(dec, &y))
  14703. return 0;
  14704. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14705. return 0;
  14706. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  14707. return 0;
  14708. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  14709. return 0;
  14710. if ((val)->o[0] & 0x80) {
  14711. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  14712. return 0;
  14713. }
  14714. if (!y) {
  14715. ZeroMemory((val)->o + 1, 1);
  14716. } else {
  14717. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  14718. return 0;
  14719. if ((val)->o[1] & 0x80) {
  14720. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14721. return 0;
  14722. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14723. return 0;
  14724. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  14725. return 0;
  14726. ASN1_CloseDecoder(dd);
  14727. }
  14728. if ((val)->o[1] & 0x40) {
  14729. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14730. return 0;
  14731. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14732. return 0;
  14733. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  14734. return 0;
  14735. ASN1_CloseDecoder(dd);
  14736. }
  14737. if ((val)->o[1] & 0x20) {
  14738. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14739. return 0;
  14740. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14741. return 0;
  14742. if (!ASN1Dec_Alerting_UUIE_tokens(dd, &(val)->tokens))
  14743. return 0;
  14744. ASN1_CloseDecoder(dd);
  14745. }
  14746. if ((val)->o[1] & 0x10) {
  14747. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14748. return 0;
  14749. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14750. return 0;
  14751. if (!ASN1Dec_Alerting_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  14752. return 0;
  14753. ASN1_CloseDecoder(dd);
  14754. }
  14755. if ((val)->o[1] & 0x8) {
  14756. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14757. return 0;
  14758. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14759. return 0;
  14760. if (!ASN1Dec_Alerting_UUIE_fastStart(dd, &(val)->fastStart))
  14761. return 0;
  14762. ASN1_CloseDecoder(dd);
  14763. }
  14764. for (i = 0; i < e; i++) {
  14765. if (!ASN1PERDecSkipFragmented(dec, 8))
  14766. return 0;
  14767. }
  14768. }
  14769. return 1;
  14770. }
  14771. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val)
  14772. {
  14773. if (val) {
  14774. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  14775. ASN1Free_EndpointType(&(val)->destinationInfo);
  14776. if ((val)->o[0] & 0x80) {
  14777. ASN1Free_TransportAddress(&(val)->h245Address);
  14778. }
  14779. if ((val)->o[1] & 0x80) {
  14780. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  14781. }
  14782. if ((val)->o[1] & 0x40) {
  14783. ASN1Free_H245Security(&(val)->h245SecurityMode);
  14784. }
  14785. if ((val)->o[1] & 0x20) {
  14786. ASN1Free_Alerting_UUIE_tokens(&(val)->tokens);
  14787. }
  14788. if ((val)->o[1] & 0x10) {
  14789. ASN1Free_Alerting_UUIE_cryptoTokens(&(val)->cryptoTokens);
  14790. }
  14791. if ((val)->o[1] & 0x8) {
  14792. ASN1Free_Alerting_UUIE_fastStart(&(val)->fastStart);
  14793. }
  14794. }
  14795. }
  14796. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val)
  14797. {
  14798. ASN1octet_t o[2];
  14799. ASN1uint32_t y;
  14800. ASN1encoding_t ee;
  14801. CopyMemory(o, (val)->o, 2);
  14802. o[1] |= 0x80;
  14803. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14804. if (!ASN1PEREncBitVal(enc, 1, y))
  14805. return 0;
  14806. if (!ASN1PEREncBits(enc, 1, o))
  14807. return 0;
  14808. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14809. return 0;
  14810. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14811. return 0;
  14812. if (o[0] & 0x80) {
  14813. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14814. return 0;
  14815. }
  14816. if (y) {
  14817. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14818. return 0;
  14819. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14820. return 0;
  14821. if (o[1] & 0x80) {
  14822. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14823. return 0;
  14824. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14825. return 0;
  14826. }
  14827. if (o[1] & 0x40) {
  14828. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14829. return 0;
  14830. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14831. return 0;
  14832. }
  14833. if (o[1] & 0x20) {
  14834. if (!ASN1Enc_CallProceeding_UUIE_tokens(ee, &(val)->tokens))
  14835. return 0;
  14836. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14837. return 0;
  14838. }
  14839. if (o[1] & 0x10) {
  14840. if (!ASN1Enc_CallProceeding_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14841. return 0;
  14842. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14843. return 0;
  14844. }
  14845. if (o[1] & 0x8) {
  14846. if (!ASN1Enc_CallProceeding_UUIE_fastStart(ee, &(val)->fastStart))
  14847. return 0;
  14848. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14849. return 0;
  14850. }
  14851. ASN1_CloseEncoder2(ee);
  14852. }
  14853. return 1;
  14854. }
  14855. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val)
  14856. {
  14857. ASN1uint32_t y;
  14858. ASN1decoding_t dd;
  14859. ASN1octet_t *db;
  14860. ASN1uint32_t ds;
  14861. ASN1uint32_t i;
  14862. ASN1uint32_t e;
  14863. if (!ASN1PERDecExtensionBit(dec, &y))
  14864. return 0;
  14865. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14866. return 0;
  14867. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  14868. return 0;
  14869. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  14870. return 0;
  14871. if ((val)->o[0] & 0x80) {
  14872. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  14873. return 0;
  14874. }
  14875. if (!y) {
  14876. ZeroMemory((val)->o + 1, 1);
  14877. } else {
  14878. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  14879. return 0;
  14880. if ((val)->o[1] & 0x80) {
  14881. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14882. return 0;
  14883. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14884. return 0;
  14885. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  14886. return 0;
  14887. ASN1_CloseDecoder(dd);
  14888. }
  14889. if ((val)->o[1] & 0x40) {
  14890. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14891. return 0;
  14892. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14893. return 0;
  14894. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  14895. return 0;
  14896. ASN1_CloseDecoder(dd);
  14897. }
  14898. if ((val)->o[1] & 0x20) {
  14899. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14900. return 0;
  14901. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14902. return 0;
  14903. if (!ASN1Dec_CallProceeding_UUIE_tokens(dd, &(val)->tokens))
  14904. return 0;
  14905. ASN1_CloseDecoder(dd);
  14906. }
  14907. if ((val)->o[1] & 0x10) {
  14908. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14909. return 0;
  14910. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14911. return 0;
  14912. if (!ASN1Dec_CallProceeding_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  14913. return 0;
  14914. ASN1_CloseDecoder(dd);
  14915. }
  14916. if ((val)->o[1] & 0x8) {
  14917. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14918. return 0;
  14919. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  14920. return 0;
  14921. if (!ASN1Dec_CallProceeding_UUIE_fastStart(dd, &(val)->fastStart))
  14922. return 0;
  14923. ASN1_CloseDecoder(dd);
  14924. }
  14925. for (i = 0; i < e; i++) {
  14926. if (!ASN1PERDecSkipFragmented(dec, 8))
  14927. return 0;
  14928. }
  14929. }
  14930. return 1;
  14931. }
  14932. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val)
  14933. {
  14934. if (val) {
  14935. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  14936. ASN1Free_EndpointType(&(val)->destinationInfo);
  14937. if ((val)->o[0] & 0x80) {
  14938. ASN1Free_TransportAddress(&(val)->h245Address);
  14939. }
  14940. if ((val)->o[1] & 0x80) {
  14941. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  14942. }
  14943. if ((val)->o[1] & 0x40) {
  14944. ASN1Free_H245Security(&(val)->h245SecurityMode);
  14945. }
  14946. if ((val)->o[1] & 0x20) {
  14947. ASN1Free_CallProceeding_UUIE_tokens(&(val)->tokens);
  14948. }
  14949. if ((val)->o[1] & 0x10) {
  14950. ASN1Free_CallProceeding_UUIE_cryptoTokens(&(val)->cryptoTokens);
  14951. }
  14952. if ((val)->o[1] & 0x8) {
  14953. ASN1Free_CallProceeding_UUIE_fastStart(&(val)->fastStart);
  14954. }
  14955. }
  14956. }
  14957. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val)
  14958. {
  14959. ASN1octet_t o[2];
  14960. ASN1uint32_t y;
  14961. ASN1encoding_t ee;
  14962. CopyMemory(o, (val)->o, 2);
  14963. o[1] |= 0x80;
  14964. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14965. if (!ASN1PEREncBitVal(enc, 1, y))
  14966. return 0;
  14967. if (!ASN1PEREncBits(enc, 1, o))
  14968. return 0;
  14969. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14970. return 0;
  14971. if (o[0] & 0x80) {
  14972. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14973. return 0;
  14974. }
  14975. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14976. return 0;
  14977. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  14978. return 0;
  14979. if (y) {
  14980. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14981. return 0;
  14982. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14983. return 0;
  14984. if (o[1] & 0x80) {
  14985. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14986. return 0;
  14987. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14988. return 0;
  14989. }
  14990. if (o[1] & 0x40) {
  14991. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14992. return 0;
  14993. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14994. return 0;
  14995. }
  14996. if (o[1] & 0x20) {
  14997. if (!ASN1Enc_Connect_UUIE_tokens(ee, &(val)->tokens))
  14998. return 0;
  14999. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15000. return 0;
  15001. }
  15002. if (o[1] & 0x10) {
  15003. if (!ASN1Enc_Connect_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15004. return 0;
  15005. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15006. return 0;
  15007. }
  15008. if (o[1] & 0x8) {
  15009. if (!ASN1Enc_Connect_UUIE_fastStart(ee, &(val)->fastStart))
  15010. return 0;
  15011. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15012. return 0;
  15013. }
  15014. ASN1_CloseEncoder2(ee);
  15015. }
  15016. return 1;
  15017. }
  15018. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val)
  15019. {
  15020. ASN1uint32_t y;
  15021. ASN1decoding_t dd;
  15022. ASN1octet_t *db;
  15023. ASN1uint32_t ds;
  15024. ASN1uint32_t i;
  15025. ASN1uint32_t e;
  15026. if (!ASN1PERDecExtensionBit(dec, &y))
  15027. return 0;
  15028. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15029. return 0;
  15030. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15031. return 0;
  15032. if ((val)->o[0] & 0x80) {
  15033. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15034. return 0;
  15035. }
  15036. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15037. return 0;
  15038. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15039. return 0;
  15040. if (!y) {
  15041. ZeroMemory((val)->o + 1, 1);
  15042. } else {
  15043. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15044. return 0;
  15045. if ((val)->o[1] & 0x80) {
  15046. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15047. return 0;
  15048. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15049. return 0;
  15050. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15051. return 0;
  15052. ASN1_CloseDecoder(dd);
  15053. }
  15054. if ((val)->o[1] & 0x40) {
  15055. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15056. return 0;
  15057. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15058. return 0;
  15059. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15060. return 0;
  15061. ASN1_CloseDecoder(dd);
  15062. }
  15063. if ((val)->o[1] & 0x20) {
  15064. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15065. return 0;
  15066. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15067. return 0;
  15068. if (!ASN1Dec_Connect_UUIE_tokens(dd, &(val)->tokens))
  15069. return 0;
  15070. ASN1_CloseDecoder(dd);
  15071. }
  15072. if ((val)->o[1] & 0x10) {
  15073. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15074. return 0;
  15075. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15076. return 0;
  15077. if (!ASN1Dec_Connect_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15078. return 0;
  15079. ASN1_CloseDecoder(dd);
  15080. }
  15081. if ((val)->o[1] & 0x8) {
  15082. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15083. return 0;
  15084. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15085. return 0;
  15086. if (!ASN1Dec_Connect_UUIE_fastStart(dd, &(val)->fastStart))
  15087. return 0;
  15088. ASN1_CloseDecoder(dd);
  15089. }
  15090. for (i = 0; i < e; i++) {
  15091. if (!ASN1PERDecSkipFragmented(dec, 8))
  15092. return 0;
  15093. }
  15094. }
  15095. return 1;
  15096. }
  15097. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val)
  15098. {
  15099. if (val) {
  15100. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15101. if ((val)->o[0] & 0x80) {
  15102. ASN1Free_TransportAddress(&(val)->h245Address);
  15103. }
  15104. ASN1Free_EndpointType(&(val)->destinationInfo);
  15105. if ((val)->o[1] & 0x80) {
  15106. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15107. }
  15108. if ((val)->o[1] & 0x40) {
  15109. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15110. }
  15111. if ((val)->o[1] & 0x20) {
  15112. ASN1Free_Connect_UUIE_tokens(&(val)->tokens);
  15113. }
  15114. if ((val)->o[1] & 0x10) {
  15115. ASN1Free_Connect_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15116. }
  15117. if ((val)->o[1] & 0x8) {
  15118. ASN1Free_Connect_UUIE_fastStart(&(val)->fastStart);
  15119. }
  15120. }
  15121. }
  15122. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val)
  15123. {
  15124. ASN1octet_t o[3];
  15125. ASN1uint32_t y;
  15126. ASN1encoding_t ee;
  15127. CopyMemory(o, (val)->o, 3);
  15128. o[1] |= 0x20;
  15129. o[1] |= 0x1;
  15130. o[2] |= 0x80;
  15131. y = ASN1PEREncCheckExtensions(9, (val)->o + 1);
  15132. if (!ASN1PEREncBitVal(enc, 1, y))
  15133. return 0;
  15134. if (!ASN1PEREncBits(enc, 7, o))
  15135. return 0;
  15136. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15137. return 0;
  15138. if (o[0] & 0x80) {
  15139. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15140. return 0;
  15141. }
  15142. if (o[0] & 0x40) {
  15143. if (!ASN1Enc_Setup_UUIE_sourceAddress(enc, &(val)->sourceAddress))
  15144. return 0;
  15145. }
  15146. if (!ASN1Enc_EndpointType(enc, &(val)->sourceInfo))
  15147. return 0;
  15148. if (o[0] & 0x20) {
  15149. if (!ASN1Enc_Setup_UUIE_destinationAddress(enc, &(val)->destinationAddress))
  15150. return 0;
  15151. }
  15152. if (o[0] & 0x10) {
  15153. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  15154. return 0;
  15155. }
  15156. if (o[0] & 0x8) {
  15157. if (!ASN1Enc_Setup_UUIE_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  15158. return 0;
  15159. }
  15160. if (o[0] & 0x4) {
  15161. if (!ASN1Enc_Setup_UUIE_destExtraCRV(enc, &(val)->destExtraCRV))
  15162. return 0;
  15163. }
  15164. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  15165. return 0;
  15166. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15167. return 0;
  15168. if (!ASN1Enc_Setup_UUIE_conferenceGoal(enc, &(val)->conferenceGoal))
  15169. return 0;
  15170. if (o[0] & 0x2) {
  15171. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  15172. return 0;
  15173. }
  15174. if (!ASN1Enc_CallType(enc, &(val)->callType))
  15175. return 0;
  15176. if (y) {
  15177. if (!ASN1PEREncNormallySmallBits(enc, 9, o + 1))
  15178. return 0;
  15179. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15180. return 0;
  15181. if (o[1] & 0x80) {
  15182. if (!ASN1Enc_TransportAddress(ee, &(val)->sourceCallSignalAddress))
  15183. return 0;
  15184. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15185. return 0;
  15186. }
  15187. if (o[1] & 0x40) {
  15188. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15189. return 0;
  15190. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15191. return 0;
  15192. }
  15193. if (o[1] & 0x20) {
  15194. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15195. return 0;
  15196. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15197. return 0;
  15198. }
  15199. if (o[1] & 0x10) {
  15200. if (!ASN1Enc_Setup_UUIE_h245SecurityCapability(ee, &(val)->h245SecurityCapability))
  15201. return 0;
  15202. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15203. return 0;
  15204. }
  15205. if (o[1] & 0x8) {
  15206. if (!ASN1Enc_Setup_UUIE_tokens(ee, &(val)->tokens))
  15207. return 0;
  15208. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15209. return 0;
  15210. }
  15211. if (o[1] & 0x4) {
  15212. if (!ASN1Enc_Setup_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15213. return 0;
  15214. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15215. return 0;
  15216. }
  15217. if (o[1] & 0x2) {
  15218. if (!ASN1Enc_Setup_UUIE_fastStart(ee, &(val)->fastStart))
  15219. return 0;
  15220. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15221. return 0;
  15222. }
  15223. if (o[1] & 0x1) {
  15224. if (!ASN1PEREncBoolean(ee, (val)->mediaWaitForConnect))
  15225. return 0;
  15226. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15227. return 0;
  15228. }
  15229. if (o[2] & 0x80) {
  15230. if (!ASN1PEREncBoolean(ee, (val)->canOverlapSend))
  15231. return 0;
  15232. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15233. return 0;
  15234. }
  15235. ASN1_CloseEncoder2(ee);
  15236. }
  15237. return 1;
  15238. }
  15239. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val)
  15240. {
  15241. ASN1uint32_t y;
  15242. ASN1decoding_t dd;
  15243. ASN1octet_t *db;
  15244. ASN1uint32_t ds;
  15245. ASN1uint32_t i;
  15246. ASN1uint32_t e;
  15247. if (!ASN1PERDecExtensionBit(dec, &y))
  15248. return 0;
  15249. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  15250. return 0;
  15251. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15252. return 0;
  15253. if ((val)->o[0] & 0x80) {
  15254. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15255. return 0;
  15256. }
  15257. if ((val)->o[0] & 0x40) {
  15258. if (!ASN1Dec_Setup_UUIE_sourceAddress(dec, &(val)->sourceAddress))
  15259. return 0;
  15260. }
  15261. if (!ASN1Dec_EndpointType(dec, &(val)->sourceInfo))
  15262. return 0;
  15263. if ((val)->o[0] & 0x20) {
  15264. if (!ASN1Dec_Setup_UUIE_destinationAddress(dec, &(val)->destinationAddress))
  15265. return 0;
  15266. }
  15267. if ((val)->o[0] & 0x10) {
  15268. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  15269. return 0;
  15270. }
  15271. if ((val)->o[0] & 0x8) {
  15272. if (!ASN1Dec_Setup_UUIE_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  15273. return 0;
  15274. }
  15275. if ((val)->o[0] & 0x4) {
  15276. if (!ASN1Dec_Setup_UUIE_destExtraCRV(dec, &(val)->destExtraCRV))
  15277. return 0;
  15278. }
  15279. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  15280. return 0;
  15281. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15282. return 0;
  15283. if (!ASN1Dec_Setup_UUIE_conferenceGoal(dec, &(val)->conferenceGoal))
  15284. return 0;
  15285. if ((val)->o[0] & 0x2) {
  15286. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  15287. return 0;
  15288. }
  15289. if (!ASN1Dec_CallType(dec, &(val)->callType))
  15290. return 0;
  15291. if (!y) {
  15292. ZeroMemory((val)->o + 1, 2);
  15293. } else {
  15294. if (!ASN1PERDecNormallySmallExtension(dec, &e, 9, (val)->o + 1))
  15295. return 0;
  15296. if ((val)->o[1] & 0x80) {
  15297. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15298. return 0;
  15299. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15300. return 0;
  15301. if (!ASN1Dec_TransportAddress(dd, &(val)->sourceCallSignalAddress))
  15302. return 0;
  15303. ASN1_CloseDecoder(dd);
  15304. }
  15305. if ((val)->o[1] & 0x40) {
  15306. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15307. return 0;
  15308. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15309. return 0;
  15310. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15311. return 0;
  15312. ASN1_CloseDecoder(dd);
  15313. }
  15314. if ((val)->o[1] & 0x20) {
  15315. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15316. return 0;
  15317. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15318. return 0;
  15319. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15320. return 0;
  15321. ASN1_CloseDecoder(dd);
  15322. }
  15323. if ((val)->o[1] & 0x10) {
  15324. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15325. return 0;
  15326. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15327. return 0;
  15328. if (!ASN1Dec_Setup_UUIE_h245SecurityCapability(dd, &(val)->h245SecurityCapability))
  15329. return 0;
  15330. ASN1_CloseDecoder(dd);
  15331. }
  15332. if ((val)->o[1] & 0x8) {
  15333. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15334. return 0;
  15335. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15336. return 0;
  15337. if (!ASN1Dec_Setup_UUIE_tokens(dd, &(val)->tokens))
  15338. return 0;
  15339. ASN1_CloseDecoder(dd);
  15340. }
  15341. if ((val)->o[1] & 0x4) {
  15342. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15343. return 0;
  15344. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15345. return 0;
  15346. if (!ASN1Dec_Setup_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15347. return 0;
  15348. ASN1_CloseDecoder(dd);
  15349. }
  15350. if ((val)->o[1] & 0x2) {
  15351. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15352. return 0;
  15353. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15354. return 0;
  15355. if (!ASN1Dec_Setup_UUIE_fastStart(dd, &(val)->fastStart))
  15356. return 0;
  15357. ASN1_CloseDecoder(dd);
  15358. }
  15359. if ((val)->o[1] & 0x1) {
  15360. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15361. return 0;
  15362. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15363. return 0;
  15364. if (!ASN1PERDecBoolean(dd, &(val)->mediaWaitForConnect))
  15365. return 0;
  15366. ASN1_CloseDecoder(dd);
  15367. }
  15368. if ((val)->o[2] & 0x80) {
  15369. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15370. return 0;
  15371. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15372. return 0;
  15373. if (!ASN1PERDecBoolean(dd, &(val)->canOverlapSend))
  15374. return 0;
  15375. ASN1_CloseDecoder(dd);
  15376. }
  15377. for (i = 0; i < e; i++) {
  15378. if (!ASN1PERDecSkipFragmented(dec, 8))
  15379. return 0;
  15380. }
  15381. }
  15382. return 1;
  15383. }
  15384. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val)
  15385. {
  15386. if (val) {
  15387. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15388. if ((val)->o[0] & 0x80) {
  15389. ASN1Free_TransportAddress(&(val)->h245Address);
  15390. }
  15391. if ((val)->o[0] & 0x40) {
  15392. ASN1Free_Setup_UUIE_sourceAddress(&(val)->sourceAddress);
  15393. }
  15394. ASN1Free_EndpointType(&(val)->sourceInfo);
  15395. if ((val)->o[0] & 0x20) {
  15396. ASN1Free_Setup_UUIE_destinationAddress(&(val)->destinationAddress);
  15397. }
  15398. if ((val)->o[0] & 0x10) {
  15399. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  15400. }
  15401. if ((val)->o[0] & 0x8) {
  15402. ASN1Free_Setup_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15403. }
  15404. if ((val)->o[0] & 0x4) {
  15405. ASN1Free_Setup_UUIE_destExtraCRV(&(val)->destExtraCRV);
  15406. }
  15407. if ((val)->o[1] & 0x80) {
  15408. ASN1Free_TransportAddress(&(val)->sourceCallSignalAddress);
  15409. }
  15410. if ((val)->o[1] & 0x40) {
  15411. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15412. }
  15413. if ((val)->o[1] & 0x20) {
  15414. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15415. }
  15416. if ((val)->o[1] & 0x10) {
  15417. ASN1Free_Setup_UUIE_h245SecurityCapability(&(val)->h245SecurityCapability);
  15418. }
  15419. if ((val)->o[1] & 0x8) {
  15420. ASN1Free_Setup_UUIE_tokens(&(val)->tokens);
  15421. }
  15422. if ((val)->o[1] & 0x4) {
  15423. ASN1Free_Setup_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15424. }
  15425. if ((val)->o[1] & 0x2) {
  15426. ASN1Free_Setup_UUIE_fastStart(&(val)->fastStart);
  15427. }
  15428. }
  15429. }
  15430. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val)
  15431. {
  15432. ASN1octet_t o[2];
  15433. ASN1uint32_t y;
  15434. ASN1encoding_t ee;
  15435. CopyMemory(o, (val)->o, 2);
  15436. o[1] |= 0x80;
  15437. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  15438. if (!ASN1PEREncBitVal(enc, 1, y))
  15439. return 0;
  15440. if (!ASN1PEREncBits(enc, 3, o))
  15441. return 0;
  15442. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15443. return 0;
  15444. if (o[0] & 0x80) {
  15445. if (!ASN1Enc_TransportAddress(enc, &(val)->alternativeAddress))
  15446. return 0;
  15447. }
  15448. if (o[0] & 0x40) {
  15449. if (!ASN1Enc_Facility_UUIE_alternativeAliasAddress(enc, &(val)->alternativeAliasAddress))
  15450. return 0;
  15451. }
  15452. if (o[0] & 0x20) {
  15453. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15454. return 0;
  15455. }
  15456. if (!ASN1Enc_FacilityReason(enc, &(val)->reason))
  15457. return 0;
  15458. if (y) {
  15459. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  15460. return 0;
  15461. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15462. return 0;
  15463. if (o[1] & 0x80) {
  15464. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15465. return 0;
  15466. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15467. return 0;
  15468. }
  15469. if (o[1] & 0x40) {
  15470. if (!ASN1Enc_Facility_UUIE_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  15471. return 0;
  15472. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15473. return 0;
  15474. }
  15475. if (o[1] & 0x20) {
  15476. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15477. return 0;
  15478. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15479. return 0;
  15480. }
  15481. if (o[1] & 0x10) {
  15482. if (!ASN1Enc_Facility_UUIE_tokens(ee, &(val)->tokens))
  15483. return 0;
  15484. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15485. return 0;
  15486. }
  15487. if (o[1] & 0x8) {
  15488. if (!ASN1Enc_Facility_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15489. return 0;
  15490. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15491. return 0;
  15492. }
  15493. if (o[1] & 0x4) {
  15494. if (!ASN1Enc_Facility_UUIE_conferences(ee, &(val)->conferences))
  15495. return 0;
  15496. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15497. return 0;
  15498. }
  15499. if (o[1] & 0x2) {
  15500. if (!ASN1Enc_TransportAddress(ee, &(val)->h245Address))
  15501. return 0;
  15502. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15503. return 0;
  15504. }
  15505. if (o[1] & 0x1) {
  15506. if (!ASN1Enc_Facility_UUIE_fastStart(ee, &(val)->fastStart))
  15507. return 0;
  15508. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15509. return 0;
  15510. }
  15511. ASN1_CloseEncoder2(ee);
  15512. }
  15513. return 1;
  15514. }
  15515. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val)
  15516. {
  15517. ASN1uint32_t y;
  15518. ASN1decoding_t dd;
  15519. ASN1octet_t *db;
  15520. ASN1uint32_t ds;
  15521. ASN1uint32_t i;
  15522. ASN1uint32_t e;
  15523. if (!ASN1PERDecExtensionBit(dec, &y))
  15524. return 0;
  15525. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15526. return 0;
  15527. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15528. return 0;
  15529. if ((val)->o[0] & 0x80) {
  15530. if (!ASN1Dec_TransportAddress(dec, &(val)->alternativeAddress))
  15531. return 0;
  15532. }
  15533. if ((val)->o[0] & 0x40) {
  15534. if (!ASN1Dec_Facility_UUIE_alternativeAliasAddress(dec, &(val)->alternativeAliasAddress))
  15535. return 0;
  15536. }
  15537. if ((val)->o[0] & 0x20) {
  15538. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15539. return 0;
  15540. }
  15541. if (!ASN1Dec_FacilityReason(dec, &(val)->reason))
  15542. return 0;
  15543. if (!y) {
  15544. ZeroMemory((val)->o + 1, 1);
  15545. } else {
  15546. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  15547. return 0;
  15548. if ((val)->o[1] & 0x80) {
  15549. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15550. return 0;
  15551. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15552. return 0;
  15553. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15554. return 0;
  15555. ASN1_CloseDecoder(dd);
  15556. }
  15557. if ((val)->o[1] & 0x40) {
  15558. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15559. return 0;
  15560. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15561. return 0;
  15562. if (!ASN1Dec_Facility_UUIE_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  15563. return 0;
  15564. ASN1_CloseDecoder(dd);
  15565. }
  15566. if ((val)->o[1] & 0x20) {
  15567. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15568. return 0;
  15569. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15570. return 0;
  15571. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15572. return 0;
  15573. ASN1_CloseDecoder(dd);
  15574. }
  15575. if ((val)->o[1] & 0x10) {
  15576. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15577. return 0;
  15578. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15579. return 0;
  15580. if (!ASN1Dec_Facility_UUIE_tokens(dd, &(val)->tokens))
  15581. return 0;
  15582. ASN1_CloseDecoder(dd);
  15583. }
  15584. if ((val)->o[1] & 0x8) {
  15585. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15586. return 0;
  15587. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15588. return 0;
  15589. if (!ASN1Dec_Facility_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15590. return 0;
  15591. ASN1_CloseDecoder(dd);
  15592. }
  15593. if ((val)->o[1] & 0x4) {
  15594. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15595. return 0;
  15596. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15597. return 0;
  15598. if (!ASN1Dec_Facility_UUIE_conferences(dd, &(val)->conferences))
  15599. return 0;
  15600. ASN1_CloseDecoder(dd);
  15601. }
  15602. if ((val)->o[1] & 0x2) {
  15603. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15604. return 0;
  15605. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15606. return 0;
  15607. if (!ASN1Dec_TransportAddress(dd, &(val)->h245Address))
  15608. return 0;
  15609. ASN1_CloseDecoder(dd);
  15610. }
  15611. if ((val)->o[1] & 0x1) {
  15612. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15613. return 0;
  15614. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  15615. return 0;
  15616. if (!ASN1Dec_Facility_UUIE_fastStart(dd, &(val)->fastStart))
  15617. return 0;
  15618. ASN1_CloseDecoder(dd);
  15619. }
  15620. for (i = 0; i < e; i++) {
  15621. if (!ASN1PERDecSkipFragmented(dec, 8))
  15622. return 0;
  15623. }
  15624. }
  15625. return 1;
  15626. }
  15627. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val)
  15628. {
  15629. if (val) {
  15630. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15631. if ((val)->o[0] & 0x80) {
  15632. ASN1Free_TransportAddress(&(val)->alternativeAddress);
  15633. }
  15634. if ((val)->o[0] & 0x40) {
  15635. ASN1Free_Facility_UUIE_alternativeAliasAddress(&(val)->alternativeAliasAddress);
  15636. }
  15637. if ((val)->o[0] & 0x20) {
  15638. }
  15639. if ((val)->o[1] & 0x80) {
  15640. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15641. }
  15642. if ((val)->o[1] & 0x40) {
  15643. ASN1Free_Facility_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15644. }
  15645. if ((val)->o[1] & 0x20) {
  15646. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15647. }
  15648. if ((val)->o[1] & 0x10) {
  15649. ASN1Free_Facility_UUIE_tokens(&(val)->tokens);
  15650. }
  15651. if ((val)->o[1] & 0x8) {
  15652. ASN1Free_Facility_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15653. }
  15654. if ((val)->o[1] & 0x4) {
  15655. ASN1Free_Facility_UUIE_conferences(&(val)->conferences);
  15656. }
  15657. if ((val)->o[1] & 0x2) {
  15658. ASN1Free_TransportAddress(&(val)->h245Address);
  15659. }
  15660. if ((val)->o[1] & 0x1) {
  15661. ASN1Free_Facility_UUIE_fastStart(&(val)->fastStart);
  15662. }
  15663. }
  15664. }
  15665. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val)
  15666. {
  15667. if (!ASN1PEREncExtensionBitClear(enc))
  15668. return 0;
  15669. if (!ASN1PEREncBits(enc, 3, (val)->o))
  15670. return 0;
  15671. if ((val)->o[0] & 0x80) {
  15672. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15673. return 0;
  15674. }
  15675. if ((val)->o[0] & 0x40) {
  15676. if (!ASN1Enc_AliasAddress(enc, &(val)->conferenceAlias))
  15677. return 0;
  15678. }
  15679. if ((val)->o[0] & 0x20) {
  15680. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  15681. return 0;
  15682. }
  15683. return 1;
  15684. }
  15685. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val)
  15686. {
  15687. ASN1uint32_t y;
  15688. if (!ASN1PERDecExtensionBit(dec, &y))
  15689. return 0;
  15690. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15691. return 0;
  15692. if ((val)->o[0] & 0x80) {
  15693. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15694. return 0;
  15695. }
  15696. if ((val)->o[0] & 0x40) {
  15697. if (!ASN1Dec_AliasAddress(dec, &(val)->conferenceAlias))
  15698. return 0;
  15699. }
  15700. if ((val)->o[0] & 0x20) {
  15701. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  15702. return 0;
  15703. }
  15704. if (y) {
  15705. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15706. return 0;
  15707. }
  15708. return 1;
  15709. }
  15710. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val)
  15711. {
  15712. if (val) {
  15713. if ((val)->o[0] & 0x80) {
  15714. }
  15715. if ((val)->o[0] & 0x40) {
  15716. ASN1Free_AliasAddress(&(val)->conferenceAlias);
  15717. }
  15718. if ((val)->o[0] & 0x20) {
  15719. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  15720. }
  15721. }
  15722. }
  15723. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val)
  15724. {
  15725. if (!ASN1PEREncExtensionBitClear(enc))
  15726. return 0;
  15727. if (!ASN1PEREncBits(enc, 5, (val)->o))
  15728. return 0;
  15729. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15730. return 0;
  15731. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15732. return 0;
  15733. if ((val)->o[0] & 0x80) {
  15734. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15735. return 0;
  15736. }
  15737. if (!ASN1Enc_CallIdentifier(enc, &(val)->callIdentifier))
  15738. return 0;
  15739. if ((val)->o[0] & 0x40) {
  15740. if (!ASN1Enc_H245Security(enc, &(val)->h245SecurityMode))
  15741. return 0;
  15742. }
  15743. if ((val)->o[0] & 0x20) {
  15744. if (!ASN1Enc_Progress_UUIE_tokens(enc, &(val)->tokens))
  15745. return 0;
  15746. }
  15747. if ((val)->o[0] & 0x10) {
  15748. if (!ASN1Enc_Progress_UUIE_cryptoTokens(enc, &(val)->cryptoTokens))
  15749. return 0;
  15750. }
  15751. if ((val)->o[0] & 0x8) {
  15752. if (!ASN1Enc_Progress_UUIE_fastStart(enc, &(val)->fastStart))
  15753. return 0;
  15754. }
  15755. return 1;
  15756. }
  15757. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val)
  15758. {
  15759. ASN1uint32_t y;
  15760. if (!ASN1PERDecExtensionBit(dec, &y))
  15761. return 0;
  15762. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  15763. return 0;
  15764. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15765. return 0;
  15766. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15767. return 0;
  15768. if ((val)->o[0] & 0x80) {
  15769. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15770. return 0;
  15771. }
  15772. if (!ASN1Dec_CallIdentifier(dec, &(val)->callIdentifier))
  15773. return 0;
  15774. if ((val)->o[0] & 0x40) {
  15775. if (!ASN1Dec_H245Security(dec, &(val)->h245SecurityMode))
  15776. return 0;
  15777. }
  15778. if ((val)->o[0] & 0x20) {
  15779. if (!ASN1Dec_Progress_UUIE_tokens(dec, &(val)->tokens))
  15780. return 0;
  15781. }
  15782. if ((val)->o[0] & 0x10) {
  15783. if (!ASN1Dec_Progress_UUIE_cryptoTokens(dec, &(val)->cryptoTokens))
  15784. return 0;
  15785. }
  15786. if ((val)->o[0] & 0x8) {
  15787. if (!ASN1Dec_Progress_UUIE_fastStart(dec, &(val)->fastStart))
  15788. return 0;
  15789. }
  15790. if (y) {
  15791. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15792. return 0;
  15793. }
  15794. return 1;
  15795. }
  15796. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val)
  15797. {
  15798. if (val) {
  15799. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15800. ASN1Free_EndpointType(&(val)->destinationInfo);
  15801. if ((val)->o[0] & 0x80) {
  15802. ASN1Free_TransportAddress(&(val)->h245Address);
  15803. }
  15804. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15805. if ((val)->o[0] & 0x40) {
  15806. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15807. }
  15808. if ((val)->o[0] & 0x20) {
  15809. ASN1Free_Progress_UUIE_tokens(&(val)->tokens);
  15810. }
  15811. if ((val)->o[0] & 0x10) {
  15812. ASN1Free_Progress_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15813. }
  15814. if ((val)->o[0] & 0x8) {
  15815. ASN1Free_Progress_UUIE_fastStart(&(val)->fastStart);
  15816. }
  15817. }
  15818. }
  15819. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val)
  15820. {
  15821. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  15822. return 0;
  15823. switch ((val)->choice) {
  15824. case 1:
  15825. if (!ASN1Enc_CryptoH323Token_cryptoEPPwdHash(enc, &(val)->u.cryptoEPPwdHash))
  15826. return 0;
  15827. break;
  15828. case 2:
  15829. if (!ASN1Enc_CryptoH323Token_cryptoGKPwdHash(enc, &(val)->u.cryptoGKPwdHash))
  15830. return 0;
  15831. break;
  15832. case 3:
  15833. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoEPPwdEncr))
  15834. return 0;
  15835. break;
  15836. case 4:
  15837. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoGKPwdEncr))
  15838. return 0;
  15839. break;
  15840. case 5:
  15841. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoEPCert))
  15842. return 0;
  15843. break;
  15844. case 6:
  15845. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoGKCert))
  15846. return 0;
  15847. break;
  15848. case 7:
  15849. if (!ASN1Enc_SIGNED_EncodedFastStartToken(enc, &(val)->u.cryptoFastStart))
  15850. return 0;
  15851. break;
  15852. case 8:
  15853. if (!ASN1Enc_CryptoToken(enc, &(val)->u.nestedcryptoToken))
  15854. return 0;
  15855. break;
  15856. default:
  15857. /* impossible */
  15858. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  15859. return 0;
  15860. }
  15861. return 1;
  15862. }
  15863. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val)
  15864. {
  15865. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  15866. return 0;
  15867. switch ((val)->choice) {
  15868. case 1:
  15869. if (!ASN1Dec_CryptoH323Token_cryptoEPPwdHash(dec, &(val)->u.cryptoEPPwdHash))
  15870. return 0;
  15871. break;
  15872. case 2:
  15873. if (!ASN1Dec_CryptoH323Token_cryptoGKPwdHash(dec, &(val)->u.cryptoGKPwdHash))
  15874. return 0;
  15875. break;
  15876. case 3:
  15877. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoEPPwdEncr))
  15878. return 0;
  15879. break;
  15880. case 4:
  15881. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoGKPwdEncr))
  15882. return 0;
  15883. break;
  15884. case 5:
  15885. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoEPCert))
  15886. return 0;
  15887. break;
  15888. case 6:
  15889. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoGKCert))
  15890. return 0;
  15891. break;
  15892. case 7:
  15893. if (!ASN1Dec_SIGNED_EncodedFastStartToken(dec, &(val)->u.cryptoFastStart))
  15894. return 0;
  15895. break;
  15896. case 8:
  15897. if (!ASN1Dec_CryptoToken(dec, &(val)->u.nestedcryptoToken))
  15898. return 0;
  15899. break;
  15900. case 0:
  15901. /* extension case */
  15902. if (!ASN1PERDecSkipFragmented(dec, 8))
  15903. return 0;
  15904. break;
  15905. default:
  15906. /* impossible */
  15907. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  15908. return 0;
  15909. }
  15910. return 1;
  15911. }
  15912. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val)
  15913. {
  15914. if (val) {
  15915. switch ((val)->choice) {
  15916. case 1:
  15917. ASN1Free_CryptoH323Token_cryptoEPPwdHash(&(val)->u.cryptoEPPwdHash);
  15918. break;
  15919. case 2:
  15920. ASN1Free_CryptoH323Token_cryptoGKPwdHash(&(val)->u.cryptoGKPwdHash);
  15921. break;
  15922. case 3:
  15923. ASN1Free_ENCRYPTED(&(val)->u.cryptoEPPwdEncr);
  15924. break;
  15925. case 4:
  15926. ASN1Free_ENCRYPTED(&(val)->u.cryptoGKPwdEncr);
  15927. break;
  15928. case 5:
  15929. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoEPCert);
  15930. break;
  15931. case 6:
  15932. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoGKCert);
  15933. break;
  15934. case 7:
  15935. ASN1Free_SIGNED_EncodedFastStartToken(&(val)->u.cryptoFastStart);
  15936. break;
  15937. case 8:
  15938. ASN1Free_CryptoToken(&(val)->u.nestedcryptoToken);
  15939. break;
  15940. }
  15941. }
  15942. }
  15943. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val)
  15944. {
  15945. ASN1encoding_t ee;
  15946. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 5, 25))
  15947. return 0;
  15948. switch ((val)->choice) {
  15949. case 1:
  15950. if (!ASN1Enc_GatekeeperRequest(enc, &(val)->u.gatekeeperRequest))
  15951. return 0;
  15952. break;
  15953. case 2:
  15954. if (!ASN1Enc_GatekeeperConfirm(enc, &(val)->u.gatekeeperConfirm))
  15955. return 0;
  15956. break;
  15957. case 3:
  15958. if (!ASN1Enc_GatekeeperReject(enc, &(val)->u.gatekeeperReject))
  15959. return 0;
  15960. break;
  15961. case 4:
  15962. if (!ASN1Enc_RegistrationRequest(enc, &(val)->u.registrationRequest))
  15963. return 0;
  15964. break;
  15965. case 5:
  15966. if (!ASN1Enc_RegistrationConfirm(enc, &(val)->u.registrationConfirm))
  15967. return 0;
  15968. break;
  15969. case 6:
  15970. if (!ASN1Enc_RegistrationReject(enc, &(val)->u.registrationReject))
  15971. return 0;
  15972. break;
  15973. case 7:
  15974. if (!ASN1Enc_UnregistrationRequest(enc, &(val)->u.unregistrationRequest))
  15975. return 0;
  15976. break;
  15977. case 8:
  15978. if (!ASN1Enc_UnregistrationConfirm(enc, &(val)->u.unregistrationConfirm))
  15979. return 0;
  15980. break;
  15981. case 9:
  15982. if (!ASN1Enc_UnregistrationReject(enc, &(val)->u.unregistrationReject))
  15983. return 0;
  15984. break;
  15985. case 10:
  15986. if (!ASN1Enc_AdmissionRequest(enc, &(val)->u.admissionRequest))
  15987. return 0;
  15988. break;
  15989. case 11:
  15990. if (!ASN1Enc_AdmissionConfirm(enc, &(val)->u.admissionConfirm))
  15991. return 0;
  15992. break;
  15993. case 12:
  15994. if (!ASN1Enc_AdmissionReject(enc, &(val)->u.admissionReject))
  15995. return 0;
  15996. break;
  15997. case 13:
  15998. if (!ASN1Enc_BandwidthRequest(enc, &(val)->u.bandwidthRequest))
  15999. return 0;
  16000. break;
  16001. case 14:
  16002. if (!ASN1Enc_BandwidthConfirm(enc, &(val)->u.bandwidthConfirm))
  16003. return 0;
  16004. break;
  16005. case 15:
  16006. if (!ASN1Enc_BandwidthReject(enc, &(val)->u.bandwidthReject))
  16007. return 0;
  16008. break;
  16009. case 16:
  16010. if (!ASN1Enc_DisengageRequest(enc, &(val)->u.disengageRequest))
  16011. return 0;
  16012. break;
  16013. case 17:
  16014. if (!ASN1Enc_DisengageConfirm(enc, &(val)->u.disengageConfirm))
  16015. return 0;
  16016. break;
  16017. case 18:
  16018. if (!ASN1Enc_DisengageReject(enc, &(val)->u.disengageReject))
  16019. return 0;
  16020. break;
  16021. case 19:
  16022. if (!ASN1Enc_LocationRequest(enc, &(val)->u.locationRequest))
  16023. return 0;
  16024. break;
  16025. case 20:
  16026. if (!ASN1Enc_LocationConfirm(enc, &(val)->u.locationConfirm))
  16027. return 0;
  16028. break;
  16029. case 21:
  16030. if (!ASN1Enc_LocationReject(enc, &(val)->u.locationReject))
  16031. return 0;
  16032. break;
  16033. case 22:
  16034. if (!ASN1Enc_InfoRequest(enc, &(val)->u.infoRequest))
  16035. return 0;
  16036. break;
  16037. case 23:
  16038. if (!ASN1Enc_InfoRequestResponse(enc, &(val)->u.infoRequestResponse))
  16039. return 0;
  16040. break;
  16041. case 24:
  16042. if (!ASN1Enc_H225NonStandardMessage(enc, &(val)->u.nonStandardMessage))
  16043. return 0;
  16044. break;
  16045. case 25:
  16046. if (!ASN1Enc_UnknownMessageResponse(enc, &(val)->u.unknownMessageResponse))
  16047. return 0;
  16048. break;
  16049. case 26:
  16050. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16051. return 0;
  16052. if (!ASN1Enc_RequestInProgress(ee, &(val)->u.requestInProgress))
  16053. return 0;
  16054. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16055. return 0;
  16056. ASN1_CloseEncoder2(ee);
  16057. break;
  16058. case 27:
  16059. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16060. return 0;
  16061. if (!ASN1Enc_ResourcesAvailableIndicate(ee, &(val)->u.resourcesAvailableIndicate))
  16062. return 0;
  16063. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16064. return 0;
  16065. ASN1_CloseEncoder2(ee);
  16066. break;
  16067. case 28:
  16068. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16069. return 0;
  16070. if (!ASN1Enc_ResourcesAvailableConfirm(ee, &(val)->u.resourcesAvailableConfirm))
  16071. return 0;
  16072. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16073. return 0;
  16074. ASN1_CloseEncoder2(ee);
  16075. break;
  16076. case 29:
  16077. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16078. return 0;
  16079. if (!ASN1Enc_InfoRequestAck(ee, &(val)->u.infoRequestAck))
  16080. return 0;
  16081. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16082. return 0;
  16083. ASN1_CloseEncoder2(ee);
  16084. break;
  16085. case 30:
  16086. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16087. return 0;
  16088. if (!ASN1Enc_InfoRequestNak(ee, &(val)->u.infoRequestNak))
  16089. return 0;
  16090. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16091. return 0;
  16092. ASN1_CloseEncoder2(ee);
  16093. break;
  16094. default:
  16095. /* impossible */
  16096. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16097. return 0;
  16098. }
  16099. return 1;
  16100. }
  16101. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val)
  16102. {
  16103. ASN1decoding_t dd;
  16104. ASN1octet_t *db;
  16105. ASN1uint32_t ds;
  16106. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 5, 25))
  16107. return 0;
  16108. switch ((val)->choice) {
  16109. case 1:
  16110. if (!ASN1Dec_GatekeeperRequest(dec, &(val)->u.gatekeeperRequest))
  16111. return 0;
  16112. break;
  16113. case 2:
  16114. if (!ASN1Dec_GatekeeperConfirm(dec, &(val)->u.gatekeeperConfirm))
  16115. return 0;
  16116. break;
  16117. case 3:
  16118. if (!ASN1Dec_GatekeeperReject(dec, &(val)->u.gatekeeperReject))
  16119. return 0;
  16120. break;
  16121. case 4:
  16122. if (!ASN1Dec_RegistrationRequest(dec, &(val)->u.registrationRequest))
  16123. return 0;
  16124. break;
  16125. case 5:
  16126. if (!ASN1Dec_RegistrationConfirm(dec, &(val)->u.registrationConfirm))
  16127. return 0;
  16128. break;
  16129. case 6:
  16130. if (!ASN1Dec_RegistrationReject(dec, &(val)->u.registrationReject))
  16131. return 0;
  16132. break;
  16133. case 7:
  16134. if (!ASN1Dec_UnregistrationRequest(dec, &(val)->u.unregistrationRequest))
  16135. return 0;
  16136. break;
  16137. case 8:
  16138. if (!ASN1Dec_UnregistrationConfirm(dec, &(val)->u.unregistrationConfirm))
  16139. return 0;
  16140. break;
  16141. case 9:
  16142. if (!ASN1Dec_UnregistrationReject(dec, &(val)->u.unregistrationReject))
  16143. return 0;
  16144. break;
  16145. case 10:
  16146. if (!ASN1Dec_AdmissionRequest(dec, &(val)->u.admissionRequest))
  16147. return 0;
  16148. break;
  16149. case 11:
  16150. if (!ASN1Dec_AdmissionConfirm(dec, &(val)->u.admissionConfirm))
  16151. return 0;
  16152. break;
  16153. case 12:
  16154. if (!ASN1Dec_AdmissionReject(dec, &(val)->u.admissionReject))
  16155. return 0;
  16156. break;
  16157. case 13:
  16158. if (!ASN1Dec_BandwidthRequest(dec, &(val)->u.bandwidthRequest))
  16159. return 0;
  16160. break;
  16161. case 14:
  16162. if (!ASN1Dec_BandwidthConfirm(dec, &(val)->u.bandwidthConfirm))
  16163. return 0;
  16164. break;
  16165. case 15:
  16166. if (!ASN1Dec_BandwidthReject(dec, &(val)->u.bandwidthReject))
  16167. return 0;
  16168. break;
  16169. case 16:
  16170. if (!ASN1Dec_DisengageRequest(dec, &(val)->u.disengageRequest))
  16171. return 0;
  16172. break;
  16173. case 17:
  16174. if (!ASN1Dec_DisengageConfirm(dec, &(val)->u.disengageConfirm))
  16175. return 0;
  16176. break;
  16177. case 18:
  16178. if (!ASN1Dec_DisengageReject(dec, &(val)->u.disengageReject))
  16179. return 0;
  16180. break;
  16181. case 19:
  16182. if (!ASN1Dec_LocationRequest(dec, &(val)->u.locationRequest))
  16183. return 0;
  16184. break;
  16185. case 20:
  16186. if (!ASN1Dec_LocationConfirm(dec, &(val)->u.locationConfirm))
  16187. return 0;
  16188. break;
  16189. case 21:
  16190. if (!ASN1Dec_LocationReject(dec, &(val)->u.locationReject))
  16191. return 0;
  16192. break;
  16193. case 22:
  16194. if (!ASN1Dec_InfoRequest(dec, &(val)->u.infoRequest))
  16195. return 0;
  16196. break;
  16197. case 23:
  16198. if (!ASN1Dec_InfoRequestResponse(dec, &(val)->u.infoRequestResponse))
  16199. return 0;
  16200. break;
  16201. case 24:
  16202. if (!ASN1Dec_H225NonStandardMessage(dec, &(val)->u.nonStandardMessage))
  16203. return 0;
  16204. break;
  16205. case 25:
  16206. if (!ASN1Dec_UnknownMessageResponse(dec, &(val)->u.unknownMessageResponse))
  16207. return 0;
  16208. break;
  16209. case 26:
  16210. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16211. return 0;
  16212. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  16213. return 0;
  16214. if (!ASN1Dec_RequestInProgress(dd, &(val)->u.requestInProgress))
  16215. return 0;
  16216. ASN1_CloseDecoder(dd);
  16217. break;
  16218. case 27:
  16219. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16220. return 0;
  16221. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  16222. return 0;
  16223. if (!ASN1Dec_ResourcesAvailableIndicate(dd, &(val)->u.resourcesAvailableIndicate))
  16224. return 0;
  16225. ASN1_CloseDecoder(dd);
  16226. break;
  16227. case 28:
  16228. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16229. return 0;
  16230. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  16231. return 0;
  16232. if (!ASN1Dec_ResourcesAvailableConfirm(dd, &(val)->u.resourcesAvailableConfirm))
  16233. return 0;
  16234. ASN1_CloseDecoder(dd);
  16235. break;
  16236. case 29:
  16237. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16238. return 0;
  16239. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  16240. return 0;
  16241. if (!ASN1Dec_InfoRequestAck(dd, &(val)->u.infoRequestAck))
  16242. return 0;
  16243. ASN1_CloseDecoder(dd);
  16244. break;
  16245. case 30:
  16246. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16247. return 0;
  16248. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  16249. return 0;
  16250. if (!ASN1Dec_InfoRequestNak(dd, &(val)->u.infoRequestNak))
  16251. return 0;
  16252. ASN1_CloseDecoder(dd);
  16253. break;
  16254. case 0:
  16255. /* extension case */
  16256. if (!ASN1PERDecSkipFragmented(dec, 8))
  16257. return 0;
  16258. break;
  16259. default:
  16260. /* impossible */
  16261. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16262. return 0;
  16263. }
  16264. return 1;
  16265. }
  16266. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val)
  16267. {
  16268. if (val) {
  16269. switch ((val)->choice) {
  16270. case 1:
  16271. ASN1Free_GatekeeperRequest(&(val)->u.gatekeeperRequest);
  16272. break;
  16273. case 2:
  16274. ASN1Free_GatekeeperConfirm(&(val)->u.gatekeeperConfirm);
  16275. break;
  16276. case 3:
  16277. ASN1Free_GatekeeperReject(&(val)->u.gatekeeperReject);
  16278. break;
  16279. case 4:
  16280. ASN1Free_RegistrationRequest(&(val)->u.registrationRequest);
  16281. break;
  16282. case 5:
  16283. ASN1Free_RegistrationConfirm(&(val)->u.registrationConfirm);
  16284. break;
  16285. case 6:
  16286. ASN1Free_RegistrationReject(&(val)->u.registrationReject);
  16287. break;
  16288. case 7:
  16289. ASN1Free_UnregistrationRequest(&(val)->u.unregistrationRequest);
  16290. break;
  16291. case 8:
  16292. ASN1Free_UnregistrationConfirm(&(val)->u.unregistrationConfirm);
  16293. break;
  16294. case 9:
  16295. ASN1Free_UnregistrationReject(&(val)->u.unregistrationReject);
  16296. break;
  16297. case 10:
  16298. ASN1Free_AdmissionRequest(&(val)->u.admissionRequest);
  16299. break;
  16300. case 11:
  16301. ASN1Free_AdmissionConfirm(&(val)->u.admissionConfirm);
  16302. break;
  16303. case 12:
  16304. ASN1Free_AdmissionReject(&(val)->u.admissionReject);
  16305. break;
  16306. case 13:
  16307. ASN1Free_BandwidthRequest(&(val)->u.bandwidthRequest);
  16308. break;
  16309. case 14:
  16310. ASN1Free_BandwidthConfirm(&(val)->u.bandwidthConfirm);
  16311. break;
  16312. case 15:
  16313. ASN1Free_BandwidthReject(&(val)->u.bandwidthReject);
  16314. break;
  16315. case 16:
  16316. ASN1Free_DisengageRequest(&(val)->u.disengageRequest);
  16317. break;
  16318. case 17:
  16319. ASN1Free_DisengageConfirm(&(val)->u.disengageConfirm);
  16320. break;
  16321. case 18:
  16322. ASN1Free_DisengageReject(&(val)->u.disengageReject);
  16323. break;
  16324. case 19:
  16325. ASN1Free_LocationRequest(&(val)->u.locationRequest);
  16326. break;
  16327. case 20:
  16328. ASN1Free_LocationConfirm(&(val)->u.locationConfirm);
  16329. break;
  16330. case 21:
  16331. ASN1Free_LocationReject(&(val)->u.locationReject);
  16332. break;
  16333. case 22:
  16334. ASN1Free_InfoRequest(&(val)->u.infoRequest);
  16335. break;
  16336. case 23:
  16337. ASN1Free_InfoRequestResponse(&(val)->u.infoRequestResponse);
  16338. break;
  16339. case 24:
  16340. ASN1Free_H225NonStandardMessage(&(val)->u.nonStandardMessage);
  16341. break;
  16342. case 25:
  16343. ASN1Free_UnknownMessageResponse(&(val)->u.unknownMessageResponse);
  16344. break;
  16345. case 26:
  16346. ASN1Free_RequestInProgress(&(val)->u.requestInProgress);
  16347. break;
  16348. case 27:
  16349. ASN1Free_ResourcesAvailableIndicate(&(val)->u.resourcesAvailableIndicate);
  16350. break;
  16351. case 28:
  16352. ASN1Free_ResourcesAvailableConfirm(&(val)->u.resourcesAvailableConfirm);
  16353. break;
  16354. case 29:
  16355. ASN1Free_InfoRequestAck(&(val)->u.infoRequestAck);
  16356. break;
  16357. case 30:
  16358. ASN1Free_InfoRequestNak(&(val)->u.infoRequestNak);
  16359. break;
  16360. }
  16361. }
  16362. }
  16363. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16364. {
  16365. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16366. }
  16367. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16368. {
  16369. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16370. return 0;
  16371. return 1;
  16372. }
  16373. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16374. {
  16375. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn, sizeof(**val));
  16376. }
  16377. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16378. {
  16379. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16380. return 0;
  16381. return 1;
  16382. }
  16383. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16384. {
  16385. if (val) {
  16386. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16387. }
  16388. }
  16389. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16390. {
  16391. if (val) {
  16392. ASN1Free_CryptoH323Token(&val->value);
  16393. }
  16394. }
  16395. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val)
  16396. {
  16397. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16398. }
  16399. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens val)
  16400. {
  16401. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16402. return 0;
  16403. return 1;
  16404. }
  16405. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val)
  16406. {
  16407. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16408. }
  16409. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens val)
  16410. {
  16411. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16412. return 0;
  16413. return 1;
  16414. }
  16415. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val)
  16416. {
  16417. if (val) {
  16418. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16419. }
  16420. }
  16421. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn(PResourcesAvailableConfirm_cryptoTokens val)
  16422. {
  16423. if (val) {
  16424. ASN1Free_CryptoH323Token(&val->value);
  16425. }
  16426. }
  16427. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val)
  16428. {
  16429. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16430. }
  16431. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens val)
  16432. {
  16433. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16434. return 0;
  16435. return 1;
  16436. }
  16437. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val)
  16438. {
  16439. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn, sizeof(**val));
  16440. }
  16441. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens val)
  16442. {
  16443. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16444. return 0;
  16445. return 1;
  16446. }
  16447. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val)
  16448. {
  16449. if (val) {
  16450. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16451. }
  16452. }
  16453. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn(PResourcesAvailableIndicate_cryptoTokens val)
  16454. {
  16455. if (val) {
  16456. ASN1Free_CryptoH323Token(&val->value);
  16457. }
  16458. }
  16459. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val)
  16460. {
  16461. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_cryptoTokens_ElmFn);
  16462. }
  16463. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_cryptoTokens val)
  16464. {
  16465. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16466. return 0;
  16467. return 1;
  16468. }
  16469. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val)
  16470. {
  16471. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_cryptoTokens_ElmFn, sizeof(**val));
  16472. }
  16473. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_cryptoTokens val)
  16474. {
  16475. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16476. return 0;
  16477. return 1;
  16478. }
  16479. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val)
  16480. {
  16481. if (val) {
  16482. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_cryptoTokens_ElmFn);
  16483. }
  16484. }
  16485. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens_ElmFn(PRequestInProgress_cryptoTokens val)
  16486. {
  16487. if (val) {
  16488. ASN1Free_CryptoH323Token(&val->value);
  16489. }
  16490. }
  16491. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val)
  16492. {
  16493. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn);
  16494. }
  16495. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens val)
  16496. {
  16497. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16498. return 0;
  16499. return 1;
  16500. }
  16501. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val)
  16502. {
  16503. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn, sizeof(**val));
  16504. }
  16505. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens val)
  16506. {
  16507. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16508. return 0;
  16509. return 1;
  16510. }
  16511. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val)
  16512. {
  16513. if (val) {
  16514. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn);
  16515. }
  16516. }
  16517. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn(PUnknownMessageResponse_cryptoTokens val)
  16518. {
  16519. if (val) {
  16520. ASN1Free_CryptoH323Token(&val->value);
  16521. }
  16522. }
  16523. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val)
  16524. {
  16525. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn);
  16526. }
  16527. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens val)
  16528. {
  16529. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16530. return 0;
  16531. return 1;
  16532. }
  16533. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val)
  16534. {
  16535. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn, sizeof(**val));
  16536. }
  16537. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens val)
  16538. {
  16539. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16540. return 0;
  16541. return 1;
  16542. }
  16543. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val)
  16544. {
  16545. if (val) {
  16546. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn);
  16547. }
  16548. }
  16549. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn(PH225NonStandardMessage_cryptoTokens val)
  16550. {
  16551. if (val) {
  16552. ASN1Free_CryptoH323Token(&val->value);
  16553. }
  16554. }
  16555. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val)
  16556. {
  16557. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn);
  16558. }
  16559. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens val)
  16560. {
  16561. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16562. return 0;
  16563. return 1;
  16564. }
  16565. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val)
  16566. {
  16567. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn, sizeof(**val));
  16568. }
  16569. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens val)
  16570. {
  16571. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16572. return 0;
  16573. return 1;
  16574. }
  16575. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val)
  16576. {
  16577. if (val) {
  16578. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_cryptoTokens_ElmFn);
  16579. }
  16580. }
  16581. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens_ElmFn(PInfoRequestNak_cryptoTokens val)
  16582. {
  16583. if (val) {
  16584. ASN1Free_CryptoH323Token(&val->value);
  16585. }
  16586. }
  16587. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val)
  16588. {
  16589. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn);
  16590. }
  16591. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens val)
  16592. {
  16593. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16594. return 0;
  16595. return 1;
  16596. }
  16597. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val)
  16598. {
  16599. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn, sizeof(**val));
  16600. }
  16601. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens val)
  16602. {
  16603. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16604. return 0;
  16605. return 1;
  16606. }
  16607. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val)
  16608. {
  16609. if (val) {
  16610. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_cryptoTokens_ElmFn);
  16611. }
  16612. }
  16613. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens_ElmFn(PInfoRequestAck_cryptoTokens val)
  16614. {
  16615. if (val) {
  16616. ASN1Free_CryptoH323Token(&val->value);
  16617. }
  16618. }
  16619. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val)
  16620. {
  16621. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn);
  16622. }
  16623. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens val)
  16624. {
  16625. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16626. return 0;
  16627. return 1;
  16628. }
  16629. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val)
  16630. {
  16631. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn, sizeof(**val));
  16632. }
  16633. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens val)
  16634. {
  16635. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16636. return 0;
  16637. return 1;
  16638. }
  16639. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val)
  16640. {
  16641. if (val) {
  16642. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn);
  16643. }
  16644. }
  16645. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn(PInfoRequestResponse_cryptoTokens val)
  16646. {
  16647. if (val) {
  16648. ASN1Free_CryptoH323Token(&val->value);
  16649. }
  16650. }
  16651. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val)
  16652. {
  16653. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_cryptoTokens_ElmFn);
  16654. }
  16655. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequest_cryptoTokens val)
  16656. {
  16657. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16658. return 0;
  16659. return 1;
  16660. }
  16661. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val)
  16662. {
  16663. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_cryptoTokens_ElmFn, sizeof(**val));
  16664. }
  16665. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequest_cryptoTokens val)
  16666. {
  16667. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16668. return 0;
  16669. return 1;
  16670. }
  16671. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val)
  16672. {
  16673. if (val) {
  16674. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_cryptoTokens_ElmFn);
  16675. }
  16676. }
  16677. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens_ElmFn(PInfoRequest_cryptoTokens val)
  16678. {
  16679. if (val) {
  16680. ASN1Free_CryptoH323Token(&val->value);
  16681. }
  16682. }
  16683. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val)
  16684. {
  16685. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_cryptoTokens_ElmFn);
  16686. }
  16687. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageReject_cryptoTokens val)
  16688. {
  16689. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16690. return 0;
  16691. return 1;
  16692. }
  16693. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val)
  16694. {
  16695. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_cryptoTokens_ElmFn, sizeof(**val));
  16696. }
  16697. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageReject_cryptoTokens val)
  16698. {
  16699. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16700. return 0;
  16701. return 1;
  16702. }
  16703. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val)
  16704. {
  16705. if (val) {
  16706. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_cryptoTokens_ElmFn);
  16707. }
  16708. }
  16709. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens_ElmFn(PDisengageReject_cryptoTokens val)
  16710. {
  16711. if (val) {
  16712. ASN1Free_CryptoH323Token(&val->value);
  16713. }
  16714. }
  16715. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val)
  16716. {
  16717. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn);
  16718. }
  16719. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens val)
  16720. {
  16721. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16722. return 0;
  16723. return 1;
  16724. }
  16725. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val)
  16726. {
  16727. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16728. }
  16729. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens val)
  16730. {
  16731. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16732. return 0;
  16733. return 1;
  16734. }
  16735. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val)
  16736. {
  16737. if (val) {
  16738. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_cryptoTokens_ElmFn);
  16739. }
  16740. }
  16741. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens_ElmFn(PDisengageConfirm_cryptoTokens val)
  16742. {
  16743. if (val) {
  16744. ASN1Free_CryptoH323Token(&val->value);
  16745. }
  16746. }
  16747. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val)
  16748. {
  16749. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_cryptoTokens_ElmFn);
  16750. }
  16751. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_cryptoTokens val)
  16752. {
  16753. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16754. return 0;
  16755. return 1;
  16756. }
  16757. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val)
  16758. {
  16759. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_cryptoTokens_ElmFn, sizeof(**val));
  16760. }
  16761. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_cryptoTokens val)
  16762. {
  16763. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16764. return 0;
  16765. return 1;
  16766. }
  16767. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val)
  16768. {
  16769. if (val) {
  16770. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_cryptoTokens_ElmFn);
  16771. }
  16772. }
  16773. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens_ElmFn(PDisengageRequest_cryptoTokens val)
  16774. {
  16775. if (val) {
  16776. ASN1Free_CryptoH323Token(&val->value);
  16777. }
  16778. }
  16779. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val)
  16780. {
  16781. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_cryptoTokens_ElmFn);
  16782. }
  16783. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationReject_cryptoTokens val)
  16784. {
  16785. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16786. return 0;
  16787. return 1;
  16788. }
  16789. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val)
  16790. {
  16791. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_cryptoTokens_ElmFn, sizeof(**val));
  16792. }
  16793. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationReject_cryptoTokens val)
  16794. {
  16795. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16796. return 0;
  16797. return 1;
  16798. }
  16799. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val)
  16800. {
  16801. if (val) {
  16802. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_cryptoTokens_ElmFn);
  16803. }
  16804. }
  16805. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens_ElmFn(PLocationReject_cryptoTokens val)
  16806. {
  16807. if (val) {
  16808. ASN1Free_CryptoH323Token(&val->value);
  16809. }
  16810. }
  16811. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val)
  16812. {
  16813. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_cryptoTokens_ElmFn);
  16814. }
  16815. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_cryptoTokens val)
  16816. {
  16817. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16818. return 0;
  16819. return 1;
  16820. }
  16821. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val)
  16822. {
  16823. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16824. }
  16825. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_cryptoTokens val)
  16826. {
  16827. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16828. return 0;
  16829. return 1;
  16830. }
  16831. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val)
  16832. {
  16833. if (val) {
  16834. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_cryptoTokens_ElmFn);
  16835. }
  16836. }
  16837. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens_ElmFn(PLocationConfirm_cryptoTokens val)
  16838. {
  16839. if (val) {
  16840. ASN1Free_CryptoH323Token(&val->value);
  16841. }
  16842. }
  16843. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val)
  16844. {
  16845. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_cryptoTokens_ElmFn);
  16846. }
  16847. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationRequest_cryptoTokens val)
  16848. {
  16849. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16850. return 0;
  16851. return 1;
  16852. }
  16853. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val)
  16854. {
  16855. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_cryptoTokens_ElmFn, sizeof(**val));
  16856. }
  16857. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationRequest_cryptoTokens val)
  16858. {
  16859. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16860. return 0;
  16861. return 1;
  16862. }
  16863. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val)
  16864. {
  16865. if (val) {
  16866. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_cryptoTokens_ElmFn);
  16867. }
  16868. }
  16869. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens_ElmFn(PLocationRequest_cryptoTokens val)
  16870. {
  16871. if (val) {
  16872. ASN1Free_CryptoH323Token(&val->value);
  16873. }
  16874. }
  16875. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val)
  16876. {
  16877. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_cryptoTokens_ElmFn);
  16878. }
  16879. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_cryptoTokens val)
  16880. {
  16881. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16882. return 0;
  16883. return 1;
  16884. }
  16885. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val)
  16886. {
  16887. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_cryptoTokens_ElmFn, sizeof(**val));
  16888. }
  16889. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_cryptoTokens val)
  16890. {
  16891. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16892. return 0;
  16893. return 1;
  16894. }
  16895. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val)
  16896. {
  16897. if (val) {
  16898. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_cryptoTokens_ElmFn);
  16899. }
  16900. }
  16901. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens_ElmFn(PBandwidthReject_cryptoTokens val)
  16902. {
  16903. if (val) {
  16904. ASN1Free_CryptoH323Token(&val->value);
  16905. }
  16906. }
  16907. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val)
  16908. {
  16909. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn);
  16910. }
  16911. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens val)
  16912. {
  16913. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16914. return 0;
  16915. return 1;
  16916. }
  16917. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val)
  16918. {
  16919. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16920. }
  16921. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens val)
  16922. {
  16923. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16924. return 0;
  16925. return 1;
  16926. }
  16927. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val)
  16928. {
  16929. if (val) {
  16930. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn);
  16931. }
  16932. }
  16933. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn(PBandwidthConfirm_cryptoTokens val)
  16934. {
  16935. if (val) {
  16936. ASN1Free_CryptoH323Token(&val->value);
  16937. }
  16938. }
  16939. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val)
  16940. {
  16941. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn);
  16942. }
  16943. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens val)
  16944. {
  16945. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16946. return 0;
  16947. return 1;
  16948. }
  16949. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val)
  16950. {
  16951. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn, sizeof(**val));
  16952. }
  16953. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens val)
  16954. {
  16955. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16956. return 0;
  16957. return 1;
  16958. }
  16959. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val)
  16960. {
  16961. if (val) {
  16962. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_cryptoTokens_ElmFn);
  16963. }
  16964. }
  16965. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens_ElmFn(PBandwidthRequest_cryptoTokens val)
  16966. {
  16967. if (val) {
  16968. ASN1Free_CryptoH323Token(&val->value);
  16969. }
  16970. }
  16971. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val)
  16972. {
  16973. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_cryptoTokens_ElmFn);
  16974. }
  16975. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_cryptoTokens val)
  16976. {
  16977. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16978. return 0;
  16979. return 1;
  16980. }
  16981. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val)
  16982. {
  16983. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_cryptoTokens_ElmFn, sizeof(**val));
  16984. }
  16985. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_cryptoTokens val)
  16986. {
  16987. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16988. return 0;
  16989. return 1;
  16990. }
  16991. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val)
  16992. {
  16993. if (val) {
  16994. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_cryptoTokens_ElmFn);
  16995. }
  16996. }
  16997. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens_ElmFn(PAdmissionReject_cryptoTokens val)
  16998. {
  16999. if (val) {
  17000. ASN1Free_CryptoH323Token(&val->value);
  17001. }
  17002. }
  17003. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val)
  17004. {
  17005. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn);
  17006. }
  17007. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens val)
  17008. {
  17009. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17010. return 0;
  17011. return 1;
  17012. }
  17013. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val)
  17014. {
  17015. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17016. }
  17017. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens val)
  17018. {
  17019. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17020. return 0;
  17021. return 1;
  17022. }
  17023. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val)
  17024. {
  17025. if (val) {
  17026. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn);
  17027. }
  17028. }
  17029. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn(PAdmissionConfirm_cryptoTokens val)
  17030. {
  17031. if (val) {
  17032. ASN1Free_CryptoH323Token(&val->value);
  17033. }
  17034. }
  17035. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val)
  17036. {
  17037. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn);
  17038. }
  17039. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens val)
  17040. {
  17041. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17042. return 0;
  17043. return 1;
  17044. }
  17045. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val)
  17046. {
  17047. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn, sizeof(**val));
  17048. }
  17049. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens val)
  17050. {
  17051. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17052. return 0;
  17053. return 1;
  17054. }
  17055. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val)
  17056. {
  17057. if (val) {
  17058. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_cryptoTokens_ElmFn);
  17059. }
  17060. }
  17061. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens_ElmFn(PAdmissionRequest_cryptoTokens val)
  17062. {
  17063. if (val) {
  17064. ASN1Free_CryptoH323Token(&val->value);
  17065. }
  17066. }
  17067. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val)
  17068. {
  17069. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn);
  17070. }
  17071. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens val)
  17072. {
  17073. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17074. return 0;
  17075. return 1;
  17076. }
  17077. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val)
  17078. {
  17079. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17080. }
  17081. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens val)
  17082. {
  17083. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17084. return 0;
  17085. return 1;
  17086. }
  17087. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val)
  17088. {
  17089. if (val) {
  17090. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_cryptoTokens_ElmFn);
  17091. }
  17092. }
  17093. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens_ElmFn(PUnregistrationReject_cryptoTokens val)
  17094. {
  17095. if (val) {
  17096. ASN1Free_CryptoH323Token(&val->value);
  17097. }
  17098. }
  17099. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val)
  17100. {
  17101. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn);
  17102. }
  17103. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens val)
  17104. {
  17105. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17106. return 0;
  17107. return 1;
  17108. }
  17109. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val)
  17110. {
  17111. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17112. }
  17113. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens val)
  17114. {
  17115. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17116. return 0;
  17117. return 1;
  17118. }
  17119. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val)
  17120. {
  17121. if (val) {
  17122. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn);
  17123. }
  17124. }
  17125. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn(PUnregistrationConfirm_cryptoTokens val)
  17126. {
  17127. if (val) {
  17128. ASN1Free_CryptoH323Token(&val->value);
  17129. }
  17130. }
  17131. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val)
  17132. {
  17133. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn);
  17134. }
  17135. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens val)
  17136. {
  17137. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17138. return 0;
  17139. return 1;
  17140. }
  17141. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val)
  17142. {
  17143. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17144. }
  17145. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens val)
  17146. {
  17147. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17148. return 0;
  17149. return 1;
  17150. }
  17151. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val)
  17152. {
  17153. if (val) {
  17154. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn);
  17155. }
  17156. }
  17157. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn(PUnregistrationRequest_cryptoTokens val)
  17158. {
  17159. if (val) {
  17160. ASN1Free_CryptoH323Token(&val->value);
  17161. }
  17162. }
  17163. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val)
  17164. {
  17165. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_cryptoTokens_ElmFn);
  17166. }
  17167. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_cryptoTokens val)
  17168. {
  17169. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17170. return 0;
  17171. return 1;
  17172. }
  17173. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val)
  17174. {
  17175. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17176. }
  17177. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_cryptoTokens val)
  17178. {
  17179. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17180. return 0;
  17181. return 1;
  17182. }
  17183. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val)
  17184. {
  17185. if (val) {
  17186. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_cryptoTokens_ElmFn);
  17187. }
  17188. }
  17189. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens_ElmFn(PRegistrationReject_cryptoTokens val)
  17190. {
  17191. if (val) {
  17192. ASN1Free_CryptoH323Token(&val->value);
  17193. }
  17194. }
  17195. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val)
  17196. {
  17197. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn);
  17198. }
  17199. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens val)
  17200. {
  17201. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17202. return 0;
  17203. return 1;
  17204. }
  17205. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val)
  17206. {
  17207. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17208. }
  17209. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens val)
  17210. {
  17211. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17212. return 0;
  17213. return 1;
  17214. }
  17215. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val)
  17216. {
  17217. if (val) {
  17218. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn);
  17219. }
  17220. }
  17221. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn(PRegistrationConfirm_cryptoTokens val)
  17222. {
  17223. if (val) {
  17224. ASN1Free_CryptoH323Token(&val->value);
  17225. }
  17226. }
  17227. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val)
  17228. {
  17229. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn);
  17230. }
  17231. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens val)
  17232. {
  17233. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17234. return 0;
  17235. return 1;
  17236. }
  17237. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val)
  17238. {
  17239. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17240. }
  17241. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens val)
  17242. {
  17243. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17244. return 0;
  17245. return 1;
  17246. }
  17247. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val)
  17248. {
  17249. if (val) {
  17250. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_cryptoTokens_ElmFn);
  17251. }
  17252. }
  17253. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens_ElmFn(PRegistrationRequest_cryptoTokens val)
  17254. {
  17255. if (val) {
  17256. ASN1Free_CryptoH323Token(&val->value);
  17257. }
  17258. }
  17259. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val)
  17260. {
  17261. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn);
  17262. }
  17263. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens val)
  17264. {
  17265. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17266. return 0;
  17267. return 1;
  17268. }
  17269. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val)
  17270. {
  17271. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn, sizeof(**val));
  17272. }
  17273. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens val)
  17274. {
  17275. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17276. return 0;
  17277. return 1;
  17278. }
  17279. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val)
  17280. {
  17281. if (val) {
  17282. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_cryptoTokens_ElmFn);
  17283. }
  17284. }
  17285. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens_ElmFn(PGatekeeperReject_cryptoTokens val)
  17286. {
  17287. if (val) {
  17288. ASN1Free_CryptoH323Token(&val->value);
  17289. }
  17290. }
  17291. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val)
  17292. {
  17293. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn);
  17294. }
  17295. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens val)
  17296. {
  17297. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17298. return 0;
  17299. return 1;
  17300. }
  17301. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val)
  17302. {
  17303. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17304. }
  17305. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens val)
  17306. {
  17307. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17308. return 0;
  17309. return 1;
  17310. }
  17311. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val)
  17312. {
  17313. if (val) {
  17314. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn);
  17315. }
  17316. }
  17317. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn(PGatekeeperConfirm_cryptoTokens val)
  17318. {
  17319. if (val) {
  17320. ASN1Free_CryptoH323Token(&val->value);
  17321. }
  17322. }
  17323. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val)
  17324. {
  17325. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn);
  17326. }
  17327. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens val)
  17328. {
  17329. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17330. return 0;
  17331. return 1;
  17332. }
  17333. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val)
  17334. {
  17335. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn, sizeof(**val));
  17336. }
  17337. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens val)
  17338. {
  17339. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17340. return 0;
  17341. return 1;
  17342. }
  17343. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val)
  17344. {
  17345. if (val) {
  17346. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn);
  17347. }
  17348. }
  17349. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn(PGatekeeperRequest_cryptoTokens val)
  17350. {
  17351. if (val) {
  17352. ASN1Free_CryptoH323Token(&val->value);
  17353. }
  17354. }
  17355. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val)
  17356. {
  17357. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_cryptoTokens_ElmFn);
  17358. }
  17359. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens_ElmFn(ASN1encoding_t enc, PEndpoint_cryptoTokens val)
  17360. {
  17361. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17362. return 0;
  17363. return 1;
  17364. }
  17365. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val)
  17366. {
  17367. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_cryptoTokens_ElmFn, sizeof(**val));
  17368. }
  17369. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens_ElmFn(ASN1decoding_t dec, PEndpoint_cryptoTokens val)
  17370. {
  17371. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17372. return 0;
  17373. return 1;
  17374. }
  17375. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val)
  17376. {
  17377. if (val) {
  17378. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_cryptoTokens_ElmFn);
  17379. }
  17380. }
  17381. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens_ElmFn(PEndpoint_cryptoTokens val)
  17382. {
  17383. if (val) {
  17384. ASN1Free_CryptoH323Token(&val->value);
  17385. }
  17386. }
  17387. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val)
  17388. {
  17389. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn);
  17390. }
  17391. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens val)
  17392. {
  17393. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17394. return 0;
  17395. return 1;
  17396. }
  17397. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val)
  17398. {
  17399. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17400. }
  17401. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens val)
  17402. {
  17403. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17404. return 0;
  17405. return 1;
  17406. }
  17407. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val)
  17408. {
  17409. if (val) {
  17410. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_cryptoTokens_ElmFn);
  17411. }
  17412. }
  17413. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens_ElmFn(PProgress_UUIE_cryptoTokens val)
  17414. {
  17415. if (val) {
  17416. ASN1Free_CryptoH323Token(&val->value);
  17417. }
  17418. }
  17419. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val)
  17420. {
  17421. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_conferences_ElmFn);
  17422. }
  17423. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences_ElmFn(ASN1encoding_t enc, PFacility_UUIE_conferences val)
  17424. {
  17425. if (!ASN1Enc_ConferenceList(enc, &val->value))
  17426. return 0;
  17427. return 1;
  17428. }
  17429. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val)
  17430. {
  17431. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_conferences_ElmFn, sizeof(**val));
  17432. }
  17433. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences_ElmFn(ASN1decoding_t dec, PFacility_UUIE_conferences val)
  17434. {
  17435. if (!ASN1Dec_ConferenceList(dec, &val->value))
  17436. return 0;
  17437. return 1;
  17438. }
  17439. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val)
  17440. {
  17441. if (val) {
  17442. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_conferences_ElmFn);
  17443. }
  17444. }
  17445. static void ASN1CALL ASN1Free_Facility_UUIE_conferences_ElmFn(PFacility_UUIE_conferences val)
  17446. {
  17447. if (val) {
  17448. ASN1Free_ConferenceList(&val->value);
  17449. }
  17450. }
  17451. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val)
  17452. {
  17453. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn);
  17454. }
  17455. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens val)
  17456. {
  17457. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17458. return 0;
  17459. return 1;
  17460. }
  17461. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val)
  17462. {
  17463. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17464. }
  17465. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens val)
  17466. {
  17467. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17468. return 0;
  17469. return 1;
  17470. }
  17471. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val)
  17472. {
  17473. if (val) {
  17474. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_cryptoTokens_ElmFn);
  17475. }
  17476. }
  17477. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens_ElmFn(PFacility_UUIE_cryptoTokens val)
  17478. {
  17479. if (val) {
  17480. ASN1Free_CryptoH323Token(&val->value);
  17481. }
  17482. }
  17483. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val)
  17484. {
  17485. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn);
  17486. }
  17487. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens val)
  17488. {
  17489. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17490. return 0;
  17491. return 1;
  17492. }
  17493. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val)
  17494. {
  17495. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17496. }
  17497. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens val)
  17498. {
  17499. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17500. return 0;
  17501. return 1;
  17502. }
  17503. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val)
  17504. {
  17505. if (val) {
  17506. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_cryptoTokens_ElmFn);
  17507. }
  17508. }
  17509. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens_ElmFn(PSetup_UUIE_cryptoTokens val)
  17510. {
  17511. if (val) {
  17512. ASN1Free_CryptoH323Token(&val->value);
  17513. }
  17514. }
  17515. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val)
  17516. {
  17517. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn);
  17518. }
  17519. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens val)
  17520. {
  17521. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17522. return 0;
  17523. return 1;
  17524. }
  17525. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val)
  17526. {
  17527. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17528. }
  17529. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens val)
  17530. {
  17531. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17532. return 0;
  17533. return 1;
  17534. }
  17535. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val)
  17536. {
  17537. if (val) {
  17538. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_cryptoTokens_ElmFn);
  17539. }
  17540. }
  17541. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens_ElmFn(PConnect_UUIE_cryptoTokens val)
  17542. {
  17543. if (val) {
  17544. ASN1Free_CryptoH323Token(&val->value);
  17545. }
  17546. }
  17547. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val)
  17548. {
  17549. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17550. }
  17551. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens val)
  17552. {
  17553. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17554. return 0;
  17555. return 1;
  17556. }
  17557. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val)
  17558. {
  17559. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17560. }
  17561. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens val)
  17562. {
  17563. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17564. return 0;
  17565. return 1;
  17566. }
  17567. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val)
  17568. {
  17569. if (val) {
  17570. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17571. }
  17572. }
  17573. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn(PCallProceeding_UUIE_cryptoTokens val)
  17574. {
  17575. if (val) {
  17576. ASN1Free_CryptoH323Token(&val->value);
  17577. }
  17578. }
  17579. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val)
  17580. {
  17581. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn);
  17582. }
  17583. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens val)
  17584. {
  17585. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17586. return 0;
  17587. return 1;
  17588. }
  17589. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val)
  17590. {
  17591. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17592. }
  17593. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens val)
  17594. {
  17595. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17596. return 0;
  17597. return 1;
  17598. }
  17599. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val)
  17600. {
  17601. if (val) {
  17602. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn);
  17603. }
  17604. }
  17605. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn(PAlerting_UUIE_cryptoTokens val)
  17606. {
  17607. if (val) {
  17608. ASN1Free_CryptoH323Token(&val->value);
  17609. }
  17610. }
  17611. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val)
  17612. {
  17613. ASN1encoding_t ee;
  17614. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 7))
  17615. return 0;
  17616. switch ((val)->choice) {
  17617. case 1:
  17618. if (!ASN1Enc_Setup_UUIE(enc, &(val)->u.setup))
  17619. return 0;
  17620. break;
  17621. case 2:
  17622. if (!ASN1Enc_CallProceeding_UUIE(enc, &(val)->u.callProceeding))
  17623. return 0;
  17624. break;
  17625. case 3:
  17626. if (!ASN1Enc_Connect_UUIE(enc, &(val)->u.connect))
  17627. return 0;
  17628. break;
  17629. case 4:
  17630. if (!ASN1Enc_Alerting_UUIE(enc, &(val)->u.alerting))
  17631. return 0;
  17632. break;
  17633. case 5:
  17634. if (!ASN1Enc_Information_UUIE(enc, &(val)->u.information))
  17635. return 0;
  17636. break;
  17637. case 6:
  17638. if (!ASN1Enc_ReleaseComplete_UUIE(enc, &(val)->u.releaseComplete))
  17639. return 0;
  17640. break;
  17641. case 7:
  17642. if (!ASN1Enc_Facility_UUIE(enc, &(val)->u.facility))
  17643. return 0;
  17644. break;
  17645. case 8:
  17646. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17647. return 0;
  17648. if (!ASN1Enc_Progress_UUIE(ee, &(val)->u.progress))
  17649. return 0;
  17650. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17651. return 0;
  17652. ASN1_CloseEncoder2(ee);
  17653. break;
  17654. case 9:
  17655. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17656. return 0;
  17657. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17658. return 0;
  17659. ASN1_CloseEncoder2(ee);
  17660. break;
  17661. default:
  17662. /* impossible */
  17663. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  17664. return 0;
  17665. }
  17666. return 1;
  17667. }
  17668. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val)
  17669. {
  17670. ASN1decoding_t dd;
  17671. ASN1octet_t *db;
  17672. ASN1uint32_t ds;
  17673. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 7))
  17674. return 0;
  17675. switch ((val)->choice) {
  17676. case 1:
  17677. if (!ASN1Dec_Setup_UUIE(dec, &(val)->u.setup))
  17678. return 0;
  17679. break;
  17680. case 2:
  17681. if (!ASN1Dec_CallProceeding_UUIE(dec, &(val)->u.callProceeding))
  17682. return 0;
  17683. break;
  17684. case 3:
  17685. if (!ASN1Dec_Connect_UUIE(dec, &(val)->u.connect))
  17686. return 0;
  17687. break;
  17688. case 4:
  17689. if (!ASN1Dec_Alerting_UUIE(dec, &(val)->u.alerting))
  17690. return 0;
  17691. break;
  17692. case 5:
  17693. if (!ASN1Dec_Information_UUIE(dec, &(val)->u.information))
  17694. return 0;
  17695. break;
  17696. case 6:
  17697. if (!ASN1Dec_ReleaseComplete_UUIE(dec, &(val)->u.releaseComplete))
  17698. return 0;
  17699. break;
  17700. case 7:
  17701. if (!ASN1Dec_Facility_UUIE(dec, &(val)->u.facility))
  17702. return 0;
  17703. break;
  17704. case 8:
  17705. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17706. return 0;
  17707. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17708. return 0;
  17709. if (!ASN1Dec_Progress_UUIE(dd, &(val)->u.progress))
  17710. return 0;
  17711. ASN1_CloseDecoder(dd);
  17712. break;
  17713. case 9:
  17714. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17715. return 0;
  17716. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17717. return 0;
  17718. ASN1_CloseDecoder(dd);
  17719. break;
  17720. case 0:
  17721. /* extension case */
  17722. if (!ASN1PERDecSkipFragmented(dec, 8))
  17723. return 0;
  17724. break;
  17725. default:
  17726. /* impossible */
  17727. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  17728. return 0;
  17729. }
  17730. return 1;
  17731. }
  17732. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val)
  17733. {
  17734. if (val) {
  17735. switch ((val)->choice) {
  17736. case 1:
  17737. ASN1Free_Setup_UUIE(&(val)->u.setup);
  17738. break;
  17739. case 2:
  17740. ASN1Free_CallProceeding_UUIE(&(val)->u.callProceeding);
  17741. break;
  17742. case 3:
  17743. ASN1Free_Connect_UUIE(&(val)->u.connect);
  17744. break;
  17745. case 4:
  17746. ASN1Free_Alerting_UUIE(&(val)->u.alerting);
  17747. break;
  17748. case 5:
  17749. ASN1Free_Information_UUIE(&(val)->u.information);
  17750. break;
  17751. case 6:
  17752. ASN1Free_ReleaseComplete_UUIE(&(val)->u.releaseComplete);
  17753. break;
  17754. case 7:
  17755. ASN1Free_Facility_UUIE(&(val)->u.facility);
  17756. break;
  17757. case 8:
  17758. ASN1Free_Progress_UUIE(&(val)->u.progress);
  17759. break;
  17760. }
  17761. }
  17762. }
  17763. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val)
  17764. {
  17765. ASN1octet_t o[2];
  17766. ASN1uint32_t y;
  17767. ASN1encoding_t ee;
  17768. CopyMemory(o, (val)->o, 2);
  17769. o[1] |= 0x40;
  17770. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  17771. if (!ASN1PEREncBitVal(enc, 1, y))
  17772. return 0;
  17773. if (!ASN1PEREncBits(enc, 1, o))
  17774. return 0;
  17775. if (!ASN1Enc_H323_UU_PDU_h323_message_body(enc, &(val)->h323_message_body))
  17776. return 0;
  17777. if (o[0] & 0x80) {
  17778. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  17779. return 0;
  17780. }
  17781. if (y) {
  17782. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  17783. return 0;
  17784. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17785. return 0;
  17786. if (o[1] & 0x80) {
  17787. if (!ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ee, &(val)->h4501SupplementaryService))
  17788. return 0;
  17789. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17790. return 0;
  17791. }
  17792. if (o[1] & 0x40) {
  17793. if (!ASN1PEREncBoolean(ee, (val)->h245Tunneling))
  17794. return 0;
  17795. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17796. return 0;
  17797. }
  17798. if (o[1] & 0x20) {
  17799. if (!ASN1Enc_H323_UU_PDU_h245Control(ee, &(val)->h245Control))
  17800. return 0;
  17801. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17802. return 0;
  17803. }
  17804. if (o[1] & 0x10) {
  17805. if (!ASN1Enc_H323_UU_PDU_nonStandardControl(ee, &(val)->nonStandardControl))
  17806. return 0;
  17807. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17808. return 0;
  17809. }
  17810. ASN1_CloseEncoder2(ee);
  17811. }
  17812. return 1;
  17813. }
  17814. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val)
  17815. {
  17816. ASN1uint32_t y;
  17817. ASN1decoding_t dd;
  17818. ASN1octet_t *db;
  17819. ASN1uint32_t ds;
  17820. ASN1uint32_t i;
  17821. ASN1uint32_t e;
  17822. if (!ASN1PERDecExtensionBit(dec, &y))
  17823. return 0;
  17824. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  17825. return 0;
  17826. if (!ASN1Dec_H323_UU_PDU_h323_message_body(dec, &(val)->h323_message_body))
  17827. return 0;
  17828. if ((val)->o[0] & 0x80) {
  17829. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  17830. return 0;
  17831. }
  17832. if (!y) {
  17833. ZeroMemory((val)->o + 1, 1);
  17834. } else {
  17835. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  17836. return 0;
  17837. if ((val)->o[1] & 0x80) {
  17838. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17839. return 0;
  17840. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17841. return 0;
  17842. if (!ASN1Dec_H323_UU_PDU_h4501SupplementaryService(dd, &(val)->h4501SupplementaryService))
  17843. return 0;
  17844. ASN1_CloseDecoder(dd);
  17845. }
  17846. if ((val)->o[1] & 0x40) {
  17847. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17848. return 0;
  17849. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17850. return 0;
  17851. if (!ASN1PERDecBoolean(dd, &(val)->h245Tunneling))
  17852. return 0;
  17853. ASN1_CloseDecoder(dd);
  17854. }
  17855. if ((val)->o[1] & 0x20) {
  17856. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17857. return 0;
  17858. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17859. return 0;
  17860. if (!ASN1Dec_H323_UU_PDU_h245Control(dd, &(val)->h245Control))
  17861. return 0;
  17862. ASN1_CloseDecoder(dd);
  17863. }
  17864. if ((val)->o[1] & 0x10) {
  17865. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17866. return 0;
  17867. if (ASN1_CreateDecoderEx(dec->module, &dd, db, ds, dec, ASN1DECODE_AUTOFREEBUFFER) < 0)
  17868. return 0;
  17869. if (!ASN1Dec_H323_UU_PDU_nonStandardControl(dd, &(val)->nonStandardControl))
  17870. return 0;
  17871. ASN1_CloseDecoder(dd);
  17872. }
  17873. for (i = 0; i < e; i++) {
  17874. if (!ASN1PERDecSkipFragmented(dec, 8))
  17875. return 0;
  17876. }
  17877. }
  17878. return 1;
  17879. }
  17880. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val)
  17881. {
  17882. if (val) {
  17883. ASN1Free_H323_UU_PDU_h323_message_body(&(val)->h323_message_body);
  17884. if ((val)->o[0] & 0x80) {
  17885. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  17886. }
  17887. if ((val)->o[1] & 0x80) {
  17888. ASN1Free_H323_UU_PDU_h4501SupplementaryService(&(val)->h4501SupplementaryService);
  17889. }
  17890. if ((val)->o[1] & 0x20) {
  17891. ASN1Free_H323_UU_PDU_h245Control(&(val)->h245Control);
  17892. }
  17893. if ((val)->o[1] & 0x10) {
  17894. ASN1Free_H323_UU_PDU_nonStandardControl(&(val)->nonStandardControl);
  17895. }
  17896. }
  17897. }
  17898. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  17899. {
  17900. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323pdu))
  17901. return 0;
  17902. if (!ASN1PEREncBoolean(enc, (val)->sent))
  17903. return 0;
  17904. return 1;
  17905. }
  17906. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  17907. {
  17908. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323pdu))
  17909. return 0;
  17910. if (!ASN1PERDecBoolean(dec, &(val)->sent))
  17911. return 0;
  17912. return 1;
  17913. }
  17914. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  17915. {
  17916. if (val) {
  17917. ASN1Free_H323_UU_PDU(&(val)->h323pdu);
  17918. }
  17919. }
  17920. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  17921. {
  17922. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  17923. }
  17924. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  17925. {
  17926. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(enc, &val->value))
  17927. return 0;
  17928. return 1;
  17929. }
  17930. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  17931. {
  17932. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn, sizeof(**val));
  17933. }
  17934. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  17935. {
  17936. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(dec, &val->value))
  17937. return 0;
  17938. return 1;
  17939. }
  17940. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  17941. {
  17942. if (val) {
  17943. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  17944. }
  17945. }
  17946. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(PInfoRequestResponse_perCallInfo_Seq_pdu val)
  17947. {
  17948. if (val) {
  17949. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(&val->value);
  17950. }
  17951. }
  17952. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val)
  17953. {
  17954. if (!ASN1PEREncExtensionBitClear(enc))
  17955. return 0;
  17956. if (!ASN1PEREncBits(enc, 1, (val)->o))
  17957. return 0;
  17958. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323_uu_pdu))
  17959. return 0;
  17960. if ((val)->o[0] & 0x80) {
  17961. if (!ASN1Enc_H323_UserInformation_user_data(enc, &(val)->user_data))
  17962. return 0;
  17963. }
  17964. return 1;
  17965. }
  17966. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val)
  17967. {
  17968. ASN1uint32_t y;
  17969. if (!ASN1PERDecExtensionBit(dec, &y))
  17970. return 0;
  17971. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  17972. return 0;
  17973. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323_uu_pdu))
  17974. return 0;
  17975. if ((val)->o[0] & 0x80) {
  17976. if (!ASN1Dec_H323_UserInformation_user_data(dec, &(val)->user_data))
  17977. return 0;
  17978. }
  17979. if (y) {
  17980. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  17981. return 0;
  17982. }
  17983. return 1;
  17984. }
  17985. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val)
  17986. {
  17987. if (val) {
  17988. ASN1Free_H323_UU_PDU(&(val)->h323_uu_pdu);
  17989. if ((val)->o[0] & 0x80) {
  17990. ASN1Free_H323_UserInformation_user_data(&(val)->user_data);
  17991. }
  17992. }
  17993. }