Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19613 lines
653 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. static int ASN1CALL ASN1Enc_FastStartToken(ASN1encoding_t enc, FastStartToken *val);
  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. static int ASN1CALL ASN1Dec_FastStartToken(ASN1decoding_t dec, FastStartToken *val);
  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. static void ASN1CALL ASN1Free_FastStartToken(FastStartToken *val);
  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. static int ASN1CALL ASN1Dec_Setup_UUIE_conferenceGoal(ASN1decoding_t dec, Setup_UUIE_conferenceGoal *val)
  1300. {
  1301. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 3))
  1302. return 0;
  1303. return 1;
  1304. }
  1305. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV *val)
  1306. {
  1307. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCRV_ElmFn);
  1308. }
  1309. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV val)
  1310. {
  1311. if (!ASN1PEREncUnsignedShort(enc, val->value))
  1312. return 0;
  1313. return 1;
  1314. }
  1315. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV *val)
  1316. {
  1317. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCRV_ElmFn, sizeof(**val));
  1318. }
  1319. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV val)
  1320. {
  1321. if (!ASN1PERDecUnsignedShort(dec, &val->value))
  1322. return 0;
  1323. return 1;
  1324. }
  1325. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV(PSetup_UUIE_destExtraCRV *val)
  1326. {
  1327. if (val) {
  1328. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCRV_ElmFn);
  1329. }
  1330. }
  1331. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV_ElmFn(PSetup_UUIE_destExtraCRV val)
  1332. {
  1333. if (val) {
  1334. }
  1335. }
  1336. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart(ASN1encoding_t enc, PConnect_UUIE_fastStart *val)
  1337. {
  1338. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_fastStart_ElmFn);
  1339. }
  1340. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PConnect_UUIE_fastStart val)
  1341. {
  1342. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1343. return 0;
  1344. return 1;
  1345. }
  1346. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart(ASN1decoding_t dec, PConnect_UUIE_fastStart *val)
  1347. {
  1348. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_fastStart_ElmFn, sizeof(**val));
  1349. }
  1350. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PConnect_UUIE_fastStart val)
  1351. {
  1352. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1353. return 0;
  1354. return 1;
  1355. }
  1356. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart(PConnect_UUIE_fastStart *val)
  1357. {
  1358. if (val) {
  1359. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_fastStart_ElmFn);
  1360. }
  1361. }
  1362. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart_ElmFn(PConnect_UUIE_fastStart val)
  1363. {
  1364. if (val) {
  1365. ASN1octetstring_free(&val->value);
  1366. }
  1367. }
  1368. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart *val)
  1369. {
  1370. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_fastStart_ElmFn);
  1371. }
  1372. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart val)
  1373. {
  1374. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1375. return 0;
  1376. return 1;
  1377. }
  1378. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart *val)
  1379. {
  1380. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_fastStart_ElmFn, sizeof(**val));
  1381. }
  1382. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart val)
  1383. {
  1384. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1385. return 0;
  1386. return 1;
  1387. }
  1388. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart(PCallProceeding_UUIE_fastStart *val)
  1389. {
  1390. if (val) {
  1391. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_fastStart_ElmFn);
  1392. }
  1393. }
  1394. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart_ElmFn(PCallProceeding_UUIE_fastStart val)
  1395. {
  1396. if (val) {
  1397. ASN1octetstring_free(&val->value);
  1398. }
  1399. }
  1400. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart(ASN1encoding_t enc, PAlerting_UUIE_fastStart *val)
  1401. {
  1402. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_fastStart_ElmFn);
  1403. }
  1404. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_fastStart val)
  1405. {
  1406. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1407. return 0;
  1408. return 1;
  1409. }
  1410. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart(ASN1decoding_t dec, PAlerting_UUIE_fastStart *val)
  1411. {
  1412. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_fastStart_ElmFn, sizeof(**val));
  1413. }
  1414. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_fastStart val)
  1415. {
  1416. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1417. return 0;
  1418. return 1;
  1419. }
  1420. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart(PAlerting_UUIE_fastStart *val)
  1421. {
  1422. if (val) {
  1423. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_fastStart_ElmFn);
  1424. }
  1425. }
  1426. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart_ElmFn(PAlerting_UUIE_fastStart val)
  1427. {
  1428. if (val) {
  1429. ASN1octetstring_free(&val->value);
  1430. }
  1431. }
  1432. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control(ASN1encoding_t enc, PH323_UU_PDU_h245Control *val)
  1433. {
  1434. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_h245Control_ElmFn);
  1435. }
  1436. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_h245Control val)
  1437. {
  1438. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1439. return 0;
  1440. return 1;
  1441. }
  1442. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control(ASN1decoding_t dec, PH323_UU_PDU_h245Control *val)
  1443. {
  1444. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_h245Control_ElmFn, sizeof(**val));
  1445. }
  1446. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_h245Control val)
  1447. {
  1448. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1449. return 0;
  1450. return 1;
  1451. }
  1452. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control(PH323_UU_PDU_h245Control *val)
  1453. {
  1454. if (val) {
  1455. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_h245Control_ElmFn);
  1456. }
  1457. }
  1458. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control_ElmFn(PH323_UU_PDU_h245Control val)
  1459. {
  1460. if (val) {
  1461. ASN1octetstring_free(&val->value);
  1462. }
  1463. }
  1464. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService *val)
  1465. {
  1466. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_h4501SupplementaryService_ElmFn);
  1467. }
  1468. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService val)
  1469. {
  1470. if (!ASN1PEREncOctetString_NoSize(enc, &val->value))
  1471. return 0;
  1472. return 1;
  1473. }
  1474. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService *val)
  1475. {
  1476. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_h4501SupplementaryService_ElmFn, sizeof(**val));
  1477. }
  1478. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService val)
  1479. {
  1480. if (!ASN1PERDecOctetString_NoSize(dec, &val->value))
  1481. return 0;
  1482. return 1;
  1483. }
  1484. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService(PH323_UU_PDU_h4501SupplementaryService *val)
  1485. {
  1486. if (val) {
  1487. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_h4501SupplementaryService_ElmFn);
  1488. }
  1489. }
  1490. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService_ElmFn(PH323_UU_PDU_h4501SupplementaryService val)
  1491. {
  1492. if (val) {
  1493. ASN1octetstring_free(&val->value);
  1494. }
  1495. }
  1496. static int ASN1CALL ASN1Enc_H323_UserInformation_user_data(ASN1encoding_t enc, H323_UserInformation_user_data *val)
  1497. {
  1498. if (!ASN1PEREncExtensionBitClear(enc))
  1499. return 0;
  1500. ASN1PEREncAlignment(enc);
  1501. if (!ASN1PEREncBitVal(enc, 8, (val)->protocol_discriminator))
  1502. return 0;
  1503. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->user_information, 1, 131, 8))
  1504. return 0;
  1505. return 1;
  1506. }
  1507. static int ASN1CALL ASN1Dec_H323_UserInformation_user_data(ASN1decoding_t dec, H323_UserInformation_user_data *val)
  1508. {
  1509. ASN1uint32_t y;
  1510. if (!ASN1PERDecExtensionBit(dec, &y))
  1511. return 0;
  1512. ASN1PERDecAlignment(dec);
  1513. if (!ASN1PERDecU16Val(dec, 8, &(val)->protocol_discriminator))
  1514. return 0;
  1515. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->user_information, 1, 131, 8))
  1516. return 0;
  1517. if (y) {
  1518. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1519. return 0;
  1520. }
  1521. return 1;
  1522. }
  1523. static void ASN1CALL ASN1Free_H323_UserInformation_user_data(H323_UserInformation_user_data *val)
  1524. {
  1525. if (val) {
  1526. }
  1527. }
  1528. static int ASN1CALL ASN1Enc_H235NonStandardParameter(ASN1encoding_t enc, H235NonStandardParameter *val)
  1529. {
  1530. if (!ASN1PEREncObjectIdentifier(enc, &(val)->nonStandardIdentifier))
  1531. return 0;
  1532. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->data))
  1533. return 0;
  1534. return 1;
  1535. }
  1536. static int ASN1CALL ASN1Dec_H235NonStandardParameter(ASN1decoding_t dec, H235NonStandardParameter *val)
  1537. {
  1538. if (!ASN1PERDecObjectIdentifier(dec, &(val)->nonStandardIdentifier))
  1539. return 0;
  1540. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->data))
  1541. return 0;
  1542. return 1;
  1543. }
  1544. static void ASN1CALL ASN1Free_H235NonStandardParameter(H235NonStandardParameter *val)
  1545. {
  1546. if (val) {
  1547. ASN1objectidentifier_free(&(val)->nonStandardIdentifier);
  1548. ASN1octetstring_free(&(val)->data);
  1549. }
  1550. }
  1551. static int ASN1CALL ASN1Enc_DHset(ASN1encoding_t enc, DHset *val)
  1552. {
  1553. if (!ASN1PEREncExtensionBitClear(enc))
  1554. return 0;
  1555. ASN1PEREncAlignment(enc);
  1556. if (!ASN1PEREncBitVal(enc, 16, ((val)->halfkey).length))
  1557. return 0;
  1558. if (!ASN1PEREncBits(enc, ((val)->halfkey).length, ((val)->halfkey).value))
  1559. return 0;
  1560. ASN1PEREncAlignment(enc);
  1561. if (!ASN1PEREncBitVal(enc, 16, ((val)->modSize).length))
  1562. return 0;
  1563. if (!ASN1PEREncBits(enc, ((val)->modSize).length, ((val)->modSize).value))
  1564. return 0;
  1565. ASN1PEREncAlignment(enc);
  1566. if (!ASN1PEREncBitVal(enc, 16, ((val)->generator).length))
  1567. return 0;
  1568. if (!ASN1PEREncBits(enc, ((val)->generator).length, ((val)->generator).value))
  1569. return 0;
  1570. return 1;
  1571. }
  1572. static int ASN1CALL ASN1Dec_DHset(ASN1decoding_t dec, DHset *val)
  1573. {
  1574. ASN1uint32_t y;
  1575. if (!ASN1PERDecExtensionBit(dec, &y))
  1576. return 0;
  1577. ASN1PERDecAlignment(dec);
  1578. if (!ASN1PERDecU32Val(dec, 16, &((val)->halfkey).length))
  1579. return 0;
  1580. if (!ASN1PERDecBits(dec, ((val)->halfkey).length, &((val)->halfkey).value))
  1581. return 0;
  1582. ASN1PERDecAlignment(dec);
  1583. if (!ASN1PERDecU32Val(dec, 16, &((val)->modSize).length))
  1584. return 0;
  1585. if (!ASN1PERDecBits(dec, ((val)->modSize).length, &((val)->modSize).value))
  1586. return 0;
  1587. ASN1PERDecAlignment(dec);
  1588. if (!ASN1PERDecU32Val(dec, 16, &((val)->generator).length))
  1589. return 0;
  1590. if (!ASN1PERDecBits(dec, ((val)->generator).length, &((val)->generator).value))
  1591. return 0;
  1592. if (y) {
  1593. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1594. return 0;
  1595. }
  1596. return 1;
  1597. }
  1598. static void ASN1CALL ASN1Free_DHset(DHset *val)
  1599. {
  1600. if (val) {
  1601. ASN1bitstring_free(&(val)->halfkey);
  1602. ASN1bitstring_free(&(val)->modSize);
  1603. ASN1bitstring_free(&(val)->generator);
  1604. }
  1605. }
  1606. static int ASN1CALL ASN1Enc_TypedCertificate(ASN1encoding_t enc, TypedCertificate *val)
  1607. {
  1608. if (!ASN1PEREncExtensionBitClear(enc))
  1609. return 0;
  1610. if (!ASN1PEREncObjectIdentifier(enc, &(val)->type))
  1611. return 0;
  1612. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->certificate))
  1613. return 0;
  1614. return 1;
  1615. }
  1616. static int ASN1CALL ASN1Dec_TypedCertificate(ASN1decoding_t dec, TypedCertificate *val)
  1617. {
  1618. ASN1uint32_t y;
  1619. if (!ASN1PERDecExtensionBit(dec, &y))
  1620. return 0;
  1621. if (!ASN1PERDecObjectIdentifier(dec, &(val)->type))
  1622. return 0;
  1623. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->certificate))
  1624. return 0;
  1625. if (y) {
  1626. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1627. return 0;
  1628. }
  1629. return 1;
  1630. }
  1631. static void ASN1CALL ASN1Free_TypedCertificate(TypedCertificate *val)
  1632. {
  1633. if (val) {
  1634. ASN1objectidentifier_free(&(val)->type);
  1635. ASN1octetstring_free(&(val)->certificate);
  1636. }
  1637. }
  1638. static int ASN1CALL ASN1Enc_AuthenticationMechanism(ASN1encoding_t enc, AuthenticationMechanism *val)
  1639. {
  1640. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  1641. return 0;
  1642. switch ((val)->choice) {
  1643. case 1:
  1644. break;
  1645. case 2:
  1646. break;
  1647. case 3:
  1648. break;
  1649. case 4:
  1650. break;
  1651. case 5:
  1652. break;
  1653. case 6:
  1654. break;
  1655. case 7:
  1656. if (!ASN1Enc_H235NonStandardParameter(enc, &(val)->u.nonStandard))
  1657. return 0;
  1658. break;
  1659. default:
  1660. /* impossible */
  1661. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  1662. return 0;
  1663. }
  1664. return 1;
  1665. }
  1666. static int ASN1CALL ASN1Dec_AuthenticationMechanism(ASN1decoding_t dec, AuthenticationMechanism *val)
  1667. {
  1668. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  1669. return 0;
  1670. switch ((val)->choice) {
  1671. case 1:
  1672. break;
  1673. case 2:
  1674. break;
  1675. case 3:
  1676. break;
  1677. case 4:
  1678. break;
  1679. case 5:
  1680. break;
  1681. case 6:
  1682. break;
  1683. case 7:
  1684. if (!ASN1Dec_H235NonStandardParameter(dec, &(val)->u.nonStandard))
  1685. return 0;
  1686. break;
  1687. case 0:
  1688. /* extension case */
  1689. if (!ASN1PERDecSkipFragmented(dec, 8))
  1690. return 0;
  1691. break;
  1692. default:
  1693. /* impossible */
  1694. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  1695. return 0;
  1696. }
  1697. return 1;
  1698. }
  1699. static void ASN1CALL ASN1Free_AuthenticationMechanism(AuthenticationMechanism *val)
  1700. {
  1701. if (val) {
  1702. switch ((val)->choice) {
  1703. case 7:
  1704. ASN1Free_H235NonStandardParameter(&(val)->u.nonStandard);
  1705. break;
  1706. }
  1707. }
  1708. }
  1709. static int ASN1CALL ASN1Enc_ClearToken(ASN1encoding_t enc, ClearToken *val)
  1710. {
  1711. ASN1uint32_t l;
  1712. if (!ASN1PEREncExtensionBitClear(enc))
  1713. return 0;
  1714. if (!ASN1PEREncBits(enc, 8, (val)->o))
  1715. return 0;
  1716. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  1717. return 0;
  1718. if ((val)->o[0] & 0x80) {
  1719. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  1720. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  1721. return 0;
  1722. ASN1PEREncAlignment(enc);
  1723. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  1724. return 0;
  1725. }
  1726. if ((val)->o[0] & 0x40) {
  1727. if (!ASN1PEREncBitVal(enc, 7, ((val)->password).length - 1))
  1728. return 0;
  1729. ASN1PEREncAlignment(enc);
  1730. if (!ASN1PEREncChar16String(enc, ((val)->password).length, ((val)->password).value, 16))
  1731. return 0;
  1732. }
  1733. if ((val)->o[0] & 0x20) {
  1734. if (!ASN1Enc_DHset(enc, &(val)->dhkey))
  1735. return 0;
  1736. }
  1737. if ((val)->o[0] & 0x10) {
  1738. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->challenge, 8, 128, 7))
  1739. return 0;
  1740. }
  1741. if ((val)->o[0] & 0x8) {
  1742. if (!ASN1PEREncInteger(enc, (val)->random))
  1743. return 0;
  1744. }
  1745. if ((val)->o[0] & 0x4) {
  1746. if (!ASN1Enc_TypedCertificate(enc, &(val)->certificate))
  1747. return 0;
  1748. }
  1749. if ((val)->o[0] & 0x2) {
  1750. if (!ASN1PEREncBitVal(enc, 7, ((val)->generalID).length - 1))
  1751. return 0;
  1752. ASN1PEREncAlignment(enc);
  1753. if (!ASN1PEREncChar16String(enc, ((val)->generalID).length, ((val)->generalID).value, 16))
  1754. return 0;
  1755. }
  1756. if ((val)->o[0] & 0x1) {
  1757. if (!ASN1Enc_H235NonStandardParameter(enc, &(val)->nonStandard))
  1758. return 0;
  1759. }
  1760. return 1;
  1761. }
  1762. static int ASN1CALL ASN1Dec_ClearToken(ASN1decoding_t dec, ClearToken *val)
  1763. {
  1764. ASN1uint32_t y;
  1765. ASN1uint32_t l;
  1766. if (!ASN1PERDecExtensionBit(dec, &y))
  1767. return 0;
  1768. if (!ASN1PERDecExtension(dec, 8, (val)->o))
  1769. return 0;
  1770. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  1771. return 0;
  1772. if ((val)->o[0] & 0x80) {
  1773. if (!ASN1PERDecU32Val(dec, 2, &l))
  1774. return 0;
  1775. l += 1;
  1776. ASN1PERDecAlignment(dec);
  1777. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  1778. return 0;
  1779. (val)->timeStamp += 1;
  1780. }
  1781. if ((val)->o[0] & 0x40) {
  1782. if (!ASN1PERDecU32Val(dec, 7, &((val)->password).length))
  1783. return 0;
  1784. ((val)->password).length += 1;
  1785. ASN1PERDecAlignment(dec);
  1786. if (!ASN1PERDecChar16String(dec, ((val)->password).length, &((val)->password).value, 16))
  1787. return 0;
  1788. }
  1789. if ((val)->o[0] & 0x20) {
  1790. if (!ASN1Dec_DHset(dec, &(val)->dhkey))
  1791. return 0;
  1792. }
  1793. if ((val)->o[0] & 0x10) {
  1794. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->challenge, 8, 128, 7))
  1795. return 0;
  1796. }
  1797. if ((val)->o[0] & 0x8) {
  1798. if (!ASN1PERDecInteger(dec, &(val)->random))
  1799. return 0;
  1800. }
  1801. if ((val)->o[0] & 0x4) {
  1802. if (!ASN1Dec_TypedCertificate(dec, &(val)->certificate))
  1803. return 0;
  1804. }
  1805. if ((val)->o[0] & 0x2) {
  1806. if (!ASN1PERDecU32Val(dec, 7, &((val)->generalID).length))
  1807. return 0;
  1808. ((val)->generalID).length += 1;
  1809. ASN1PERDecAlignment(dec);
  1810. if (!ASN1PERDecChar16String(dec, ((val)->generalID).length, &((val)->generalID).value, 16))
  1811. return 0;
  1812. }
  1813. if ((val)->o[0] & 0x1) {
  1814. if (!ASN1Dec_H235NonStandardParameter(dec, &(val)->nonStandard))
  1815. return 0;
  1816. }
  1817. if (y) {
  1818. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1819. return 0;
  1820. }
  1821. return 1;
  1822. }
  1823. static void ASN1CALL ASN1Free_ClearToken(ClearToken *val)
  1824. {
  1825. if (val) {
  1826. ASN1objectidentifier_free(&(val)->tokenOID);
  1827. if ((val)->o[0] & 0x40) {
  1828. ASN1char16string_free(&(val)->password);
  1829. }
  1830. if ((val)->o[0] & 0x20) {
  1831. ASN1Free_DHset(&(val)->dhkey);
  1832. }
  1833. if ((val)->o[0] & 0x10) {
  1834. }
  1835. if ((val)->o[0] & 0x4) {
  1836. ASN1Free_TypedCertificate(&(val)->certificate);
  1837. }
  1838. if ((val)->o[0] & 0x2) {
  1839. ASN1char16string_free(&(val)->generalID);
  1840. }
  1841. if ((val)->o[0] & 0x1) {
  1842. ASN1Free_H235NonStandardParameter(&(val)->nonStandard);
  1843. }
  1844. }
  1845. }
  1846. static int ASN1CALL ASN1Enc_Params(ASN1encoding_t enc, Params *val)
  1847. {
  1848. if (!ASN1PEREncExtensionBitClear(enc))
  1849. return 0;
  1850. if (!ASN1PEREncBits(enc, 2, (val)->o))
  1851. return 0;
  1852. if ((val)->o[0] & 0x80) {
  1853. if (!ASN1PEREncInteger(enc, (val)->ranInt))
  1854. return 0;
  1855. }
  1856. if ((val)->o[0] & 0x40) {
  1857. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->iv8, 8))
  1858. return 0;
  1859. }
  1860. return 1;
  1861. }
  1862. static int ASN1CALL ASN1Dec_Params(ASN1decoding_t dec, Params *val)
  1863. {
  1864. ASN1uint32_t y;
  1865. if (!ASN1PERDecExtensionBit(dec, &y))
  1866. return 0;
  1867. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  1868. return 0;
  1869. if ((val)->o[0] & 0x80) {
  1870. if (!ASN1PERDecInteger(dec, &(val)->ranInt))
  1871. return 0;
  1872. }
  1873. if ((val)->o[0] & 0x40) {
  1874. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->iv8, 8))
  1875. return 0;
  1876. }
  1877. if (y) {
  1878. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  1879. return 0;
  1880. }
  1881. return 1;
  1882. }
  1883. static void ASN1CALL ASN1Free_Params(Params *val)
  1884. {
  1885. if (val) {
  1886. if ((val)->o[0] & 0x40) {
  1887. }
  1888. }
  1889. }
  1890. static int ASN1CALL ASN1Enc_EncodedGeneralToken(ASN1encoding_t enc, EncodedGeneralToken *val)
  1891. {
  1892. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  1893. return 0;
  1894. if (!ASN1Enc_ClearToken(enc, &(val)->type))
  1895. return 0;
  1896. return 1;
  1897. }
  1898. static int ASN1CALL ASN1Dec_EncodedGeneralToken(ASN1decoding_t dec, EncodedGeneralToken *val)
  1899. {
  1900. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  1901. return 0;
  1902. if (!ASN1Dec_ClearToken(dec, &(val)->type))
  1903. return 0;
  1904. return 1;
  1905. }
  1906. static void ASN1CALL ASN1Free_EncodedGeneralToken(EncodedGeneralToken *val)
  1907. {
  1908. if (val) {
  1909. ASN1objectidentifier_free(&(val)->id);
  1910. ASN1Free_ClearToken(&(val)->type);
  1911. }
  1912. }
  1913. static int ASN1CALL ASN1Enc_PwdCertToken(ASN1encoding_t enc, PwdCertToken *val)
  1914. {
  1915. if (!ASN1Enc_ClearToken(enc, val))
  1916. return 0;
  1917. return 1;
  1918. }
  1919. static int ASN1CALL ASN1Dec_PwdCertToken(ASN1decoding_t dec, PwdCertToken *val)
  1920. {
  1921. if (!ASN1Dec_ClearToken(dec, val))
  1922. return 0;
  1923. return 1;
  1924. }
  1925. static void ASN1CALL ASN1Free_PwdCertToken(PwdCertToken *val)
  1926. {
  1927. if (val) {
  1928. ASN1Free_ClearToken(val);
  1929. }
  1930. }
  1931. static int ASN1CALL ASN1Enc_EncodedPwdCertToken(ASN1encoding_t enc, EncodedPwdCertToken *val)
  1932. {
  1933. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  1934. return 0;
  1935. if (!ASN1Enc_PwdCertToken(enc, &(val)->type))
  1936. return 0;
  1937. return 1;
  1938. }
  1939. static int ASN1CALL ASN1Dec_EncodedPwdCertToken(ASN1decoding_t dec, EncodedPwdCertToken *val)
  1940. {
  1941. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  1942. return 0;
  1943. if (!ASN1Dec_PwdCertToken(dec, &(val)->type))
  1944. return 0;
  1945. return 1;
  1946. }
  1947. static void ASN1CALL ASN1Free_EncodedPwdCertToken(EncodedPwdCertToken *val)
  1948. {
  1949. if (val) {
  1950. ASN1objectidentifier_free(&(val)->id);
  1951. ASN1Free_PwdCertToken(&(val)->type);
  1952. }
  1953. }
  1954. static int ASN1CALL ASN1Enc_ReleaseCompleteReason(ASN1encoding_t enc, ReleaseCompleteReason *val)
  1955. {
  1956. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 12))
  1957. return 0;
  1958. return 1;
  1959. }
  1960. static int ASN1CALL ASN1Dec_ReleaseCompleteReason(ASN1decoding_t dec, ReleaseCompleteReason *val)
  1961. {
  1962. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 4, 12))
  1963. return 0;
  1964. return 1;
  1965. }
  1966. static int ASN1CALL ASN1Enc_FacilityReason(ASN1encoding_t enc, FacilityReason *val)
  1967. {
  1968. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  1969. return 0;
  1970. return 1;
  1971. }
  1972. static int ASN1CALL ASN1Dec_FacilityReason(ASN1decoding_t dec, FacilityReason *val)
  1973. {
  1974. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  1975. return 0;
  1976. return 1;
  1977. }
  1978. static int ASN1CALL ASN1Enc_H221NonStandard(ASN1encoding_t enc, H221NonStandard *val)
  1979. {
  1980. if (!ASN1PEREncExtensionBitClear(enc))
  1981. return 0;
  1982. ASN1PEREncAlignment(enc);
  1983. if (!ASN1PEREncBitVal(enc, 8, (val)->t35CountryCode))
  1984. return 0;
  1985. ASN1PEREncAlignment(enc);
  1986. if (!ASN1PEREncBitVal(enc, 8, (val)->t35Extension))
  1987. return 0;
  1988. if (!ASN1PEREncUnsignedShort(enc, (val)->manufacturerCode))
  1989. return 0;
  1990. return 1;
  1991. }
  1992. static int ASN1CALL ASN1Dec_H221NonStandard(ASN1decoding_t dec, H221NonStandard *val)
  1993. {
  1994. ASN1uint32_t y;
  1995. if (!ASN1PERDecExtensionBit(dec, &y))
  1996. return 0;
  1997. ASN1PERDecAlignment(dec);
  1998. if (!ASN1PERDecU16Val(dec, 8, &(val)->t35CountryCode))
  1999. return 0;
  2000. ASN1PERDecAlignment(dec);
  2001. if (!ASN1PERDecU16Val(dec, 8, &(val)->t35Extension))
  2002. return 0;
  2003. if (!ASN1PERDecUnsignedShort(dec, &(val)->manufacturerCode))
  2004. return 0;
  2005. if (y) {
  2006. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2007. return 0;
  2008. }
  2009. return 1;
  2010. }
  2011. static int ASN1CALL ASN1Enc_H225NonStandardIdentifier(ASN1encoding_t enc, H225NonStandardIdentifier *val)
  2012. {
  2013. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  2014. return 0;
  2015. switch ((val)->choice) {
  2016. case 1:
  2017. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.object))
  2018. return 0;
  2019. break;
  2020. case 2:
  2021. if (!ASN1Enc_H221NonStandard(enc, &(val)->u.h221NonStandard))
  2022. return 0;
  2023. break;
  2024. default:
  2025. /* impossible */
  2026. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2027. return 0;
  2028. }
  2029. return 1;
  2030. }
  2031. static int ASN1CALL ASN1Dec_H225NonStandardIdentifier(ASN1decoding_t dec, H225NonStandardIdentifier *val)
  2032. {
  2033. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  2034. return 0;
  2035. switch ((val)->choice) {
  2036. case 1:
  2037. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.object))
  2038. return 0;
  2039. break;
  2040. case 2:
  2041. if (!ASN1Dec_H221NonStandard(dec, &(val)->u.h221NonStandard))
  2042. return 0;
  2043. break;
  2044. case 0:
  2045. /* extension case */
  2046. if (!ASN1PERDecSkipFragmented(dec, 8))
  2047. return 0;
  2048. break;
  2049. default:
  2050. /* impossible */
  2051. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2052. return 0;
  2053. }
  2054. return 1;
  2055. }
  2056. static void ASN1CALL ASN1Free_H225NonStandardIdentifier(H225NonStandardIdentifier *val)
  2057. {
  2058. if (val) {
  2059. switch ((val)->choice) {
  2060. case 1:
  2061. ASN1objectidentifier_free(&(val)->u.object);
  2062. break;
  2063. }
  2064. }
  2065. }
  2066. static int ASN1CALL ASN1Enc_PublicTypeOfNumber(ASN1encoding_t enc, PublicTypeOfNumber *val)
  2067. {
  2068. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  2069. return 0;
  2070. return 1;
  2071. }
  2072. static int ASN1CALL ASN1Dec_PublicTypeOfNumber(ASN1decoding_t dec, PublicTypeOfNumber *val)
  2073. {
  2074. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  2075. return 0;
  2076. return 1;
  2077. }
  2078. static int ASN1CALL ASN1Enc_PrivateTypeOfNumber(ASN1encoding_t enc, PrivateTypeOfNumber *val)
  2079. {
  2080. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  2081. return 0;
  2082. return 1;
  2083. }
  2084. static int ASN1CALL ASN1Dec_PrivateTypeOfNumber(ASN1decoding_t dec, PrivateTypeOfNumber *val)
  2085. {
  2086. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  2087. return 0;
  2088. return 1;
  2089. }
  2090. static int ASN1CALL ASN1Enc_AltGKInfo(ASN1encoding_t enc, AltGKInfo *val)
  2091. {
  2092. if (!ASN1PEREncExtensionBitClear(enc))
  2093. return 0;
  2094. if (!ASN1Enc_AltGKInfo_alternateGatekeeper(enc, &(val)->alternateGatekeeper))
  2095. return 0;
  2096. if (!ASN1PEREncBoolean(enc, (val)->altGKisPermanent))
  2097. return 0;
  2098. return 1;
  2099. }
  2100. static int ASN1CALL ASN1Dec_AltGKInfo(ASN1decoding_t dec, AltGKInfo *val)
  2101. {
  2102. ASN1uint32_t y;
  2103. if (!ASN1PERDecExtensionBit(dec, &y))
  2104. return 0;
  2105. if (!ASN1Dec_AltGKInfo_alternateGatekeeper(dec, &(val)->alternateGatekeeper))
  2106. return 0;
  2107. if (!ASN1PERDecBoolean(dec, &(val)->altGKisPermanent))
  2108. return 0;
  2109. if (y) {
  2110. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2111. return 0;
  2112. }
  2113. return 1;
  2114. }
  2115. static void ASN1CALL ASN1Free_AltGKInfo(AltGKInfo *val)
  2116. {
  2117. if (val) {
  2118. ASN1Free_AltGKInfo_alternateGatekeeper(&(val)->alternateGatekeeper);
  2119. }
  2120. }
  2121. static int ASN1CALL ASN1Enc_Q954Details(ASN1encoding_t enc, Q954Details *val)
  2122. {
  2123. if (!ASN1PEREncExtensionBitClear(enc))
  2124. return 0;
  2125. if (!ASN1PEREncBoolean(enc, (val)->conferenceCalling))
  2126. return 0;
  2127. if (!ASN1PEREncBoolean(enc, (val)->threePartyService))
  2128. return 0;
  2129. return 1;
  2130. }
  2131. static int ASN1CALL ASN1Dec_Q954Details(ASN1decoding_t dec, Q954Details *val)
  2132. {
  2133. ASN1uint32_t y;
  2134. if (!ASN1PERDecExtensionBit(dec, &y))
  2135. return 0;
  2136. if (!ASN1PERDecBoolean(dec, &(val)->conferenceCalling))
  2137. return 0;
  2138. if (!ASN1PERDecBoolean(dec, &(val)->threePartyService))
  2139. return 0;
  2140. if (y) {
  2141. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2142. return 0;
  2143. }
  2144. return 1;
  2145. }
  2146. static int ASN1CALL ASN1Enc_CallIdentifier(ASN1encoding_t enc, CallIdentifier *val)
  2147. {
  2148. if (!ASN1PEREncExtensionBitClear(enc))
  2149. return 0;
  2150. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->guid, 16))
  2151. return 0;
  2152. return 1;
  2153. }
  2154. static int ASN1CALL ASN1Dec_CallIdentifier(ASN1decoding_t dec, CallIdentifier *val)
  2155. {
  2156. ASN1uint32_t y;
  2157. if (!ASN1PERDecExtensionBit(dec, &y))
  2158. return 0;
  2159. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->guid, 16))
  2160. return 0;
  2161. if (y) {
  2162. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2163. return 0;
  2164. }
  2165. return 1;
  2166. }
  2167. static void ASN1CALL ASN1Free_CallIdentifier(CallIdentifier *val)
  2168. {
  2169. if (val) {
  2170. }
  2171. }
  2172. static int ASN1CALL ASN1Enc_ICV(ASN1encoding_t enc, ICV *val)
  2173. {
  2174. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  2175. return 0;
  2176. if (!ASN1PEREncFragmented(enc, ((val)->icv).length, ((val)->icv).value, 1))
  2177. return 0;
  2178. return 1;
  2179. }
  2180. static int ASN1CALL ASN1Dec_ICV(ASN1decoding_t dec, ICV *val)
  2181. {
  2182. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  2183. return 0;
  2184. if (!ASN1PERDecFragmented(dec, &((val)->icv).length, &((val)->icv).value, 1))
  2185. return 0;
  2186. return 1;
  2187. }
  2188. static void ASN1CALL ASN1Free_ICV(ICV *val)
  2189. {
  2190. if (val) {
  2191. ASN1objectidentifier_free(&(val)->algorithmOID);
  2192. ASN1bitstring_free(&(val)->icv);
  2193. }
  2194. }
  2195. static int ASN1CALL ASN1Enc_GatekeeperRejectReason(ASN1encoding_t enc, GatekeeperRejectReason *val)
  2196. {
  2197. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  2198. return 0;
  2199. return 1;
  2200. }
  2201. static int ASN1CALL ASN1Dec_GatekeeperRejectReason(ASN1decoding_t dec, GatekeeperRejectReason *val)
  2202. {
  2203. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  2204. return 0;
  2205. return 1;
  2206. }
  2207. static int ASN1CALL ASN1Enc_RegistrationRejectReason(ASN1encoding_t enc, RegistrationRejectReason *val)
  2208. {
  2209. ASN1encoding_t ee;
  2210. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 8))
  2211. return 0;
  2212. switch ((val)->choice) {
  2213. case 1:
  2214. break;
  2215. case 2:
  2216. break;
  2217. case 3:
  2218. break;
  2219. case 4:
  2220. break;
  2221. case 5:
  2222. if (!ASN1Enc_RegistrationRejectReason_duplicateAlias(enc, &(val)->u.duplicateAlias))
  2223. return 0;
  2224. break;
  2225. case 6:
  2226. break;
  2227. case 7:
  2228. break;
  2229. case 8:
  2230. break;
  2231. case 9:
  2232. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2233. return 0;
  2234. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2235. return 0;
  2236. ASN1_CloseEncoder2(ee);
  2237. break;
  2238. case 10:
  2239. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2240. return 0;
  2241. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2242. return 0;
  2243. ASN1_CloseEncoder2(ee);
  2244. break;
  2245. case 11:
  2246. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2247. return 0;
  2248. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2249. return 0;
  2250. ASN1_CloseEncoder2(ee);
  2251. break;
  2252. case 12:
  2253. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2254. return 0;
  2255. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2256. return 0;
  2257. ASN1_CloseEncoder2(ee);
  2258. break;
  2259. default:
  2260. /* impossible */
  2261. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  2262. return 0;
  2263. }
  2264. return 1;
  2265. }
  2266. static int ASN1CALL ASN1Dec_RegistrationRejectReason(ASN1decoding_t dec, RegistrationRejectReason *val)
  2267. {
  2268. ASN1decoding_t dd;
  2269. ASN1octet_t *db;
  2270. ASN1uint32_t ds;
  2271. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 8))
  2272. return 0;
  2273. switch ((val)->choice) {
  2274. case 1:
  2275. break;
  2276. case 2:
  2277. break;
  2278. case 3:
  2279. break;
  2280. case 4:
  2281. break;
  2282. case 5:
  2283. if (!ASN1Dec_RegistrationRejectReason_duplicateAlias(dec, &(val)->u.duplicateAlias))
  2284. return 0;
  2285. break;
  2286. case 6:
  2287. break;
  2288. case 7:
  2289. break;
  2290. case 8:
  2291. break;
  2292. case 9:
  2293. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2294. return 0;
  2295. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2296. return 0;
  2297. ASN1_CloseDecoder(dd);
  2298. ASN1Free(db);
  2299. break;
  2300. case 10:
  2301. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2302. return 0;
  2303. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2304. return 0;
  2305. ASN1_CloseDecoder(dd);
  2306. ASN1Free(db);
  2307. break;
  2308. case 11:
  2309. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2310. return 0;
  2311. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2312. return 0;
  2313. ASN1_CloseDecoder(dd);
  2314. ASN1Free(db);
  2315. break;
  2316. case 12:
  2317. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2318. return 0;
  2319. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2320. return 0;
  2321. ASN1_CloseDecoder(dd);
  2322. ASN1Free(db);
  2323. break;
  2324. case 0:
  2325. /* extension case */
  2326. if (!ASN1PERDecSkipFragmented(dec, 8))
  2327. return 0;
  2328. break;
  2329. default:
  2330. /* impossible */
  2331. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  2332. return 0;
  2333. }
  2334. return 1;
  2335. }
  2336. static void ASN1CALL ASN1Free_RegistrationRejectReason(RegistrationRejectReason *val)
  2337. {
  2338. if (val) {
  2339. switch ((val)->choice) {
  2340. case 5:
  2341. ASN1Free_RegistrationRejectReason_duplicateAlias(&(val)->u.duplicateAlias);
  2342. break;
  2343. }
  2344. }
  2345. }
  2346. static int ASN1CALL ASN1Enc_UnregRequestReason(ASN1encoding_t enc, UnregRequestReason *val)
  2347. {
  2348. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2349. return 0;
  2350. return 1;
  2351. }
  2352. static int ASN1CALL ASN1Dec_UnregRequestReason(ASN1decoding_t dec, UnregRequestReason *val)
  2353. {
  2354. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2355. return 0;
  2356. return 1;
  2357. }
  2358. static int ASN1CALL ASN1Enc_UnregRejectReason(ASN1encoding_t enc, UnregRejectReason *val)
  2359. {
  2360. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 3))
  2361. return 0;
  2362. return 1;
  2363. }
  2364. static int ASN1CALL ASN1Dec_UnregRejectReason(ASN1decoding_t dec, UnregRejectReason *val)
  2365. {
  2366. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 3))
  2367. return 0;
  2368. return 1;
  2369. }
  2370. static int ASN1CALL ASN1Enc_CallType(ASN1encoding_t enc, CallType *val)
  2371. {
  2372. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2373. return 0;
  2374. return 1;
  2375. }
  2376. static int ASN1CALL ASN1Dec_CallType(ASN1decoding_t dec, CallType *val)
  2377. {
  2378. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2379. return 0;
  2380. return 1;
  2381. }
  2382. static int ASN1CALL ASN1Enc_CallModel(ASN1encoding_t enc, CallModel *val)
  2383. {
  2384. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  2385. return 0;
  2386. return 1;
  2387. }
  2388. static int ASN1CALL ASN1Dec_CallModel(ASN1decoding_t dec, CallModel *val)
  2389. {
  2390. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  2391. return 0;
  2392. return 1;
  2393. }
  2394. static int ASN1CALL ASN1Enc_TransportQOS(ASN1encoding_t enc, TransportQOS *val)
  2395. {
  2396. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2397. return 0;
  2398. return 1;
  2399. }
  2400. static int ASN1CALL ASN1Dec_TransportQOS(ASN1decoding_t dec, TransportQOS *val)
  2401. {
  2402. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2403. return 0;
  2404. return 1;
  2405. }
  2406. static int ASN1CALL ASN1Enc_UUIEsRequested(ASN1encoding_t enc, UUIEsRequested *val)
  2407. {
  2408. if (!ASN1PEREncExtensionBitClear(enc))
  2409. return 0;
  2410. if (!ASN1PEREncBoolean(enc, (val)->setup))
  2411. return 0;
  2412. if (!ASN1PEREncBoolean(enc, (val)->callProceeding))
  2413. return 0;
  2414. if (!ASN1PEREncBoolean(enc, (val)->connect))
  2415. return 0;
  2416. if (!ASN1PEREncBoolean(enc, (val)->alerting))
  2417. return 0;
  2418. if (!ASN1PEREncBoolean(enc, (val)->information))
  2419. return 0;
  2420. if (!ASN1PEREncBoolean(enc, (val)->releaseComplete))
  2421. return 0;
  2422. if (!ASN1PEREncBoolean(enc, (val)->facility))
  2423. return 0;
  2424. if (!ASN1PEREncBoolean(enc, (val)->progress))
  2425. return 0;
  2426. if (!ASN1PEREncBoolean(enc, (val)->empty))
  2427. return 0;
  2428. return 1;
  2429. }
  2430. static int ASN1CALL ASN1Dec_UUIEsRequested(ASN1decoding_t dec, UUIEsRequested *val)
  2431. {
  2432. ASN1uint32_t y;
  2433. if (!ASN1PERDecExtensionBit(dec, &y))
  2434. return 0;
  2435. if (!ASN1PERDecBoolean(dec, &(val)->setup))
  2436. return 0;
  2437. if (!ASN1PERDecBoolean(dec, &(val)->callProceeding))
  2438. return 0;
  2439. if (!ASN1PERDecBoolean(dec, &(val)->connect))
  2440. return 0;
  2441. if (!ASN1PERDecBoolean(dec, &(val)->alerting))
  2442. return 0;
  2443. if (!ASN1PERDecBoolean(dec, &(val)->information))
  2444. return 0;
  2445. if (!ASN1PERDecBoolean(dec, &(val)->releaseComplete))
  2446. return 0;
  2447. if (!ASN1PERDecBoolean(dec, &(val)->facility))
  2448. return 0;
  2449. if (!ASN1PERDecBoolean(dec, &(val)->progress))
  2450. return 0;
  2451. if (!ASN1PERDecBoolean(dec, &(val)->empty))
  2452. return 0;
  2453. if (y) {
  2454. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  2455. return 0;
  2456. }
  2457. return 1;
  2458. }
  2459. static int ASN1CALL ASN1Enc_AdmissionRejectReason(ASN1encoding_t enc, AdmissionRejectReason *val)
  2460. {
  2461. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 8))
  2462. return 0;
  2463. return 1;
  2464. }
  2465. static int ASN1CALL ASN1Dec_AdmissionRejectReason(ASN1decoding_t dec, AdmissionRejectReason *val)
  2466. {
  2467. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 8))
  2468. return 0;
  2469. return 1;
  2470. }
  2471. static int ASN1CALL ASN1Enc_BandRejectReason(ASN1encoding_t enc, BandRejectReason *val)
  2472. {
  2473. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 6))
  2474. return 0;
  2475. return 1;
  2476. }
  2477. static int ASN1CALL ASN1Dec_BandRejectReason(ASN1decoding_t dec, BandRejectReason *val)
  2478. {
  2479. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 6))
  2480. return 0;
  2481. return 1;
  2482. }
  2483. static int ASN1CALL ASN1Enc_LocationRejectReason(ASN1encoding_t enc, LocationRejectReason *val)
  2484. {
  2485. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 2, 4))
  2486. return 0;
  2487. return 1;
  2488. }
  2489. static int ASN1CALL ASN1Dec_LocationRejectReason(ASN1decoding_t dec, LocationRejectReason *val)
  2490. {
  2491. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 2, 4))
  2492. return 0;
  2493. return 1;
  2494. }
  2495. static int ASN1CALL ASN1Enc_DisengageReason(ASN1encoding_t enc, DisengageReason *val)
  2496. {
  2497. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2498. return 0;
  2499. return 1;
  2500. }
  2501. static int ASN1CALL ASN1Dec_DisengageReason(ASN1decoding_t dec, DisengageReason *val)
  2502. {
  2503. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2504. return 0;
  2505. return 1;
  2506. }
  2507. static int ASN1CALL ASN1Enc_DisengageRejectReason(ASN1encoding_t enc, DisengageRejectReason *val)
  2508. {
  2509. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  2510. return 0;
  2511. return 1;
  2512. }
  2513. static int ASN1CALL ASN1Dec_DisengageRejectReason(ASN1decoding_t dec, DisengageRejectReason *val)
  2514. {
  2515. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  2516. return 0;
  2517. return 1;
  2518. }
  2519. static int ASN1CALL ASN1Enc_InfoRequestNakReason(ASN1encoding_t enc, InfoRequestNakReason *val)
  2520. {
  2521. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  2522. return 0;
  2523. return 1;
  2524. }
  2525. static int ASN1CALL ASN1Dec_InfoRequestNakReason(ASN1decoding_t dec, InfoRequestNakReason *val)
  2526. {
  2527. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  2528. return 0;
  2529. return 1;
  2530. }
  2531. static int ASN1CALL ASN1Enc_UnknownMessageResponse(ASN1encoding_t enc, UnknownMessageResponse *val)
  2532. {
  2533. ASN1uint32_t y;
  2534. ASN1encoding_t ee;
  2535. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  2536. if (!ASN1PEREncBitVal(enc, 1, y))
  2537. return 0;
  2538. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  2539. return 0;
  2540. if (y) {
  2541. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  2542. return 0;
  2543. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  2544. return 0;
  2545. if ((val)->o[0] & 0x80) {
  2546. if (!ASN1Enc_UnknownMessageResponse_tokens(ee, &(val)->tokens))
  2547. return 0;
  2548. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2549. return 0;
  2550. }
  2551. if ((val)->o[0] & 0x40) {
  2552. if (!ASN1Enc_UnknownMessageResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  2553. return 0;
  2554. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2555. return 0;
  2556. }
  2557. if ((val)->o[0] & 0x20) {
  2558. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  2559. return 0;
  2560. if (!ASN1PEREncFlushFragmentedToParent(ee))
  2561. return 0;
  2562. }
  2563. ASN1_CloseEncoder2(ee);
  2564. }
  2565. return 1;
  2566. }
  2567. static int ASN1CALL ASN1Dec_UnknownMessageResponse(ASN1decoding_t dec, UnknownMessageResponse *val)
  2568. {
  2569. ASN1uint32_t y;
  2570. ASN1decoding_t dd;
  2571. ASN1octet_t *db;
  2572. ASN1uint32_t ds;
  2573. ASN1uint32_t i;
  2574. ASN1uint32_t e;
  2575. if (!ASN1PERDecExtensionBit(dec, &y))
  2576. return 0;
  2577. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  2578. return 0;
  2579. (val)->requestSeqNum += 1;
  2580. if (!y) {
  2581. ZeroMemory((val)->o + 0, 1);
  2582. } else {
  2583. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  2584. return 0;
  2585. if ((val)->o[0] & 0x80) {
  2586. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2587. return 0;
  2588. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2589. return 0;
  2590. if (!ASN1Dec_UnknownMessageResponse_tokens(dd, &(val)->tokens))
  2591. return 0;
  2592. ASN1_CloseDecoder(dd);
  2593. ASN1Free(db);
  2594. }
  2595. if ((val)->o[0] & 0x40) {
  2596. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2597. return 0;
  2598. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2599. return 0;
  2600. if (!ASN1Dec_UnknownMessageResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  2601. return 0;
  2602. ASN1_CloseDecoder(dd);
  2603. ASN1Free(db);
  2604. }
  2605. if ((val)->o[0] & 0x20) {
  2606. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  2607. return 0;
  2608. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  2609. return 0;
  2610. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  2611. return 0;
  2612. ASN1_CloseDecoder(dd);
  2613. ASN1Free(db);
  2614. }
  2615. for (i = 0; i < e; i++) {
  2616. if (!ASN1PERDecSkipFragmented(dec, 8))
  2617. return 0;
  2618. }
  2619. }
  2620. return 1;
  2621. }
  2622. static void ASN1CALL ASN1Free_UnknownMessageResponse(UnknownMessageResponse *val)
  2623. {
  2624. if (val) {
  2625. if ((val)->o[0] & 0x80) {
  2626. ASN1Free_UnknownMessageResponse_tokens(&(val)->tokens);
  2627. }
  2628. if ((val)->o[0] & 0x40) {
  2629. ASN1Free_UnknownMessageResponse_cryptoTokens(&(val)->cryptoTokens);
  2630. }
  2631. if ((val)->o[0] & 0x20) {
  2632. ASN1Free_ICV(&(val)->integrityCheckValue);
  2633. }
  2634. }
  2635. }
  2636. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2637. {
  2638. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn);
  2639. }
  2640. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2641. {
  2642. if (!ASN1Enc_ClearToken(enc, &val->value))
  2643. return 0;
  2644. return 1;
  2645. }
  2646. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2647. {
  2648. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn, sizeof(**val));
  2649. }
  2650. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2651. {
  2652. if (!ASN1Dec_ClearToken(dec, &val->value))
  2653. return 0;
  2654. return 1;
  2655. }
  2656. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(PInfoRequestResponse_perCallInfo_Seq_tokens *val)
  2657. {
  2658. if (val) {
  2659. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn);
  2660. }
  2661. }
  2662. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_tokens val)
  2663. {
  2664. if (val) {
  2665. ASN1Free_ClearToken(&val->value);
  2666. }
  2667. }
  2668. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens *val)
  2669. {
  2670. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_tokens_ElmFn);
  2671. }
  2672. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens val)
  2673. {
  2674. if (!ASN1Enc_ClearToken(enc, &val->value))
  2675. return 0;
  2676. return 1;
  2677. }
  2678. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens *val)
  2679. {
  2680. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_tokens_ElmFn, sizeof(**val));
  2681. }
  2682. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens val)
  2683. {
  2684. if (!ASN1Dec_ClearToken(dec, &val->value))
  2685. return 0;
  2686. return 1;
  2687. }
  2688. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens(PResourcesAvailableConfirm_tokens *val)
  2689. {
  2690. if (val) {
  2691. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_tokens_ElmFn);
  2692. }
  2693. }
  2694. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens_ElmFn(PResourcesAvailableConfirm_tokens val)
  2695. {
  2696. if (val) {
  2697. ASN1Free_ClearToken(&val->value);
  2698. }
  2699. }
  2700. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens *val)
  2701. {
  2702. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_tokens_ElmFn);
  2703. }
  2704. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens val)
  2705. {
  2706. if (!ASN1Enc_ClearToken(enc, &val->value))
  2707. return 0;
  2708. return 1;
  2709. }
  2710. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens *val)
  2711. {
  2712. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_tokens_ElmFn, sizeof(**val));
  2713. }
  2714. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens val)
  2715. {
  2716. if (!ASN1Dec_ClearToken(dec, &val->value))
  2717. return 0;
  2718. return 1;
  2719. }
  2720. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens(PResourcesAvailableIndicate_tokens *val)
  2721. {
  2722. if (val) {
  2723. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_tokens_ElmFn);
  2724. }
  2725. }
  2726. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens_ElmFn(PResourcesAvailableIndicate_tokens val)
  2727. {
  2728. if (val) {
  2729. ASN1Free_ClearToken(&val->value);
  2730. }
  2731. }
  2732. static int ASN1CALL ASN1Enc_RequestInProgress_tokens(ASN1encoding_t enc, PRequestInProgress_tokens *val)
  2733. {
  2734. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_tokens_ElmFn);
  2735. }
  2736. static int ASN1CALL ASN1Enc_RequestInProgress_tokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_tokens val)
  2737. {
  2738. if (!ASN1Enc_ClearToken(enc, &val->value))
  2739. return 0;
  2740. return 1;
  2741. }
  2742. static int ASN1CALL ASN1Dec_RequestInProgress_tokens(ASN1decoding_t dec, PRequestInProgress_tokens *val)
  2743. {
  2744. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_tokens_ElmFn, sizeof(**val));
  2745. }
  2746. static int ASN1CALL ASN1Dec_RequestInProgress_tokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_tokens val)
  2747. {
  2748. if (!ASN1Dec_ClearToken(dec, &val->value))
  2749. return 0;
  2750. return 1;
  2751. }
  2752. static void ASN1CALL ASN1Free_RequestInProgress_tokens(PRequestInProgress_tokens *val)
  2753. {
  2754. if (val) {
  2755. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_tokens_ElmFn);
  2756. }
  2757. }
  2758. static void ASN1CALL ASN1Free_RequestInProgress_tokens_ElmFn(PRequestInProgress_tokens val)
  2759. {
  2760. if (val) {
  2761. ASN1Free_ClearToken(&val->value);
  2762. }
  2763. }
  2764. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens(ASN1encoding_t enc, PUnknownMessageResponse_tokens *val)
  2765. {
  2766. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_tokens_ElmFn);
  2767. }
  2768. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_tokens val)
  2769. {
  2770. if (!ASN1Enc_ClearToken(enc, &val->value))
  2771. return 0;
  2772. return 1;
  2773. }
  2774. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens(ASN1decoding_t dec, PUnknownMessageResponse_tokens *val)
  2775. {
  2776. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_tokens_ElmFn, sizeof(**val));
  2777. }
  2778. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_tokens val)
  2779. {
  2780. if (!ASN1Dec_ClearToken(dec, &val->value))
  2781. return 0;
  2782. return 1;
  2783. }
  2784. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens(PUnknownMessageResponse_tokens *val)
  2785. {
  2786. if (val) {
  2787. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_tokens_ElmFn);
  2788. }
  2789. }
  2790. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens_ElmFn(PUnknownMessageResponse_tokens val)
  2791. {
  2792. if (val) {
  2793. ASN1Free_ClearToken(&val->value);
  2794. }
  2795. }
  2796. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens(ASN1encoding_t enc, PH225NonStandardMessage_tokens *val)
  2797. {
  2798. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_tokens_ElmFn);
  2799. }
  2800. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_tokens val)
  2801. {
  2802. if (!ASN1Enc_ClearToken(enc, &val->value))
  2803. return 0;
  2804. return 1;
  2805. }
  2806. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens(ASN1decoding_t dec, PH225NonStandardMessage_tokens *val)
  2807. {
  2808. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_tokens_ElmFn, sizeof(**val));
  2809. }
  2810. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_tokens val)
  2811. {
  2812. if (!ASN1Dec_ClearToken(dec, &val->value))
  2813. return 0;
  2814. return 1;
  2815. }
  2816. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens(PH225NonStandardMessage_tokens *val)
  2817. {
  2818. if (val) {
  2819. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_tokens_ElmFn);
  2820. }
  2821. }
  2822. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens_ElmFn(PH225NonStandardMessage_tokens val)
  2823. {
  2824. if (val) {
  2825. ASN1Free_ClearToken(&val->value);
  2826. }
  2827. }
  2828. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens(ASN1encoding_t enc, PInfoRequestNak_tokens *val)
  2829. {
  2830. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_tokens_ElmFn);
  2831. }
  2832. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_tokens val)
  2833. {
  2834. if (!ASN1Enc_ClearToken(enc, &val->value))
  2835. return 0;
  2836. return 1;
  2837. }
  2838. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens(ASN1decoding_t dec, PInfoRequestNak_tokens *val)
  2839. {
  2840. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_tokens_ElmFn, sizeof(**val));
  2841. }
  2842. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_tokens val)
  2843. {
  2844. if (!ASN1Dec_ClearToken(dec, &val->value))
  2845. return 0;
  2846. return 1;
  2847. }
  2848. static void ASN1CALL ASN1Free_InfoRequestNak_tokens(PInfoRequestNak_tokens *val)
  2849. {
  2850. if (val) {
  2851. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_tokens_ElmFn);
  2852. }
  2853. }
  2854. static void ASN1CALL ASN1Free_InfoRequestNak_tokens_ElmFn(PInfoRequestNak_tokens val)
  2855. {
  2856. if (val) {
  2857. ASN1Free_ClearToken(&val->value);
  2858. }
  2859. }
  2860. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens(ASN1encoding_t enc, PInfoRequestAck_tokens *val)
  2861. {
  2862. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_tokens_ElmFn);
  2863. }
  2864. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_tokens val)
  2865. {
  2866. if (!ASN1Enc_ClearToken(enc, &val->value))
  2867. return 0;
  2868. return 1;
  2869. }
  2870. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens(ASN1decoding_t dec, PInfoRequestAck_tokens *val)
  2871. {
  2872. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_tokens_ElmFn, sizeof(**val));
  2873. }
  2874. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_tokens val)
  2875. {
  2876. if (!ASN1Dec_ClearToken(dec, &val->value))
  2877. return 0;
  2878. return 1;
  2879. }
  2880. static void ASN1CALL ASN1Free_InfoRequestAck_tokens(PInfoRequestAck_tokens *val)
  2881. {
  2882. if (val) {
  2883. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_tokens_ElmFn);
  2884. }
  2885. }
  2886. static void ASN1CALL ASN1Free_InfoRequestAck_tokens_ElmFn(PInfoRequestAck_tokens val)
  2887. {
  2888. if (val) {
  2889. ASN1Free_ClearToken(&val->value);
  2890. }
  2891. }
  2892. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens(ASN1encoding_t enc, PInfoRequestResponse_tokens *val)
  2893. {
  2894. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_tokens_ElmFn);
  2895. }
  2896. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_tokens val)
  2897. {
  2898. if (!ASN1Enc_ClearToken(enc, &val->value))
  2899. return 0;
  2900. return 1;
  2901. }
  2902. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens(ASN1decoding_t dec, PInfoRequestResponse_tokens *val)
  2903. {
  2904. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_tokens_ElmFn, sizeof(**val));
  2905. }
  2906. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_tokens val)
  2907. {
  2908. if (!ASN1Dec_ClearToken(dec, &val->value))
  2909. return 0;
  2910. return 1;
  2911. }
  2912. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens(PInfoRequestResponse_tokens *val)
  2913. {
  2914. if (val) {
  2915. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_tokens_ElmFn);
  2916. }
  2917. }
  2918. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens_ElmFn(PInfoRequestResponse_tokens val)
  2919. {
  2920. if (val) {
  2921. ASN1Free_ClearToken(&val->value);
  2922. }
  2923. }
  2924. static int ASN1CALL ASN1Enc_InfoRequest_tokens(ASN1encoding_t enc, PInfoRequest_tokens *val)
  2925. {
  2926. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_tokens_ElmFn);
  2927. }
  2928. static int ASN1CALL ASN1Enc_InfoRequest_tokens_ElmFn(ASN1encoding_t enc, PInfoRequest_tokens val)
  2929. {
  2930. if (!ASN1Enc_ClearToken(enc, &val->value))
  2931. return 0;
  2932. return 1;
  2933. }
  2934. static int ASN1CALL ASN1Dec_InfoRequest_tokens(ASN1decoding_t dec, PInfoRequest_tokens *val)
  2935. {
  2936. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_tokens_ElmFn, sizeof(**val));
  2937. }
  2938. static int ASN1CALL ASN1Dec_InfoRequest_tokens_ElmFn(ASN1decoding_t dec, PInfoRequest_tokens val)
  2939. {
  2940. if (!ASN1Dec_ClearToken(dec, &val->value))
  2941. return 0;
  2942. return 1;
  2943. }
  2944. static void ASN1CALL ASN1Free_InfoRequest_tokens(PInfoRequest_tokens *val)
  2945. {
  2946. if (val) {
  2947. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_tokens_ElmFn);
  2948. }
  2949. }
  2950. static void ASN1CALL ASN1Free_InfoRequest_tokens_ElmFn(PInfoRequest_tokens val)
  2951. {
  2952. if (val) {
  2953. ASN1Free_ClearToken(&val->value);
  2954. }
  2955. }
  2956. static int ASN1CALL ASN1Enc_DisengageReject_tokens(ASN1encoding_t enc, PDisengageReject_tokens *val)
  2957. {
  2958. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_tokens_ElmFn);
  2959. }
  2960. static int ASN1CALL ASN1Enc_DisengageReject_tokens_ElmFn(ASN1encoding_t enc, PDisengageReject_tokens val)
  2961. {
  2962. if (!ASN1Enc_ClearToken(enc, &val->value))
  2963. return 0;
  2964. return 1;
  2965. }
  2966. static int ASN1CALL ASN1Dec_DisengageReject_tokens(ASN1decoding_t dec, PDisengageReject_tokens *val)
  2967. {
  2968. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_tokens_ElmFn, sizeof(**val));
  2969. }
  2970. static int ASN1CALL ASN1Dec_DisengageReject_tokens_ElmFn(ASN1decoding_t dec, PDisengageReject_tokens val)
  2971. {
  2972. if (!ASN1Dec_ClearToken(dec, &val->value))
  2973. return 0;
  2974. return 1;
  2975. }
  2976. static void ASN1CALL ASN1Free_DisengageReject_tokens(PDisengageReject_tokens *val)
  2977. {
  2978. if (val) {
  2979. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_tokens_ElmFn);
  2980. }
  2981. }
  2982. static void ASN1CALL ASN1Free_DisengageReject_tokens_ElmFn(PDisengageReject_tokens val)
  2983. {
  2984. if (val) {
  2985. ASN1Free_ClearToken(&val->value);
  2986. }
  2987. }
  2988. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens(ASN1encoding_t enc, PDisengageConfirm_tokens *val)
  2989. {
  2990. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_tokens_ElmFn);
  2991. }
  2992. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_tokens val)
  2993. {
  2994. if (!ASN1Enc_ClearToken(enc, &val->value))
  2995. return 0;
  2996. return 1;
  2997. }
  2998. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens(ASN1decoding_t dec, PDisengageConfirm_tokens *val)
  2999. {
  3000. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_tokens_ElmFn, sizeof(**val));
  3001. }
  3002. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_tokens val)
  3003. {
  3004. if (!ASN1Dec_ClearToken(dec, &val->value))
  3005. return 0;
  3006. return 1;
  3007. }
  3008. static void ASN1CALL ASN1Free_DisengageConfirm_tokens(PDisengageConfirm_tokens *val)
  3009. {
  3010. if (val) {
  3011. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_tokens_ElmFn);
  3012. }
  3013. }
  3014. static void ASN1CALL ASN1Free_DisengageConfirm_tokens_ElmFn(PDisengageConfirm_tokens val)
  3015. {
  3016. if (val) {
  3017. ASN1Free_ClearToken(&val->value);
  3018. }
  3019. }
  3020. static int ASN1CALL ASN1Enc_DisengageRequest_tokens(ASN1encoding_t enc, PDisengageRequest_tokens *val)
  3021. {
  3022. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_tokens_ElmFn);
  3023. }
  3024. static int ASN1CALL ASN1Enc_DisengageRequest_tokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_tokens val)
  3025. {
  3026. if (!ASN1Enc_ClearToken(enc, &val->value))
  3027. return 0;
  3028. return 1;
  3029. }
  3030. static int ASN1CALL ASN1Dec_DisengageRequest_tokens(ASN1decoding_t dec, PDisengageRequest_tokens *val)
  3031. {
  3032. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_tokens_ElmFn, sizeof(**val));
  3033. }
  3034. static int ASN1CALL ASN1Dec_DisengageRequest_tokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_tokens val)
  3035. {
  3036. if (!ASN1Dec_ClearToken(dec, &val->value))
  3037. return 0;
  3038. return 1;
  3039. }
  3040. static void ASN1CALL ASN1Free_DisengageRequest_tokens(PDisengageRequest_tokens *val)
  3041. {
  3042. if (val) {
  3043. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_tokens_ElmFn);
  3044. }
  3045. }
  3046. static void ASN1CALL ASN1Free_DisengageRequest_tokens_ElmFn(PDisengageRequest_tokens val)
  3047. {
  3048. if (val) {
  3049. ASN1Free_ClearToken(&val->value);
  3050. }
  3051. }
  3052. static int ASN1CALL ASN1Enc_LocationReject_tokens(ASN1encoding_t enc, PLocationReject_tokens *val)
  3053. {
  3054. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_tokens_ElmFn);
  3055. }
  3056. static int ASN1CALL ASN1Enc_LocationReject_tokens_ElmFn(ASN1encoding_t enc, PLocationReject_tokens val)
  3057. {
  3058. if (!ASN1Enc_ClearToken(enc, &val->value))
  3059. return 0;
  3060. return 1;
  3061. }
  3062. static int ASN1CALL ASN1Dec_LocationReject_tokens(ASN1decoding_t dec, PLocationReject_tokens *val)
  3063. {
  3064. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_tokens_ElmFn, sizeof(**val));
  3065. }
  3066. static int ASN1CALL ASN1Dec_LocationReject_tokens_ElmFn(ASN1decoding_t dec, PLocationReject_tokens val)
  3067. {
  3068. if (!ASN1Dec_ClearToken(dec, &val->value))
  3069. return 0;
  3070. return 1;
  3071. }
  3072. static void ASN1CALL ASN1Free_LocationReject_tokens(PLocationReject_tokens *val)
  3073. {
  3074. if (val) {
  3075. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_tokens_ElmFn);
  3076. }
  3077. }
  3078. static void ASN1CALL ASN1Free_LocationReject_tokens_ElmFn(PLocationReject_tokens val)
  3079. {
  3080. if (val) {
  3081. ASN1Free_ClearToken(&val->value);
  3082. }
  3083. }
  3084. static int ASN1CALL ASN1Enc_LocationConfirm_tokens(ASN1encoding_t enc, PLocationConfirm_tokens *val)
  3085. {
  3086. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_tokens_ElmFn);
  3087. }
  3088. static int ASN1CALL ASN1Enc_LocationConfirm_tokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_tokens val)
  3089. {
  3090. if (!ASN1Enc_ClearToken(enc, &val->value))
  3091. return 0;
  3092. return 1;
  3093. }
  3094. static int ASN1CALL ASN1Dec_LocationConfirm_tokens(ASN1decoding_t dec, PLocationConfirm_tokens *val)
  3095. {
  3096. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_tokens_ElmFn, sizeof(**val));
  3097. }
  3098. static int ASN1CALL ASN1Dec_LocationConfirm_tokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_tokens val)
  3099. {
  3100. if (!ASN1Dec_ClearToken(dec, &val->value))
  3101. return 0;
  3102. return 1;
  3103. }
  3104. static void ASN1CALL ASN1Free_LocationConfirm_tokens(PLocationConfirm_tokens *val)
  3105. {
  3106. if (val) {
  3107. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_tokens_ElmFn);
  3108. }
  3109. }
  3110. static void ASN1CALL ASN1Free_LocationConfirm_tokens_ElmFn(PLocationConfirm_tokens val)
  3111. {
  3112. if (val) {
  3113. ASN1Free_ClearToken(&val->value);
  3114. }
  3115. }
  3116. static int ASN1CALL ASN1Enc_LocationRequest_tokens(ASN1encoding_t enc, PLocationRequest_tokens *val)
  3117. {
  3118. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_tokens_ElmFn);
  3119. }
  3120. static int ASN1CALL ASN1Enc_LocationRequest_tokens_ElmFn(ASN1encoding_t enc, PLocationRequest_tokens val)
  3121. {
  3122. if (!ASN1Enc_ClearToken(enc, &val->value))
  3123. return 0;
  3124. return 1;
  3125. }
  3126. static int ASN1CALL ASN1Dec_LocationRequest_tokens(ASN1decoding_t dec, PLocationRequest_tokens *val)
  3127. {
  3128. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_tokens_ElmFn, sizeof(**val));
  3129. }
  3130. static int ASN1CALL ASN1Dec_LocationRequest_tokens_ElmFn(ASN1decoding_t dec, PLocationRequest_tokens val)
  3131. {
  3132. if (!ASN1Dec_ClearToken(dec, &val->value))
  3133. return 0;
  3134. return 1;
  3135. }
  3136. static void ASN1CALL ASN1Free_LocationRequest_tokens(PLocationRequest_tokens *val)
  3137. {
  3138. if (val) {
  3139. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_tokens_ElmFn);
  3140. }
  3141. }
  3142. static void ASN1CALL ASN1Free_LocationRequest_tokens_ElmFn(PLocationRequest_tokens val)
  3143. {
  3144. if (val) {
  3145. ASN1Free_ClearToken(&val->value);
  3146. }
  3147. }
  3148. static int ASN1CALL ASN1Enc_BandwidthReject_tokens(ASN1encoding_t enc, PBandwidthReject_tokens *val)
  3149. {
  3150. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_tokens_ElmFn);
  3151. }
  3152. static int ASN1CALL ASN1Enc_BandwidthReject_tokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_tokens val)
  3153. {
  3154. if (!ASN1Enc_ClearToken(enc, &val->value))
  3155. return 0;
  3156. return 1;
  3157. }
  3158. static int ASN1CALL ASN1Dec_BandwidthReject_tokens(ASN1decoding_t dec, PBandwidthReject_tokens *val)
  3159. {
  3160. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_tokens_ElmFn, sizeof(**val));
  3161. }
  3162. static int ASN1CALL ASN1Dec_BandwidthReject_tokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_tokens val)
  3163. {
  3164. if (!ASN1Dec_ClearToken(dec, &val->value))
  3165. return 0;
  3166. return 1;
  3167. }
  3168. static void ASN1CALL ASN1Free_BandwidthReject_tokens(PBandwidthReject_tokens *val)
  3169. {
  3170. if (val) {
  3171. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_tokens_ElmFn);
  3172. }
  3173. }
  3174. static void ASN1CALL ASN1Free_BandwidthReject_tokens_ElmFn(PBandwidthReject_tokens val)
  3175. {
  3176. if (val) {
  3177. ASN1Free_ClearToken(&val->value);
  3178. }
  3179. }
  3180. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens(ASN1encoding_t enc, PBandwidthConfirm_tokens *val)
  3181. {
  3182. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_tokens_ElmFn);
  3183. }
  3184. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_tokens val)
  3185. {
  3186. if (!ASN1Enc_ClearToken(enc, &val->value))
  3187. return 0;
  3188. return 1;
  3189. }
  3190. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens(ASN1decoding_t dec, PBandwidthConfirm_tokens *val)
  3191. {
  3192. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_tokens_ElmFn, sizeof(**val));
  3193. }
  3194. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_tokens val)
  3195. {
  3196. if (!ASN1Dec_ClearToken(dec, &val->value))
  3197. return 0;
  3198. return 1;
  3199. }
  3200. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens(PBandwidthConfirm_tokens *val)
  3201. {
  3202. if (val) {
  3203. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_tokens_ElmFn);
  3204. }
  3205. }
  3206. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens_ElmFn(PBandwidthConfirm_tokens val)
  3207. {
  3208. if (val) {
  3209. ASN1Free_ClearToken(&val->value);
  3210. }
  3211. }
  3212. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens(ASN1encoding_t enc, PBandwidthRequest_tokens *val)
  3213. {
  3214. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_tokens_ElmFn);
  3215. }
  3216. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_tokens val)
  3217. {
  3218. if (!ASN1Enc_ClearToken(enc, &val->value))
  3219. return 0;
  3220. return 1;
  3221. }
  3222. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens(ASN1decoding_t dec, PBandwidthRequest_tokens *val)
  3223. {
  3224. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_tokens_ElmFn, sizeof(**val));
  3225. }
  3226. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_tokens val)
  3227. {
  3228. if (!ASN1Dec_ClearToken(dec, &val->value))
  3229. return 0;
  3230. return 1;
  3231. }
  3232. static void ASN1CALL ASN1Free_BandwidthRequest_tokens(PBandwidthRequest_tokens *val)
  3233. {
  3234. if (val) {
  3235. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_tokens_ElmFn);
  3236. }
  3237. }
  3238. static void ASN1CALL ASN1Free_BandwidthRequest_tokens_ElmFn(PBandwidthRequest_tokens val)
  3239. {
  3240. if (val) {
  3241. ASN1Free_ClearToken(&val->value);
  3242. }
  3243. }
  3244. static int ASN1CALL ASN1Enc_AdmissionReject_tokens(ASN1encoding_t enc, PAdmissionReject_tokens *val)
  3245. {
  3246. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_tokens_ElmFn);
  3247. }
  3248. static int ASN1CALL ASN1Enc_AdmissionReject_tokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_tokens val)
  3249. {
  3250. if (!ASN1Enc_ClearToken(enc, &val->value))
  3251. return 0;
  3252. return 1;
  3253. }
  3254. static int ASN1CALL ASN1Dec_AdmissionReject_tokens(ASN1decoding_t dec, PAdmissionReject_tokens *val)
  3255. {
  3256. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_tokens_ElmFn, sizeof(**val));
  3257. }
  3258. static int ASN1CALL ASN1Dec_AdmissionReject_tokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_tokens val)
  3259. {
  3260. if (!ASN1Dec_ClearToken(dec, &val->value))
  3261. return 0;
  3262. return 1;
  3263. }
  3264. static void ASN1CALL ASN1Free_AdmissionReject_tokens(PAdmissionReject_tokens *val)
  3265. {
  3266. if (val) {
  3267. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_tokens_ElmFn);
  3268. }
  3269. }
  3270. static void ASN1CALL ASN1Free_AdmissionReject_tokens_ElmFn(PAdmissionReject_tokens val)
  3271. {
  3272. if (val) {
  3273. ASN1Free_ClearToken(&val->value);
  3274. }
  3275. }
  3276. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens(ASN1encoding_t enc, PAdmissionConfirm_tokens *val)
  3277. {
  3278. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_tokens_ElmFn);
  3279. }
  3280. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_tokens val)
  3281. {
  3282. if (!ASN1Enc_ClearToken(enc, &val->value))
  3283. return 0;
  3284. return 1;
  3285. }
  3286. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens(ASN1decoding_t dec, PAdmissionConfirm_tokens *val)
  3287. {
  3288. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_tokens_ElmFn, sizeof(**val));
  3289. }
  3290. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_tokens val)
  3291. {
  3292. if (!ASN1Dec_ClearToken(dec, &val->value))
  3293. return 0;
  3294. return 1;
  3295. }
  3296. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens(PAdmissionConfirm_tokens *val)
  3297. {
  3298. if (val) {
  3299. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_tokens_ElmFn);
  3300. }
  3301. }
  3302. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens_ElmFn(PAdmissionConfirm_tokens val)
  3303. {
  3304. if (val) {
  3305. ASN1Free_ClearToken(&val->value);
  3306. }
  3307. }
  3308. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens(ASN1encoding_t enc, PAdmissionRequest_tokens *val)
  3309. {
  3310. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_tokens_ElmFn);
  3311. }
  3312. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_tokens val)
  3313. {
  3314. if (!ASN1Enc_ClearToken(enc, &val->value))
  3315. return 0;
  3316. return 1;
  3317. }
  3318. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens(ASN1decoding_t dec, PAdmissionRequest_tokens *val)
  3319. {
  3320. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_tokens_ElmFn, sizeof(**val));
  3321. }
  3322. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_tokens val)
  3323. {
  3324. if (!ASN1Dec_ClearToken(dec, &val->value))
  3325. return 0;
  3326. return 1;
  3327. }
  3328. static void ASN1CALL ASN1Free_AdmissionRequest_tokens(PAdmissionRequest_tokens *val)
  3329. {
  3330. if (val) {
  3331. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_tokens_ElmFn);
  3332. }
  3333. }
  3334. static void ASN1CALL ASN1Free_AdmissionRequest_tokens_ElmFn(PAdmissionRequest_tokens val)
  3335. {
  3336. if (val) {
  3337. ASN1Free_ClearToken(&val->value);
  3338. }
  3339. }
  3340. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens(ASN1encoding_t enc, PUnregistrationReject_tokens *val)
  3341. {
  3342. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_tokens_ElmFn);
  3343. }
  3344. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_tokens val)
  3345. {
  3346. if (!ASN1Enc_ClearToken(enc, &val->value))
  3347. return 0;
  3348. return 1;
  3349. }
  3350. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens(ASN1decoding_t dec, PUnregistrationReject_tokens *val)
  3351. {
  3352. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_tokens_ElmFn, sizeof(**val));
  3353. }
  3354. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_tokens val)
  3355. {
  3356. if (!ASN1Dec_ClearToken(dec, &val->value))
  3357. return 0;
  3358. return 1;
  3359. }
  3360. static void ASN1CALL ASN1Free_UnregistrationReject_tokens(PUnregistrationReject_tokens *val)
  3361. {
  3362. if (val) {
  3363. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_tokens_ElmFn);
  3364. }
  3365. }
  3366. static void ASN1CALL ASN1Free_UnregistrationReject_tokens_ElmFn(PUnregistrationReject_tokens val)
  3367. {
  3368. if (val) {
  3369. ASN1Free_ClearToken(&val->value);
  3370. }
  3371. }
  3372. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens(ASN1encoding_t enc, PUnregistrationConfirm_tokens *val)
  3373. {
  3374. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_tokens_ElmFn);
  3375. }
  3376. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_tokens val)
  3377. {
  3378. if (!ASN1Enc_ClearToken(enc, &val->value))
  3379. return 0;
  3380. return 1;
  3381. }
  3382. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens(ASN1decoding_t dec, PUnregistrationConfirm_tokens *val)
  3383. {
  3384. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_tokens_ElmFn, sizeof(**val));
  3385. }
  3386. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_tokens val)
  3387. {
  3388. if (!ASN1Dec_ClearToken(dec, &val->value))
  3389. return 0;
  3390. return 1;
  3391. }
  3392. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens(PUnregistrationConfirm_tokens *val)
  3393. {
  3394. if (val) {
  3395. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_tokens_ElmFn);
  3396. }
  3397. }
  3398. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens_ElmFn(PUnregistrationConfirm_tokens val)
  3399. {
  3400. if (val) {
  3401. ASN1Free_ClearToken(&val->value);
  3402. }
  3403. }
  3404. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens(ASN1encoding_t enc, PUnregistrationRequest_tokens *val)
  3405. {
  3406. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_tokens_ElmFn);
  3407. }
  3408. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_tokens val)
  3409. {
  3410. if (!ASN1Enc_ClearToken(enc, &val->value))
  3411. return 0;
  3412. return 1;
  3413. }
  3414. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens(ASN1decoding_t dec, PUnregistrationRequest_tokens *val)
  3415. {
  3416. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_tokens_ElmFn, sizeof(**val));
  3417. }
  3418. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_tokens val)
  3419. {
  3420. if (!ASN1Dec_ClearToken(dec, &val->value))
  3421. return 0;
  3422. return 1;
  3423. }
  3424. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens(PUnregistrationRequest_tokens *val)
  3425. {
  3426. if (val) {
  3427. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_tokens_ElmFn);
  3428. }
  3429. }
  3430. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens_ElmFn(PUnregistrationRequest_tokens val)
  3431. {
  3432. if (val) {
  3433. ASN1Free_ClearToken(&val->value);
  3434. }
  3435. }
  3436. static int ASN1CALL ASN1Enc_RegistrationReject_tokens(ASN1encoding_t enc, PRegistrationReject_tokens *val)
  3437. {
  3438. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_tokens_ElmFn);
  3439. }
  3440. static int ASN1CALL ASN1Enc_RegistrationReject_tokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_tokens val)
  3441. {
  3442. if (!ASN1Enc_ClearToken(enc, &val->value))
  3443. return 0;
  3444. return 1;
  3445. }
  3446. static int ASN1CALL ASN1Dec_RegistrationReject_tokens(ASN1decoding_t dec, PRegistrationReject_tokens *val)
  3447. {
  3448. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_tokens_ElmFn, sizeof(**val));
  3449. }
  3450. static int ASN1CALL ASN1Dec_RegistrationReject_tokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_tokens val)
  3451. {
  3452. if (!ASN1Dec_ClearToken(dec, &val->value))
  3453. return 0;
  3454. return 1;
  3455. }
  3456. static void ASN1CALL ASN1Free_RegistrationReject_tokens(PRegistrationReject_tokens *val)
  3457. {
  3458. if (val) {
  3459. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_tokens_ElmFn);
  3460. }
  3461. }
  3462. static void ASN1CALL ASN1Free_RegistrationReject_tokens_ElmFn(PRegistrationReject_tokens val)
  3463. {
  3464. if (val) {
  3465. ASN1Free_ClearToken(&val->value);
  3466. }
  3467. }
  3468. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens(ASN1encoding_t enc, PRegistrationConfirm_tokens *val)
  3469. {
  3470. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_tokens_ElmFn);
  3471. }
  3472. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_tokens val)
  3473. {
  3474. if (!ASN1Enc_ClearToken(enc, &val->value))
  3475. return 0;
  3476. return 1;
  3477. }
  3478. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens(ASN1decoding_t dec, PRegistrationConfirm_tokens *val)
  3479. {
  3480. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_tokens_ElmFn, sizeof(**val));
  3481. }
  3482. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_tokens val)
  3483. {
  3484. if (!ASN1Dec_ClearToken(dec, &val->value))
  3485. return 0;
  3486. return 1;
  3487. }
  3488. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens(PRegistrationConfirm_tokens *val)
  3489. {
  3490. if (val) {
  3491. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_tokens_ElmFn);
  3492. }
  3493. }
  3494. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens_ElmFn(PRegistrationConfirm_tokens val)
  3495. {
  3496. if (val) {
  3497. ASN1Free_ClearToken(&val->value);
  3498. }
  3499. }
  3500. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens(ASN1encoding_t enc, PRegistrationRequest_tokens *val)
  3501. {
  3502. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_tokens_ElmFn);
  3503. }
  3504. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_tokens val)
  3505. {
  3506. if (!ASN1Enc_ClearToken(enc, &val->value))
  3507. return 0;
  3508. return 1;
  3509. }
  3510. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens(ASN1decoding_t dec, PRegistrationRequest_tokens *val)
  3511. {
  3512. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_tokens_ElmFn, sizeof(**val));
  3513. }
  3514. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_tokens val)
  3515. {
  3516. if (!ASN1Dec_ClearToken(dec, &val->value))
  3517. return 0;
  3518. return 1;
  3519. }
  3520. static void ASN1CALL ASN1Free_RegistrationRequest_tokens(PRegistrationRequest_tokens *val)
  3521. {
  3522. if (val) {
  3523. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_tokens_ElmFn);
  3524. }
  3525. }
  3526. static void ASN1CALL ASN1Free_RegistrationRequest_tokens_ElmFn(PRegistrationRequest_tokens val)
  3527. {
  3528. if (val) {
  3529. ASN1Free_ClearToken(&val->value);
  3530. }
  3531. }
  3532. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens(ASN1encoding_t enc, PGatekeeperReject_tokens *val)
  3533. {
  3534. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_tokens_ElmFn);
  3535. }
  3536. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_tokens val)
  3537. {
  3538. if (!ASN1Enc_ClearToken(enc, &val->value))
  3539. return 0;
  3540. return 1;
  3541. }
  3542. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens(ASN1decoding_t dec, PGatekeeperReject_tokens *val)
  3543. {
  3544. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_tokens_ElmFn, sizeof(**val));
  3545. }
  3546. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_tokens val)
  3547. {
  3548. if (!ASN1Dec_ClearToken(dec, &val->value))
  3549. return 0;
  3550. return 1;
  3551. }
  3552. static void ASN1CALL ASN1Free_GatekeeperReject_tokens(PGatekeeperReject_tokens *val)
  3553. {
  3554. if (val) {
  3555. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_tokens_ElmFn);
  3556. }
  3557. }
  3558. static void ASN1CALL ASN1Free_GatekeeperReject_tokens_ElmFn(PGatekeeperReject_tokens val)
  3559. {
  3560. if (val) {
  3561. ASN1Free_ClearToken(&val->value);
  3562. }
  3563. }
  3564. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens(ASN1encoding_t enc, PGatekeeperConfirm_tokens *val)
  3565. {
  3566. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_tokens_ElmFn);
  3567. }
  3568. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_tokens val)
  3569. {
  3570. if (!ASN1Enc_ClearToken(enc, &val->value))
  3571. return 0;
  3572. return 1;
  3573. }
  3574. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens(ASN1decoding_t dec, PGatekeeperConfirm_tokens *val)
  3575. {
  3576. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_tokens_ElmFn, sizeof(**val));
  3577. }
  3578. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_tokens val)
  3579. {
  3580. if (!ASN1Dec_ClearToken(dec, &val->value))
  3581. return 0;
  3582. return 1;
  3583. }
  3584. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens(PGatekeeperConfirm_tokens *val)
  3585. {
  3586. if (val) {
  3587. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_tokens_ElmFn);
  3588. }
  3589. }
  3590. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens_ElmFn(PGatekeeperConfirm_tokens val)
  3591. {
  3592. if (val) {
  3593. ASN1Free_ClearToken(&val->value);
  3594. }
  3595. }
  3596. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability *val)
  3597. {
  3598. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_authenticationCapability_ElmFn);
  3599. }
  3600. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability val)
  3601. {
  3602. if (!ASN1Enc_AuthenticationMechanism(enc, &val->value))
  3603. return 0;
  3604. return 1;
  3605. }
  3606. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability *val)
  3607. {
  3608. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_authenticationCapability_ElmFn, sizeof(**val));
  3609. }
  3610. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability val)
  3611. {
  3612. if (!ASN1Dec_AuthenticationMechanism(dec, &val->value))
  3613. return 0;
  3614. return 1;
  3615. }
  3616. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability(PGatekeeperRequest_authenticationCapability *val)
  3617. {
  3618. if (val) {
  3619. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_authenticationCapability_ElmFn);
  3620. }
  3621. }
  3622. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability_ElmFn(PGatekeeperRequest_authenticationCapability val)
  3623. {
  3624. if (val) {
  3625. ASN1Free_AuthenticationMechanism(&val->value);
  3626. }
  3627. }
  3628. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens(ASN1encoding_t enc, PGatekeeperRequest_tokens *val)
  3629. {
  3630. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_tokens_ElmFn);
  3631. }
  3632. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_tokens val)
  3633. {
  3634. if (!ASN1Enc_ClearToken(enc, &val->value))
  3635. return 0;
  3636. return 1;
  3637. }
  3638. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens(ASN1decoding_t dec, PGatekeeperRequest_tokens *val)
  3639. {
  3640. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_tokens_ElmFn, sizeof(**val));
  3641. }
  3642. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_tokens val)
  3643. {
  3644. if (!ASN1Dec_ClearToken(dec, &val->value))
  3645. return 0;
  3646. return 1;
  3647. }
  3648. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens(PGatekeeperRequest_tokens *val)
  3649. {
  3650. if (val) {
  3651. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_tokens_ElmFn);
  3652. }
  3653. }
  3654. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens_ElmFn(PGatekeeperRequest_tokens val)
  3655. {
  3656. if (val) {
  3657. ASN1Free_ClearToken(&val->value);
  3658. }
  3659. }
  3660. static int ASN1CALL ASN1Enc_Endpoint_tokens(ASN1encoding_t enc, PEndpoint_tokens *val)
  3661. {
  3662. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_tokens_ElmFn);
  3663. }
  3664. static int ASN1CALL ASN1Enc_Endpoint_tokens_ElmFn(ASN1encoding_t enc, PEndpoint_tokens val)
  3665. {
  3666. if (!ASN1Enc_ClearToken(enc, &val->value))
  3667. return 0;
  3668. return 1;
  3669. }
  3670. static int ASN1CALL ASN1Dec_Endpoint_tokens(ASN1decoding_t dec, PEndpoint_tokens *val)
  3671. {
  3672. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_tokens_ElmFn, sizeof(**val));
  3673. }
  3674. static int ASN1CALL ASN1Dec_Endpoint_tokens_ElmFn(ASN1decoding_t dec, PEndpoint_tokens val)
  3675. {
  3676. if (!ASN1Dec_ClearToken(dec, &val->value))
  3677. return 0;
  3678. return 1;
  3679. }
  3680. static void ASN1CALL ASN1Free_Endpoint_tokens(PEndpoint_tokens *val)
  3681. {
  3682. if (val) {
  3683. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_tokens_ElmFn);
  3684. }
  3685. }
  3686. static void ASN1CALL ASN1Free_Endpoint_tokens_ElmFn(PEndpoint_tokens val)
  3687. {
  3688. if (val) {
  3689. ASN1Free_ClearToken(&val->value);
  3690. }
  3691. }
  3692. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens(ASN1encoding_t enc, PProgress_UUIE_tokens *val)
  3693. {
  3694. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_tokens_ElmFn);
  3695. }
  3696. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_tokens val)
  3697. {
  3698. if (!ASN1Enc_ClearToken(enc, &val->value))
  3699. return 0;
  3700. return 1;
  3701. }
  3702. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens(ASN1decoding_t dec, PProgress_UUIE_tokens *val)
  3703. {
  3704. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_tokens_ElmFn, sizeof(**val));
  3705. }
  3706. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_tokens val)
  3707. {
  3708. if (!ASN1Dec_ClearToken(dec, &val->value))
  3709. return 0;
  3710. return 1;
  3711. }
  3712. static void ASN1CALL ASN1Free_Progress_UUIE_tokens(PProgress_UUIE_tokens *val)
  3713. {
  3714. if (val) {
  3715. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_tokens_ElmFn);
  3716. }
  3717. }
  3718. static void ASN1CALL ASN1Free_Progress_UUIE_tokens_ElmFn(PProgress_UUIE_tokens val)
  3719. {
  3720. if (val) {
  3721. ASN1Free_ClearToken(&val->value);
  3722. }
  3723. }
  3724. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens(ASN1encoding_t enc, PFacility_UUIE_tokens *val)
  3725. {
  3726. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_tokens_ElmFn);
  3727. }
  3728. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_tokens val)
  3729. {
  3730. if (!ASN1Enc_ClearToken(enc, &val->value))
  3731. return 0;
  3732. return 1;
  3733. }
  3734. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens(ASN1decoding_t dec, PFacility_UUIE_tokens *val)
  3735. {
  3736. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_tokens_ElmFn, sizeof(**val));
  3737. }
  3738. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_tokens val)
  3739. {
  3740. if (!ASN1Dec_ClearToken(dec, &val->value))
  3741. return 0;
  3742. return 1;
  3743. }
  3744. static void ASN1CALL ASN1Free_Facility_UUIE_tokens(PFacility_UUIE_tokens *val)
  3745. {
  3746. if (val) {
  3747. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_tokens_ElmFn);
  3748. }
  3749. }
  3750. static void ASN1CALL ASN1Free_Facility_UUIE_tokens_ElmFn(PFacility_UUIE_tokens val)
  3751. {
  3752. if (val) {
  3753. ASN1Free_ClearToken(&val->value);
  3754. }
  3755. }
  3756. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens(ASN1encoding_t enc, PSetup_UUIE_tokens *val)
  3757. {
  3758. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_tokens_ElmFn);
  3759. }
  3760. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_tokens val)
  3761. {
  3762. if (!ASN1Enc_ClearToken(enc, &val->value))
  3763. return 0;
  3764. return 1;
  3765. }
  3766. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens(ASN1decoding_t dec, PSetup_UUIE_tokens *val)
  3767. {
  3768. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_tokens_ElmFn, sizeof(**val));
  3769. }
  3770. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_tokens val)
  3771. {
  3772. if (!ASN1Dec_ClearToken(dec, &val->value))
  3773. return 0;
  3774. return 1;
  3775. }
  3776. static void ASN1CALL ASN1Free_Setup_UUIE_tokens(PSetup_UUIE_tokens *val)
  3777. {
  3778. if (val) {
  3779. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_tokens_ElmFn);
  3780. }
  3781. }
  3782. static void ASN1CALL ASN1Free_Setup_UUIE_tokens_ElmFn(PSetup_UUIE_tokens val)
  3783. {
  3784. if (val) {
  3785. ASN1Free_ClearToken(&val->value);
  3786. }
  3787. }
  3788. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens(ASN1encoding_t enc, PConnect_UUIE_tokens *val)
  3789. {
  3790. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_tokens_ElmFn);
  3791. }
  3792. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_tokens val)
  3793. {
  3794. if (!ASN1Enc_ClearToken(enc, &val->value))
  3795. return 0;
  3796. return 1;
  3797. }
  3798. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens(ASN1decoding_t dec, PConnect_UUIE_tokens *val)
  3799. {
  3800. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_tokens_ElmFn, sizeof(**val));
  3801. }
  3802. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_tokens val)
  3803. {
  3804. if (!ASN1Dec_ClearToken(dec, &val->value))
  3805. return 0;
  3806. return 1;
  3807. }
  3808. static void ASN1CALL ASN1Free_Connect_UUIE_tokens(PConnect_UUIE_tokens *val)
  3809. {
  3810. if (val) {
  3811. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_tokens_ElmFn);
  3812. }
  3813. }
  3814. static void ASN1CALL ASN1Free_Connect_UUIE_tokens_ElmFn(PConnect_UUIE_tokens val)
  3815. {
  3816. if (val) {
  3817. ASN1Free_ClearToken(&val->value);
  3818. }
  3819. }
  3820. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens(ASN1encoding_t enc, PCallProceeding_UUIE_tokens *val)
  3821. {
  3822. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_tokens_ElmFn);
  3823. }
  3824. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_tokens val)
  3825. {
  3826. if (!ASN1Enc_ClearToken(enc, &val->value))
  3827. return 0;
  3828. return 1;
  3829. }
  3830. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens(ASN1decoding_t dec, PCallProceeding_UUIE_tokens *val)
  3831. {
  3832. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_tokens_ElmFn, sizeof(**val));
  3833. }
  3834. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_tokens val)
  3835. {
  3836. if (!ASN1Dec_ClearToken(dec, &val->value))
  3837. return 0;
  3838. return 1;
  3839. }
  3840. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens(PCallProceeding_UUIE_tokens *val)
  3841. {
  3842. if (val) {
  3843. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_tokens_ElmFn);
  3844. }
  3845. }
  3846. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens_ElmFn(PCallProceeding_UUIE_tokens val)
  3847. {
  3848. if (val) {
  3849. ASN1Free_ClearToken(&val->value);
  3850. }
  3851. }
  3852. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens(ASN1encoding_t enc, PAlerting_UUIE_tokens *val)
  3853. {
  3854. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_tokens_ElmFn);
  3855. }
  3856. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_tokens val)
  3857. {
  3858. if (!ASN1Enc_ClearToken(enc, &val->value))
  3859. return 0;
  3860. return 1;
  3861. }
  3862. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens(ASN1decoding_t dec, PAlerting_UUIE_tokens *val)
  3863. {
  3864. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_tokens_ElmFn, sizeof(**val));
  3865. }
  3866. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_tokens val)
  3867. {
  3868. if (!ASN1Dec_ClearToken(dec, &val->value))
  3869. return 0;
  3870. return 1;
  3871. }
  3872. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens(PAlerting_UUIE_tokens *val)
  3873. {
  3874. if (val) {
  3875. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_tokens_ElmFn);
  3876. }
  3877. }
  3878. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens_ElmFn(PAlerting_UUIE_tokens val)
  3879. {
  3880. if (val) {
  3881. ASN1Free_ClearToken(&val->value);
  3882. }
  3883. }
  3884. static int ASN1CALL ASN1Enc_SIGNED_EncodedGeneralToken(ASN1encoding_t enc, SIGNED_EncodedGeneralToken *val)
  3885. {
  3886. if (!ASN1Enc_EncodedGeneralToken(enc, &(val)->toBeSigned))
  3887. return 0;
  3888. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3889. return 0;
  3890. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3891. return 0;
  3892. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  3893. return 0;
  3894. return 1;
  3895. }
  3896. static int ASN1CALL ASN1Dec_SIGNED_EncodedGeneralToken(ASN1decoding_t dec, SIGNED_EncodedGeneralToken *val)
  3897. {
  3898. if (!ASN1Dec_EncodedGeneralToken(dec, &(val)->toBeSigned))
  3899. return 0;
  3900. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3901. return 0;
  3902. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3903. return 0;
  3904. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  3905. return 0;
  3906. return 1;
  3907. }
  3908. static void ASN1CALL ASN1Free_SIGNED_EncodedGeneralToken(SIGNED_EncodedGeneralToken *val)
  3909. {
  3910. if (val) {
  3911. ASN1Free_EncodedGeneralToken(&(val)->toBeSigned);
  3912. ASN1objectidentifier_free(&(val)->algorithmOID);
  3913. ASN1Free_Params(&(val)->paramS);
  3914. ASN1bitstring_free(&(val)->signature);
  3915. }
  3916. }
  3917. static int ASN1CALL ASN1Enc_ENCRYPTED(ASN1encoding_t enc, ENCRYPTED *val)
  3918. {
  3919. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3920. return 0;
  3921. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3922. return 0;
  3923. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->encryptedData))
  3924. return 0;
  3925. return 1;
  3926. }
  3927. static int ASN1CALL ASN1Dec_ENCRYPTED(ASN1decoding_t dec, ENCRYPTED *val)
  3928. {
  3929. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3930. return 0;
  3931. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3932. return 0;
  3933. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->encryptedData))
  3934. return 0;
  3935. return 1;
  3936. }
  3937. static void ASN1CALL ASN1Free_ENCRYPTED(ENCRYPTED *val)
  3938. {
  3939. if (val) {
  3940. ASN1objectidentifier_free(&(val)->algorithmOID);
  3941. ASN1Free_Params(&(val)->paramS);
  3942. ASN1octetstring_free(&(val)->encryptedData);
  3943. }
  3944. }
  3945. static int ASN1CALL ASN1Enc_HASHED(ASN1encoding_t enc, HASHED *val)
  3946. {
  3947. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3948. return 0;
  3949. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3950. return 0;
  3951. if (!ASN1PEREncFragmented(enc, ((val)->hash).length, ((val)->hash).value, 1))
  3952. return 0;
  3953. return 1;
  3954. }
  3955. static int ASN1CALL ASN1Dec_HASHED(ASN1decoding_t dec, HASHED *val)
  3956. {
  3957. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3958. return 0;
  3959. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3960. return 0;
  3961. if (!ASN1PERDecFragmented(dec, &((val)->hash).length, &((val)->hash).value, 1))
  3962. return 0;
  3963. return 1;
  3964. }
  3965. static void ASN1CALL ASN1Free_HASHED(HASHED *val)
  3966. {
  3967. if (val) {
  3968. ASN1objectidentifier_free(&(val)->algorithmOID);
  3969. ASN1Free_Params(&(val)->paramS);
  3970. ASN1bitstring_free(&(val)->hash);
  3971. }
  3972. }
  3973. static int ASN1CALL ASN1Enc_SIGNED_EncodedPwdCertToken(ASN1encoding_t enc, SIGNED_EncodedPwdCertToken *val)
  3974. {
  3975. if (!ASN1Enc_EncodedPwdCertToken(enc, &(val)->toBeSigned))
  3976. return 0;
  3977. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  3978. return 0;
  3979. if (!ASN1Enc_Params(enc, &(val)->paramS))
  3980. return 0;
  3981. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  3982. return 0;
  3983. return 1;
  3984. }
  3985. static int ASN1CALL ASN1Dec_SIGNED_EncodedPwdCertToken(ASN1decoding_t dec, SIGNED_EncodedPwdCertToken *val)
  3986. {
  3987. if (!ASN1Dec_EncodedPwdCertToken(dec, &(val)->toBeSigned))
  3988. return 0;
  3989. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  3990. return 0;
  3991. if (!ASN1Dec_Params(dec, &(val)->paramS))
  3992. return 0;
  3993. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  3994. return 0;
  3995. return 1;
  3996. }
  3997. static void ASN1CALL ASN1Free_SIGNED_EncodedPwdCertToken(SIGNED_EncodedPwdCertToken *val)
  3998. {
  3999. if (val) {
  4000. ASN1Free_EncodedPwdCertToken(&(val)->toBeSigned);
  4001. ASN1objectidentifier_free(&(val)->algorithmOID);
  4002. ASN1Free_Params(&(val)->paramS);
  4003. ASN1bitstring_free(&(val)->signature);
  4004. }
  4005. }
  4006. static int ASN1CALL ASN1Enc_Information_UUIE(ASN1encoding_t enc, Information_UUIE *val)
  4007. {
  4008. ASN1octet_t o[1];
  4009. ASN1uint32_t y;
  4010. ASN1encoding_t ee;
  4011. CopyMemory(o, (val)->o, 1);
  4012. o[0] |= 0x80;
  4013. y = ASN1PEREncCheckExtensions(1, (val)->o + 0);
  4014. if (!ASN1PEREncBitVal(enc, 1, y))
  4015. return 0;
  4016. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4017. return 0;
  4018. if (y) {
  4019. if (!ASN1PEREncNormallySmallBits(enc, 1, o + 0))
  4020. return 0;
  4021. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4022. return 0;
  4023. if (o[0] & 0x80) {
  4024. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  4025. return 0;
  4026. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4027. return 0;
  4028. }
  4029. ASN1_CloseEncoder2(ee);
  4030. }
  4031. return 1;
  4032. }
  4033. static int ASN1CALL ASN1Dec_Information_UUIE(ASN1decoding_t dec, Information_UUIE *val)
  4034. {
  4035. ASN1uint32_t y;
  4036. ASN1decoding_t dd;
  4037. ASN1octet_t *db;
  4038. ASN1uint32_t ds;
  4039. ASN1uint32_t i;
  4040. ASN1uint32_t e;
  4041. if (!ASN1PERDecExtensionBit(dec, &y))
  4042. return 0;
  4043. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4044. return 0;
  4045. if (!y) {
  4046. ZeroMemory((val)->o + 0, 1);
  4047. } else {
  4048. if (!ASN1PERDecNormallySmallExtension(dec, &e, 1, (val)->o + 0))
  4049. return 0;
  4050. if ((val)->o[0] & 0x80) {
  4051. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4052. return 0;
  4053. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4054. return 0;
  4055. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  4056. return 0;
  4057. ASN1_CloseDecoder(dd);
  4058. ASN1Free(db);
  4059. }
  4060. for (i = 0; i < e; i++) {
  4061. if (!ASN1PERDecSkipFragmented(dec, 8))
  4062. return 0;
  4063. }
  4064. }
  4065. return 1;
  4066. }
  4067. static void ASN1CALL ASN1Free_Information_UUIE(Information_UUIE *val)
  4068. {
  4069. if (val) {
  4070. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4071. if ((val)->o[0] & 0x80) {
  4072. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  4073. }
  4074. }
  4075. }
  4076. static int ASN1CALL ASN1Enc_ReleaseComplete_UUIE(ASN1encoding_t enc, ReleaseComplete_UUIE *val)
  4077. {
  4078. ASN1octet_t o[2];
  4079. ASN1uint32_t y;
  4080. ASN1encoding_t ee;
  4081. CopyMemory(o, (val)->o, 2);
  4082. o[1] |= 0x80;
  4083. y = ASN1PEREncCheckExtensions(1, (val)->o + 1);
  4084. if (!ASN1PEREncBitVal(enc, 1, y))
  4085. return 0;
  4086. if (!ASN1PEREncBits(enc, 1, o))
  4087. return 0;
  4088. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4089. return 0;
  4090. if (o[0] & 0x80) {
  4091. if (!ASN1Enc_ReleaseCompleteReason(enc, &(val)->reason))
  4092. return 0;
  4093. }
  4094. if (y) {
  4095. if (!ASN1PEREncNormallySmallBits(enc, 1, o + 1))
  4096. return 0;
  4097. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4098. return 0;
  4099. if (o[1] & 0x80) {
  4100. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  4101. return 0;
  4102. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4103. return 0;
  4104. }
  4105. ASN1_CloseEncoder2(ee);
  4106. }
  4107. return 1;
  4108. }
  4109. static int ASN1CALL ASN1Dec_ReleaseComplete_UUIE(ASN1decoding_t dec, ReleaseComplete_UUIE *val)
  4110. {
  4111. ASN1uint32_t y;
  4112. ASN1decoding_t dd;
  4113. ASN1octet_t *db;
  4114. ASN1uint32_t ds;
  4115. ASN1uint32_t i;
  4116. ASN1uint32_t e;
  4117. if (!ASN1PERDecExtensionBit(dec, &y))
  4118. return 0;
  4119. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4120. return 0;
  4121. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4122. return 0;
  4123. if ((val)->o[0] & 0x80) {
  4124. if (!ASN1Dec_ReleaseCompleteReason(dec, &(val)->reason))
  4125. return 0;
  4126. }
  4127. if (!y) {
  4128. ZeroMemory((val)->o + 1, 1);
  4129. } else {
  4130. if (!ASN1PERDecNormallySmallExtension(dec, &e, 1, (val)->o + 1))
  4131. return 0;
  4132. if ((val)->o[1] & 0x80) {
  4133. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4134. return 0;
  4135. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4136. return 0;
  4137. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  4138. return 0;
  4139. ASN1_CloseDecoder(dd);
  4140. ASN1Free(db);
  4141. }
  4142. for (i = 0; i < e; i++) {
  4143. if (!ASN1PERDecSkipFragmented(dec, 8))
  4144. return 0;
  4145. }
  4146. }
  4147. return 1;
  4148. }
  4149. static void ASN1CALL ASN1Free_ReleaseComplete_UUIE(ReleaseComplete_UUIE *val)
  4150. {
  4151. if (val) {
  4152. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4153. if ((val)->o[1] & 0x80) {
  4154. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  4155. }
  4156. }
  4157. }
  4158. static int ASN1CALL ASN1Enc_VendorIdentifier(ASN1encoding_t enc, VendorIdentifier *val)
  4159. {
  4160. if (!ASN1PEREncExtensionBitClear(enc))
  4161. return 0;
  4162. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4163. return 0;
  4164. if (!ASN1Enc_H221NonStandard(enc, &(val)->vendor))
  4165. return 0;
  4166. if ((val)->o[0] & 0x80) {
  4167. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->productId, 1, 256, 8))
  4168. return 0;
  4169. }
  4170. if ((val)->o[0] & 0x40) {
  4171. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->versionId, 1, 256, 8))
  4172. return 0;
  4173. }
  4174. return 1;
  4175. }
  4176. static int ASN1CALL ASN1Dec_VendorIdentifier(ASN1decoding_t dec, VendorIdentifier *val)
  4177. {
  4178. ASN1uint32_t y;
  4179. if (!ASN1PERDecExtensionBit(dec, &y))
  4180. return 0;
  4181. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4182. return 0;
  4183. if (!ASN1Dec_H221NonStandard(dec, &(val)->vendor))
  4184. return 0;
  4185. if ((val)->o[0] & 0x80) {
  4186. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->productId, 1, 256, 8))
  4187. return 0;
  4188. }
  4189. if ((val)->o[0] & 0x40) {
  4190. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->versionId, 1, 256, 8))
  4191. return 0;
  4192. }
  4193. if (y) {
  4194. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4195. return 0;
  4196. }
  4197. return 1;
  4198. }
  4199. static void ASN1CALL ASN1Free_VendorIdentifier(VendorIdentifier *val)
  4200. {
  4201. if (val) {
  4202. if ((val)->o[0] & 0x80) {
  4203. }
  4204. if ((val)->o[0] & 0x40) {
  4205. }
  4206. }
  4207. }
  4208. static int ASN1CALL ASN1Enc_H225NonStandardParameter(ASN1encoding_t enc, H225NonStandardParameter *val)
  4209. {
  4210. if (!ASN1Enc_H225NonStandardIdentifier(enc, &(val)->nonStandardIdentifier))
  4211. return 0;
  4212. if (!ASN1PEREncOctetString_NoSize(enc, &(val)->data))
  4213. return 0;
  4214. return 1;
  4215. }
  4216. static int ASN1CALL ASN1Dec_H225NonStandardParameter(ASN1decoding_t dec, H225NonStandardParameter *val)
  4217. {
  4218. if (!ASN1Dec_H225NonStandardIdentifier(dec, &(val)->nonStandardIdentifier))
  4219. return 0;
  4220. if (!ASN1PERDecOctetString_NoSize(dec, &(val)->data))
  4221. return 0;
  4222. return 1;
  4223. }
  4224. static void ASN1CALL ASN1Free_H225NonStandardParameter(H225NonStandardParameter *val)
  4225. {
  4226. if (val) {
  4227. ASN1Free_H225NonStandardIdentifier(&(val)->nonStandardIdentifier);
  4228. ASN1octetstring_free(&(val)->data);
  4229. }
  4230. }
  4231. static ASN1stringtableentry_t PublicPartyNumber_publicNumberDigits_StringTableEntries[] = {
  4232. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  4233. { 48, 57, 3 },
  4234. };
  4235. static ASN1stringtable_t PublicPartyNumber_publicNumberDigits_StringTable = {
  4236. 4, PublicPartyNumber_publicNumberDigits_StringTableEntries
  4237. };
  4238. static int ASN1CALL ASN1Enc_PublicPartyNumber(ASN1encoding_t enc, PublicPartyNumber *val)
  4239. {
  4240. ASN1uint32_t t;
  4241. if (!ASN1Enc_PublicTypeOfNumber(enc, &(val)->publicTypeOfNumber))
  4242. return 0;
  4243. t = lstrlenA((val)->publicNumberDigits);
  4244. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  4245. return 0;
  4246. ASN1PEREncAlignment(enc);
  4247. if (!ASN1PEREncTableCharString(enc, t, (val)->publicNumberDigits, 4, &PublicPartyNumber_publicNumberDigits_StringTable))
  4248. return 0;
  4249. return 1;
  4250. }
  4251. static int ASN1CALL ASN1Dec_PublicPartyNumber(ASN1decoding_t dec, PublicPartyNumber *val)
  4252. {
  4253. ASN1uint32_t l;
  4254. if (!ASN1Dec_PublicTypeOfNumber(dec, &(val)->publicTypeOfNumber))
  4255. return 0;
  4256. if (!ASN1PERDecU32Val(dec, 7, &l))
  4257. return 0;
  4258. l += 1;
  4259. ASN1PERDecAlignment(dec);
  4260. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->publicNumberDigits, 4, &PublicPartyNumber_publicNumberDigits_StringTable))
  4261. return 0;
  4262. return 1;
  4263. }
  4264. static void ASN1CALL ASN1Free_PublicPartyNumber(PublicPartyNumber *val)
  4265. {
  4266. if (val) {
  4267. }
  4268. }
  4269. static ASN1stringtableentry_t PrivatePartyNumber_privateNumberDigits_StringTableEntries[] = {
  4270. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  4271. { 48, 57, 3 },
  4272. };
  4273. static ASN1stringtable_t PrivatePartyNumber_privateNumberDigits_StringTable = {
  4274. 4, PrivatePartyNumber_privateNumberDigits_StringTableEntries
  4275. };
  4276. static int ASN1CALL ASN1Enc_PrivatePartyNumber(ASN1encoding_t enc, PrivatePartyNumber *val)
  4277. {
  4278. ASN1uint32_t t;
  4279. if (!ASN1Enc_PrivateTypeOfNumber(enc, &(val)->privateTypeOfNumber))
  4280. return 0;
  4281. t = lstrlenA((val)->privateNumberDigits);
  4282. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  4283. return 0;
  4284. ASN1PEREncAlignment(enc);
  4285. if (!ASN1PEREncTableCharString(enc, t, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4286. return 0;
  4287. return 1;
  4288. }
  4289. static int ASN1CALL ASN1Dec_PrivatePartyNumber(ASN1decoding_t dec, PrivatePartyNumber *val)
  4290. {
  4291. ASN1uint32_t l;
  4292. if (!ASN1Dec_PrivateTypeOfNumber(dec, &(val)->privateTypeOfNumber))
  4293. return 0;
  4294. if (!ASN1PERDecU32Val(dec, 7, &l))
  4295. return 0;
  4296. l += 1;
  4297. ASN1PERDecAlignment(dec);
  4298. /* Start of HANDCODED FIX FOR pdu security Issue */
  4299. if (l >= sizeof((val)->privateNumberDigits))
  4300. {
  4301. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  4302. return 0;
  4303. }
  4304. /* End of HANDCODED FIX FOR pdu security Issue */
  4305. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4306. return 0;
  4307. return 1;
  4308. }
  4309. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val)
  4310. {
  4311. if (val) {
  4312. }
  4313. }
  4314. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val)
  4315. {
  4316. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4317. return 0;
  4318. switch ((val)->choice) {
  4319. case 1:
  4320. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4321. return 0;
  4322. break;
  4323. case 2:
  4324. break;
  4325. case 3:
  4326. break;
  4327. default:
  4328. /* impossible */
  4329. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4330. return 0;
  4331. }
  4332. return 1;
  4333. }
  4334. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val)
  4335. {
  4336. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4337. return 0;
  4338. switch ((val)->choice) {
  4339. case 1:
  4340. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4341. return 0;
  4342. break;
  4343. case 2:
  4344. break;
  4345. case 3:
  4346. break;
  4347. case 0:
  4348. /* extension case */
  4349. if (!ASN1PERDecSkipFragmented(dec, 8))
  4350. return 0;
  4351. break;
  4352. default:
  4353. /* impossible */
  4354. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4355. return 0;
  4356. }
  4357. return 1;
  4358. }
  4359. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val)
  4360. {
  4361. if (val) {
  4362. switch ((val)->choice) {
  4363. case 1:
  4364. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4365. break;
  4366. }
  4367. }
  4368. }
  4369. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val)
  4370. {
  4371. if (!ASN1PEREncExtensionBitClear(enc))
  4372. return 0;
  4373. if (!ASN1PEREncBits(enc, 1, (val)->o))
  4374. return 0;
  4375. if ((val)->o[0] & 0x80) {
  4376. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandard))
  4377. return 0;
  4378. }
  4379. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->encryption))
  4380. return 0;
  4381. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->authenticaton))
  4382. return 0;
  4383. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->integrity))
  4384. return 0;
  4385. return 1;
  4386. }
  4387. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val)
  4388. {
  4389. ASN1uint32_t y;
  4390. if (!ASN1PERDecExtensionBit(dec, &y))
  4391. return 0;
  4392. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4393. return 0;
  4394. if ((val)->o[0] & 0x80) {
  4395. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandard))
  4396. return 0;
  4397. }
  4398. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->encryption))
  4399. return 0;
  4400. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->authenticaton))
  4401. return 0;
  4402. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->integrity))
  4403. return 0;
  4404. if (y) {
  4405. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4406. return 0;
  4407. }
  4408. return 1;
  4409. }
  4410. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val)
  4411. {
  4412. if (val) {
  4413. if ((val)->o[0] & 0x80) {
  4414. ASN1Free_H225NonStandardParameter(&(val)->nonStandard);
  4415. }
  4416. ASN1Free_SecurityServiceMode(&(val)->encryption);
  4417. ASN1Free_SecurityServiceMode(&(val)->authenticaton);
  4418. ASN1Free_SecurityServiceMode(&(val)->integrity);
  4419. }
  4420. }
  4421. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val)
  4422. {
  4423. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4424. return 0;
  4425. switch ((val)->choice) {
  4426. case 1:
  4427. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4428. return 0;
  4429. break;
  4430. case 2:
  4431. break;
  4432. case 3:
  4433. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.tls))
  4434. return 0;
  4435. break;
  4436. case 4:
  4437. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.ipsec))
  4438. return 0;
  4439. break;
  4440. default:
  4441. /* impossible */
  4442. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4443. return 0;
  4444. }
  4445. return 1;
  4446. }
  4447. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val)
  4448. {
  4449. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4450. return 0;
  4451. switch ((val)->choice) {
  4452. case 1:
  4453. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4454. return 0;
  4455. break;
  4456. case 2:
  4457. break;
  4458. case 3:
  4459. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.tls))
  4460. return 0;
  4461. break;
  4462. case 4:
  4463. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.ipsec))
  4464. return 0;
  4465. break;
  4466. case 0:
  4467. /* extension case */
  4468. if (!ASN1PERDecSkipFragmented(dec, 8))
  4469. return 0;
  4470. break;
  4471. default:
  4472. /* impossible */
  4473. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4474. return 0;
  4475. }
  4476. return 1;
  4477. }
  4478. static void ASN1CALL ASN1Free_H245Security(H245Security *val)
  4479. {
  4480. if (val) {
  4481. switch ((val)->choice) {
  4482. case 1:
  4483. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4484. break;
  4485. case 3:
  4486. ASN1Free_SecurityCapabilities(&(val)->u.tls);
  4487. break;
  4488. case 4:
  4489. ASN1Free_SecurityCapabilities(&(val)->u.ipsec);
  4490. break;
  4491. }
  4492. }
  4493. }
  4494. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val)
  4495. {
  4496. if (!ASN1PEREncExtensionBitClear(enc))
  4497. return 0;
  4498. if (!ASN1PEREncBoolean(enc, (val)->q932Full))
  4499. return 0;
  4500. if (!ASN1PEREncBoolean(enc, (val)->q951Full))
  4501. return 0;
  4502. if (!ASN1PEREncBoolean(enc, (val)->q952Full))
  4503. return 0;
  4504. if (!ASN1PEREncBoolean(enc, (val)->q953Full))
  4505. return 0;
  4506. if (!ASN1PEREncBoolean(enc, (val)->q955Full))
  4507. return 0;
  4508. if (!ASN1PEREncBoolean(enc, (val)->q956Full))
  4509. return 0;
  4510. if (!ASN1PEREncBoolean(enc, (val)->q957Full))
  4511. return 0;
  4512. if (!ASN1Enc_Q954Details(enc, &(val)->q954Info))
  4513. return 0;
  4514. return 1;
  4515. }
  4516. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val)
  4517. {
  4518. ASN1uint32_t y;
  4519. if (!ASN1PERDecExtensionBit(dec, &y))
  4520. return 0;
  4521. if (!ASN1PERDecBoolean(dec, &(val)->q932Full))
  4522. return 0;
  4523. if (!ASN1PERDecBoolean(dec, &(val)->q951Full))
  4524. return 0;
  4525. if (!ASN1PERDecBoolean(dec, &(val)->q952Full))
  4526. return 0;
  4527. if (!ASN1PERDecBoolean(dec, &(val)->q953Full))
  4528. return 0;
  4529. if (!ASN1PERDecBoolean(dec, &(val)->q955Full))
  4530. return 0;
  4531. if (!ASN1PERDecBoolean(dec, &(val)->q956Full))
  4532. return 0;
  4533. if (!ASN1PERDecBoolean(dec, &(val)->q957Full))
  4534. return 0;
  4535. if (!ASN1Dec_Q954Details(dec, &(val)->q954Info))
  4536. return 0;
  4537. if (y) {
  4538. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4539. return 0;
  4540. }
  4541. return 1;
  4542. }
  4543. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val)
  4544. {
  4545. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  4546. return 0;
  4547. switch ((val)->choice) {
  4548. case 1:
  4549. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4550. return 0;
  4551. break;
  4552. case 2:
  4553. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.isoAlgorithm))
  4554. return 0;
  4555. break;
  4556. default:
  4557. /* impossible */
  4558. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4559. return 0;
  4560. }
  4561. return 1;
  4562. }
  4563. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val)
  4564. {
  4565. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  4566. return 0;
  4567. switch ((val)->choice) {
  4568. case 1:
  4569. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4570. return 0;
  4571. break;
  4572. case 2:
  4573. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.isoAlgorithm))
  4574. return 0;
  4575. break;
  4576. case 0:
  4577. /* extension case */
  4578. if (!ASN1PERDecSkipFragmented(dec, 8))
  4579. return 0;
  4580. break;
  4581. default:
  4582. /* impossible */
  4583. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4584. return 0;
  4585. }
  4586. return 1;
  4587. }
  4588. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val)
  4589. {
  4590. if (val) {
  4591. switch ((val)->choice) {
  4592. case 1:
  4593. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4594. break;
  4595. case 2:
  4596. ASN1objectidentifier_free(&(val)->u.isoAlgorithm);
  4597. break;
  4598. }
  4599. }
  4600. }
  4601. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val)
  4602. {
  4603. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4604. return 0;
  4605. switch ((val)->choice) {
  4606. case 1:
  4607. break;
  4608. case 2:
  4609. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_s))
  4610. return 0;
  4611. break;
  4612. case 3:
  4613. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_l))
  4614. return 0;
  4615. break;
  4616. case 4:
  4617. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.hMAC_iso10118_3))
  4618. return 0;
  4619. break;
  4620. default:
  4621. /* impossible */
  4622. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4623. return 0;
  4624. }
  4625. return 1;
  4626. }
  4627. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val)
  4628. {
  4629. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4630. return 0;
  4631. switch ((val)->choice) {
  4632. case 1:
  4633. break;
  4634. case 2:
  4635. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_s))
  4636. return 0;
  4637. break;
  4638. case 3:
  4639. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_l))
  4640. return 0;
  4641. break;
  4642. case 4:
  4643. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.hMAC_iso10118_3))
  4644. return 0;
  4645. break;
  4646. case 0:
  4647. /* extension case */
  4648. if (!ASN1PERDecSkipFragmented(dec, 8))
  4649. return 0;
  4650. break;
  4651. default:
  4652. /* impossible */
  4653. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4654. return 0;
  4655. }
  4656. return 1;
  4657. }
  4658. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val)
  4659. {
  4660. if (val) {
  4661. switch ((val)->choice) {
  4662. case 2:
  4663. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_s);
  4664. break;
  4665. case 3:
  4666. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_l);
  4667. break;
  4668. case 4:
  4669. ASN1objectidentifier_free(&(val)->u.hMAC_iso10118_3);
  4670. break;
  4671. }
  4672. }
  4673. }
  4674. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val)
  4675. {
  4676. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4677. return 0;
  4678. switch ((val)->choice) {
  4679. case 1:
  4680. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4681. return 0;
  4682. break;
  4683. case 2:
  4684. break;
  4685. case 3:
  4686. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.iso9797))
  4687. return 0;
  4688. break;
  4689. case 4:
  4690. if (!ASN1Enc_NonIsoIntegrityMechanism(enc, &(val)->u.nonIsoIM))
  4691. return 0;
  4692. break;
  4693. default:
  4694. /* impossible */
  4695. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4696. return 0;
  4697. }
  4698. return 1;
  4699. }
  4700. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val)
  4701. {
  4702. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4703. return 0;
  4704. switch ((val)->choice) {
  4705. case 1:
  4706. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4707. return 0;
  4708. break;
  4709. case 2:
  4710. break;
  4711. case 3:
  4712. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.iso9797))
  4713. return 0;
  4714. break;
  4715. case 4:
  4716. if (!ASN1Dec_NonIsoIntegrityMechanism(dec, &(val)->u.nonIsoIM))
  4717. return 0;
  4718. break;
  4719. case 0:
  4720. /* extension case */
  4721. if (!ASN1PERDecSkipFragmented(dec, 8))
  4722. return 0;
  4723. break;
  4724. default:
  4725. /* impossible */
  4726. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4727. return 0;
  4728. }
  4729. return 1;
  4730. }
  4731. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val)
  4732. {
  4733. if (val) {
  4734. switch ((val)->choice) {
  4735. case 1:
  4736. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4737. break;
  4738. case 3:
  4739. ASN1objectidentifier_free(&(val)->u.iso9797);
  4740. break;
  4741. case 4:
  4742. ASN1Free_NonIsoIntegrityMechanism(&(val)->u.nonIsoIM);
  4743. break;
  4744. }
  4745. }
  4746. }
  4747. static int ASN1CALL ASN1Enc_FastStartToken(ASN1encoding_t enc, FastStartToken *val)
  4748. {
  4749. if (!ASN1Enc_ClearToken(enc, val))
  4750. return 0;
  4751. return 1;
  4752. }
  4753. static int ASN1CALL ASN1Dec_FastStartToken(ASN1decoding_t dec, FastStartToken *val)
  4754. {
  4755. if (!ASN1Dec_ClearToken(dec, val))
  4756. return 0;
  4757. return 1;
  4758. }
  4759. static void ASN1CALL ASN1Free_FastStartToken(FastStartToken *val)
  4760. {
  4761. if (val) {
  4762. ASN1Free_ClearToken(val);
  4763. }
  4764. }
  4765. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val)
  4766. {
  4767. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  4768. return 0;
  4769. if (!ASN1Enc_FastStartToken(enc, &(val)->type))
  4770. return 0;
  4771. return 1;
  4772. }
  4773. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val)
  4774. {
  4775. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  4776. return 0;
  4777. if (!ASN1Dec_FastStartToken(dec, &(val)->type))
  4778. return 0;
  4779. return 1;
  4780. }
  4781. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val)
  4782. {
  4783. if (val) {
  4784. ASN1objectidentifier_free(&(val)->id);
  4785. ASN1Free_FastStartToken(&(val)->type);
  4786. }
  4787. }
  4788. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val)
  4789. {
  4790. ASN1uint32_t l;
  4791. if (!ASN1PEREncExtensionBitClear(enc))
  4792. return 0;
  4793. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4794. return 0;
  4795. if ((val)->o[0] & 0x80) {
  4796. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4797. return 0;
  4798. }
  4799. l = ASN1uint32_uoctets((val)->channelRate);
  4800. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  4801. return 0;
  4802. ASN1PEREncAlignment(enc);
  4803. if (!ASN1PEREncBitVal(enc, l * 8, (val)->channelRate))
  4804. return 0;
  4805. if ((val)->o[0] & 0x40) {
  4806. ASN1PEREncAlignment(enc);
  4807. if (!ASN1PEREncBitVal(enc, 8, (val)->channelMultiplier - 1))
  4808. return 0;
  4809. }
  4810. return 1;
  4811. }
  4812. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val)
  4813. {
  4814. ASN1uint32_t y;
  4815. ASN1uint32_t l;
  4816. if (!ASN1PERDecExtensionBit(dec, &y))
  4817. return 0;
  4818. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4819. return 0;
  4820. if ((val)->o[0] & 0x80) {
  4821. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4822. return 0;
  4823. }
  4824. if (!ASN1PERDecU32Val(dec, 2, &l))
  4825. return 0;
  4826. l += 1;
  4827. ASN1PERDecAlignment(dec);
  4828. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->channelRate))
  4829. return 0;
  4830. if ((val)->o[0] & 0x40) {
  4831. ASN1PERDecAlignment(dec);
  4832. if (!ASN1PERDecU16Val(dec, 8, &(val)->channelMultiplier))
  4833. return 0;
  4834. (val)->channelMultiplier += 1;
  4835. }
  4836. if (y) {
  4837. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4838. return 0;
  4839. }
  4840. return 1;
  4841. }
  4842. static void ASN1CALL ASN1Free_DataRate(DataRate *val)
  4843. {
  4844. if (val) {
  4845. if ((val)->o[0] & 0x80) {
  4846. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4847. }
  4848. }
  4849. }
  4850. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val)
  4851. {
  4852. ASN1uint32_t y;
  4853. ASN1encoding_t ee;
  4854. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  4855. if (!ASN1PEREncBitVal(enc, 1, y))
  4856. return 0;
  4857. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4858. return 0;
  4859. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  4860. return 0;
  4861. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4862. return 0;
  4863. if ((val)->o[0] & 0x80) {
  4864. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4865. return 0;
  4866. }
  4867. if ((val)->o[0] & 0x40) {
  4868. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  4869. return 0;
  4870. ASN1PEREncAlignment(enc);
  4871. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  4872. return 0;
  4873. }
  4874. if (!ASN1Enc_GatekeeperRejectReason(enc, &(val)->rejectReason))
  4875. return 0;
  4876. if (y) {
  4877. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  4878. return 0;
  4879. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4880. return 0;
  4881. if ((val)->o[1] & 0x80) {
  4882. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  4883. return 0;
  4884. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4885. return 0;
  4886. }
  4887. if ((val)->o[1] & 0x40) {
  4888. if (!ASN1Enc_GatekeeperReject_tokens(ee, &(val)->tokens))
  4889. return 0;
  4890. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4891. return 0;
  4892. }
  4893. if ((val)->o[1] & 0x20) {
  4894. if (!ASN1Enc_GatekeeperReject_cryptoTokens(ee, &(val)->cryptoTokens))
  4895. return 0;
  4896. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4897. return 0;
  4898. }
  4899. if ((val)->o[1] & 0x10) {
  4900. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  4901. return 0;
  4902. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4903. return 0;
  4904. }
  4905. ASN1_CloseEncoder2(ee);
  4906. }
  4907. return 1;
  4908. }
  4909. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val)
  4910. {
  4911. ASN1uint32_t y;
  4912. ASN1decoding_t dd;
  4913. ASN1octet_t *db;
  4914. ASN1uint32_t ds;
  4915. ASN1uint32_t i;
  4916. ASN1uint32_t e;
  4917. if (!ASN1PERDecExtensionBit(dec, &y))
  4918. return 0;
  4919. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4920. return 0;
  4921. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  4922. return 0;
  4923. (val)->requestSeqNum += 1;
  4924. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4925. return 0;
  4926. if ((val)->o[0] & 0x80) {
  4927. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4928. return 0;
  4929. }
  4930. if ((val)->o[0] & 0x40) {
  4931. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  4932. return 0;
  4933. ((val)->gatekeeperIdentifier).length += 1;
  4934. ASN1PERDecAlignment(dec);
  4935. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  4936. return 0;
  4937. }
  4938. if (!ASN1Dec_GatekeeperRejectReason(dec, &(val)->rejectReason))
  4939. return 0;
  4940. if (!y) {
  4941. ZeroMemory((val)->o + 1, 1);
  4942. } else {
  4943. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  4944. return 0;
  4945. if ((val)->o[1] & 0x80) {
  4946. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4947. return 0;
  4948. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4949. return 0;
  4950. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  4951. return 0;
  4952. ASN1_CloseDecoder(dd);
  4953. ASN1Free(db);
  4954. }
  4955. if ((val)->o[1] & 0x40) {
  4956. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4957. return 0;
  4958. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4959. return 0;
  4960. if (!ASN1Dec_GatekeeperReject_tokens(dd, &(val)->tokens))
  4961. return 0;
  4962. ASN1_CloseDecoder(dd);
  4963. ASN1Free(db);
  4964. }
  4965. if ((val)->o[1] & 0x20) {
  4966. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4967. return 0;
  4968. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4969. return 0;
  4970. if (!ASN1Dec_GatekeeperReject_cryptoTokens(dd, &(val)->cryptoTokens))
  4971. return 0;
  4972. ASN1_CloseDecoder(dd);
  4973. ASN1Free(db);
  4974. }
  4975. if ((val)->o[1] & 0x10) {
  4976. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4977. return 0;
  4978. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4979. return 0;
  4980. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  4981. return 0;
  4982. ASN1_CloseDecoder(dd);
  4983. ASN1Free(db);
  4984. }
  4985. for (i = 0; i < e; i++) {
  4986. if (!ASN1PERDecSkipFragmented(dec, 8))
  4987. return 0;
  4988. }
  4989. }
  4990. return 1;
  4991. }
  4992. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val)
  4993. {
  4994. if (val) {
  4995. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4996. if ((val)->o[0] & 0x80) {
  4997. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4998. }
  4999. if ((val)->o[0] & 0x40) {
  5000. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5001. }
  5002. if ((val)->o[1] & 0x80) {
  5003. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5004. }
  5005. if ((val)->o[1] & 0x40) {
  5006. ASN1Free_GatekeeperReject_tokens(&(val)->tokens);
  5007. }
  5008. if ((val)->o[1] & 0x20) {
  5009. ASN1Free_GatekeeperReject_cryptoTokens(&(val)->cryptoTokens);
  5010. }
  5011. if ((val)->o[1] & 0x10) {
  5012. ASN1Free_ICV(&(val)->integrityCheckValue);
  5013. }
  5014. }
  5015. }
  5016. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val)
  5017. {
  5018. ASN1octet_t o[2];
  5019. ASN1uint32_t y;
  5020. ASN1encoding_t ee;
  5021. ASN1uint32_t l;
  5022. CopyMemory(o, (val)->o, 2);
  5023. o[1] |= 0x4;
  5024. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  5025. if (!ASN1PEREncBitVal(enc, 1, y))
  5026. return 0;
  5027. if (!ASN1PEREncBits(enc, 3, o))
  5028. return 0;
  5029. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5030. return 0;
  5031. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5032. return 0;
  5033. if (o[0] & 0x80) {
  5034. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5035. return 0;
  5036. }
  5037. if (!ASN1Enc_RegistrationConfirm_callSignalAddress(enc, &(val)->callSignalAddress))
  5038. return 0;
  5039. if (o[0] & 0x40) {
  5040. if (!ASN1Enc_RegistrationConfirm_terminalAlias(enc, &(val)->terminalAlias))
  5041. return 0;
  5042. }
  5043. if (o[0] & 0x20) {
  5044. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5045. return 0;
  5046. ASN1PEREncAlignment(enc);
  5047. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5048. return 0;
  5049. }
  5050. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5051. return 0;
  5052. ASN1PEREncAlignment(enc);
  5053. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5054. return 0;
  5055. if (y) {
  5056. if (!ASN1PEREncNormallySmallBits(enc, 7, o + 1))
  5057. return 0;
  5058. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5059. return 0;
  5060. if (o[1] & 0x80) {
  5061. if (!ASN1Enc_RegistrationConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  5062. return 0;
  5063. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5064. return 0;
  5065. }
  5066. if (o[1] & 0x40) {
  5067. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  5068. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  5069. return 0;
  5070. ASN1PEREncAlignment(ee);
  5071. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  5072. return 0;
  5073. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5074. return 0;
  5075. }
  5076. if (o[1] & 0x20) {
  5077. if (!ASN1Enc_RegistrationConfirm_tokens(ee, &(val)->tokens))
  5078. return 0;
  5079. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5080. return 0;
  5081. }
  5082. if (o[1] & 0x10) {
  5083. if (!ASN1Enc_RegistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5084. return 0;
  5085. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5086. return 0;
  5087. }
  5088. if (o[1] & 0x8) {
  5089. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5090. return 0;
  5091. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5092. return 0;
  5093. }
  5094. if (o[1] & 0x4) {
  5095. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  5096. return 0;
  5097. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5098. return 0;
  5099. }
  5100. if (o[1] & 0x2) {
  5101. if (!ASN1Enc_RegistrationConfirm_preGrantedARQ(ee, &(val)->preGrantedARQ))
  5102. return 0;
  5103. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5104. return 0;
  5105. }
  5106. ASN1_CloseEncoder2(ee);
  5107. }
  5108. return 1;
  5109. }
  5110. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val)
  5111. {
  5112. ASN1uint32_t y;
  5113. ASN1decoding_t dd;
  5114. ASN1octet_t *db;
  5115. ASN1uint32_t ds;
  5116. ASN1uint32_t l;
  5117. ASN1uint32_t i;
  5118. ASN1uint32_t e;
  5119. if (!ASN1PERDecExtensionBit(dec, &y))
  5120. return 0;
  5121. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5122. return 0;
  5123. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5124. return 0;
  5125. (val)->requestSeqNum += 1;
  5126. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5127. return 0;
  5128. if ((val)->o[0] & 0x80) {
  5129. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5130. return 0;
  5131. }
  5132. if (!ASN1Dec_RegistrationConfirm_callSignalAddress(dec, &(val)->callSignalAddress))
  5133. return 0;
  5134. if ((val)->o[0] & 0x40) {
  5135. if (!ASN1Dec_RegistrationConfirm_terminalAlias(dec, &(val)->terminalAlias))
  5136. return 0;
  5137. }
  5138. if ((val)->o[0] & 0x20) {
  5139. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5140. return 0;
  5141. ((val)->gatekeeperIdentifier).length += 1;
  5142. ASN1PERDecAlignment(dec);
  5143. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5144. return 0;
  5145. }
  5146. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5147. return 0;
  5148. ((val)->endpointIdentifier).length += 1;
  5149. ASN1PERDecAlignment(dec);
  5150. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5151. return 0;
  5152. if (!y) {
  5153. ZeroMemory((val)->o + 1, 1);
  5154. } else {
  5155. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  5156. return 0;
  5157. if ((val)->o[1] & 0x80) {
  5158. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5159. return 0;
  5160. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5161. return 0;
  5162. if (!ASN1Dec_RegistrationConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  5163. return 0;
  5164. ASN1_CloseDecoder(dd);
  5165. ASN1Free(db);
  5166. }
  5167. if ((val)->o[1] & 0x40) {
  5168. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5169. return 0;
  5170. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 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. ASN1Free(db);
  5181. }
  5182. if ((val)->o[1] & 0x20) {
  5183. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5184. return 0;
  5185. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5186. return 0;
  5187. if (!ASN1Dec_RegistrationConfirm_tokens(dd, &(val)->tokens))
  5188. return 0;
  5189. ASN1_CloseDecoder(dd);
  5190. ASN1Free(db);
  5191. }
  5192. if ((val)->o[1] & 0x10) {
  5193. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5194. return 0;
  5195. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5196. return 0;
  5197. if (!ASN1Dec_RegistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5198. return 0;
  5199. ASN1_CloseDecoder(dd);
  5200. ASN1Free(db);
  5201. }
  5202. if ((val)->o[1] & 0x8) {
  5203. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5204. return 0;
  5205. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5206. return 0;
  5207. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5208. return 0;
  5209. ASN1_CloseDecoder(dd);
  5210. ASN1Free(db);
  5211. }
  5212. if ((val)->o[1] & 0x4) {
  5213. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5214. return 0;
  5215. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5216. return 0;
  5217. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  5218. return 0;
  5219. ASN1_CloseDecoder(dd);
  5220. ASN1Free(db);
  5221. }
  5222. if ((val)->o[1] & 0x2) {
  5223. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5224. return 0;
  5225. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5226. return 0;
  5227. if (!ASN1Dec_RegistrationConfirm_preGrantedARQ(dd, &(val)->preGrantedARQ))
  5228. return 0;
  5229. ASN1_CloseDecoder(dd);
  5230. ASN1Free(db);
  5231. }
  5232. for (i = 0; i < e; i++) {
  5233. if (!ASN1PERDecSkipFragmented(dec, 8))
  5234. return 0;
  5235. }
  5236. }
  5237. return 1;
  5238. }
  5239. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val)
  5240. {
  5241. if (val) {
  5242. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5243. if ((val)->o[0] & 0x80) {
  5244. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5245. }
  5246. ASN1Free_RegistrationConfirm_callSignalAddress(&(val)->callSignalAddress);
  5247. if ((val)->o[0] & 0x40) {
  5248. ASN1Free_RegistrationConfirm_terminalAlias(&(val)->terminalAlias);
  5249. }
  5250. if ((val)->o[0] & 0x20) {
  5251. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5252. }
  5253. ASN1char16string_free(&(val)->endpointIdentifier);
  5254. if ((val)->o[1] & 0x80) {
  5255. ASN1Free_RegistrationConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  5256. }
  5257. if ((val)->o[1] & 0x20) {
  5258. ASN1Free_RegistrationConfirm_tokens(&(val)->tokens);
  5259. }
  5260. if ((val)->o[1] & 0x10) {
  5261. ASN1Free_RegistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5262. }
  5263. if ((val)->o[1] & 0x8) {
  5264. ASN1Free_ICV(&(val)->integrityCheckValue);
  5265. }
  5266. }
  5267. }
  5268. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val)
  5269. {
  5270. ASN1uint32_t y;
  5271. ASN1encoding_t ee;
  5272. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5273. if (!ASN1PEREncBitVal(enc, 1, y))
  5274. return 0;
  5275. if (!ASN1PEREncBits(enc, 2, (val)->o))
  5276. return 0;
  5277. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5278. return 0;
  5279. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5280. return 0;
  5281. if ((val)->o[0] & 0x80) {
  5282. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5283. return 0;
  5284. }
  5285. if (!ASN1Enc_RegistrationRejectReason(enc, &(val)->rejectReason))
  5286. return 0;
  5287. if ((val)->o[0] & 0x40) {
  5288. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5289. return 0;
  5290. ASN1PEREncAlignment(enc);
  5291. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5292. return 0;
  5293. }
  5294. if (y) {
  5295. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5296. return 0;
  5297. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5298. return 0;
  5299. if ((val)->o[1] & 0x80) {
  5300. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5301. return 0;
  5302. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5303. return 0;
  5304. }
  5305. if ((val)->o[1] & 0x40) {
  5306. if (!ASN1Enc_RegistrationReject_tokens(ee, &(val)->tokens))
  5307. return 0;
  5308. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5309. return 0;
  5310. }
  5311. if ((val)->o[1] & 0x20) {
  5312. if (!ASN1Enc_RegistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5313. return 0;
  5314. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5315. return 0;
  5316. }
  5317. if ((val)->o[1] & 0x10) {
  5318. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5319. return 0;
  5320. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5321. return 0;
  5322. }
  5323. ASN1_CloseEncoder2(ee);
  5324. }
  5325. return 1;
  5326. }
  5327. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val)
  5328. {
  5329. ASN1uint32_t y;
  5330. ASN1decoding_t dd;
  5331. ASN1octet_t *db;
  5332. ASN1uint32_t ds;
  5333. ASN1uint32_t i;
  5334. ASN1uint32_t e;
  5335. if (!ASN1PERDecExtensionBit(dec, &y))
  5336. return 0;
  5337. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  5338. return 0;
  5339. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5340. return 0;
  5341. (val)->requestSeqNum += 1;
  5342. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5343. return 0;
  5344. if ((val)->o[0] & 0x80) {
  5345. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5346. return 0;
  5347. }
  5348. if (!ASN1Dec_RegistrationRejectReason(dec, &(val)->rejectReason))
  5349. return 0;
  5350. if ((val)->o[0] & 0x40) {
  5351. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5352. return 0;
  5353. ((val)->gatekeeperIdentifier).length += 1;
  5354. ASN1PERDecAlignment(dec);
  5355. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5356. return 0;
  5357. }
  5358. if (!y) {
  5359. ZeroMemory((val)->o + 1, 1);
  5360. } else {
  5361. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5362. return 0;
  5363. if ((val)->o[1] & 0x80) {
  5364. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5365. return 0;
  5366. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5367. return 0;
  5368. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5369. return 0;
  5370. ASN1_CloseDecoder(dd);
  5371. ASN1Free(db);
  5372. }
  5373. if ((val)->o[1] & 0x40) {
  5374. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5375. return 0;
  5376. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5377. return 0;
  5378. if (!ASN1Dec_RegistrationReject_tokens(dd, &(val)->tokens))
  5379. return 0;
  5380. ASN1_CloseDecoder(dd);
  5381. ASN1Free(db);
  5382. }
  5383. if ((val)->o[1] & 0x20) {
  5384. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5385. return 0;
  5386. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5387. return 0;
  5388. if (!ASN1Dec_RegistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5389. return 0;
  5390. ASN1_CloseDecoder(dd);
  5391. ASN1Free(db);
  5392. }
  5393. if ((val)->o[1] & 0x10) {
  5394. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5395. return 0;
  5396. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5397. return 0;
  5398. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5399. return 0;
  5400. ASN1_CloseDecoder(dd);
  5401. ASN1Free(db);
  5402. }
  5403. for (i = 0; i < e; i++) {
  5404. if (!ASN1PERDecSkipFragmented(dec, 8))
  5405. return 0;
  5406. }
  5407. }
  5408. return 1;
  5409. }
  5410. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val)
  5411. {
  5412. if (val) {
  5413. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5414. if ((val)->o[0] & 0x80) {
  5415. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5416. }
  5417. ASN1Free_RegistrationRejectReason(&(val)->rejectReason);
  5418. if ((val)->o[0] & 0x40) {
  5419. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5420. }
  5421. if ((val)->o[1] & 0x80) {
  5422. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5423. }
  5424. if ((val)->o[1] & 0x40) {
  5425. ASN1Free_RegistrationReject_tokens(&(val)->tokens);
  5426. }
  5427. if ((val)->o[1] & 0x20) {
  5428. ASN1Free_RegistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5429. }
  5430. if ((val)->o[1] & 0x10) {
  5431. ASN1Free_ICV(&(val)->integrityCheckValue);
  5432. }
  5433. }
  5434. }
  5435. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val)
  5436. {
  5437. ASN1uint32_t y;
  5438. ASN1encoding_t ee;
  5439. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  5440. if (!ASN1PEREncBitVal(enc, 1, y))
  5441. return 0;
  5442. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5443. return 0;
  5444. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5445. return 0;
  5446. if (!ASN1Enc_UnregistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  5447. return 0;
  5448. if ((val)->o[0] & 0x80) {
  5449. if (!ASN1Enc_UnregistrationRequest_endpointAlias(enc, &(val)->endpointAlias))
  5450. return 0;
  5451. }
  5452. if ((val)->o[0] & 0x40) {
  5453. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5454. return 0;
  5455. }
  5456. if ((val)->o[0] & 0x20) {
  5457. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5458. return 0;
  5459. ASN1PEREncAlignment(enc);
  5460. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5461. return 0;
  5462. }
  5463. if (y) {
  5464. if (!ASN1PEREncNormallySmallBits(enc, 6, (val)->o + 1))
  5465. return 0;
  5466. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5467. return 0;
  5468. if ((val)->o[1] & 0x80) {
  5469. if (!ASN1Enc_UnregistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  5470. return 0;
  5471. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5472. return 0;
  5473. }
  5474. if ((val)->o[1] & 0x40) {
  5475. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  5476. return 0;
  5477. ASN1PEREncAlignment(ee);
  5478. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5479. return 0;
  5480. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5481. return 0;
  5482. }
  5483. if ((val)->o[1] & 0x20) {
  5484. if (!ASN1Enc_UnregistrationRequest_tokens(ee, &(val)->tokens))
  5485. return 0;
  5486. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5487. return 0;
  5488. }
  5489. if ((val)->o[1] & 0x10) {
  5490. if (!ASN1Enc_UnregistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  5491. return 0;
  5492. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5493. return 0;
  5494. }
  5495. if ((val)->o[1] & 0x8) {
  5496. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5497. return 0;
  5498. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5499. return 0;
  5500. }
  5501. if ((val)->o[1] & 0x4) {
  5502. if (!ASN1Enc_UnregRequestReason(ee, &(val)->reason))
  5503. return 0;
  5504. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5505. return 0;
  5506. }
  5507. ASN1_CloseEncoder2(ee);
  5508. }
  5509. return 1;
  5510. }
  5511. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val)
  5512. {
  5513. ASN1uint32_t y;
  5514. ASN1decoding_t dd;
  5515. ASN1octet_t *db;
  5516. ASN1uint32_t ds;
  5517. ASN1uint32_t i;
  5518. ASN1uint32_t e;
  5519. if (!ASN1PERDecExtensionBit(dec, &y))
  5520. return 0;
  5521. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5522. return 0;
  5523. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5524. return 0;
  5525. (val)->requestSeqNum += 1;
  5526. if (!ASN1Dec_UnregistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  5527. return 0;
  5528. if ((val)->o[0] & 0x80) {
  5529. if (!ASN1Dec_UnregistrationRequest_endpointAlias(dec, &(val)->endpointAlias))
  5530. return 0;
  5531. }
  5532. if ((val)->o[0] & 0x40) {
  5533. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5534. return 0;
  5535. }
  5536. if ((val)->o[0] & 0x20) {
  5537. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5538. return 0;
  5539. ((val)->endpointIdentifier).length += 1;
  5540. ASN1PERDecAlignment(dec);
  5541. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5542. return 0;
  5543. }
  5544. if (!y) {
  5545. ZeroMemory((val)->o + 1, 1);
  5546. } else {
  5547. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  5548. return 0;
  5549. if ((val)->o[1] & 0x80) {
  5550. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5551. return 0;
  5552. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5553. return 0;
  5554. if (!ASN1Dec_UnregistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  5555. return 0;
  5556. ASN1_CloseDecoder(dd);
  5557. ASN1Free(db);
  5558. }
  5559. if ((val)->o[1] & 0x40) {
  5560. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5561. return 0;
  5562. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5563. return 0;
  5564. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  5565. return 0;
  5566. ((val)->gatekeeperIdentifier).length += 1;
  5567. ASN1PERDecAlignment(dd);
  5568. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5569. return 0;
  5570. ASN1_CloseDecoder(dd);
  5571. ASN1Free(db);
  5572. }
  5573. if ((val)->o[1] & 0x20) {
  5574. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5575. return 0;
  5576. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5577. return 0;
  5578. if (!ASN1Dec_UnregistrationRequest_tokens(dd, &(val)->tokens))
  5579. return 0;
  5580. ASN1_CloseDecoder(dd);
  5581. ASN1Free(db);
  5582. }
  5583. if ((val)->o[1] & 0x10) {
  5584. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5585. return 0;
  5586. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5587. return 0;
  5588. if (!ASN1Dec_UnregistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  5589. return 0;
  5590. ASN1_CloseDecoder(dd);
  5591. ASN1Free(db);
  5592. }
  5593. if ((val)->o[1] & 0x8) {
  5594. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5595. return 0;
  5596. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5597. return 0;
  5598. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5599. return 0;
  5600. ASN1_CloseDecoder(dd);
  5601. ASN1Free(db);
  5602. }
  5603. if ((val)->o[1] & 0x4) {
  5604. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5605. return 0;
  5606. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5607. return 0;
  5608. if (!ASN1Dec_UnregRequestReason(dd, &(val)->reason))
  5609. return 0;
  5610. ASN1_CloseDecoder(dd);
  5611. ASN1Free(db);
  5612. }
  5613. for (i = 0; i < e; i++) {
  5614. if (!ASN1PERDecSkipFragmented(dec, 8))
  5615. return 0;
  5616. }
  5617. }
  5618. return 1;
  5619. }
  5620. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val)
  5621. {
  5622. if (val) {
  5623. ASN1Free_UnregistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  5624. if ((val)->o[0] & 0x80) {
  5625. ASN1Free_UnregistrationRequest_endpointAlias(&(val)->endpointAlias);
  5626. }
  5627. if ((val)->o[0] & 0x40) {
  5628. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5629. }
  5630. if ((val)->o[0] & 0x20) {
  5631. ASN1char16string_free(&(val)->endpointIdentifier);
  5632. }
  5633. if ((val)->o[1] & 0x80) {
  5634. ASN1Free_UnregistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  5635. }
  5636. if ((val)->o[1] & 0x40) {
  5637. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5638. }
  5639. if ((val)->o[1] & 0x20) {
  5640. ASN1Free_UnregistrationRequest_tokens(&(val)->tokens);
  5641. }
  5642. if ((val)->o[1] & 0x10) {
  5643. ASN1Free_UnregistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  5644. }
  5645. if ((val)->o[1] & 0x8) {
  5646. ASN1Free_ICV(&(val)->integrityCheckValue);
  5647. }
  5648. }
  5649. }
  5650. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val)
  5651. {
  5652. ASN1uint32_t y;
  5653. ASN1encoding_t ee;
  5654. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  5655. if (!ASN1PEREncBitVal(enc, 1, y))
  5656. return 0;
  5657. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5658. return 0;
  5659. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5660. return 0;
  5661. if ((val)->o[0] & 0x80) {
  5662. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5663. return 0;
  5664. }
  5665. if (y) {
  5666. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  5667. return 0;
  5668. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5669. return 0;
  5670. if ((val)->o[1] & 0x80) {
  5671. if (!ASN1Enc_UnregistrationConfirm_tokens(ee, &(val)->tokens))
  5672. return 0;
  5673. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5674. return 0;
  5675. }
  5676. if ((val)->o[1] & 0x40) {
  5677. if (!ASN1Enc_UnregistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5678. return 0;
  5679. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5680. return 0;
  5681. }
  5682. if ((val)->o[1] & 0x20) {
  5683. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5684. return 0;
  5685. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5686. return 0;
  5687. }
  5688. ASN1_CloseEncoder2(ee);
  5689. }
  5690. return 1;
  5691. }
  5692. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val)
  5693. {
  5694. ASN1uint32_t y;
  5695. ASN1decoding_t dd;
  5696. ASN1octet_t *db;
  5697. ASN1uint32_t ds;
  5698. ASN1uint32_t i;
  5699. ASN1uint32_t e;
  5700. if (!ASN1PERDecExtensionBit(dec, &y))
  5701. return 0;
  5702. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5703. return 0;
  5704. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5705. return 0;
  5706. (val)->requestSeqNum += 1;
  5707. if ((val)->o[0] & 0x80) {
  5708. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5709. return 0;
  5710. }
  5711. if (!y) {
  5712. ZeroMemory((val)->o + 1, 1);
  5713. } else {
  5714. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  5715. return 0;
  5716. if ((val)->o[1] & 0x80) {
  5717. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5718. return 0;
  5719. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5720. return 0;
  5721. if (!ASN1Dec_UnregistrationConfirm_tokens(dd, &(val)->tokens))
  5722. return 0;
  5723. ASN1_CloseDecoder(dd);
  5724. ASN1Free(db);
  5725. }
  5726. if ((val)->o[1] & 0x40) {
  5727. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5728. return 0;
  5729. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5730. return 0;
  5731. if (!ASN1Dec_UnregistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5732. return 0;
  5733. ASN1_CloseDecoder(dd);
  5734. ASN1Free(db);
  5735. }
  5736. if ((val)->o[1] & 0x20) {
  5737. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5738. return 0;
  5739. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5740. return 0;
  5741. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5742. return 0;
  5743. ASN1_CloseDecoder(dd);
  5744. ASN1Free(db);
  5745. }
  5746. for (i = 0; i < e; i++) {
  5747. if (!ASN1PERDecSkipFragmented(dec, 8))
  5748. return 0;
  5749. }
  5750. }
  5751. return 1;
  5752. }
  5753. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val)
  5754. {
  5755. if (val) {
  5756. if ((val)->o[0] & 0x80) {
  5757. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5758. }
  5759. if ((val)->o[1] & 0x80) {
  5760. ASN1Free_UnregistrationConfirm_tokens(&(val)->tokens);
  5761. }
  5762. if ((val)->o[1] & 0x40) {
  5763. ASN1Free_UnregistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5764. }
  5765. if ((val)->o[1] & 0x20) {
  5766. ASN1Free_ICV(&(val)->integrityCheckValue);
  5767. }
  5768. }
  5769. }
  5770. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val)
  5771. {
  5772. ASN1uint32_t y;
  5773. ASN1encoding_t ee;
  5774. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5775. if (!ASN1PEREncBitVal(enc, 1, y))
  5776. return 0;
  5777. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5778. return 0;
  5779. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5780. return 0;
  5781. if (!ASN1Enc_UnregRejectReason(enc, &(val)->rejectReason))
  5782. return 0;
  5783. if ((val)->o[0] & 0x80) {
  5784. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5785. return 0;
  5786. }
  5787. if (y) {
  5788. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5789. return 0;
  5790. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5791. return 0;
  5792. if ((val)->o[1] & 0x80) {
  5793. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5794. return 0;
  5795. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5796. return 0;
  5797. }
  5798. if ((val)->o[1] & 0x40) {
  5799. if (!ASN1Enc_UnregistrationReject_tokens(ee, &(val)->tokens))
  5800. return 0;
  5801. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5802. return 0;
  5803. }
  5804. if ((val)->o[1] & 0x20) {
  5805. if (!ASN1Enc_UnregistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5806. return 0;
  5807. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5808. return 0;
  5809. }
  5810. if ((val)->o[1] & 0x10) {
  5811. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5812. return 0;
  5813. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5814. return 0;
  5815. }
  5816. ASN1_CloseEncoder2(ee);
  5817. }
  5818. return 1;
  5819. }
  5820. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val)
  5821. {
  5822. ASN1uint32_t y;
  5823. ASN1decoding_t dd;
  5824. ASN1octet_t *db;
  5825. ASN1uint32_t ds;
  5826. ASN1uint32_t i;
  5827. ASN1uint32_t e;
  5828. if (!ASN1PERDecExtensionBit(dec, &y))
  5829. return 0;
  5830. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5831. return 0;
  5832. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5833. return 0;
  5834. (val)->requestSeqNum += 1;
  5835. if (!ASN1Dec_UnregRejectReason(dec, &(val)->rejectReason))
  5836. return 0;
  5837. if ((val)->o[0] & 0x80) {
  5838. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5839. return 0;
  5840. }
  5841. if (!y) {
  5842. ZeroMemory((val)->o + 1, 1);
  5843. } else {
  5844. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5845. return 0;
  5846. if ((val)->o[1] & 0x80) {
  5847. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5848. return 0;
  5849. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5850. return 0;
  5851. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5852. return 0;
  5853. ASN1_CloseDecoder(dd);
  5854. ASN1Free(db);
  5855. }
  5856. if ((val)->o[1] & 0x40) {
  5857. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5858. return 0;
  5859. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5860. return 0;
  5861. if (!ASN1Dec_UnregistrationReject_tokens(dd, &(val)->tokens))
  5862. return 0;
  5863. ASN1_CloseDecoder(dd);
  5864. ASN1Free(db);
  5865. }
  5866. if ((val)->o[1] & 0x20) {
  5867. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5868. return 0;
  5869. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5870. return 0;
  5871. if (!ASN1Dec_UnregistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5872. return 0;
  5873. ASN1_CloseDecoder(dd);
  5874. ASN1Free(db);
  5875. }
  5876. if ((val)->o[1] & 0x10) {
  5877. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5878. return 0;
  5879. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5880. return 0;
  5881. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5882. return 0;
  5883. ASN1_CloseDecoder(dd);
  5884. ASN1Free(db);
  5885. }
  5886. for (i = 0; i < e; i++) {
  5887. if (!ASN1PERDecSkipFragmented(dec, 8))
  5888. return 0;
  5889. }
  5890. }
  5891. return 1;
  5892. }
  5893. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val)
  5894. {
  5895. if (val) {
  5896. if ((val)->o[0] & 0x80) {
  5897. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5898. }
  5899. if ((val)->o[1] & 0x80) {
  5900. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5901. }
  5902. if ((val)->o[1] & 0x40) {
  5903. ASN1Free_UnregistrationReject_tokens(&(val)->tokens);
  5904. }
  5905. if ((val)->o[1] & 0x20) {
  5906. ASN1Free_UnregistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5907. }
  5908. if ((val)->o[1] & 0x10) {
  5909. ASN1Free_ICV(&(val)->integrityCheckValue);
  5910. }
  5911. }
  5912. }
  5913. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val)
  5914. {
  5915. ASN1uint32_t y;
  5916. ASN1encoding_t ee;
  5917. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  5918. if (!ASN1PEREncBitVal(enc, 1, y))
  5919. return 0;
  5920. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5921. return 0;
  5922. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5923. return 0;
  5924. if (!ASN1Enc_AdmissionRejectReason(enc, &(val)->rejectReason))
  5925. return 0;
  5926. if ((val)->o[0] & 0x80) {
  5927. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5928. return 0;
  5929. }
  5930. if (y) {
  5931. if (!ASN1PEREncNormallySmallBits(enc, 5, (val)->o + 1))
  5932. return 0;
  5933. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5934. return 0;
  5935. if ((val)->o[1] & 0x80) {
  5936. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5937. return 0;
  5938. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5939. return 0;
  5940. }
  5941. if ((val)->o[1] & 0x40) {
  5942. if (!ASN1Enc_AdmissionReject_tokens(ee, &(val)->tokens))
  5943. return 0;
  5944. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5945. return 0;
  5946. }
  5947. if ((val)->o[1] & 0x20) {
  5948. if (!ASN1Enc_AdmissionReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5949. return 0;
  5950. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5951. return 0;
  5952. }
  5953. if ((val)->o[1] & 0x10) {
  5954. if (!ASN1Enc_AdmissionReject_callSignalAddress(ee, &(val)->callSignalAddress))
  5955. return 0;
  5956. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5957. return 0;
  5958. }
  5959. if ((val)->o[1] & 0x8) {
  5960. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5961. return 0;
  5962. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5963. return 0;
  5964. }
  5965. ASN1_CloseEncoder2(ee);
  5966. }
  5967. return 1;
  5968. }
  5969. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val)
  5970. {
  5971. ASN1uint32_t y;
  5972. ASN1decoding_t dd;
  5973. ASN1octet_t *db;
  5974. ASN1uint32_t ds;
  5975. ASN1uint32_t i;
  5976. ASN1uint32_t e;
  5977. if (!ASN1PERDecExtensionBit(dec, &y))
  5978. return 0;
  5979. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5980. return 0;
  5981. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5982. return 0;
  5983. (val)->requestSeqNum += 1;
  5984. if (!ASN1Dec_AdmissionRejectReason(dec, &(val)->rejectReason))
  5985. return 0;
  5986. if ((val)->o[0] & 0x80) {
  5987. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5988. return 0;
  5989. }
  5990. if (!y) {
  5991. ZeroMemory((val)->o + 1, 1);
  5992. } else {
  5993. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  5994. return 0;
  5995. if ((val)->o[1] & 0x80) {
  5996. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5997. return 0;
  5998. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5999. return 0;
  6000. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6001. return 0;
  6002. ASN1_CloseDecoder(dd);
  6003. ASN1Free(db);
  6004. }
  6005. if ((val)->o[1] & 0x40) {
  6006. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6007. return 0;
  6008. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6009. return 0;
  6010. if (!ASN1Dec_AdmissionReject_tokens(dd, &(val)->tokens))
  6011. return 0;
  6012. ASN1_CloseDecoder(dd);
  6013. ASN1Free(db);
  6014. }
  6015. if ((val)->o[1] & 0x20) {
  6016. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6017. return 0;
  6018. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6019. return 0;
  6020. if (!ASN1Dec_AdmissionReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6021. return 0;
  6022. ASN1_CloseDecoder(dd);
  6023. ASN1Free(db);
  6024. }
  6025. if ((val)->o[1] & 0x10) {
  6026. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6027. return 0;
  6028. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6029. return 0;
  6030. if (!ASN1Dec_AdmissionReject_callSignalAddress(dd, &(val)->callSignalAddress))
  6031. return 0;
  6032. ASN1_CloseDecoder(dd);
  6033. ASN1Free(db);
  6034. }
  6035. if ((val)->o[1] & 0x8) {
  6036. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6037. return 0;
  6038. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6039. return 0;
  6040. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6041. return 0;
  6042. ASN1_CloseDecoder(dd);
  6043. ASN1Free(db);
  6044. }
  6045. for (i = 0; i < e; i++) {
  6046. if (!ASN1PERDecSkipFragmented(dec, 8))
  6047. return 0;
  6048. }
  6049. }
  6050. return 1;
  6051. }
  6052. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val)
  6053. {
  6054. if (val) {
  6055. if ((val)->o[0] & 0x80) {
  6056. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6057. }
  6058. if ((val)->o[1] & 0x80) {
  6059. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6060. }
  6061. if ((val)->o[1] & 0x40) {
  6062. ASN1Free_AdmissionReject_tokens(&(val)->tokens);
  6063. }
  6064. if ((val)->o[1] & 0x20) {
  6065. ASN1Free_AdmissionReject_cryptoTokens(&(val)->cryptoTokens);
  6066. }
  6067. if ((val)->o[1] & 0x10) {
  6068. ASN1Free_AdmissionReject_callSignalAddress(&(val)->callSignalAddress);
  6069. }
  6070. if ((val)->o[1] & 0x8) {
  6071. ASN1Free_ICV(&(val)->integrityCheckValue);
  6072. }
  6073. }
  6074. }
  6075. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val)
  6076. {
  6077. ASN1octet_t o[2];
  6078. ASN1uint32_t y;
  6079. ASN1uint32_t l;
  6080. ASN1encoding_t ee;
  6081. CopyMemory(o, (val)->o, 2);
  6082. o[1] |= 0x80;
  6083. o[1] |= 0x4;
  6084. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6085. if (!ASN1PEREncBitVal(enc, 1, y))
  6086. return 0;
  6087. if (!ASN1PEREncBits(enc, 2, o))
  6088. return 0;
  6089. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6090. return 0;
  6091. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6092. return 0;
  6093. ASN1PEREncAlignment(enc);
  6094. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6095. return 0;
  6096. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6097. return 0;
  6098. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6099. return 0;
  6100. if (o[0] & 0x80) {
  6101. if (!ASN1Enc_CallType(enc, &(val)->callType))
  6102. return 0;
  6103. }
  6104. l = ASN1uint32_uoctets((val)->bandWidth);
  6105. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6106. return 0;
  6107. ASN1PEREncAlignment(enc);
  6108. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6109. return 0;
  6110. if (o[0] & 0x40) {
  6111. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6112. return 0;
  6113. }
  6114. if (y) {
  6115. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6116. return 0;
  6117. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6118. return 0;
  6119. if (o[1] & 0x80) {
  6120. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6121. return 0;
  6122. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6123. return 0;
  6124. }
  6125. if (o[1] & 0x40) {
  6126. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6127. return 0;
  6128. ASN1PEREncAlignment(ee);
  6129. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6130. return 0;
  6131. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6132. return 0;
  6133. }
  6134. if (o[1] & 0x20) {
  6135. if (!ASN1Enc_BandwidthRequest_tokens(ee, &(val)->tokens))
  6136. return 0;
  6137. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6138. return 0;
  6139. }
  6140. if (o[1] & 0x10) {
  6141. if (!ASN1Enc_BandwidthRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6142. return 0;
  6143. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6144. return 0;
  6145. }
  6146. if (o[1] & 0x8) {
  6147. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6148. return 0;
  6149. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6150. return 0;
  6151. }
  6152. if (o[1] & 0x4) {
  6153. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6154. return 0;
  6155. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6156. return 0;
  6157. }
  6158. ASN1_CloseEncoder2(ee);
  6159. }
  6160. return 1;
  6161. }
  6162. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val)
  6163. {
  6164. ASN1uint32_t y;
  6165. ASN1uint32_t l;
  6166. ASN1decoding_t dd;
  6167. ASN1octet_t *db;
  6168. ASN1uint32_t ds;
  6169. ASN1uint32_t i;
  6170. ASN1uint32_t e;
  6171. if (!ASN1PERDecExtensionBit(dec, &y))
  6172. return 0;
  6173. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  6174. return 0;
  6175. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6176. return 0;
  6177. (val)->requestSeqNum += 1;
  6178. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6179. return 0;
  6180. ((val)->endpointIdentifier).length += 1;
  6181. ASN1PERDecAlignment(dec);
  6182. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6183. return 0;
  6184. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6185. return 0;
  6186. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6187. return 0;
  6188. if ((val)->o[0] & 0x80) {
  6189. if (!ASN1Dec_CallType(dec, &(val)->callType))
  6190. return 0;
  6191. }
  6192. if (!ASN1PERDecU32Val(dec, 2, &l))
  6193. return 0;
  6194. l += 1;
  6195. ASN1PERDecAlignment(dec);
  6196. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6197. return 0;
  6198. if ((val)->o[0] & 0x40) {
  6199. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6200. return 0;
  6201. }
  6202. if (!y) {
  6203. ZeroMemory((val)->o + 1, 1);
  6204. } else {
  6205. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6206. return 0;
  6207. if ((val)->o[1] & 0x80) {
  6208. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6209. return 0;
  6210. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6211. return 0;
  6212. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6213. return 0;
  6214. ASN1_CloseDecoder(dd);
  6215. ASN1Free(db);
  6216. }
  6217. if ((val)->o[1] & 0x40) {
  6218. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6219. return 0;
  6220. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6221. return 0;
  6222. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6223. return 0;
  6224. ((val)->gatekeeperIdentifier).length += 1;
  6225. ASN1PERDecAlignment(dd);
  6226. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6227. return 0;
  6228. ASN1_CloseDecoder(dd);
  6229. ASN1Free(db);
  6230. }
  6231. if ((val)->o[1] & 0x20) {
  6232. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6233. return 0;
  6234. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6235. return 0;
  6236. if (!ASN1Dec_BandwidthRequest_tokens(dd, &(val)->tokens))
  6237. return 0;
  6238. ASN1_CloseDecoder(dd);
  6239. ASN1Free(db);
  6240. }
  6241. if ((val)->o[1] & 0x10) {
  6242. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6243. return 0;
  6244. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6245. return 0;
  6246. if (!ASN1Dec_BandwidthRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6247. return 0;
  6248. ASN1_CloseDecoder(dd);
  6249. ASN1Free(db);
  6250. }
  6251. if ((val)->o[1] & 0x8) {
  6252. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6253. return 0;
  6254. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6255. return 0;
  6256. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6257. return 0;
  6258. ASN1_CloseDecoder(dd);
  6259. ASN1Free(db);
  6260. }
  6261. if ((val)->o[1] & 0x4) {
  6262. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6263. return 0;
  6264. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6265. return 0;
  6266. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6267. return 0;
  6268. ASN1_CloseDecoder(dd);
  6269. ASN1Free(db);
  6270. }
  6271. for (i = 0; i < e; i++) {
  6272. if (!ASN1PERDecSkipFragmented(dec, 8))
  6273. return 0;
  6274. }
  6275. }
  6276. return 1;
  6277. }
  6278. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val)
  6279. {
  6280. if (val) {
  6281. ASN1char16string_free(&(val)->endpointIdentifier);
  6282. if ((val)->o[0] & 0x40) {
  6283. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6284. }
  6285. if ((val)->o[1] & 0x80) {
  6286. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6287. }
  6288. if ((val)->o[1] & 0x40) {
  6289. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6290. }
  6291. if ((val)->o[1] & 0x20) {
  6292. ASN1Free_BandwidthRequest_tokens(&(val)->tokens);
  6293. }
  6294. if ((val)->o[1] & 0x10) {
  6295. ASN1Free_BandwidthRequest_cryptoTokens(&(val)->cryptoTokens);
  6296. }
  6297. if ((val)->o[1] & 0x8) {
  6298. ASN1Free_ICV(&(val)->integrityCheckValue);
  6299. }
  6300. }
  6301. }
  6302. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val)
  6303. {
  6304. ASN1uint32_t y;
  6305. ASN1uint32_t l;
  6306. ASN1encoding_t ee;
  6307. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6308. if (!ASN1PEREncBitVal(enc, 1, y))
  6309. return 0;
  6310. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6311. return 0;
  6312. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6313. return 0;
  6314. l = ASN1uint32_uoctets((val)->bandWidth);
  6315. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6316. return 0;
  6317. ASN1PEREncAlignment(enc);
  6318. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6319. return 0;
  6320. if ((val)->o[0] & 0x80) {
  6321. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6322. return 0;
  6323. }
  6324. if (y) {
  6325. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6326. return 0;
  6327. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6328. return 0;
  6329. if ((val)->o[1] & 0x80) {
  6330. if (!ASN1Enc_BandwidthConfirm_tokens(ee, &(val)->tokens))
  6331. return 0;
  6332. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6333. return 0;
  6334. }
  6335. if ((val)->o[1] & 0x40) {
  6336. if (!ASN1Enc_BandwidthConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6337. return 0;
  6338. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6339. return 0;
  6340. }
  6341. if ((val)->o[1] & 0x20) {
  6342. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6343. return 0;
  6344. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6345. return 0;
  6346. }
  6347. ASN1_CloseEncoder2(ee);
  6348. }
  6349. return 1;
  6350. }
  6351. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val)
  6352. {
  6353. ASN1uint32_t y;
  6354. ASN1uint32_t l;
  6355. ASN1decoding_t dd;
  6356. ASN1octet_t *db;
  6357. ASN1uint32_t ds;
  6358. ASN1uint32_t i;
  6359. ASN1uint32_t e;
  6360. if (!ASN1PERDecExtensionBit(dec, &y))
  6361. return 0;
  6362. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6363. return 0;
  6364. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6365. return 0;
  6366. (val)->requestSeqNum += 1;
  6367. if (!ASN1PERDecU32Val(dec, 2, &l))
  6368. return 0;
  6369. l += 1;
  6370. ASN1PERDecAlignment(dec);
  6371. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6372. return 0;
  6373. if ((val)->o[0] & 0x80) {
  6374. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6375. return 0;
  6376. }
  6377. if (!y) {
  6378. ZeroMemory((val)->o + 1, 1);
  6379. } else {
  6380. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6381. return 0;
  6382. if ((val)->o[1] & 0x80) {
  6383. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6384. return 0;
  6385. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6386. return 0;
  6387. if (!ASN1Dec_BandwidthConfirm_tokens(dd, &(val)->tokens))
  6388. return 0;
  6389. ASN1_CloseDecoder(dd);
  6390. ASN1Free(db);
  6391. }
  6392. if ((val)->o[1] & 0x40) {
  6393. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6394. return 0;
  6395. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6396. return 0;
  6397. if (!ASN1Dec_BandwidthConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  6398. return 0;
  6399. ASN1_CloseDecoder(dd);
  6400. ASN1Free(db);
  6401. }
  6402. if ((val)->o[1] & 0x20) {
  6403. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6404. return 0;
  6405. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6406. return 0;
  6407. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6408. return 0;
  6409. ASN1_CloseDecoder(dd);
  6410. ASN1Free(db);
  6411. }
  6412. for (i = 0; i < e; i++) {
  6413. if (!ASN1PERDecSkipFragmented(dec, 8))
  6414. return 0;
  6415. }
  6416. }
  6417. return 1;
  6418. }
  6419. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val)
  6420. {
  6421. if (val) {
  6422. if ((val)->o[0] & 0x80) {
  6423. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6424. }
  6425. if ((val)->o[1] & 0x80) {
  6426. ASN1Free_BandwidthConfirm_tokens(&(val)->tokens);
  6427. }
  6428. if ((val)->o[1] & 0x40) {
  6429. ASN1Free_BandwidthConfirm_cryptoTokens(&(val)->cryptoTokens);
  6430. }
  6431. if ((val)->o[1] & 0x20) {
  6432. ASN1Free_ICV(&(val)->integrityCheckValue);
  6433. }
  6434. }
  6435. }
  6436. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val)
  6437. {
  6438. ASN1uint32_t y;
  6439. ASN1uint32_t l;
  6440. ASN1encoding_t ee;
  6441. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6442. if (!ASN1PEREncBitVal(enc, 1, y))
  6443. return 0;
  6444. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6445. return 0;
  6446. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6447. return 0;
  6448. if (!ASN1Enc_BandRejectReason(enc, &(val)->rejectReason))
  6449. return 0;
  6450. l = ASN1uint32_uoctets((val)->allowedBandWidth);
  6451. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6452. return 0;
  6453. ASN1PEREncAlignment(enc);
  6454. if (!ASN1PEREncBitVal(enc, l * 8, (val)->allowedBandWidth))
  6455. return 0;
  6456. if ((val)->o[0] & 0x80) {
  6457. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6458. return 0;
  6459. }
  6460. if (y) {
  6461. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6462. return 0;
  6463. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6464. return 0;
  6465. if ((val)->o[1] & 0x80) {
  6466. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6467. return 0;
  6468. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6469. return 0;
  6470. }
  6471. if ((val)->o[1] & 0x40) {
  6472. if (!ASN1Enc_BandwidthReject_tokens(ee, &(val)->tokens))
  6473. return 0;
  6474. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6475. return 0;
  6476. }
  6477. if ((val)->o[1] & 0x20) {
  6478. if (!ASN1Enc_BandwidthReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6479. return 0;
  6480. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6481. return 0;
  6482. }
  6483. if ((val)->o[1] & 0x10) {
  6484. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6485. return 0;
  6486. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6487. return 0;
  6488. }
  6489. ASN1_CloseEncoder2(ee);
  6490. }
  6491. return 1;
  6492. }
  6493. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val)
  6494. {
  6495. ASN1uint32_t y;
  6496. ASN1uint32_t l;
  6497. ASN1decoding_t dd;
  6498. ASN1octet_t *db;
  6499. ASN1uint32_t ds;
  6500. ASN1uint32_t i;
  6501. ASN1uint32_t e;
  6502. if (!ASN1PERDecExtensionBit(dec, &y))
  6503. return 0;
  6504. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6505. return 0;
  6506. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6507. return 0;
  6508. (val)->requestSeqNum += 1;
  6509. if (!ASN1Dec_BandRejectReason(dec, &(val)->rejectReason))
  6510. return 0;
  6511. if (!ASN1PERDecU32Val(dec, 2, &l))
  6512. return 0;
  6513. l += 1;
  6514. ASN1PERDecAlignment(dec);
  6515. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->allowedBandWidth))
  6516. return 0;
  6517. if ((val)->o[0] & 0x80) {
  6518. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6519. return 0;
  6520. }
  6521. if (!y) {
  6522. ZeroMemory((val)->o + 1, 1);
  6523. } else {
  6524. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6525. return 0;
  6526. if ((val)->o[1] & 0x80) {
  6527. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6528. return 0;
  6529. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6530. return 0;
  6531. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6532. return 0;
  6533. ASN1_CloseDecoder(dd);
  6534. ASN1Free(db);
  6535. }
  6536. if ((val)->o[1] & 0x40) {
  6537. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6538. return 0;
  6539. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6540. return 0;
  6541. if (!ASN1Dec_BandwidthReject_tokens(dd, &(val)->tokens))
  6542. return 0;
  6543. ASN1_CloseDecoder(dd);
  6544. ASN1Free(db);
  6545. }
  6546. if ((val)->o[1] & 0x20) {
  6547. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6548. return 0;
  6549. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6550. return 0;
  6551. if (!ASN1Dec_BandwidthReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6552. return 0;
  6553. ASN1_CloseDecoder(dd);
  6554. ASN1Free(db);
  6555. }
  6556. if ((val)->o[1] & 0x10) {
  6557. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6558. return 0;
  6559. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6560. return 0;
  6561. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6562. return 0;
  6563. ASN1_CloseDecoder(dd);
  6564. ASN1Free(db);
  6565. }
  6566. for (i = 0; i < e; i++) {
  6567. if (!ASN1PERDecSkipFragmented(dec, 8))
  6568. return 0;
  6569. }
  6570. }
  6571. return 1;
  6572. }
  6573. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val)
  6574. {
  6575. if (val) {
  6576. if ((val)->o[0] & 0x80) {
  6577. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6578. }
  6579. if ((val)->o[1] & 0x80) {
  6580. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6581. }
  6582. if ((val)->o[1] & 0x40) {
  6583. ASN1Free_BandwidthReject_tokens(&(val)->tokens);
  6584. }
  6585. if ((val)->o[1] & 0x20) {
  6586. ASN1Free_BandwidthReject_cryptoTokens(&(val)->cryptoTokens);
  6587. }
  6588. if ((val)->o[1] & 0x10) {
  6589. ASN1Free_ICV(&(val)->integrityCheckValue);
  6590. }
  6591. }
  6592. }
  6593. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val)
  6594. {
  6595. ASN1uint32_t y;
  6596. ASN1encoding_t ee;
  6597. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6598. if (!ASN1PEREncBitVal(enc, 1, y))
  6599. return 0;
  6600. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6601. return 0;
  6602. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6603. return 0;
  6604. if (!ASN1Enc_LocationRejectReason(enc, &(val)->rejectReason))
  6605. return 0;
  6606. if ((val)->o[0] & 0x80) {
  6607. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6608. return 0;
  6609. }
  6610. if (y) {
  6611. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6612. return 0;
  6613. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6614. return 0;
  6615. if ((val)->o[1] & 0x80) {
  6616. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6617. return 0;
  6618. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6619. return 0;
  6620. }
  6621. if ((val)->o[1] & 0x40) {
  6622. if (!ASN1Enc_LocationReject_tokens(ee, &(val)->tokens))
  6623. return 0;
  6624. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6625. return 0;
  6626. }
  6627. if ((val)->o[1] & 0x20) {
  6628. if (!ASN1Enc_LocationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6629. return 0;
  6630. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6631. return 0;
  6632. }
  6633. if ((val)->o[1] & 0x10) {
  6634. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6635. return 0;
  6636. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6637. return 0;
  6638. }
  6639. ASN1_CloseEncoder2(ee);
  6640. }
  6641. return 1;
  6642. }
  6643. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val)
  6644. {
  6645. ASN1uint32_t y;
  6646. ASN1decoding_t dd;
  6647. ASN1octet_t *db;
  6648. ASN1uint32_t ds;
  6649. ASN1uint32_t i;
  6650. ASN1uint32_t e;
  6651. if (!ASN1PERDecExtensionBit(dec, &y))
  6652. return 0;
  6653. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6654. return 0;
  6655. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6656. return 0;
  6657. (val)->requestSeqNum += 1;
  6658. if (!ASN1Dec_LocationRejectReason(dec, &(val)->rejectReason))
  6659. return 0;
  6660. if ((val)->o[0] & 0x80) {
  6661. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6662. return 0;
  6663. }
  6664. if (!y) {
  6665. ZeroMemory((val)->o + 1, 1);
  6666. } else {
  6667. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6668. return 0;
  6669. if ((val)->o[1] & 0x80) {
  6670. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6671. return 0;
  6672. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6673. return 0;
  6674. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6675. return 0;
  6676. ASN1_CloseDecoder(dd);
  6677. ASN1Free(db);
  6678. }
  6679. if ((val)->o[1] & 0x40) {
  6680. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6681. return 0;
  6682. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6683. return 0;
  6684. if (!ASN1Dec_LocationReject_tokens(dd, &(val)->tokens))
  6685. return 0;
  6686. ASN1_CloseDecoder(dd);
  6687. ASN1Free(db);
  6688. }
  6689. if ((val)->o[1] & 0x20) {
  6690. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6691. return 0;
  6692. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6693. return 0;
  6694. if (!ASN1Dec_LocationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6695. return 0;
  6696. ASN1_CloseDecoder(dd);
  6697. ASN1Free(db);
  6698. }
  6699. if ((val)->o[1] & 0x10) {
  6700. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6701. return 0;
  6702. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6703. return 0;
  6704. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6705. return 0;
  6706. ASN1_CloseDecoder(dd);
  6707. ASN1Free(db);
  6708. }
  6709. for (i = 0; i < e; i++) {
  6710. if (!ASN1PERDecSkipFragmented(dec, 8))
  6711. return 0;
  6712. }
  6713. }
  6714. return 1;
  6715. }
  6716. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val)
  6717. {
  6718. if (val) {
  6719. if ((val)->o[0] & 0x80) {
  6720. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6721. }
  6722. if ((val)->o[1] & 0x80) {
  6723. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6724. }
  6725. if ((val)->o[1] & 0x40) {
  6726. ASN1Free_LocationReject_tokens(&(val)->tokens);
  6727. }
  6728. if ((val)->o[1] & 0x20) {
  6729. ASN1Free_LocationReject_cryptoTokens(&(val)->cryptoTokens);
  6730. }
  6731. if ((val)->o[1] & 0x10) {
  6732. ASN1Free_ICV(&(val)->integrityCheckValue);
  6733. }
  6734. }
  6735. }
  6736. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val)
  6737. {
  6738. ASN1octet_t o[2];
  6739. ASN1uint32_t y;
  6740. ASN1encoding_t ee;
  6741. CopyMemory(o, (val)->o, 2);
  6742. o[1] |= 0x80;
  6743. o[1] |= 0x4;
  6744. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6745. if (!ASN1PEREncBitVal(enc, 1, y))
  6746. return 0;
  6747. if (!ASN1PEREncBits(enc, 1, o))
  6748. return 0;
  6749. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6750. return 0;
  6751. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6752. return 0;
  6753. ASN1PEREncAlignment(enc);
  6754. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6755. return 0;
  6756. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6757. return 0;
  6758. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6759. return 0;
  6760. if (!ASN1Enc_DisengageReason(enc, &(val)->disengageReason))
  6761. return 0;
  6762. if (o[0] & 0x80) {
  6763. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6764. return 0;
  6765. }
  6766. if (y) {
  6767. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6768. return 0;
  6769. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6770. return 0;
  6771. if (o[1] & 0x80) {
  6772. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6773. return 0;
  6774. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6775. return 0;
  6776. }
  6777. if (o[1] & 0x40) {
  6778. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6779. return 0;
  6780. ASN1PEREncAlignment(ee);
  6781. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6782. return 0;
  6783. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6784. return 0;
  6785. }
  6786. if (o[1] & 0x20) {
  6787. if (!ASN1Enc_DisengageRequest_tokens(ee, &(val)->tokens))
  6788. return 0;
  6789. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6790. return 0;
  6791. }
  6792. if (o[1] & 0x10) {
  6793. if (!ASN1Enc_DisengageRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6794. return 0;
  6795. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6796. return 0;
  6797. }
  6798. if (o[1] & 0x8) {
  6799. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6800. return 0;
  6801. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6802. return 0;
  6803. }
  6804. if (o[1] & 0x4) {
  6805. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6806. return 0;
  6807. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6808. return 0;
  6809. }
  6810. ASN1_CloseEncoder2(ee);
  6811. }
  6812. return 1;
  6813. }
  6814. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val)
  6815. {
  6816. ASN1uint32_t y;
  6817. ASN1decoding_t dd;
  6818. ASN1octet_t *db;
  6819. ASN1uint32_t ds;
  6820. ASN1uint32_t i;
  6821. ASN1uint32_t e;
  6822. if (!ASN1PERDecExtensionBit(dec, &y))
  6823. return 0;
  6824. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6825. return 0;
  6826. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6827. return 0;
  6828. (val)->requestSeqNum += 1;
  6829. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6830. return 0;
  6831. ((val)->endpointIdentifier).length += 1;
  6832. ASN1PERDecAlignment(dec);
  6833. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6834. return 0;
  6835. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6836. return 0;
  6837. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6838. return 0;
  6839. if (!ASN1Dec_DisengageReason(dec, &(val)->disengageReason))
  6840. return 0;
  6841. if ((val)->o[0] & 0x80) {
  6842. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6843. return 0;
  6844. }
  6845. if (!y) {
  6846. ZeroMemory((val)->o + 1, 1);
  6847. } else {
  6848. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6849. return 0;
  6850. if ((val)->o[1] & 0x80) {
  6851. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6852. return 0;
  6853. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6854. return 0;
  6855. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6856. return 0;
  6857. ASN1_CloseDecoder(dd);
  6858. ASN1Free(db);
  6859. }
  6860. if ((val)->o[1] & 0x40) {
  6861. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6862. return 0;
  6863. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6864. return 0;
  6865. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6866. return 0;
  6867. ((val)->gatekeeperIdentifier).length += 1;
  6868. ASN1PERDecAlignment(dd);
  6869. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6870. return 0;
  6871. ASN1_CloseDecoder(dd);
  6872. ASN1Free(db);
  6873. }
  6874. if ((val)->o[1] & 0x20) {
  6875. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6876. return 0;
  6877. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6878. return 0;
  6879. if (!ASN1Dec_DisengageRequest_tokens(dd, &(val)->tokens))
  6880. return 0;
  6881. ASN1_CloseDecoder(dd);
  6882. ASN1Free(db);
  6883. }
  6884. if ((val)->o[1] & 0x10) {
  6885. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6886. return 0;
  6887. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6888. return 0;
  6889. if (!ASN1Dec_DisengageRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6890. return 0;
  6891. ASN1_CloseDecoder(dd);
  6892. ASN1Free(db);
  6893. }
  6894. if ((val)->o[1] & 0x8) {
  6895. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6896. return 0;
  6897. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6898. return 0;
  6899. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6900. return 0;
  6901. ASN1_CloseDecoder(dd);
  6902. ASN1Free(db);
  6903. }
  6904. if ((val)->o[1] & 0x4) {
  6905. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6906. return 0;
  6907. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6908. return 0;
  6909. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6910. return 0;
  6911. ASN1_CloseDecoder(dd);
  6912. ASN1Free(db);
  6913. }
  6914. for (i = 0; i < e; i++) {
  6915. if (!ASN1PERDecSkipFragmented(dec, 8))
  6916. return 0;
  6917. }
  6918. }
  6919. return 1;
  6920. }
  6921. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val)
  6922. {
  6923. if (val) {
  6924. ASN1char16string_free(&(val)->endpointIdentifier);
  6925. if ((val)->o[0] & 0x80) {
  6926. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6927. }
  6928. if ((val)->o[1] & 0x80) {
  6929. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6930. }
  6931. if ((val)->o[1] & 0x40) {
  6932. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6933. }
  6934. if ((val)->o[1] & 0x20) {
  6935. ASN1Free_DisengageRequest_tokens(&(val)->tokens);
  6936. }
  6937. if ((val)->o[1] & 0x10) {
  6938. ASN1Free_DisengageRequest_cryptoTokens(&(val)->cryptoTokens);
  6939. }
  6940. if ((val)->o[1] & 0x8) {
  6941. ASN1Free_ICV(&(val)->integrityCheckValue);
  6942. }
  6943. }
  6944. }
  6945. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val)
  6946. {
  6947. ASN1uint32_t y;
  6948. ASN1encoding_t ee;
  6949. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6950. if (!ASN1PEREncBitVal(enc, 1, y))
  6951. return 0;
  6952. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6953. return 0;
  6954. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6955. return 0;
  6956. if ((val)->o[0] & 0x80) {
  6957. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6958. return 0;
  6959. }
  6960. if (y) {
  6961. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6962. return 0;
  6963. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6964. return 0;
  6965. if ((val)->o[1] & 0x80) {
  6966. if (!ASN1Enc_DisengageConfirm_tokens(ee, &(val)->tokens))
  6967. return 0;
  6968. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6969. return 0;
  6970. }
  6971. if ((val)->o[1] & 0x40) {
  6972. if (!ASN1Enc_DisengageConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6973. return 0;
  6974. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6975. return 0;
  6976. }
  6977. if ((val)->o[1] & 0x20) {
  6978. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6979. return 0;
  6980. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6981. return 0;
  6982. }
  6983. ASN1_CloseEncoder2(ee);
  6984. }
  6985. return 1;
  6986. }
  6987. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val)
  6988. {
  6989. ASN1uint32_t y;
  6990. ASN1decoding_t dd;
  6991. ASN1octet_t *db;
  6992. ASN1uint32_t ds;
  6993. ASN1uint32_t i;
  6994. ASN1uint32_t e;
  6995. if (!ASN1PERDecExtensionBit(dec, &y))
  6996. return 0;
  6997. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6998. return 0;
  6999. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7000. return 0;
  7001. (val)->requestSeqNum += 1;
  7002. if ((val)->o[0] & 0x80) {
  7003. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7004. return 0;
  7005. }
  7006. if (!y) {
  7007. ZeroMemory((val)->o + 1, 1);
  7008. } else {
  7009. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  7010. return 0;
  7011. if ((val)->o[1] & 0x80) {
  7012. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7013. return 0;
  7014. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7015. return 0;
  7016. if (!ASN1Dec_DisengageConfirm_tokens(dd, &(val)->tokens))
  7017. return 0;
  7018. ASN1_CloseDecoder(dd);
  7019. ASN1Free(db);
  7020. }
  7021. if ((val)->o[1] & 0x40) {
  7022. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7023. return 0;
  7024. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7025. return 0;
  7026. if (!ASN1Dec_DisengageConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  7027. return 0;
  7028. ASN1_CloseDecoder(dd);
  7029. ASN1Free(db);
  7030. }
  7031. if ((val)->o[1] & 0x20) {
  7032. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7033. return 0;
  7034. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7035. return 0;
  7036. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7037. return 0;
  7038. ASN1_CloseDecoder(dd);
  7039. ASN1Free(db);
  7040. }
  7041. for (i = 0; i < e; i++) {
  7042. if (!ASN1PERDecSkipFragmented(dec, 8))
  7043. return 0;
  7044. }
  7045. }
  7046. return 1;
  7047. }
  7048. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val)
  7049. {
  7050. if (val) {
  7051. if ((val)->o[0] & 0x80) {
  7052. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7053. }
  7054. if ((val)->o[1] & 0x80) {
  7055. ASN1Free_DisengageConfirm_tokens(&(val)->tokens);
  7056. }
  7057. if ((val)->o[1] & 0x40) {
  7058. ASN1Free_DisengageConfirm_cryptoTokens(&(val)->cryptoTokens);
  7059. }
  7060. if ((val)->o[1] & 0x20) {
  7061. ASN1Free_ICV(&(val)->integrityCheckValue);
  7062. }
  7063. }
  7064. }
  7065. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val)
  7066. {
  7067. ASN1uint32_t y;
  7068. ASN1encoding_t ee;
  7069. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  7070. if (!ASN1PEREncBitVal(enc, 1, y))
  7071. return 0;
  7072. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7073. return 0;
  7074. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7075. return 0;
  7076. if (!ASN1Enc_DisengageRejectReason(enc, &(val)->rejectReason))
  7077. return 0;
  7078. if ((val)->o[0] & 0x80) {
  7079. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7080. return 0;
  7081. }
  7082. if (y) {
  7083. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  7084. return 0;
  7085. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7086. return 0;
  7087. if ((val)->o[1] & 0x80) {
  7088. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  7089. return 0;
  7090. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7091. return 0;
  7092. }
  7093. if ((val)->o[1] & 0x40) {
  7094. if (!ASN1Enc_DisengageReject_tokens(ee, &(val)->tokens))
  7095. return 0;
  7096. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7097. return 0;
  7098. }
  7099. if ((val)->o[1] & 0x20) {
  7100. if (!ASN1Enc_DisengageReject_cryptoTokens(ee, &(val)->cryptoTokens))
  7101. return 0;
  7102. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7103. return 0;
  7104. }
  7105. if ((val)->o[1] & 0x10) {
  7106. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7107. return 0;
  7108. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7109. return 0;
  7110. }
  7111. ASN1_CloseEncoder2(ee);
  7112. }
  7113. return 1;
  7114. }
  7115. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val)
  7116. {
  7117. ASN1uint32_t y;
  7118. ASN1decoding_t dd;
  7119. ASN1octet_t *db;
  7120. ASN1uint32_t ds;
  7121. ASN1uint32_t i;
  7122. ASN1uint32_t e;
  7123. if (!ASN1PERDecExtensionBit(dec, &y))
  7124. return 0;
  7125. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7126. return 0;
  7127. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7128. return 0;
  7129. (val)->requestSeqNum += 1;
  7130. if (!ASN1Dec_DisengageRejectReason(dec, &(val)->rejectReason))
  7131. return 0;
  7132. if ((val)->o[0] & 0x80) {
  7133. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7134. return 0;
  7135. }
  7136. if (!y) {
  7137. ZeroMemory((val)->o + 1, 1);
  7138. } else {
  7139. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  7140. return 0;
  7141. if ((val)->o[1] & 0x80) {
  7142. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7143. return 0;
  7144. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7145. return 0;
  7146. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  7147. return 0;
  7148. ASN1_CloseDecoder(dd);
  7149. ASN1Free(db);
  7150. }
  7151. if ((val)->o[1] & 0x40) {
  7152. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7153. return 0;
  7154. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7155. return 0;
  7156. if (!ASN1Dec_DisengageReject_tokens(dd, &(val)->tokens))
  7157. return 0;
  7158. ASN1_CloseDecoder(dd);
  7159. ASN1Free(db);
  7160. }
  7161. if ((val)->o[1] & 0x20) {
  7162. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7163. return 0;
  7164. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7165. return 0;
  7166. if (!ASN1Dec_DisengageReject_cryptoTokens(dd, &(val)->cryptoTokens))
  7167. return 0;
  7168. ASN1_CloseDecoder(dd);
  7169. ASN1Free(db);
  7170. }
  7171. if ((val)->o[1] & 0x10) {
  7172. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7173. return 0;
  7174. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7175. return 0;
  7176. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7177. return 0;
  7178. ASN1_CloseDecoder(dd);
  7179. ASN1Free(db);
  7180. }
  7181. for (i = 0; i < e; i++) {
  7182. if (!ASN1PERDecSkipFragmented(dec, 8))
  7183. return 0;
  7184. }
  7185. }
  7186. return 1;
  7187. }
  7188. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val)
  7189. {
  7190. if (val) {
  7191. if ((val)->o[0] & 0x80) {
  7192. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7193. }
  7194. if ((val)->o[1] & 0x80) {
  7195. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7196. }
  7197. if ((val)->o[1] & 0x40) {
  7198. ASN1Free_DisengageReject_tokens(&(val)->tokens);
  7199. }
  7200. if ((val)->o[1] & 0x20) {
  7201. ASN1Free_DisengageReject_cryptoTokens(&(val)->cryptoTokens);
  7202. }
  7203. if ((val)->o[1] & 0x10) {
  7204. ASN1Free_ICV(&(val)->integrityCheckValue);
  7205. }
  7206. }
  7207. }
  7208. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val)
  7209. {
  7210. if (!ASN1PEREncExtensionBitClear(enc))
  7211. return 0;
  7212. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7213. return 0;
  7214. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7215. return 0;
  7216. if ((val)->o[0] & 0x80) {
  7217. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7218. return 0;
  7219. }
  7220. if ((val)->o[0] & 0x40) {
  7221. if (!ASN1Enc_InfoRequestAck_tokens(enc, &(val)->tokens))
  7222. return 0;
  7223. }
  7224. if ((val)->o[0] & 0x20) {
  7225. if (!ASN1Enc_InfoRequestAck_cryptoTokens(enc, &(val)->cryptoTokens))
  7226. return 0;
  7227. }
  7228. if ((val)->o[0] & 0x10) {
  7229. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7230. return 0;
  7231. }
  7232. return 1;
  7233. }
  7234. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val)
  7235. {
  7236. ASN1uint32_t y;
  7237. if (!ASN1PERDecExtensionBit(dec, &y))
  7238. return 0;
  7239. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7240. return 0;
  7241. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7242. return 0;
  7243. (val)->requestSeqNum += 1;
  7244. if ((val)->o[0] & 0x80) {
  7245. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7246. return 0;
  7247. }
  7248. if ((val)->o[0] & 0x40) {
  7249. if (!ASN1Dec_InfoRequestAck_tokens(dec, &(val)->tokens))
  7250. return 0;
  7251. }
  7252. if ((val)->o[0] & 0x20) {
  7253. if (!ASN1Dec_InfoRequestAck_cryptoTokens(dec, &(val)->cryptoTokens))
  7254. return 0;
  7255. }
  7256. if ((val)->o[0] & 0x10) {
  7257. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7258. return 0;
  7259. }
  7260. if (y) {
  7261. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7262. return 0;
  7263. }
  7264. return 1;
  7265. }
  7266. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val)
  7267. {
  7268. if (val) {
  7269. if ((val)->o[0] & 0x80) {
  7270. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7271. }
  7272. if ((val)->o[0] & 0x40) {
  7273. ASN1Free_InfoRequestAck_tokens(&(val)->tokens);
  7274. }
  7275. if ((val)->o[0] & 0x20) {
  7276. ASN1Free_InfoRequestAck_cryptoTokens(&(val)->cryptoTokens);
  7277. }
  7278. if ((val)->o[0] & 0x10) {
  7279. ASN1Free_ICV(&(val)->integrityCheckValue);
  7280. }
  7281. }
  7282. }
  7283. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val)
  7284. {
  7285. if (!ASN1PEREncExtensionBitClear(enc))
  7286. return 0;
  7287. if (!ASN1PEREncBits(enc, 5, (val)->o))
  7288. return 0;
  7289. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7290. return 0;
  7291. if ((val)->o[0] & 0x80) {
  7292. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7293. return 0;
  7294. }
  7295. if (!ASN1Enc_InfoRequestNakReason(enc, &(val)->nakReason))
  7296. return 0;
  7297. if ((val)->o[0] & 0x40) {
  7298. if (!ASN1Enc_AltGKInfo(enc, &(val)->altGKInfo))
  7299. return 0;
  7300. }
  7301. if ((val)->o[0] & 0x20) {
  7302. if (!ASN1Enc_InfoRequestNak_tokens(enc, &(val)->tokens))
  7303. return 0;
  7304. }
  7305. if ((val)->o[0] & 0x10) {
  7306. if (!ASN1Enc_InfoRequestNak_cryptoTokens(enc, &(val)->cryptoTokens))
  7307. return 0;
  7308. }
  7309. if ((val)->o[0] & 0x8) {
  7310. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7311. return 0;
  7312. }
  7313. return 1;
  7314. }
  7315. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val)
  7316. {
  7317. ASN1uint32_t y;
  7318. if (!ASN1PERDecExtensionBit(dec, &y))
  7319. return 0;
  7320. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7321. return 0;
  7322. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7323. return 0;
  7324. (val)->requestSeqNum += 1;
  7325. if ((val)->o[0] & 0x80) {
  7326. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7327. return 0;
  7328. }
  7329. if (!ASN1Dec_InfoRequestNakReason(dec, &(val)->nakReason))
  7330. return 0;
  7331. if ((val)->o[0] & 0x40) {
  7332. if (!ASN1Dec_AltGKInfo(dec, &(val)->altGKInfo))
  7333. return 0;
  7334. }
  7335. if ((val)->o[0] & 0x20) {
  7336. if (!ASN1Dec_InfoRequestNak_tokens(dec, &(val)->tokens))
  7337. return 0;
  7338. }
  7339. if ((val)->o[0] & 0x10) {
  7340. if (!ASN1Dec_InfoRequestNak_cryptoTokens(dec, &(val)->cryptoTokens))
  7341. return 0;
  7342. }
  7343. if ((val)->o[0] & 0x8) {
  7344. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7345. return 0;
  7346. }
  7347. if (y) {
  7348. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7349. return 0;
  7350. }
  7351. return 1;
  7352. }
  7353. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val)
  7354. {
  7355. if (val) {
  7356. if ((val)->o[0] & 0x80) {
  7357. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7358. }
  7359. if ((val)->o[0] & 0x40) {
  7360. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7361. }
  7362. if ((val)->o[0] & 0x20) {
  7363. ASN1Free_InfoRequestNak_tokens(&(val)->tokens);
  7364. }
  7365. if ((val)->o[0] & 0x10) {
  7366. ASN1Free_InfoRequestNak_cryptoTokens(&(val)->cryptoTokens);
  7367. }
  7368. if ((val)->o[0] & 0x8) {
  7369. ASN1Free_ICV(&(val)->integrityCheckValue);
  7370. }
  7371. }
  7372. }
  7373. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val)
  7374. {
  7375. ASN1uint32_t y;
  7376. ASN1encoding_t ee;
  7377. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  7378. if (!ASN1PEREncBitVal(enc, 1, y))
  7379. return 0;
  7380. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7381. return 0;
  7382. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7383. return 0;
  7384. if (y) {
  7385. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  7386. return 0;
  7387. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7388. return 0;
  7389. if ((val)->o[0] & 0x80) {
  7390. if (!ASN1Enc_H225NonStandardMessage_tokens(ee, &(val)->tokens))
  7391. return 0;
  7392. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7393. return 0;
  7394. }
  7395. if ((val)->o[0] & 0x40) {
  7396. if (!ASN1Enc_H225NonStandardMessage_cryptoTokens(ee, &(val)->cryptoTokens))
  7397. return 0;
  7398. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7399. return 0;
  7400. }
  7401. if ((val)->o[0] & 0x20) {
  7402. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7403. return 0;
  7404. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7405. return 0;
  7406. }
  7407. ASN1_CloseEncoder2(ee);
  7408. }
  7409. return 1;
  7410. }
  7411. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val)
  7412. {
  7413. ASN1uint32_t y;
  7414. ASN1decoding_t dd;
  7415. ASN1octet_t *db;
  7416. ASN1uint32_t ds;
  7417. ASN1uint32_t i;
  7418. ASN1uint32_t e;
  7419. if (!ASN1PERDecExtensionBit(dec, &y))
  7420. return 0;
  7421. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7422. return 0;
  7423. (val)->requestSeqNum += 1;
  7424. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7425. return 0;
  7426. if (!y) {
  7427. ZeroMemory((val)->o + 0, 1);
  7428. } else {
  7429. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  7430. return 0;
  7431. if ((val)->o[0] & 0x80) {
  7432. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7433. return 0;
  7434. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7435. return 0;
  7436. if (!ASN1Dec_H225NonStandardMessage_tokens(dd, &(val)->tokens))
  7437. return 0;
  7438. ASN1_CloseDecoder(dd);
  7439. ASN1Free(db);
  7440. }
  7441. if ((val)->o[0] & 0x40) {
  7442. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7443. return 0;
  7444. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7445. return 0;
  7446. if (!ASN1Dec_H225NonStandardMessage_cryptoTokens(dd, &(val)->cryptoTokens))
  7447. return 0;
  7448. ASN1_CloseDecoder(dd);
  7449. ASN1Free(db);
  7450. }
  7451. if ((val)->o[0] & 0x20) {
  7452. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7453. return 0;
  7454. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7455. return 0;
  7456. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7457. return 0;
  7458. ASN1_CloseDecoder(dd);
  7459. ASN1Free(db);
  7460. }
  7461. for (i = 0; i < e; i++) {
  7462. if (!ASN1PERDecSkipFragmented(dec, 8))
  7463. return 0;
  7464. }
  7465. }
  7466. return 1;
  7467. }
  7468. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val)
  7469. {
  7470. if (val) {
  7471. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7472. if ((val)->o[0] & 0x80) {
  7473. ASN1Free_H225NonStandardMessage_tokens(&(val)->tokens);
  7474. }
  7475. if ((val)->o[0] & 0x40) {
  7476. ASN1Free_H225NonStandardMessage_cryptoTokens(&(val)->cryptoTokens);
  7477. }
  7478. if ((val)->o[0] & 0x20) {
  7479. ASN1Free_ICV(&(val)->integrityCheckValue);
  7480. }
  7481. }
  7482. }
  7483. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val)
  7484. {
  7485. if (!ASN1PEREncExtensionBitClear(enc))
  7486. return 0;
  7487. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7488. return 0;
  7489. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7490. return 0;
  7491. if ((val)->o[0] & 0x80) {
  7492. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7493. return 0;
  7494. }
  7495. if ((val)->o[0] & 0x40) {
  7496. if (!ASN1Enc_RequestInProgress_tokens(enc, &(val)->tokens))
  7497. return 0;
  7498. }
  7499. if ((val)->o[0] & 0x20) {
  7500. if (!ASN1Enc_RequestInProgress_cryptoTokens(enc, &(val)->cryptoTokens))
  7501. return 0;
  7502. }
  7503. if ((val)->o[0] & 0x10) {
  7504. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7505. return 0;
  7506. }
  7507. if (!ASN1PEREncUnsignedShort(enc, (val)->delay - 1))
  7508. return 0;
  7509. return 1;
  7510. }
  7511. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val)
  7512. {
  7513. ASN1uint32_t y;
  7514. if (!ASN1PERDecExtensionBit(dec, &y))
  7515. return 0;
  7516. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7517. return 0;
  7518. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7519. return 0;
  7520. (val)->requestSeqNum += 1;
  7521. if ((val)->o[0] & 0x80) {
  7522. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7523. return 0;
  7524. }
  7525. if ((val)->o[0] & 0x40) {
  7526. if (!ASN1Dec_RequestInProgress_tokens(dec, &(val)->tokens))
  7527. return 0;
  7528. }
  7529. if ((val)->o[0] & 0x20) {
  7530. if (!ASN1Dec_RequestInProgress_cryptoTokens(dec, &(val)->cryptoTokens))
  7531. return 0;
  7532. }
  7533. if ((val)->o[0] & 0x10) {
  7534. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7535. return 0;
  7536. }
  7537. if (!ASN1PERDecUnsignedShort(dec, &(val)->delay))
  7538. return 0;
  7539. (val)->delay += 1;
  7540. if (y) {
  7541. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7542. return 0;
  7543. }
  7544. return 1;
  7545. }
  7546. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val)
  7547. {
  7548. if (val) {
  7549. if ((val)->o[0] & 0x80) {
  7550. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7551. }
  7552. if ((val)->o[0] & 0x40) {
  7553. ASN1Free_RequestInProgress_tokens(&(val)->tokens);
  7554. }
  7555. if ((val)->o[0] & 0x20) {
  7556. ASN1Free_RequestInProgress_cryptoTokens(&(val)->cryptoTokens);
  7557. }
  7558. if ((val)->o[0] & 0x10) {
  7559. ASN1Free_ICV(&(val)->integrityCheckValue);
  7560. }
  7561. }
  7562. }
  7563. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val)
  7564. {
  7565. if (!ASN1PEREncExtensionBitClear(enc))
  7566. return 0;
  7567. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7568. return 0;
  7569. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7570. return 0;
  7571. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7572. return 0;
  7573. if ((val)->o[0] & 0x80) {
  7574. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7575. return 0;
  7576. }
  7577. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  7578. return 0;
  7579. ASN1PEREncAlignment(enc);
  7580. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  7581. return 0;
  7582. if (!ASN1Enc_ResourcesAvailableIndicate_protocols(enc, &(val)->protocols))
  7583. return 0;
  7584. if (!ASN1PEREncBoolean(enc, (val)->almostOutOfResources))
  7585. return 0;
  7586. if ((val)->o[0] & 0x40) {
  7587. if (!ASN1Enc_ResourcesAvailableIndicate_tokens(enc, &(val)->tokens))
  7588. return 0;
  7589. }
  7590. if ((val)->o[0] & 0x20) {
  7591. if (!ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(enc, &(val)->cryptoTokens))
  7592. return 0;
  7593. }
  7594. if ((val)->o[0] & 0x10) {
  7595. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7596. return 0;
  7597. }
  7598. return 1;
  7599. }
  7600. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val)
  7601. {
  7602. ASN1uint32_t y;
  7603. if (!ASN1PERDecExtensionBit(dec, &y))
  7604. return 0;
  7605. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7606. return 0;
  7607. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7608. return 0;
  7609. (val)->requestSeqNum += 1;
  7610. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7611. return 0;
  7612. if ((val)->o[0] & 0x80) {
  7613. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7614. return 0;
  7615. }
  7616. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  7617. return 0;
  7618. ((val)->endpointIdentifier).length += 1;
  7619. ASN1PERDecAlignment(dec);
  7620. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  7621. return 0;
  7622. if (!ASN1Dec_ResourcesAvailableIndicate_protocols(dec, &(val)->protocols))
  7623. return 0;
  7624. if (!ASN1PERDecBoolean(dec, &(val)->almostOutOfResources))
  7625. return 0;
  7626. if ((val)->o[0] & 0x40) {
  7627. if (!ASN1Dec_ResourcesAvailableIndicate_tokens(dec, &(val)->tokens))
  7628. return 0;
  7629. }
  7630. if ((val)->o[0] & 0x20) {
  7631. if (!ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(dec, &(val)->cryptoTokens))
  7632. return 0;
  7633. }
  7634. if ((val)->o[0] & 0x10) {
  7635. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7636. return 0;
  7637. }
  7638. if (y) {
  7639. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7640. return 0;
  7641. }
  7642. return 1;
  7643. }
  7644. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val)
  7645. {
  7646. if (val) {
  7647. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7648. if ((val)->o[0] & 0x80) {
  7649. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7650. }
  7651. ASN1char16string_free(&(val)->endpointIdentifier);
  7652. ASN1Free_ResourcesAvailableIndicate_protocols(&(val)->protocols);
  7653. if ((val)->o[0] & 0x40) {
  7654. ASN1Free_ResourcesAvailableIndicate_tokens(&(val)->tokens);
  7655. }
  7656. if ((val)->o[0] & 0x20) {
  7657. ASN1Free_ResourcesAvailableIndicate_cryptoTokens(&(val)->cryptoTokens);
  7658. }
  7659. if ((val)->o[0] & 0x10) {
  7660. ASN1Free_ICV(&(val)->integrityCheckValue);
  7661. }
  7662. }
  7663. }
  7664. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val)
  7665. {
  7666. if (!ASN1PEREncExtensionBitClear(enc))
  7667. return 0;
  7668. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7669. return 0;
  7670. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7671. return 0;
  7672. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7673. return 0;
  7674. if ((val)->o[0] & 0x80) {
  7675. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7676. return 0;
  7677. }
  7678. if ((val)->o[0] & 0x40) {
  7679. if (!ASN1Enc_ResourcesAvailableConfirm_tokens(enc, &(val)->tokens))
  7680. return 0;
  7681. }
  7682. if ((val)->o[0] & 0x20) {
  7683. if (!ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(enc, &(val)->cryptoTokens))
  7684. return 0;
  7685. }
  7686. if ((val)->o[0] & 0x10) {
  7687. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7688. return 0;
  7689. }
  7690. return 1;
  7691. }
  7692. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val)
  7693. {
  7694. ASN1uint32_t y;
  7695. if (!ASN1PERDecExtensionBit(dec, &y))
  7696. return 0;
  7697. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7698. return 0;
  7699. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7700. return 0;
  7701. (val)->requestSeqNum += 1;
  7702. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7703. return 0;
  7704. if ((val)->o[0] & 0x80) {
  7705. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7706. return 0;
  7707. }
  7708. if ((val)->o[0] & 0x40) {
  7709. if (!ASN1Dec_ResourcesAvailableConfirm_tokens(dec, &(val)->tokens))
  7710. return 0;
  7711. }
  7712. if ((val)->o[0] & 0x20) {
  7713. if (!ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(dec, &(val)->cryptoTokens))
  7714. return 0;
  7715. }
  7716. if ((val)->o[0] & 0x10) {
  7717. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7718. return 0;
  7719. }
  7720. if (y) {
  7721. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7722. return 0;
  7723. }
  7724. return 1;
  7725. }
  7726. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val)
  7727. {
  7728. if (val) {
  7729. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7730. if ((val)->o[0] & 0x80) {
  7731. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7732. }
  7733. if ((val)->o[0] & 0x40) {
  7734. ASN1Free_ResourcesAvailableConfirm_tokens(&(val)->tokens);
  7735. }
  7736. if ((val)->o[0] & 0x20) {
  7737. ASN1Free_ResourcesAvailableConfirm_cryptoTokens(&(val)->cryptoTokens);
  7738. }
  7739. if ((val)->o[0] & 0x10) {
  7740. ASN1Free_ICV(&(val)->integrityCheckValue);
  7741. }
  7742. }
  7743. }
  7744. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val)
  7745. {
  7746. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_integrity_ElmFn);
  7747. }
  7748. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_integrity val)
  7749. {
  7750. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7751. return 0;
  7752. return 1;
  7753. }
  7754. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val)
  7755. {
  7756. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_integrity_ElmFn, sizeof(**val));
  7757. }
  7758. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_integrity val)
  7759. {
  7760. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7761. return 0;
  7762. return 1;
  7763. }
  7764. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val)
  7765. {
  7766. if (val) {
  7767. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_integrity_ElmFn);
  7768. }
  7769. }
  7770. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity_ElmFn(PGatekeeperConfirm_integrity val)
  7771. {
  7772. if (val) {
  7773. ASN1Free_IntegrityMechanism(&val->value);
  7774. }
  7775. }
  7776. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val)
  7777. {
  7778. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_integrity_ElmFn);
  7779. }
  7780. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_integrity val)
  7781. {
  7782. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7783. return 0;
  7784. return 1;
  7785. }
  7786. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val)
  7787. {
  7788. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_integrity_ElmFn, sizeof(**val));
  7789. }
  7790. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_integrity val)
  7791. {
  7792. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7793. return 0;
  7794. return 1;
  7795. }
  7796. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val)
  7797. {
  7798. if (val) {
  7799. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_integrity_ElmFn);
  7800. }
  7801. }
  7802. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity_ElmFn(PGatekeeperRequest_integrity val)
  7803. {
  7804. if (val) {
  7805. ASN1Free_IntegrityMechanism(&val->value);
  7806. }
  7807. }
  7808. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val)
  7809. {
  7810. ASN1uint32_t l;
  7811. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperId).length - 1))
  7812. return 0;
  7813. ASN1PEREncAlignment(enc);
  7814. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperId).length, ((val)->gatekeeperId).value, 16))
  7815. return 0;
  7816. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  7817. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  7818. return 0;
  7819. ASN1PEREncAlignment(enc);
  7820. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  7821. return 0;
  7822. if (!ASN1Enc_HASHED(enc, &(val)->token))
  7823. return 0;
  7824. return 1;
  7825. }
  7826. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val)
  7827. {
  7828. ASN1uint32_t l;
  7829. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperId).length))
  7830. return 0;
  7831. ((val)->gatekeeperId).length += 1;
  7832. ASN1PERDecAlignment(dec);
  7833. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperId).length, &((val)->gatekeeperId).value, 16))
  7834. return 0;
  7835. if (!ASN1PERDecU32Val(dec, 2, &l))
  7836. return 0;
  7837. l += 1;
  7838. ASN1PERDecAlignment(dec);
  7839. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  7840. return 0;
  7841. (val)->timeStamp += 1;
  7842. if (!ASN1Dec_HASHED(dec, &(val)->token))
  7843. return 0;
  7844. return 1;
  7845. }
  7846. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val)
  7847. {
  7848. if (val) {
  7849. ASN1char16string_free(&(val)->gatekeeperId);
  7850. ASN1Free_HASHED(&(val)->token);
  7851. }
  7852. }
  7853. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val)
  7854. {
  7855. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn);
  7856. }
  7857. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported val)
  7858. {
  7859. if (!ASN1Enc_DataRate(enc, &val->value))
  7860. return 0;
  7861. return 1;
  7862. }
  7863. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val)
  7864. {
  7865. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn, sizeof(**val));
  7866. }
  7867. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported val)
  7868. {
  7869. if (!ASN1Dec_DataRate(dec, &val->value))
  7870. return 0;
  7871. return 1;
  7872. }
  7873. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val)
  7874. {
  7875. if (val) {
  7876. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn);
  7877. }
  7878. }
  7879. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn(PNonStandardProtocol_dataRatesSupported val)
  7880. {
  7881. if (val) {
  7882. ASN1Free_DataRate(&val->value);
  7883. }
  7884. }
  7885. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val)
  7886. {
  7887. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn);
  7888. }
  7889. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported val)
  7890. {
  7891. if (!ASN1Enc_DataRate(enc, &val->value))
  7892. return 0;
  7893. return 1;
  7894. }
  7895. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val)
  7896. {
  7897. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7898. }
  7899. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported val)
  7900. {
  7901. if (!ASN1Dec_DataRate(dec, &val->value))
  7902. return 0;
  7903. return 1;
  7904. }
  7905. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val)
  7906. {
  7907. if (val) {
  7908. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn);
  7909. }
  7910. }
  7911. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn(PT120OnlyCaps_dataRatesSupported val)
  7912. {
  7913. if (val) {
  7914. ASN1Free_DataRate(&val->value);
  7915. }
  7916. }
  7917. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val)
  7918. {
  7919. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn);
  7920. }
  7921. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported val)
  7922. {
  7923. if (!ASN1Enc_DataRate(enc, &val->value))
  7924. return 0;
  7925. return 1;
  7926. }
  7927. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val)
  7928. {
  7929. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7930. }
  7931. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported val)
  7932. {
  7933. if (!ASN1Dec_DataRate(dec, &val->value))
  7934. return 0;
  7935. return 1;
  7936. }
  7937. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val)
  7938. {
  7939. if (val) {
  7940. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_dataRatesSupported_ElmFn);
  7941. }
  7942. }
  7943. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported_ElmFn(PVoiceCaps_dataRatesSupported val)
  7944. {
  7945. if (val) {
  7946. ASN1Free_DataRate(&val->value);
  7947. }
  7948. }
  7949. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val)
  7950. {
  7951. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_dataRatesSupported_ElmFn);
  7952. }
  7953. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH324Caps_dataRatesSupported val)
  7954. {
  7955. if (!ASN1Enc_DataRate(enc, &val->value))
  7956. return 0;
  7957. return 1;
  7958. }
  7959. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val)
  7960. {
  7961. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7962. }
  7963. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH324Caps_dataRatesSupported val)
  7964. {
  7965. if (!ASN1Dec_DataRate(dec, &val->value))
  7966. return 0;
  7967. return 1;
  7968. }
  7969. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val)
  7970. {
  7971. if (val) {
  7972. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_dataRatesSupported_ElmFn);
  7973. }
  7974. }
  7975. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported_ElmFn(PH324Caps_dataRatesSupported val)
  7976. {
  7977. if (val) {
  7978. ASN1Free_DataRate(&val->value);
  7979. }
  7980. }
  7981. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val)
  7982. {
  7983. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_dataRatesSupported_ElmFn);
  7984. }
  7985. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH323Caps_dataRatesSupported val)
  7986. {
  7987. if (!ASN1Enc_DataRate(enc, &val->value))
  7988. return 0;
  7989. return 1;
  7990. }
  7991. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val)
  7992. {
  7993. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7994. }
  7995. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH323Caps_dataRatesSupported val)
  7996. {
  7997. if (!ASN1Dec_DataRate(dec, &val->value))
  7998. return 0;
  7999. return 1;
  8000. }
  8001. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val)
  8002. {
  8003. if (val) {
  8004. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_dataRatesSupported_ElmFn);
  8005. }
  8006. }
  8007. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported_ElmFn(PH323Caps_dataRatesSupported val)
  8008. {
  8009. if (val) {
  8010. ASN1Free_DataRate(&val->value);
  8011. }
  8012. }
  8013. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val)
  8014. {
  8015. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_dataRatesSupported_ElmFn);
  8016. }
  8017. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH322Caps_dataRatesSupported val)
  8018. {
  8019. if (!ASN1Enc_DataRate(enc, &val->value))
  8020. return 0;
  8021. return 1;
  8022. }
  8023. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val)
  8024. {
  8025. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8026. }
  8027. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH322Caps_dataRatesSupported val)
  8028. {
  8029. if (!ASN1Dec_DataRate(dec, &val->value))
  8030. return 0;
  8031. return 1;
  8032. }
  8033. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val)
  8034. {
  8035. if (val) {
  8036. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_dataRatesSupported_ElmFn);
  8037. }
  8038. }
  8039. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported_ElmFn(PH322Caps_dataRatesSupported val)
  8040. {
  8041. if (val) {
  8042. ASN1Free_DataRate(&val->value);
  8043. }
  8044. }
  8045. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val)
  8046. {
  8047. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_dataRatesSupported_ElmFn);
  8048. }
  8049. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH321Caps_dataRatesSupported val)
  8050. {
  8051. if (!ASN1Enc_DataRate(enc, &val->value))
  8052. return 0;
  8053. return 1;
  8054. }
  8055. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val)
  8056. {
  8057. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8058. }
  8059. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH321Caps_dataRatesSupported val)
  8060. {
  8061. if (!ASN1Dec_DataRate(dec, &val->value))
  8062. return 0;
  8063. return 1;
  8064. }
  8065. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val)
  8066. {
  8067. if (val) {
  8068. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_dataRatesSupported_ElmFn);
  8069. }
  8070. }
  8071. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported_ElmFn(PH321Caps_dataRatesSupported val)
  8072. {
  8073. if (val) {
  8074. ASN1Free_DataRate(&val->value);
  8075. }
  8076. }
  8077. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val)
  8078. {
  8079. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_dataRatesSupported_ElmFn);
  8080. }
  8081. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH320Caps_dataRatesSupported val)
  8082. {
  8083. if (!ASN1Enc_DataRate(enc, &val->value))
  8084. return 0;
  8085. return 1;
  8086. }
  8087. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val)
  8088. {
  8089. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8090. }
  8091. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH320Caps_dataRatesSupported val)
  8092. {
  8093. if (!ASN1Dec_DataRate(dec, &val->value))
  8094. return 0;
  8095. return 1;
  8096. }
  8097. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val)
  8098. {
  8099. if (val) {
  8100. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_dataRatesSupported_ElmFn);
  8101. }
  8102. }
  8103. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported_ElmFn(PH320Caps_dataRatesSupported val)
  8104. {
  8105. if (val) {
  8106. ASN1Free_DataRate(&val->value);
  8107. }
  8108. }
  8109. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val)
  8110. {
  8111. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_dataRatesSupported_ElmFn);
  8112. }
  8113. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH310Caps_dataRatesSupported val)
  8114. {
  8115. if (!ASN1Enc_DataRate(enc, &val->value))
  8116. return 0;
  8117. return 1;
  8118. }
  8119. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val)
  8120. {
  8121. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8122. }
  8123. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH310Caps_dataRatesSupported val)
  8124. {
  8125. if (!ASN1Dec_DataRate(dec, &val->value))
  8126. return 0;
  8127. return 1;
  8128. }
  8129. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val)
  8130. {
  8131. if (val) {
  8132. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_dataRatesSupported_ElmFn);
  8133. }
  8134. }
  8135. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported_ElmFn(PH310Caps_dataRatesSupported val)
  8136. {
  8137. if (val) {
  8138. ASN1Free_DataRate(&val->value);
  8139. }
  8140. }
  8141. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val)
  8142. {
  8143. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn);
  8144. }
  8145. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability val)
  8146. {
  8147. if (!ASN1Enc_H245Security(enc, &val->value))
  8148. return 0;
  8149. return 1;
  8150. }
  8151. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val)
  8152. {
  8153. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn, sizeof(**val));
  8154. }
  8155. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability val)
  8156. {
  8157. if (!ASN1Dec_H245Security(dec, &val->value))
  8158. return 0;
  8159. return 1;
  8160. }
  8161. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val)
  8162. {
  8163. if (val) {
  8164. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn);
  8165. }
  8166. }
  8167. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn(PSetup_UUIE_h245SecurityCapability val)
  8168. {
  8169. if (val) {
  8170. ASN1Free_H245Security(&val->value);
  8171. }
  8172. }
  8173. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val)
  8174. {
  8175. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn);
  8176. }
  8177. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl val)
  8178. {
  8179. if (!ASN1Enc_H225NonStandardParameter(enc, &val->value))
  8180. return 0;
  8181. return 1;
  8182. }
  8183. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val)
  8184. {
  8185. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn, sizeof(**val));
  8186. }
  8187. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl val)
  8188. {
  8189. if (!ASN1Dec_H225NonStandardParameter(dec, &val->value))
  8190. return 0;
  8191. return 1;
  8192. }
  8193. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val)
  8194. {
  8195. if (val) {
  8196. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn);
  8197. }
  8198. }
  8199. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn(PH323_UU_PDU_nonStandardControl val)
  8200. {
  8201. if (val) {
  8202. ASN1Free_H225NonStandardParameter(&val->value);
  8203. }
  8204. }
  8205. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val)
  8206. {
  8207. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8208. return 0;
  8209. if (!ASN1Enc_ClearToken(enc, &(val)->hashedVals))
  8210. return 0;
  8211. if (!ASN1Enc_HASHED(enc, &(val)->token))
  8212. return 0;
  8213. return 1;
  8214. }
  8215. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val)
  8216. {
  8217. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8218. return 0;
  8219. if (!ASN1Dec_ClearToken(dec, &(val)->hashedVals))
  8220. return 0;
  8221. if (!ASN1Dec_HASHED(dec, &(val)->token))
  8222. return 0;
  8223. return 1;
  8224. }
  8225. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val)
  8226. {
  8227. if (val) {
  8228. ASN1objectidentifier_free(&(val)->tokenOID);
  8229. ASN1Free_ClearToken(&(val)->hashedVals);
  8230. ASN1Free_HASHED(&(val)->token);
  8231. }
  8232. }
  8233. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val)
  8234. {
  8235. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8236. return 0;
  8237. if (!ASN1Enc_SIGNED_EncodedGeneralToken(enc, &(val)->token))
  8238. return 0;
  8239. return 1;
  8240. }
  8241. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val)
  8242. {
  8243. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8244. return 0;
  8245. if (!ASN1Dec_SIGNED_EncodedGeneralToken(dec, &(val)->token))
  8246. return 0;
  8247. return 1;
  8248. }
  8249. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val)
  8250. {
  8251. if (val) {
  8252. ASN1objectidentifier_free(&(val)->tokenOID);
  8253. ASN1Free_SIGNED_EncodedGeneralToken(&(val)->token);
  8254. }
  8255. }
  8256. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val)
  8257. {
  8258. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8259. return 0;
  8260. if (!ASN1Enc_ENCRYPTED(enc, &(val)->token))
  8261. return 0;
  8262. return 1;
  8263. }
  8264. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val)
  8265. {
  8266. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8267. return 0;
  8268. if (!ASN1Dec_ENCRYPTED(dec, &(val)->token))
  8269. return 0;
  8270. return 1;
  8271. }
  8272. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val)
  8273. {
  8274. if (val) {
  8275. ASN1objectidentifier_free(&(val)->tokenOID);
  8276. ASN1Free_ENCRYPTED(&(val)->token);
  8277. }
  8278. }
  8279. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val)
  8280. {
  8281. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  8282. return 0;
  8283. switch ((val)->choice) {
  8284. case 1:
  8285. if (!ASN1Enc_CryptoToken_cryptoEncryptedToken(enc, &(val)->u.cryptoEncryptedToken))
  8286. return 0;
  8287. break;
  8288. case 2:
  8289. if (!ASN1Enc_CryptoToken_cryptoSignedToken(enc, &(val)->u.cryptoSignedToken))
  8290. return 0;
  8291. break;
  8292. case 3:
  8293. if (!ASN1Enc_CryptoToken_cryptoHashedToken(enc, &(val)->u.cryptoHashedToken))
  8294. return 0;
  8295. break;
  8296. case 4:
  8297. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoPwdEncr))
  8298. return 0;
  8299. break;
  8300. default:
  8301. /* impossible */
  8302. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8303. return 0;
  8304. }
  8305. return 1;
  8306. }
  8307. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val)
  8308. {
  8309. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  8310. return 0;
  8311. switch ((val)->choice) {
  8312. case 1:
  8313. if (!ASN1Dec_CryptoToken_cryptoEncryptedToken(dec, &(val)->u.cryptoEncryptedToken))
  8314. return 0;
  8315. break;
  8316. case 2:
  8317. if (!ASN1Dec_CryptoToken_cryptoSignedToken(dec, &(val)->u.cryptoSignedToken))
  8318. return 0;
  8319. break;
  8320. case 3:
  8321. if (!ASN1Dec_CryptoToken_cryptoHashedToken(dec, &(val)->u.cryptoHashedToken))
  8322. return 0;
  8323. break;
  8324. case 4:
  8325. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoPwdEncr))
  8326. return 0;
  8327. break;
  8328. case 0:
  8329. /* extension case */
  8330. if (!ASN1PERDecSkipFragmented(dec, 8))
  8331. return 0;
  8332. break;
  8333. default:
  8334. /* impossible */
  8335. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8336. return 0;
  8337. }
  8338. return 1;
  8339. }
  8340. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val)
  8341. {
  8342. if (val) {
  8343. switch ((val)->choice) {
  8344. case 1:
  8345. ASN1Free_CryptoToken_cryptoEncryptedToken(&(val)->u.cryptoEncryptedToken);
  8346. break;
  8347. case 2:
  8348. ASN1Free_CryptoToken_cryptoSignedToken(&(val)->u.cryptoSignedToken);
  8349. break;
  8350. case 3:
  8351. ASN1Free_CryptoToken_cryptoHashedToken(&(val)->u.cryptoHashedToken);
  8352. break;
  8353. case 4:
  8354. ASN1Free_ENCRYPTED(&(val)->u.cryptoPwdEncr);
  8355. break;
  8356. }
  8357. }
  8358. }
  8359. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val)
  8360. {
  8361. if (!ASN1Enc_EncodedFastStartToken(enc, &(val)->toBeSigned))
  8362. return 0;
  8363. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  8364. return 0;
  8365. if (!ASN1Enc_Params(enc, &(val)->paramS))
  8366. return 0;
  8367. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  8368. return 0;
  8369. return 1;
  8370. }
  8371. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val)
  8372. {
  8373. if (!ASN1Dec_EncodedFastStartToken(dec, &(val)->toBeSigned))
  8374. return 0;
  8375. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  8376. return 0;
  8377. if (!ASN1Dec_Params(dec, &(val)->paramS))
  8378. return 0;
  8379. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  8380. return 0;
  8381. return 1;
  8382. }
  8383. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val)
  8384. {
  8385. if (val) {
  8386. ASN1Free_EncodedFastStartToken(&(val)->toBeSigned);
  8387. ASN1objectidentifier_free(&(val)->algorithmOID);
  8388. ASN1Free_Params(&(val)->paramS);
  8389. ASN1bitstring_free(&(val)->signature);
  8390. }
  8391. }
  8392. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val)
  8393. {
  8394. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8395. return 0;
  8396. switch ((val)->choice) {
  8397. case 1:
  8398. if (!ASN1Enc_TransportAddress_ipAddress(enc, &(val)->u.ipAddress))
  8399. return 0;
  8400. break;
  8401. case 2:
  8402. if (!ASN1Enc_TransportAddress_ipSourceRoute(enc, &(val)->u.ipSourceRoute))
  8403. return 0;
  8404. break;
  8405. case 3:
  8406. if (!ASN1Enc_TransportAddress_ipxAddress(enc, &(val)->u.ipxAddress))
  8407. return 0;
  8408. break;
  8409. case 4:
  8410. if (!ASN1Enc_TransportAddress_ip6Address(enc, &(val)->u.ip6Address))
  8411. return 0;
  8412. break;
  8413. case 5:
  8414. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8415. return 0;
  8416. break;
  8417. case 6:
  8418. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8419. return 0;
  8420. break;
  8421. case 7:
  8422. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardAddress))
  8423. return 0;
  8424. break;
  8425. default:
  8426. /* impossible */
  8427. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8428. return 0;
  8429. }
  8430. return 1;
  8431. }
  8432. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val)
  8433. {
  8434. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8435. return 0;
  8436. switch ((val)->choice) {
  8437. case 1:
  8438. if (!ASN1Dec_TransportAddress_ipAddress(dec, &(val)->u.ipAddress))
  8439. return 0;
  8440. break;
  8441. case 2:
  8442. if (!ASN1Dec_TransportAddress_ipSourceRoute(dec, &(val)->u.ipSourceRoute))
  8443. return 0;
  8444. break;
  8445. case 3:
  8446. if (!ASN1Dec_TransportAddress_ipxAddress(dec, &(val)->u.ipxAddress))
  8447. return 0;
  8448. break;
  8449. case 4:
  8450. if (!ASN1Dec_TransportAddress_ip6Address(dec, &(val)->u.ip6Address))
  8451. return 0;
  8452. break;
  8453. case 5:
  8454. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8455. return 0;
  8456. break;
  8457. case 6:
  8458. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8459. return 0;
  8460. break;
  8461. case 7:
  8462. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardAddress))
  8463. return 0;
  8464. break;
  8465. case 0:
  8466. /* extension case */
  8467. if (!ASN1PERDecSkipFragmented(dec, 8))
  8468. return 0;
  8469. break;
  8470. default:
  8471. /* impossible */
  8472. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8473. return 0;
  8474. }
  8475. return 1;
  8476. }
  8477. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val)
  8478. {
  8479. if (val) {
  8480. switch ((val)->choice) {
  8481. case 1:
  8482. ASN1Free_TransportAddress_ipAddress(&(val)->u.ipAddress);
  8483. break;
  8484. case 2:
  8485. ASN1Free_TransportAddress_ipSourceRoute(&(val)->u.ipSourceRoute);
  8486. break;
  8487. case 3:
  8488. ASN1Free_TransportAddress_ipxAddress(&(val)->u.ipxAddress);
  8489. break;
  8490. case 4:
  8491. ASN1Free_TransportAddress_ip6Address(&(val)->u.ip6Address);
  8492. break;
  8493. case 5:
  8494. break;
  8495. case 6:
  8496. break;
  8497. case 7:
  8498. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardAddress);
  8499. break;
  8500. }
  8501. }
  8502. }
  8503. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val)
  8504. {
  8505. if (!ASN1PEREncExtensionBitClear(enc))
  8506. return 0;
  8507. if (!ASN1PEREncBits(enc, 2, (val)->o))
  8508. return 0;
  8509. if ((val)->o[0] & 0x80) {
  8510. if (!ASN1Enc_GatewayInfo_protocol(enc, &(val)->protocol))
  8511. return 0;
  8512. }
  8513. if ((val)->o[0] & 0x40) {
  8514. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8515. return 0;
  8516. }
  8517. return 1;
  8518. }
  8519. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val)
  8520. {
  8521. ASN1uint32_t y;
  8522. if (!ASN1PERDecExtensionBit(dec, &y))
  8523. return 0;
  8524. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  8525. return 0;
  8526. if ((val)->o[0] & 0x80) {
  8527. if (!ASN1Dec_GatewayInfo_protocol(dec, &(val)->protocol))
  8528. return 0;
  8529. }
  8530. if ((val)->o[0] & 0x40) {
  8531. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8532. return 0;
  8533. }
  8534. if (y) {
  8535. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8536. return 0;
  8537. }
  8538. return 1;
  8539. }
  8540. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val)
  8541. {
  8542. if (val) {
  8543. if ((val)->o[0] & 0x80) {
  8544. ASN1Free_GatewayInfo_protocol(&(val)->protocol);
  8545. }
  8546. if ((val)->o[0] & 0x40) {
  8547. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8548. }
  8549. }
  8550. }
  8551. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val)
  8552. {
  8553. ASN1octet_t o[2];
  8554. ASN1uint32_t y;
  8555. ASN1encoding_t ee;
  8556. CopyMemory(o, (val)->o, 2);
  8557. o[1] |= 0x40;
  8558. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8559. if (!ASN1PEREncBitVal(enc, 1, y))
  8560. return 0;
  8561. if (!ASN1PEREncBits(enc, 1, o))
  8562. return 0;
  8563. if (o[0] & 0x80) {
  8564. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8565. return 0;
  8566. }
  8567. if (y) {
  8568. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8569. return 0;
  8570. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8571. return 0;
  8572. if (o[1] & 0x80) {
  8573. if (!ASN1Enc_H310Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8574. return 0;
  8575. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8576. return 0;
  8577. }
  8578. if (o[1] & 0x40) {
  8579. if (!ASN1Enc_H310Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8580. return 0;
  8581. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8582. return 0;
  8583. }
  8584. ASN1_CloseEncoder2(ee);
  8585. }
  8586. return 1;
  8587. }
  8588. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val)
  8589. {
  8590. ASN1uint32_t y;
  8591. ASN1decoding_t dd;
  8592. ASN1octet_t *db;
  8593. ASN1uint32_t ds;
  8594. ASN1uint32_t i;
  8595. ASN1uint32_t e;
  8596. if (!ASN1PERDecExtensionBit(dec, &y))
  8597. return 0;
  8598. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8599. return 0;
  8600. if ((val)->o[0] & 0x80) {
  8601. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8602. return 0;
  8603. }
  8604. if (!y) {
  8605. ZeroMemory((val)->o + 1, 1);
  8606. } else {
  8607. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8608. return 0;
  8609. if ((val)->o[1] & 0x80) {
  8610. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8611. return 0;
  8612. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8613. return 0;
  8614. if (!ASN1Dec_H310Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8615. return 0;
  8616. ASN1_CloseDecoder(dd);
  8617. ASN1Free(db);
  8618. }
  8619. if ((val)->o[1] & 0x40) {
  8620. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8621. return 0;
  8622. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8623. return 0;
  8624. if (!ASN1Dec_H310Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8625. return 0;
  8626. ASN1_CloseDecoder(dd);
  8627. ASN1Free(db);
  8628. }
  8629. for (i = 0; i < e; i++) {
  8630. if (!ASN1PERDecSkipFragmented(dec, 8))
  8631. return 0;
  8632. }
  8633. }
  8634. return 1;
  8635. }
  8636. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val)
  8637. {
  8638. if (val) {
  8639. if ((val)->o[0] & 0x80) {
  8640. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8641. }
  8642. if ((val)->o[1] & 0x80) {
  8643. ASN1Free_H310Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8644. }
  8645. if ((val)->o[1] & 0x40) {
  8646. ASN1Free_H310Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8647. }
  8648. }
  8649. }
  8650. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val)
  8651. {
  8652. ASN1octet_t o[2];
  8653. ASN1uint32_t y;
  8654. ASN1encoding_t ee;
  8655. CopyMemory(o, (val)->o, 2);
  8656. o[1] |= 0x40;
  8657. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8658. if (!ASN1PEREncBitVal(enc, 1, y))
  8659. return 0;
  8660. if (!ASN1PEREncBits(enc, 1, o))
  8661. return 0;
  8662. if (o[0] & 0x80) {
  8663. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8664. return 0;
  8665. }
  8666. if (y) {
  8667. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8668. return 0;
  8669. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8670. return 0;
  8671. if (o[1] & 0x80) {
  8672. if (!ASN1Enc_H320Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8673. return 0;
  8674. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8675. return 0;
  8676. }
  8677. if (o[1] & 0x40) {
  8678. if (!ASN1Enc_H320Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8679. return 0;
  8680. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8681. return 0;
  8682. }
  8683. ASN1_CloseEncoder2(ee);
  8684. }
  8685. return 1;
  8686. }
  8687. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val)
  8688. {
  8689. ASN1uint32_t y;
  8690. ASN1decoding_t dd;
  8691. ASN1octet_t *db;
  8692. ASN1uint32_t ds;
  8693. ASN1uint32_t i;
  8694. ASN1uint32_t e;
  8695. if (!ASN1PERDecExtensionBit(dec, &y))
  8696. return 0;
  8697. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8698. return 0;
  8699. if ((val)->o[0] & 0x80) {
  8700. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8701. return 0;
  8702. }
  8703. if (!y) {
  8704. ZeroMemory((val)->o + 1, 1);
  8705. } else {
  8706. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8707. return 0;
  8708. if ((val)->o[1] & 0x80) {
  8709. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8710. return 0;
  8711. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8712. return 0;
  8713. if (!ASN1Dec_H320Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8714. return 0;
  8715. ASN1_CloseDecoder(dd);
  8716. ASN1Free(db);
  8717. }
  8718. if ((val)->o[1] & 0x40) {
  8719. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8720. return 0;
  8721. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8722. return 0;
  8723. if (!ASN1Dec_H320Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8724. return 0;
  8725. ASN1_CloseDecoder(dd);
  8726. ASN1Free(db);
  8727. }
  8728. for (i = 0; i < e; i++) {
  8729. if (!ASN1PERDecSkipFragmented(dec, 8))
  8730. return 0;
  8731. }
  8732. }
  8733. return 1;
  8734. }
  8735. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val)
  8736. {
  8737. if (val) {
  8738. if ((val)->o[0] & 0x80) {
  8739. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8740. }
  8741. if ((val)->o[1] & 0x80) {
  8742. ASN1Free_H320Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8743. }
  8744. if ((val)->o[1] & 0x40) {
  8745. ASN1Free_H320Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8746. }
  8747. }
  8748. }
  8749. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val)
  8750. {
  8751. ASN1octet_t o[2];
  8752. ASN1uint32_t y;
  8753. ASN1encoding_t ee;
  8754. CopyMemory(o, (val)->o, 2);
  8755. o[1] |= 0x40;
  8756. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8757. if (!ASN1PEREncBitVal(enc, 1, y))
  8758. return 0;
  8759. if (!ASN1PEREncBits(enc, 1, o))
  8760. return 0;
  8761. if (o[0] & 0x80) {
  8762. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8763. return 0;
  8764. }
  8765. if (y) {
  8766. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8767. return 0;
  8768. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8769. return 0;
  8770. if (o[1] & 0x80) {
  8771. if (!ASN1Enc_H321Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8772. return 0;
  8773. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8774. return 0;
  8775. }
  8776. if (o[1] & 0x40) {
  8777. if (!ASN1Enc_H321Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8778. return 0;
  8779. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8780. return 0;
  8781. }
  8782. ASN1_CloseEncoder2(ee);
  8783. }
  8784. return 1;
  8785. }
  8786. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val)
  8787. {
  8788. ASN1uint32_t y;
  8789. ASN1decoding_t dd;
  8790. ASN1octet_t *db;
  8791. ASN1uint32_t ds;
  8792. ASN1uint32_t i;
  8793. ASN1uint32_t e;
  8794. if (!ASN1PERDecExtensionBit(dec, &y))
  8795. return 0;
  8796. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8797. return 0;
  8798. if ((val)->o[0] & 0x80) {
  8799. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8800. return 0;
  8801. }
  8802. if (!y) {
  8803. ZeroMemory((val)->o + 1, 1);
  8804. } else {
  8805. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8806. return 0;
  8807. if ((val)->o[1] & 0x80) {
  8808. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8809. return 0;
  8810. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8811. return 0;
  8812. if (!ASN1Dec_H321Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8813. return 0;
  8814. ASN1_CloseDecoder(dd);
  8815. ASN1Free(db);
  8816. }
  8817. if ((val)->o[1] & 0x40) {
  8818. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8819. return 0;
  8820. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8821. return 0;
  8822. if (!ASN1Dec_H321Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8823. return 0;
  8824. ASN1_CloseDecoder(dd);
  8825. ASN1Free(db);
  8826. }
  8827. for (i = 0; i < e; i++) {
  8828. if (!ASN1PERDecSkipFragmented(dec, 8))
  8829. return 0;
  8830. }
  8831. }
  8832. return 1;
  8833. }
  8834. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val)
  8835. {
  8836. if (val) {
  8837. if ((val)->o[0] & 0x80) {
  8838. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8839. }
  8840. if ((val)->o[1] & 0x80) {
  8841. ASN1Free_H321Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8842. }
  8843. if ((val)->o[1] & 0x40) {
  8844. ASN1Free_H321Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8845. }
  8846. }
  8847. }
  8848. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val)
  8849. {
  8850. ASN1octet_t o[2];
  8851. ASN1uint32_t y;
  8852. ASN1encoding_t ee;
  8853. CopyMemory(o, (val)->o, 2);
  8854. o[1] |= 0x40;
  8855. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8856. if (!ASN1PEREncBitVal(enc, 1, y))
  8857. return 0;
  8858. if (!ASN1PEREncBits(enc, 1, o))
  8859. return 0;
  8860. if (o[0] & 0x80) {
  8861. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8862. return 0;
  8863. }
  8864. if (y) {
  8865. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8866. return 0;
  8867. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8868. return 0;
  8869. if (o[1] & 0x80) {
  8870. if (!ASN1Enc_H322Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8871. return 0;
  8872. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8873. return 0;
  8874. }
  8875. if (o[1] & 0x40) {
  8876. if (!ASN1Enc_H322Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8877. return 0;
  8878. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8879. return 0;
  8880. }
  8881. ASN1_CloseEncoder2(ee);
  8882. }
  8883. return 1;
  8884. }
  8885. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val)
  8886. {
  8887. ASN1uint32_t y;
  8888. ASN1decoding_t dd;
  8889. ASN1octet_t *db;
  8890. ASN1uint32_t ds;
  8891. ASN1uint32_t i;
  8892. ASN1uint32_t e;
  8893. if (!ASN1PERDecExtensionBit(dec, &y))
  8894. return 0;
  8895. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8896. return 0;
  8897. if ((val)->o[0] & 0x80) {
  8898. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8899. return 0;
  8900. }
  8901. if (!y) {
  8902. ZeroMemory((val)->o + 1, 1);
  8903. } else {
  8904. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8905. return 0;
  8906. if ((val)->o[1] & 0x80) {
  8907. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8908. return 0;
  8909. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8910. return 0;
  8911. if (!ASN1Dec_H322Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8912. return 0;
  8913. ASN1_CloseDecoder(dd);
  8914. ASN1Free(db);
  8915. }
  8916. if ((val)->o[1] & 0x40) {
  8917. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8918. return 0;
  8919. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8920. return 0;
  8921. if (!ASN1Dec_H322Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8922. return 0;
  8923. ASN1_CloseDecoder(dd);
  8924. ASN1Free(db);
  8925. }
  8926. for (i = 0; i < e; i++) {
  8927. if (!ASN1PERDecSkipFragmented(dec, 8))
  8928. return 0;
  8929. }
  8930. }
  8931. return 1;
  8932. }
  8933. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val)
  8934. {
  8935. if (val) {
  8936. if ((val)->o[0] & 0x80) {
  8937. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8938. }
  8939. if ((val)->o[1] & 0x80) {
  8940. ASN1Free_H322Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8941. }
  8942. if ((val)->o[1] & 0x40) {
  8943. ASN1Free_H322Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8944. }
  8945. }
  8946. }
  8947. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val)
  8948. {
  8949. ASN1octet_t o[2];
  8950. ASN1uint32_t y;
  8951. ASN1encoding_t ee;
  8952. CopyMemory(o, (val)->o, 2);
  8953. o[1] |= 0x40;
  8954. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8955. if (!ASN1PEREncBitVal(enc, 1, y))
  8956. return 0;
  8957. if (!ASN1PEREncBits(enc, 1, o))
  8958. return 0;
  8959. if (o[0] & 0x80) {
  8960. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8961. return 0;
  8962. }
  8963. if (y) {
  8964. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8965. return 0;
  8966. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8967. return 0;
  8968. if (o[1] & 0x80) {
  8969. if (!ASN1Enc_H323Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8970. return 0;
  8971. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8972. return 0;
  8973. }
  8974. if (o[1] & 0x40) {
  8975. if (!ASN1Enc_H323Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8976. return 0;
  8977. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8978. return 0;
  8979. }
  8980. ASN1_CloseEncoder2(ee);
  8981. }
  8982. return 1;
  8983. }
  8984. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val)
  8985. {
  8986. ASN1uint32_t y;
  8987. ASN1decoding_t dd;
  8988. ASN1octet_t *db;
  8989. ASN1uint32_t ds;
  8990. ASN1uint32_t i;
  8991. ASN1uint32_t e;
  8992. if (!ASN1PERDecExtensionBit(dec, &y))
  8993. return 0;
  8994. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8995. return 0;
  8996. if ((val)->o[0] & 0x80) {
  8997. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8998. return 0;
  8999. }
  9000. if (!y) {
  9001. ZeroMemory((val)->o + 1, 1);
  9002. } else {
  9003. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9004. return 0;
  9005. if ((val)->o[1] & 0x80) {
  9006. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9007. return 0;
  9008. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9009. return 0;
  9010. if (!ASN1Dec_H323Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9011. return 0;
  9012. ASN1_CloseDecoder(dd);
  9013. ASN1Free(db);
  9014. }
  9015. if ((val)->o[1] & 0x40) {
  9016. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9017. return 0;
  9018. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9019. return 0;
  9020. if (!ASN1Dec_H323Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9021. return 0;
  9022. ASN1_CloseDecoder(dd);
  9023. ASN1Free(db);
  9024. }
  9025. for (i = 0; i < e; i++) {
  9026. if (!ASN1PERDecSkipFragmented(dec, 8))
  9027. return 0;
  9028. }
  9029. }
  9030. return 1;
  9031. }
  9032. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val)
  9033. {
  9034. if (val) {
  9035. if ((val)->o[0] & 0x80) {
  9036. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9037. }
  9038. if ((val)->o[1] & 0x80) {
  9039. ASN1Free_H323Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9040. }
  9041. if ((val)->o[1] & 0x40) {
  9042. ASN1Free_H323Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9043. }
  9044. }
  9045. }
  9046. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val)
  9047. {
  9048. ASN1octet_t o[2];
  9049. ASN1uint32_t y;
  9050. ASN1encoding_t ee;
  9051. CopyMemory(o, (val)->o, 2);
  9052. o[1] |= 0x40;
  9053. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9054. if (!ASN1PEREncBitVal(enc, 1, y))
  9055. return 0;
  9056. if (!ASN1PEREncBits(enc, 1, o))
  9057. return 0;
  9058. if (o[0] & 0x80) {
  9059. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9060. return 0;
  9061. }
  9062. if (y) {
  9063. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9064. return 0;
  9065. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9066. return 0;
  9067. if (o[1] & 0x80) {
  9068. if (!ASN1Enc_H324Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9069. return 0;
  9070. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9071. return 0;
  9072. }
  9073. if (o[1] & 0x40) {
  9074. if (!ASN1Enc_H324Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9075. return 0;
  9076. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9077. return 0;
  9078. }
  9079. ASN1_CloseEncoder2(ee);
  9080. }
  9081. return 1;
  9082. }
  9083. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val)
  9084. {
  9085. ASN1uint32_t y;
  9086. ASN1decoding_t dd;
  9087. ASN1octet_t *db;
  9088. ASN1uint32_t ds;
  9089. ASN1uint32_t i;
  9090. ASN1uint32_t e;
  9091. if (!ASN1PERDecExtensionBit(dec, &y))
  9092. return 0;
  9093. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9094. return 0;
  9095. if ((val)->o[0] & 0x80) {
  9096. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9097. return 0;
  9098. }
  9099. if (!y) {
  9100. ZeroMemory((val)->o + 1, 1);
  9101. } else {
  9102. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9103. return 0;
  9104. if ((val)->o[1] & 0x80) {
  9105. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9106. return 0;
  9107. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9108. return 0;
  9109. if (!ASN1Dec_H324Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9110. return 0;
  9111. ASN1_CloseDecoder(dd);
  9112. ASN1Free(db);
  9113. }
  9114. if ((val)->o[1] & 0x40) {
  9115. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9116. return 0;
  9117. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9118. return 0;
  9119. if (!ASN1Dec_H324Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9120. return 0;
  9121. ASN1_CloseDecoder(dd);
  9122. ASN1Free(db);
  9123. }
  9124. for (i = 0; i < e; i++) {
  9125. if (!ASN1PERDecSkipFragmented(dec, 8))
  9126. return 0;
  9127. }
  9128. }
  9129. return 1;
  9130. }
  9131. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val)
  9132. {
  9133. if (val) {
  9134. if ((val)->o[0] & 0x80) {
  9135. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9136. }
  9137. if ((val)->o[1] & 0x80) {
  9138. ASN1Free_H324Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9139. }
  9140. if ((val)->o[1] & 0x40) {
  9141. ASN1Free_H324Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9142. }
  9143. }
  9144. }
  9145. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val)
  9146. {
  9147. ASN1octet_t o[2];
  9148. ASN1uint32_t y;
  9149. ASN1encoding_t ee;
  9150. CopyMemory(o, (val)->o, 2);
  9151. o[1] |= 0x40;
  9152. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9153. if (!ASN1PEREncBitVal(enc, 1, y))
  9154. return 0;
  9155. if (!ASN1PEREncBits(enc, 1, o))
  9156. return 0;
  9157. if (o[0] & 0x80) {
  9158. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9159. return 0;
  9160. }
  9161. if (y) {
  9162. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9163. return 0;
  9164. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9165. return 0;
  9166. if (o[1] & 0x80) {
  9167. if (!ASN1Enc_VoiceCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9168. return 0;
  9169. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9170. return 0;
  9171. }
  9172. if (o[1] & 0x40) {
  9173. if (!ASN1Enc_VoiceCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9174. return 0;
  9175. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9176. return 0;
  9177. }
  9178. ASN1_CloseEncoder2(ee);
  9179. }
  9180. return 1;
  9181. }
  9182. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val)
  9183. {
  9184. ASN1uint32_t y;
  9185. ASN1decoding_t dd;
  9186. ASN1octet_t *db;
  9187. ASN1uint32_t ds;
  9188. ASN1uint32_t i;
  9189. ASN1uint32_t e;
  9190. if (!ASN1PERDecExtensionBit(dec, &y))
  9191. return 0;
  9192. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9193. return 0;
  9194. if ((val)->o[0] & 0x80) {
  9195. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9196. return 0;
  9197. }
  9198. if (!y) {
  9199. ZeroMemory((val)->o + 1, 1);
  9200. } else {
  9201. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9202. return 0;
  9203. if ((val)->o[1] & 0x80) {
  9204. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9205. return 0;
  9206. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9207. return 0;
  9208. if (!ASN1Dec_VoiceCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9209. return 0;
  9210. ASN1_CloseDecoder(dd);
  9211. ASN1Free(db);
  9212. }
  9213. if ((val)->o[1] & 0x40) {
  9214. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9215. return 0;
  9216. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9217. return 0;
  9218. if (!ASN1Dec_VoiceCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9219. return 0;
  9220. ASN1_CloseDecoder(dd);
  9221. ASN1Free(db);
  9222. }
  9223. for (i = 0; i < e; i++) {
  9224. if (!ASN1PERDecSkipFragmented(dec, 8))
  9225. return 0;
  9226. }
  9227. }
  9228. return 1;
  9229. }
  9230. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val)
  9231. {
  9232. if (val) {
  9233. if ((val)->o[0] & 0x80) {
  9234. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9235. }
  9236. if ((val)->o[1] & 0x80) {
  9237. ASN1Free_VoiceCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9238. }
  9239. if ((val)->o[1] & 0x40) {
  9240. ASN1Free_VoiceCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9241. }
  9242. }
  9243. }
  9244. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val)
  9245. {
  9246. ASN1octet_t o[2];
  9247. ASN1uint32_t y;
  9248. ASN1encoding_t ee;
  9249. CopyMemory(o, (val)->o, 2);
  9250. o[1] |= 0x40;
  9251. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9252. if (!ASN1PEREncBitVal(enc, 1, y))
  9253. return 0;
  9254. if (!ASN1PEREncBits(enc, 1, o))
  9255. return 0;
  9256. if (o[0] & 0x80) {
  9257. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9258. return 0;
  9259. }
  9260. if (y) {
  9261. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9262. return 0;
  9263. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9264. return 0;
  9265. if (o[1] & 0x80) {
  9266. if (!ASN1Enc_T120OnlyCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9267. return 0;
  9268. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9269. return 0;
  9270. }
  9271. if (o[1] & 0x40) {
  9272. if (!ASN1Enc_T120OnlyCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9273. return 0;
  9274. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9275. return 0;
  9276. }
  9277. ASN1_CloseEncoder2(ee);
  9278. }
  9279. return 1;
  9280. }
  9281. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val)
  9282. {
  9283. ASN1uint32_t y;
  9284. ASN1decoding_t dd;
  9285. ASN1octet_t *db;
  9286. ASN1uint32_t ds;
  9287. ASN1uint32_t i;
  9288. ASN1uint32_t e;
  9289. if (!ASN1PERDecExtensionBit(dec, &y))
  9290. return 0;
  9291. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9292. return 0;
  9293. if ((val)->o[0] & 0x80) {
  9294. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9295. return 0;
  9296. }
  9297. if (!y) {
  9298. ZeroMemory((val)->o + 1, 1);
  9299. } else {
  9300. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9301. return 0;
  9302. if ((val)->o[1] & 0x80) {
  9303. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9304. return 0;
  9305. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9306. return 0;
  9307. if (!ASN1Dec_T120OnlyCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9308. return 0;
  9309. ASN1_CloseDecoder(dd);
  9310. ASN1Free(db);
  9311. }
  9312. if ((val)->o[1] & 0x40) {
  9313. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9314. return 0;
  9315. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9316. return 0;
  9317. if (!ASN1Dec_T120OnlyCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9318. return 0;
  9319. ASN1_CloseDecoder(dd);
  9320. ASN1Free(db);
  9321. }
  9322. for (i = 0; i < e; i++) {
  9323. if (!ASN1PERDecSkipFragmented(dec, 8))
  9324. return 0;
  9325. }
  9326. }
  9327. return 1;
  9328. }
  9329. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val)
  9330. {
  9331. if (val) {
  9332. if ((val)->o[0] & 0x80) {
  9333. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9334. }
  9335. if ((val)->o[1] & 0x80) {
  9336. ASN1Free_T120OnlyCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9337. }
  9338. if ((val)->o[1] & 0x40) {
  9339. ASN1Free_T120OnlyCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9340. }
  9341. }
  9342. }
  9343. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val)
  9344. {
  9345. if (!ASN1PEREncExtensionBitClear(enc))
  9346. return 0;
  9347. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9348. return 0;
  9349. if ((val)->o[0] & 0x80) {
  9350. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9351. return 0;
  9352. }
  9353. if ((val)->o[0] & 0x40) {
  9354. if (!ASN1Enc_NonStandardProtocol_dataRatesSupported(enc, &(val)->dataRatesSupported))
  9355. return 0;
  9356. }
  9357. if (!ASN1Enc_NonStandardProtocol_supportedPrefixes(enc, &(val)->supportedPrefixes))
  9358. return 0;
  9359. return 1;
  9360. }
  9361. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val)
  9362. {
  9363. ASN1uint32_t y;
  9364. if (!ASN1PERDecExtensionBit(dec, &y))
  9365. return 0;
  9366. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9367. return 0;
  9368. if ((val)->o[0] & 0x80) {
  9369. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9370. return 0;
  9371. }
  9372. if ((val)->o[0] & 0x40) {
  9373. if (!ASN1Dec_NonStandardProtocol_dataRatesSupported(dec, &(val)->dataRatesSupported))
  9374. return 0;
  9375. }
  9376. if (!ASN1Dec_NonStandardProtocol_supportedPrefixes(dec, &(val)->supportedPrefixes))
  9377. return 0;
  9378. if (y) {
  9379. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9380. return 0;
  9381. }
  9382. return 1;
  9383. }
  9384. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val)
  9385. {
  9386. if (val) {
  9387. if ((val)->o[0] & 0x80) {
  9388. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9389. }
  9390. if ((val)->o[0] & 0x40) {
  9391. ASN1Free_NonStandardProtocol_dataRatesSupported(&(val)->dataRatesSupported);
  9392. }
  9393. ASN1Free_NonStandardProtocol_supportedPrefixes(&(val)->supportedPrefixes);
  9394. }
  9395. }
  9396. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val)
  9397. {
  9398. if (!ASN1PEREncExtensionBitClear(enc))
  9399. return 0;
  9400. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9401. return 0;
  9402. if ((val)->o[0] & 0x80) {
  9403. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9404. return 0;
  9405. }
  9406. return 1;
  9407. }
  9408. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val)
  9409. {
  9410. ASN1uint32_t y;
  9411. if (!ASN1PERDecExtensionBit(dec, &y))
  9412. return 0;
  9413. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9414. return 0;
  9415. if ((val)->o[0] & 0x80) {
  9416. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9417. return 0;
  9418. }
  9419. if (y) {
  9420. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9421. return 0;
  9422. }
  9423. return 1;
  9424. }
  9425. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val)
  9426. {
  9427. if (val) {
  9428. if ((val)->o[0] & 0x80) {
  9429. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9430. }
  9431. }
  9432. }
  9433. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val)
  9434. {
  9435. if (!ASN1PEREncExtensionBitClear(enc))
  9436. return 0;
  9437. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9438. return 0;
  9439. if ((val)->o[0] & 0x80) {
  9440. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9441. return 0;
  9442. }
  9443. return 1;
  9444. }
  9445. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val)
  9446. {
  9447. ASN1uint32_t y;
  9448. if (!ASN1PERDecExtensionBit(dec, &y))
  9449. return 0;
  9450. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9451. return 0;
  9452. if ((val)->o[0] & 0x80) {
  9453. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9454. return 0;
  9455. }
  9456. if (y) {
  9457. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9458. return 0;
  9459. }
  9460. return 1;
  9461. }
  9462. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val)
  9463. {
  9464. if (val) {
  9465. if ((val)->o[0] & 0x80) {
  9466. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9467. }
  9468. }
  9469. }
  9470. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val)
  9471. {
  9472. if (!ASN1PEREncExtensionBitClear(enc))
  9473. return 0;
  9474. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9475. return 0;
  9476. if ((val)->o[0] & 0x80) {
  9477. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9478. return 0;
  9479. }
  9480. return 1;
  9481. }
  9482. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val)
  9483. {
  9484. ASN1uint32_t y;
  9485. if (!ASN1PERDecExtensionBit(dec, &y))
  9486. return 0;
  9487. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9488. return 0;
  9489. if ((val)->o[0] & 0x80) {
  9490. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9491. return 0;
  9492. }
  9493. if (y) {
  9494. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9495. return 0;
  9496. }
  9497. return 1;
  9498. }
  9499. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val)
  9500. {
  9501. if (val) {
  9502. if ((val)->o[0] & 0x80) {
  9503. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9504. }
  9505. }
  9506. }
  9507. static ASN1stringtableentry_t PartyNumber_dataPartyNumber_StringTableEntries[] = {
  9508. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9509. { 48, 57, 3 },
  9510. };
  9511. static ASN1stringtable_t PartyNumber_dataPartyNumber_StringTable = {
  9512. 4, PartyNumber_dataPartyNumber_StringTableEntries
  9513. };
  9514. static ASN1stringtableentry_t PartyNumber_telexPartyNumber_StringTableEntries[] = {
  9515. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9516. { 48, 57, 3 },
  9517. };
  9518. static ASN1stringtable_t PartyNumber_telexPartyNumber_StringTable = {
  9519. 4, PartyNumber_telexPartyNumber_StringTableEntries
  9520. };
  9521. static ASN1stringtableentry_t PartyNumber_nationalStandardPartyNumber_StringTableEntries[] = {
  9522. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9523. { 48, 57, 3 },
  9524. };
  9525. static ASN1stringtable_t PartyNumber_nationalStandardPartyNumber_StringTable = {
  9526. 4, PartyNumber_nationalStandardPartyNumber_StringTableEntries
  9527. };
  9528. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val)
  9529. {
  9530. ASN1uint32_t t;
  9531. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  9532. return 0;
  9533. switch ((val)->choice) {
  9534. case 1:
  9535. if (!ASN1Enc_PublicPartyNumber(enc, &(val)->u.publicNumber))
  9536. return 0;
  9537. break;
  9538. case 2:
  9539. t = lstrlenA((val)->u.dataPartyNumber);
  9540. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9541. return 0;
  9542. ASN1PEREncAlignment(enc);
  9543. if (!ASN1PEREncTableCharString(enc, t, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9544. return 0;
  9545. break;
  9546. case 3:
  9547. t = lstrlenA((val)->u.telexPartyNumber);
  9548. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9549. return 0;
  9550. ASN1PEREncAlignment(enc);
  9551. if (!ASN1PEREncTableCharString(enc, t, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9552. return 0;
  9553. break;
  9554. case 4:
  9555. if (!ASN1Enc_PrivatePartyNumber(enc, &(val)->u.privateNumber))
  9556. return 0;
  9557. break;
  9558. case 5:
  9559. t = lstrlenA((val)->u.nationalStandardPartyNumber);
  9560. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9561. return 0;
  9562. ASN1PEREncAlignment(enc);
  9563. if (!ASN1PEREncTableCharString(enc, t, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9564. return 0;
  9565. break;
  9566. default:
  9567. /* impossible */
  9568. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  9569. return 0;
  9570. }
  9571. return 1;
  9572. }
  9573. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val)
  9574. {
  9575. ASN1uint32_t l;
  9576. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  9577. return 0;
  9578. switch ((val)->choice) {
  9579. case 1:
  9580. if (!ASN1Dec_PublicPartyNumber(dec, &(val)->u.publicNumber))
  9581. return 0;
  9582. break;
  9583. case 2:
  9584. if (!ASN1PERDecU32Val(dec, 7, &l))
  9585. return 0;
  9586. l += 1;
  9587. ASN1PERDecAlignment(dec);
  9588. /* Start of HANDCODED FIX FOR pdu security Issue */
  9589. if (l >= sizeof((val)->u.dataPartyNumber))
  9590. {
  9591. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9592. return 0;
  9593. }
  9594. /* End of HANDCODED FIX FOR pdu security Issue */
  9595. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9596. return 0;
  9597. break;
  9598. case 3:
  9599. if (!ASN1PERDecU32Val(dec, 7, &l))
  9600. return 0;
  9601. l += 1;
  9602. ASN1PERDecAlignment(dec);
  9603. /* Start of HANDCODED FIX FOR pdu security Issue */
  9604. if (l >= sizeof((val)->u.telexPartyNumber))
  9605. {
  9606. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9607. return 0;
  9608. }
  9609. /* End of HANDCODED FIX FOR pdu security Issue */
  9610. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9611. return 0;
  9612. break;
  9613. case 4:
  9614. if (!ASN1Dec_PrivatePartyNumber(dec, &(val)->u.privateNumber))
  9615. return 0;
  9616. break;
  9617. case 5:
  9618. if (!ASN1PERDecU32Val(dec, 7, &l))
  9619. return 0;
  9620. l += 1;
  9621. ASN1PERDecAlignment(dec);
  9622. /* Start of HANDCODED FIX FOR pdu security Issue */
  9623. if (l >= sizeof((val)->u.nationalStandardPartyNumber))
  9624. {
  9625. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9626. return 0;
  9627. }
  9628. /* End of HANDCODED FIX FOR pdu security Issue */
  9629. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9630. return 0;
  9631. break;
  9632. case 0:
  9633. /* extension case */
  9634. if (!ASN1PERDecSkipFragmented(dec, 8))
  9635. return 0;
  9636. break;
  9637. default:
  9638. /* impossible */
  9639. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  9640. return 0;
  9641. }
  9642. return 1;
  9643. }
  9644. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val)
  9645. {
  9646. if (val) {
  9647. switch ((val)->choice) {
  9648. case 1:
  9649. ASN1Free_PublicPartyNumber(&(val)->u.publicNumber);
  9650. break;
  9651. case 2:
  9652. break;
  9653. case 3:
  9654. break;
  9655. case 4:
  9656. ASN1Free_PrivatePartyNumber(&(val)->u.privateNumber);
  9657. break;
  9658. case 5:
  9659. break;
  9660. }
  9661. }
  9662. }
  9663. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val)
  9664. {
  9665. if (!ASN1PEREncExtensionBitClear(enc))
  9666. return 0;
  9667. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9668. return 0;
  9669. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9670. return 0;
  9671. if ((val)->o[0] & 0x80) {
  9672. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9673. return 0;
  9674. ASN1PEREncAlignment(enc);
  9675. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9676. return 0;
  9677. }
  9678. if (!ASN1PEREncBoolean(enc, (val)->needToRegister))
  9679. return 0;
  9680. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  9681. return 0;
  9682. return 1;
  9683. }
  9684. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val)
  9685. {
  9686. ASN1uint32_t y;
  9687. if (!ASN1PERDecExtensionBit(dec, &y))
  9688. return 0;
  9689. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9690. return 0;
  9691. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9692. return 0;
  9693. if ((val)->o[0] & 0x80) {
  9694. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9695. return 0;
  9696. ((val)->gatekeeperIdentifier).length += 1;
  9697. ASN1PERDecAlignment(dec);
  9698. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9699. return 0;
  9700. }
  9701. if (!ASN1PERDecBoolean(dec, &(val)->needToRegister))
  9702. return 0;
  9703. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  9704. return 0;
  9705. if (y) {
  9706. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9707. return 0;
  9708. }
  9709. return 1;
  9710. }
  9711. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val)
  9712. {
  9713. if (val) {
  9714. ASN1Free_TransportAddress(&(val)->rasAddress);
  9715. if ((val)->o[0] & 0x80) {
  9716. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9717. }
  9718. }
  9719. }
  9720. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val)
  9721. {
  9722. ASN1uint32_t y;
  9723. ASN1encoding_t ee;
  9724. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  9725. if (!ASN1PEREncBitVal(enc, 1, y))
  9726. return 0;
  9727. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9728. return 0;
  9729. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9730. return 0;
  9731. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  9732. return 0;
  9733. if ((val)->o[0] & 0x80) {
  9734. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9735. return 0;
  9736. }
  9737. if ((val)->o[0] & 0x40) {
  9738. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9739. return 0;
  9740. ASN1PEREncAlignment(enc);
  9741. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9742. return 0;
  9743. }
  9744. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9745. return 0;
  9746. if (y) {
  9747. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  9748. return 0;
  9749. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9750. return 0;
  9751. if ((val)->o[1] & 0x80) {
  9752. if (!ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  9753. return 0;
  9754. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9755. return 0;
  9756. }
  9757. if ((val)->o[1] & 0x40) {
  9758. if (!ASN1Enc_AuthenticationMechanism(ee, &(val)->authenticationMode))
  9759. return 0;
  9760. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9761. return 0;
  9762. }
  9763. if ((val)->o[1] & 0x20) {
  9764. if (!ASN1Enc_GatekeeperConfirm_tokens(ee, &(val)->tokens))
  9765. return 0;
  9766. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9767. return 0;
  9768. }
  9769. if ((val)->o[1] & 0x10) {
  9770. if (!ASN1Enc_GatekeeperConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  9771. return 0;
  9772. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9773. return 0;
  9774. }
  9775. if ((val)->o[1] & 0x8) {
  9776. if (!ASN1PEREncObjectIdentifier(ee, &(val)->algorithmOID))
  9777. return 0;
  9778. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9779. return 0;
  9780. }
  9781. if ((val)->o[1] & 0x4) {
  9782. if (!ASN1Enc_GatekeeperConfirm_integrity(ee, &(val)->integrity))
  9783. return 0;
  9784. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9785. return 0;
  9786. }
  9787. if ((val)->o[1] & 0x2) {
  9788. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  9789. return 0;
  9790. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9791. return 0;
  9792. }
  9793. ASN1_CloseEncoder2(ee);
  9794. }
  9795. return 1;
  9796. }
  9797. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val)
  9798. {
  9799. ASN1uint32_t y;
  9800. ASN1decoding_t dd;
  9801. ASN1octet_t *db;
  9802. ASN1uint32_t ds;
  9803. ASN1uint32_t i;
  9804. ASN1uint32_t e;
  9805. if (!ASN1PERDecExtensionBit(dec, &y))
  9806. return 0;
  9807. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9808. return 0;
  9809. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  9810. return 0;
  9811. (val)->requestSeqNum += 1;
  9812. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  9813. return 0;
  9814. if ((val)->o[0] & 0x80) {
  9815. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9816. return 0;
  9817. }
  9818. if ((val)->o[0] & 0x40) {
  9819. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9820. return 0;
  9821. ((val)->gatekeeperIdentifier).length += 1;
  9822. ASN1PERDecAlignment(dec);
  9823. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9824. return 0;
  9825. }
  9826. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9827. return 0;
  9828. if (!y) {
  9829. ZeroMemory((val)->o + 1, 1);
  9830. } else {
  9831. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  9832. return 0;
  9833. if ((val)->o[1] & 0x80) {
  9834. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9835. return 0;
  9836. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9837. return 0;
  9838. if (!ASN1Dec_GatekeeperConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  9839. return 0;
  9840. ASN1_CloseDecoder(dd);
  9841. ASN1Free(db);
  9842. }
  9843. if ((val)->o[1] & 0x40) {
  9844. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9845. return 0;
  9846. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9847. return 0;
  9848. if (!ASN1Dec_AuthenticationMechanism(dd, &(val)->authenticationMode))
  9849. return 0;
  9850. ASN1_CloseDecoder(dd);
  9851. ASN1Free(db);
  9852. }
  9853. if ((val)->o[1] & 0x20) {
  9854. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9855. return 0;
  9856. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9857. return 0;
  9858. if (!ASN1Dec_GatekeeperConfirm_tokens(dd, &(val)->tokens))
  9859. return 0;
  9860. ASN1_CloseDecoder(dd);
  9861. ASN1Free(db);
  9862. }
  9863. if ((val)->o[1] & 0x10) {
  9864. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9865. return 0;
  9866. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9867. return 0;
  9868. if (!ASN1Dec_GatekeeperConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  9869. return 0;
  9870. ASN1_CloseDecoder(dd);
  9871. ASN1Free(db);
  9872. }
  9873. if ((val)->o[1] & 0x8) {
  9874. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9875. return 0;
  9876. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9877. return 0;
  9878. if (!ASN1PERDecObjectIdentifier(dd, &(val)->algorithmOID))
  9879. return 0;
  9880. ASN1_CloseDecoder(dd);
  9881. ASN1Free(db);
  9882. }
  9883. if ((val)->o[1] & 0x4) {
  9884. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9885. return 0;
  9886. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9887. return 0;
  9888. if (!ASN1Dec_GatekeeperConfirm_integrity(dd, &(val)->integrity))
  9889. return 0;
  9890. ASN1_CloseDecoder(dd);
  9891. ASN1Free(db);
  9892. }
  9893. if ((val)->o[1] & 0x2) {
  9894. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9895. return 0;
  9896. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9897. return 0;
  9898. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  9899. return 0;
  9900. ASN1_CloseDecoder(dd);
  9901. ASN1Free(db);
  9902. }
  9903. for (i = 0; i < e; i++) {
  9904. if (!ASN1PERDecSkipFragmented(dec, 8))
  9905. return 0;
  9906. }
  9907. }
  9908. return 1;
  9909. }
  9910. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val)
  9911. {
  9912. if (val) {
  9913. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  9914. if ((val)->o[0] & 0x80) {
  9915. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9916. }
  9917. if ((val)->o[0] & 0x40) {
  9918. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9919. }
  9920. ASN1Free_TransportAddress(&(val)->rasAddress);
  9921. if ((val)->o[1] & 0x80) {
  9922. ASN1Free_GatekeeperConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  9923. }
  9924. if ((val)->o[1] & 0x40) {
  9925. ASN1Free_AuthenticationMechanism(&(val)->authenticationMode);
  9926. }
  9927. if ((val)->o[1] & 0x20) {
  9928. ASN1Free_GatekeeperConfirm_tokens(&(val)->tokens);
  9929. }
  9930. if ((val)->o[1] & 0x10) {
  9931. ASN1Free_GatekeeperConfirm_cryptoTokens(&(val)->cryptoTokens);
  9932. }
  9933. if ((val)->o[1] & 0x8) {
  9934. ASN1objectidentifier_free(&(val)->algorithmOID);
  9935. }
  9936. if ((val)->o[1] & 0x4) {
  9937. ASN1Free_GatekeeperConfirm_integrity(&(val)->integrity);
  9938. }
  9939. if ((val)->o[1] & 0x2) {
  9940. ASN1Free_ICV(&(val)->integrityCheckValue);
  9941. }
  9942. }
  9943. }
  9944. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val)
  9945. {
  9946. ASN1octet_t o[3];
  9947. ASN1uint32_t y;
  9948. ASN1uint32_t l;
  9949. ASN1encoding_t ee;
  9950. CopyMemory(o, (val)->o, 3);
  9951. o[1] |= 0x80;
  9952. o[1] |= 0x40;
  9953. o[2] |= 0x40;
  9954. y = ASN1PEREncCheckExtensions(10, (val)->o + 1);
  9955. if (!ASN1PEREncBitVal(enc, 1, y))
  9956. return 0;
  9957. if (!ASN1PEREncBits(enc, 7, o))
  9958. return 0;
  9959. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9960. return 0;
  9961. if (!ASN1Enc_CallType(enc, &(val)->callType))
  9962. return 0;
  9963. if (o[0] & 0x80) {
  9964. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  9965. return 0;
  9966. }
  9967. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  9968. return 0;
  9969. ASN1PEREncAlignment(enc);
  9970. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  9971. return 0;
  9972. if (o[0] & 0x40) {
  9973. if (!ASN1Enc_AdmissionRequest_destinationInfo(enc, &(val)->destinationInfo))
  9974. return 0;
  9975. }
  9976. if (o[0] & 0x20) {
  9977. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  9978. return 0;
  9979. }
  9980. if (o[0] & 0x10) {
  9981. if (!ASN1Enc_AdmissionRequest_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  9982. return 0;
  9983. }
  9984. if (!ASN1Enc_AdmissionRequest_srcInfo(enc, &(val)->srcInfo))
  9985. return 0;
  9986. if (o[0] & 0x8) {
  9987. if (!ASN1Enc_TransportAddress(enc, &(val)->srcCallSignalAddress))
  9988. return 0;
  9989. }
  9990. l = ASN1uint32_uoctets((val)->bandWidth);
  9991. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  9992. return 0;
  9993. ASN1PEREncAlignment(enc);
  9994. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  9995. return 0;
  9996. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  9997. return 0;
  9998. if (o[0] & 0x4) {
  9999. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10000. return 0;
  10001. }
  10002. if (o[0] & 0x2) {
  10003. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  10004. return 0;
  10005. }
  10006. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10007. return 0;
  10008. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  10009. return 0;
  10010. if (!ASN1PEREncBoolean(enc, (val)->answerCall))
  10011. return 0;
  10012. if (y) {
  10013. if (!ASN1PEREncNormallySmallBits(enc, 10, o + 1))
  10014. return 0;
  10015. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10016. return 0;
  10017. if (o[1] & 0x80) {
  10018. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10019. return 0;
  10020. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10021. return 0;
  10022. }
  10023. if (o[1] & 0x40) {
  10024. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10025. return 0;
  10026. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10027. return 0;
  10028. }
  10029. if (o[1] & 0x20) {
  10030. if (!ASN1Enc_AdmissionRequest_srcAlternatives(ee, &(val)->srcAlternatives))
  10031. return 0;
  10032. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10033. return 0;
  10034. }
  10035. if (o[1] & 0x10) {
  10036. if (!ASN1Enc_AdmissionRequest_destAlternatives(ee, &(val)->destAlternatives))
  10037. return 0;
  10038. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10039. return 0;
  10040. }
  10041. if (o[1] & 0x8) {
  10042. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10043. return 0;
  10044. ASN1PEREncAlignment(ee);
  10045. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10046. return 0;
  10047. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10048. return 0;
  10049. }
  10050. if (o[1] & 0x4) {
  10051. if (!ASN1Enc_AdmissionRequest_tokens(ee, &(val)->tokens))
  10052. return 0;
  10053. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10054. return 0;
  10055. }
  10056. if (o[1] & 0x2) {
  10057. if (!ASN1Enc_AdmissionRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10058. return 0;
  10059. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10060. return 0;
  10061. }
  10062. if (o[1] & 0x1) {
  10063. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10064. return 0;
  10065. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10066. return 0;
  10067. }
  10068. if (o[2] & 0x80) {
  10069. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  10070. return 0;
  10071. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10072. return 0;
  10073. }
  10074. if (o[2] & 0x40) {
  10075. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  10076. return 0;
  10077. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10078. return 0;
  10079. }
  10080. ASN1_CloseEncoder2(ee);
  10081. }
  10082. return 1;
  10083. }
  10084. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val)
  10085. {
  10086. ASN1uint32_t y;
  10087. ASN1uint32_t l;
  10088. ASN1decoding_t dd;
  10089. ASN1octet_t *db;
  10090. ASN1uint32_t ds;
  10091. ASN1uint32_t i;
  10092. ASN1uint32_t e;
  10093. if (!ASN1PERDecExtensionBit(dec, &y))
  10094. return 0;
  10095. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  10096. return 0;
  10097. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10098. return 0;
  10099. (val)->requestSeqNum += 1;
  10100. if (!ASN1Dec_CallType(dec, &(val)->callType))
  10101. return 0;
  10102. if ((val)->o[0] & 0x80) {
  10103. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  10104. return 0;
  10105. }
  10106. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10107. return 0;
  10108. ((val)->endpointIdentifier).length += 1;
  10109. ASN1PERDecAlignment(dec);
  10110. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10111. return 0;
  10112. if ((val)->o[0] & 0x40) {
  10113. if (!ASN1Dec_AdmissionRequest_destinationInfo(dec, &(val)->destinationInfo))
  10114. return 0;
  10115. }
  10116. if ((val)->o[0] & 0x20) {
  10117. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  10118. return 0;
  10119. }
  10120. if ((val)->o[0] & 0x10) {
  10121. if (!ASN1Dec_AdmissionRequest_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  10122. return 0;
  10123. }
  10124. if (!ASN1Dec_AdmissionRequest_srcInfo(dec, &(val)->srcInfo))
  10125. return 0;
  10126. if ((val)->o[0] & 0x8) {
  10127. if (!ASN1Dec_TransportAddress(dec, &(val)->srcCallSignalAddress))
  10128. return 0;
  10129. }
  10130. if (!ASN1PERDecU32Val(dec, 2, &l))
  10131. return 0;
  10132. l += 1;
  10133. ASN1PERDecAlignment(dec);
  10134. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10135. return 0;
  10136. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10137. return 0;
  10138. if ((val)->o[0] & 0x4) {
  10139. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10140. return 0;
  10141. }
  10142. if ((val)->o[0] & 0x2) {
  10143. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  10144. return 0;
  10145. }
  10146. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10147. return 0;
  10148. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  10149. return 0;
  10150. if (!ASN1PERDecBoolean(dec, &(val)->answerCall))
  10151. return 0;
  10152. if (!y) {
  10153. ZeroMemory((val)->o + 1, 2);
  10154. } else {
  10155. if (!ASN1PERDecNormallySmallExtension(dec, &e, 10, (val)->o + 1))
  10156. return 0;
  10157. if ((val)->o[1] & 0x80) {
  10158. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10159. return 0;
  10160. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10161. return 0;
  10162. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10163. return 0;
  10164. ASN1_CloseDecoder(dd);
  10165. ASN1Free(db);
  10166. }
  10167. if ((val)->o[1] & 0x40) {
  10168. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10169. return 0;
  10170. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10171. return 0;
  10172. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10173. return 0;
  10174. ASN1_CloseDecoder(dd);
  10175. ASN1Free(db);
  10176. }
  10177. if ((val)->o[1] & 0x20) {
  10178. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10179. return 0;
  10180. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10181. return 0;
  10182. if (!ASN1Dec_AdmissionRequest_srcAlternatives(dd, &(val)->srcAlternatives))
  10183. return 0;
  10184. ASN1_CloseDecoder(dd);
  10185. ASN1Free(db);
  10186. }
  10187. if ((val)->o[1] & 0x10) {
  10188. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10189. return 0;
  10190. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10191. return 0;
  10192. if (!ASN1Dec_AdmissionRequest_destAlternatives(dd, &(val)->destAlternatives))
  10193. return 0;
  10194. ASN1_CloseDecoder(dd);
  10195. ASN1Free(db);
  10196. }
  10197. if ((val)->o[1] & 0x8) {
  10198. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10199. return 0;
  10200. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10201. return 0;
  10202. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10203. return 0;
  10204. ((val)->gatekeeperIdentifier).length += 1;
  10205. ASN1PERDecAlignment(dd);
  10206. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10207. return 0;
  10208. ASN1_CloseDecoder(dd);
  10209. ASN1Free(db);
  10210. }
  10211. if ((val)->o[1] & 0x4) {
  10212. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10213. return 0;
  10214. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10215. return 0;
  10216. if (!ASN1Dec_AdmissionRequest_tokens(dd, &(val)->tokens))
  10217. return 0;
  10218. ASN1_CloseDecoder(dd);
  10219. ASN1Free(db);
  10220. }
  10221. if ((val)->o[1] & 0x2) {
  10222. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10223. return 0;
  10224. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10225. return 0;
  10226. if (!ASN1Dec_AdmissionRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10227. return 0;
  10228. ASN1_CloseDecoder(dd);
  10229. ASN1Free(db);
  10230. }
  10231. if ((val)->o[1] & 0x1) {
  10232. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10233. return 0;
  10234. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10235. return 0;
  10236. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10237. return 0;
  10238. ASN1_CloseDecoder(dd);
  10239. ASN1Free(db);
  10240. }
  10241. if ((val)->o[2] & 0x80) {
  10242. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10243. return 0;
  10244. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10245. return 0;
  10246. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  10247. return 0;
  10248. ASN1_CloseDecoder(dd);
  10249. ASN1Free(db);
  10250. }
  10251. if ((val)->o[2] & 0x40) {
  10252. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10253. return 0;
  10254. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10255. return 0;
  10256. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  10257. return 0;
  10258. ASN1_CloseDecoder(dd);
  10259. ASN1Free(db);
  10260. }
  10261. for (i = 0; i < e; i++) {
  10262. if (!ASN1PERDecSkipFragmented(dec, 8))
  10263. return 0;
  10264. }
  10265. }
  10266. return 1;
  10267. }
  10268. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val)
  10269. {
  10270. if (val) {
  10271. ASN1char16string_free(&(val)->endpointIdentifier);
  10272. if ((val)->o[0] & 0x40) {
  10273. ASN1Free_AdmissionRequest_destinationInfo(&(val)->destinationInfo);
  10274. }
  10275. if ((val)->o[0] & 0x20) {
  10276. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  10277. }
  10278. if ((val)->o[0] & 0x10) {
  10279. ASN1Free_AdmissionRequest_destExtraCallInfo(&(val)->destExtraCallInfo);
  10280. }
  10281. ASN1Free_AdmissionRequest_srcInfo(&(val)->srcInfo);
  10282. if ((val)->o[0] & 0x8) {
  10283. ASN1Free_TransportAddress(&(val)->srcCallSignalAddress);
  10284. }
  10285. if ((val)->o[0] & 0x4) {
  10286. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10287. }
  10288. if ((val)->o[1] & 0x40) {
  10289. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10290. }
  10291. if ((val)->o[1] & 0x20) {
  10292. ASN1Free_AdmissionRequest_srcAlternatives(&(val)->srcAlternatives);
  10293. }
  10294. if ((val)->o[1] & 0x10) {
  10295. ASN1Free_AdmissionRequest_destAlternatives(&(val)->destAlternatives);
  10296. }
  10297. if ((val)->o[1] & 0x8) {
  10298. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10299. }
  10300. if ((val)->o[1] & 0x4) {
  10301. ASN1Free_AdmissionRequest_tokens(&(val)->tokens);
  10302. }
  10303. if ((val)->o[1] & 0x2) {
  10304. ASN1Free_AdmissionRequest_cryptoTokens(&(val)->cryptoTokens);
  10305. }
  10306. if ((val)->o[1] & 0x1) {
  10307. ASN1Free_ICV(&(val)->integrityCheckValue);
  10308. }
  10309. }
  10310. }
  10311. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val)
  10312. {
  10313. ASN1octet_t o[2];
  10314. ASN1uint32_t y;
  10315. ASN1encoding_t ee;
  10316. CopyMemory(o, (val)->o, 2);
  10317. o[1] |= 0x40;
  10318. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  10319. if (!ASN1PEREncBitVal(enc, 1, y))
  10320. return 0;
  10321. if (!ASN1PEREncBits(enc, 2, o))
  10322. return 0;
  10323. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10324. return 0;
  10325. if (o[0] & 0x80) {
  10326. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  10327. return 0;
  10328. ASN1PEREncAlignment(enc);
  10329. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  10330. return 0;
  10331. }
  10332. if (!ASN1Enc_LocationRequest_destinationInfo(enc, &(val)->destinationInfo))
  10333. return 0;
  10334. if (o[0] & 0x40) {
  10335. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10336. return 0;
  10337. }
  10338. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10339. return 0;
  10340. if (y) {
  10341. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  10342. return 0;
  10343. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10344. return 0;
  10345. if (o[1] & 0x80) {
  10346. if (!ASN1Enc_LocationRequest_sourceInfo(ee, &(val)->sourceInfo))
  10347. return 0;
  10348. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10349. return 0;
  10350. }
  10351. if (o[1] & 0x40) {
  10352. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10353. return 0;
  10354. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10355. return 0;
  10356. }
  10357. if (o[1] & 0x20) {
  10358. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10359. return 0;
  10360. ASN1PEREncAlignment(ee);
  10361. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10362. return 0;
  10363. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10364. return 0;
  10365. }
  10366. if (o[1] & 0x10) {
  10367. if (!ASN1Enc_LocationRequest_tokens(ee, &(val)->tokens))
  10368. return 0;
  10369. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10370. return 0;
  10371. }
  10372. if (o[1] & 0x8) {
  10373. if (!ASN1Enc_LocationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10374. return 0;
  10375. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10376. return 0;
  10377. }
  10378. if (o[1] & 0x4) {
  10379. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10380. return 0;
  10381. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10382. return 0;
  10383. }
  10384. ASN1_CloseEncoder2(ee);
  10385. }
  10386. return 1;
  10387. }
  10388. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val)
  10389. {
  10390. ASN1uint32_t y;
  10391. ASN1decoding_t dd;
  10392. ASN1octet_t *db;
  10393. ASN1uint32_t ds;
  10394. ASN1uint32_t i;
  10395. ASN1uint32_t e;
  10396. if (!ASN1PERDecExtensionBit(dec, &y))
  10397. return 0;
  10398. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10399. return 0;
  10400. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10401. return 0;
  10402. (val)->requestSeqNum += 1;
  10403. if ((val)->o[0] & 0x80) {
  10404. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10405. return 0;
  10406. ((val)->endpointIdentifier).length += 1;
  10407. ASN1PERDecAlignment(dec);
  10408. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10409. return 0;
  10410. }
  10411. if (!ASN1Dec_LocationRequest_destinationInfo(dec, &(val)->destinationInfo))
  10412. return 0;
  10413. if ((val)->o[0] & 0x40) {
  10414. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10415. return 0;
  10416. }
  10417. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10418. return 0;
  10419. if (!y) {
  10420. ZeroMemory((val)->o + 1, 1);
  10421. } else {
  10422. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  10423. return 0;
  10424. if ((val)->o[1] & 0x80) {
  10425. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10426. return 0;
  10427. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10428. return 0;
  10429. if (!ASN1Dec_LocationRequest_sourceInfo(dd, &(val)->sourceInfo))
  10430. return 0;
  10431. ASN1_CloseDecoder(dd);
  10432. ASN1Free(db);
  10433. }
  10434. if ((val)->o[1] & 0x40) {
  10435. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10436. return 0;
  10437. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10438. return 0;
  10439. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10440. return 0;
  10441. ASN1_CloseDecoder(dd);
  10442. ASN1Free(db);
  10443. }
  10444. if ((val)->o[1] & 0x20) {
  10445. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10446. return 0;
  10447. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10448. return 0;
  10449. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10450. return 0;
  10451. ((val)->gatekeeperIdentifier).length += 1;
  10452. ASN1PERDecAlignment(dd);
  10453. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10454. return 0;
  10455. ASN1_CloseDecoder(dd);
  10456. ASN1Free(db);
  10457. }
  10458. if ((val)->o[1] & 0x10) {
  10459. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10460. return 0;
  10461. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10462. return 0;
  10463. if (!ASN1Dec_LocationRequest_tokens(dd, &(val)->tokens))
  10464. return 0;
  10465. ASN1_CloseDecoder(dd);
  10466. ASN1Free(db);
  10467. }
  10468. if ((val)->o[1] & 0x8) {
  10469. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10470. return 0;
  10471. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10472. return 0;
  10473. if (!ASN1Dec_LocationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10474. return 0;
  10475. ASN1_CloseDecoder(dd);
  10476. ASN1Free(db);
  10477. }
  10478. if ((val)->o[1] & 0x4) {
  10479. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10480. return 0;
  10481. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10482. return 0;
  10483. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10484. return 0;
  10485. ASN1_CloseDecoder(dd);
  10486. ASN1Free(db);
  10487. }
  10488. for (i = 0; i < e; i++) {
  10489. if (!ASN1PERDecSkipFragmented(dec, 8))
  10490. return 0;
  10491. }
  10492. }
  10493. return 1;
  10494. }
  10495. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val)
  10496. {
  10497. if (val) {
  10498. if ((val)->o[0] & 0x80) {
  10499. ASN1char16string_free(&(val)->endpointIdentifier);
  10500. }
  10501. ASN1Free_LocationRequest_destinationInfo(&(val)->destinationInfo);
  10502. if ((val)->o[0] & 0x40) {
  10503. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10504. }
  10505. ASN1Free_TransportAddress(&(val)->replyAddress);
  10506. if ((val)->o[1] & 0x80) {
  10507. ASN1Free_LocationRequest_sourceInfo(&(val)->sourceInfo);
  10508. }
  10509. if ((val)->o[1] & 0x20) {
  10510. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10511. }
  10512. if ((val)->o[1] & 0x10) {
  10513. ASN1Free_LocationRequest_tokens(&(val)->tokens);
  10514. }
  10515. if ((val)->o[1] & 0x8) {
  10516. ASN1Free_LocationRequest_cryptoTokens(&(val)->cryptoTokens);
  10517. }
  10518. if ((val)->o[1] & 0x4) {
  10519. ASN1Free_ICV(&(val)->integrityCheckValue);
  10520. }
  10521. }
  10522. }
  10523. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val)
  10524. {
  10525. ASN1octet_t o[2];
  10526. ASN1uint32_t y;
  10527. ASN1encoding_t ee;
  10528. CopyMemory(o, (val)->o, 2);
  10529. o[1] |= 0x80;
  10530. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10531. if (!ASN1PEREncBitVal(enc, 1, y))
  10532. return 0;
  10533. if (!ASN1PEREncBits(enc, 2, o))
  10534. return 0;
  10535. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10536. return 0;
  10537. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10538. return 0;
  10539. if (o[0] & 0x80) {
  10540. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10541. return 0;
  10542. }
  10543. if (o[0] & 0x40) {
  10544. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10545. return 0;
  10546. }
  10547. if (y) {
  10548. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10549. return 0;
  10550. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10551. return 0;
  10552. if (o[1] & 0x80) {
  10553. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10554. return 0;
  10555. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10556. return 0;
  10557. }
  10558. if (o[1] & 0x40) {
  10559. if (!ASN1Enc_InfoRequest_tokens(ee, &(val)->tokens))
  10560. return 0;
  10561. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10562. return 0;
  10563. }
  10564. if (o[1] & 0x20) {
  10565. if (!ASN1Enc_InfoRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10566. return 0;
  10567. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10568. return 0;
  10569. }
  10570. if (o[1] & 0x10) {
  10571. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10572. return 0;
  10573. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10574. return 0;
  10575. }
  10576. if (o[1] & 0x8) {
  10577. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  10578. return 0;
  10579. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10580. return 0;
  10581. }
  10582. ASN1_CloseEncoder2(ee);
  10583. }
  10584. return 1;
  10585. }
  10586. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val)
  10587. {
  10588. ASN1uint32_t y;
  10589. ASN1decoding_t dd;
  10590. ASN1octet_t *db;
  10591. ASN1uint32_t ds;
  10592. ASN1uint32_t i;
  10593. ASN1uint32_t e;
  10594. if (!ASN1PERDecExtensionBit(dec, &y))
  10595. return 0;
  10596. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10597. return 0;
  10598. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10599. return 0;
  10600. (val)->requestSeqNum += 1;
  10601. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10602. return 0;
  10603. if ((val)->o[0] & 0x80) {
  10604. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10605. return 0;
  10606. }
  10607. if ((val)->o[0] & 0x40) {
  10608. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10609. return 0;
  10610. }
  10611. if (!y) {
  10612. ZeroMemory((val)->o + 1, 1);
  10613. } else {
  10614. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  10615. return 0;
  10616. if ((val)->o[1] & 0x80) {
  10617. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10618. return 0;
  10619. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10620. return 0;
  10621. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10622. return 0;
  10623. ASN1_CloseDecoder(dd);
  10624. ASN1Free(db);
  10625. }
  10626. if ((val)->o[1] & 0x40) {
  10627. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10628. return 0;
  10629. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10630. return 0;
  10631. if (!ASN1Dec_InfoRequest_tokens(dd, &(val)->tokens))
  10632. return 0;
  10633. ASN1_CloseDecoder(dd);
  10634. ASN1Free(db);
  10635. }
  10636. if ((val)->o[1] & 0x20) {
  10637. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10638. return 0;
  10639. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10640. return 0;
  10641. if (!ASN1Dec_InfoRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10642. return 0;
  10643. ASN1_CloseDecoder(dd);
  10644. ASN1Free(db);
  10645. }
  10646. if ((val)->o[1] & 0x10) {
  10647. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10648. return 0;
  10649. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10650. return 0;
  10651. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10652. return 0;
  10653. ASN1_CloseDecoder(dd);
  10654. ASN1Free(db);
  10655. }
  10656. if ((val)->o[1] & 0x8) {
  10657. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10658. return 0;
  10659. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10660. return 0;
  10661. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  10662. return 0;
  10663. ASN1_CloseDecoder(dd);
  10664. ASN1Free(db);
  10665. }
  10666. for (i = 0; i < e; i++) {
  10667. if (!ASN1PERDecSkipFragmented(dec, 8))
  10668. return 0;
  10669. }
  10670. }
  10671. return 1;
  10672. }
  10673. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val)
  10674. {
  10675. if (val) {
  10676. if ((val)->o[0] & 0x80) {
  10677. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10678. }
  10679. if ((val)->o[0] & 0x40) {
  10680. ASN1Free_TransportAddress(&(val)->replyAddress);
  10681. }
  10682. if ((val)->o[1] & 0x80) {
  10683. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10684. }
  10685. if ((val)->o[1] & 0x40) {
  10686. ASN1Free_InfoRequest_tokens(&(val)->tokens);
  10687. }
  10688. if ((val)->o[1] & 0x20) {
  10689. ASN1Free_InfoRequest_cryptoTokens(&(val)->cryptoTokens);
  10690. }
  10691. if ((val)->o[1] & 0x10) {
  10692. ASN1Free_ICV(&(val)->integrityCheckValue);
  10693. }
  10694. }
  10695. }
  10696. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val)
  10697. {
  10698. if (!ASN1PEREncExtensionBitClear(enc))
  10699. return 0;
  10700. if (!ASN1PEREncBits(enc, 2, (val)->o))
  10701. return 0;
  10702. if ((val)->o[0] & 0x80) {
  10703. if (!ASN1Enc_TransportAddress(enc, &(val)->sendAddress))
  10704. return 0;
  10705. }
  10706. if ((val)->o[0] & 0x40) {
  10707. if (!ASN1Enc_TransportAddress(enc, &(val)->recvAddress))
  10708. return 0;
  10709. }
  10710. return 1;
  10711. }
  10712. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val)
  10713. {
  10714. ASN1uint32_t y;
  10715. if (!ASN1PERDecExtensionBit(dec, &y))
  10716. return 0;
  10717. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10718. return 0;
  10719. if ((val)->o[0] & 0x80) {
  10720. if (!ASN1Dec_TransportAddress(dec, &(val)->sendAddress))
  10721. return 0;
  10722. }
  10723. if ((val)->o[0] & 0x40) {
  10724. if (!ASN1Dec_TransportAddress(dec, &(val)->recvAddress))
  10725. return 0;
  10726. }
  10727. if (y) {
  10728. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10729. return 0;
  10730. }
  10731. return 1;
  10732. }
  10733. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val)
  10734. {
  10735. if (val) {
  10736. if ((val)->o[0] & 0x80) {
  10737. ASN1Free_TransportAddress(&(val)->sendAddress);
  10738. }
  10739. if ((val)->o[0] & 0x40) {
  10740. ASN1Free_TransportAddress(&(val)->recvAddress);
  10741. }
  10742. }
  10743. }
  10744. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val)
  10745. {
  10746. ASN1uint32_t t;
  10747. ASN1uint32_t l;
  10748. if (!ASN1PEREncExtensionBitClear(enc))
  10749. return 0;
  10750. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtpAddress))
  10751. return 0;
  10752. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtcpAddress))
  10753. return 0;
  10754. t = lstrlenA((val)->cname);
  10755. if (!ASN1PEREncFragmentedCharString(enc, t, (val)->cname, 8))
  10756. return 0;
  10757. l = ASN1uint32_uoctets((val)->ssrc - 1);
  10758. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10759. return 0;
  10760. ASN1PEREncAlignment(enc);
  10761. if (!ASN1PEREncBitVal(enc, l * 8, (val)->ssrc - 1))
  10762. return 0;
  10763. if (!ASN1PEREncBitVal(enc, 8, (val)->sessionId - 1))
  10764. return 0;
  10765. if (!ASN1Enc_RTPSession_associatedSessionIds(enc, &(val)->associatedSessionIds))
  10766. return 0;
  10767. return 1;
  10768. }
  10769. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val)
  10770. {
  10771. ASN1uint32_t y;
  10772. ASN1uint32_t l;
  10773. if (!ASN1PERDecExtensionBit(dec, &y))
  10774. return 0;
  10775. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtpAddress))
  10776. return 0;
  10777. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtcpAddress))
  10778. return 0;
  10779. if (!ASN1PERDecFragmentedZeroCharString(dec, &(val)->cname, 8))
  10780. return 0;
  10781. if (!ASN1PERDecU32Val(dec, 2, &l))
  10782. return 0;
  10783. l += 1;
  10784. ASN1PERDecAlignment(dec);
  10785. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->ssrc))
  10786. return 0;
  10787. (val)->ssrc += 1;
  10788. if (!ASN1PERDecU16Val(dec, 8, &(val)->sessionId))
  10789. return 0;
  10790. (val)->sessionId += 1;
  10791. if (!ASN1Dec_RTPSession_associatedSessionIds(dec, &(val)->associatedSessionIds))
  10792. return 0;
  10793. if (y) {
  10794. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10795. return 0;
  10796. }
  10797. return 1;
  10798. }
  10799. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val)
  10800. {
  10801. if (val) {
  10802. ASN1Free_TransportChannelInfo(&(val)->rtpAddress);
  10803. ASN1Free_TransportChannelInfo(&(val)->rtcpAddress);
  10804. ASN1ztcharstring_free((val)->cname);
  10805. ASN1Free_RTPSession_associatedSessionIds(&(val)->associatedSessionIds);
  10806. }
  10807. }
  10808. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10809. {
  10810. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10811. }
  10812. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data val)
  10813. {
  10814. if (!ASN1Enc_TransportChannelInfo(enc, &val->value))
  10815. return 0;
  10816. return 1;
  10817. }
  10818. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10819. {
  10820. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn, sizeof(**val));
  10821. }
  10822. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data val)
  10823. {
  10824. if (!ASN1Dec_TransportChannelInfo(dec, &val->value))
  10825. return 0;
  10826. return 1;
  10827. }
  10828. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val)
  10829. {
  10830. if (val) {
  10831. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10832. }
  10833. }
  10834. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(PInfoRequestResponse_perCallInfo_Seq_data val)
  10835. {
  10836. if (val) {
  10837. ASN1Free_TransportChannelInfo(&val->value);
  10838. }
  10839. }
  10840. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10841. {
  10842. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10843. }
  10844. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video val)
  10845. {
  10846. if (!ASN1Enc_RTPSession(enc, &val->value))
  10847. return 0;
  10848. return 1;
  10849. }
  10850. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10851. {
  10852. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn, sizeof(**val));
  10853. }
  10854. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video val)
  10855. {
  10856. if (!ASN1Dec_RTPSession(dec, &val->value))
  10857. return 0;
  10858. return 1;
  10859. }
  10860. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val)
  10861. {
  10862. if (val) {
  10863. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10864. }
  10865. }
  10866. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(PInfoRequestResponse_perCallInfo_Seq_video val)
  10867. {
  10868. if (val) {
  10869. ASN1Free_RTPSession(&val->value);
  10870. }
  10871. }
  10872. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10873. {
  10874. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10875. }
  10876. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10877. {
  10878. if (!ASN1Enc_RTPSession(enc, &val->value))
  10879. return 0;
  10880. return 1;
  10881. }
  10882. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10883. {
  10884. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn, sizeof(**val));
  10885. }
  10886. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10887. {
  10888. if (!ASN1Dec_RTPSession(dec, &val->value))
  10889. return 0;
  10890. return 1;
  10891. }
  10892. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10893. {
  10894. if (val) {
  10895. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10896. }
  10897. }
  10898. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(PInfoRequestResponse_perCallInfo_Seq_audio val)
  10899. {
  10900. if (val) {
  10901. ASN1Free_RTPSession(&val->value);
  10902. }
  10903. }
  10904. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val)
  10905. {
  10906. ASN1octet_t o[2];
  10907. ASN1uint32_t y;
  10908. ASN1uint32_t l;
  10909. ASN1encoding_t ee;
  10910. CopyMemory(o, (val)->o, 2);
  10911. o[1] |= 0x80;
  10912. o[1] |= 0x10;
  10913. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10914. if (!ASN1PEREncBitVal(enc, 1, y))
  10915. return 0;
  10916. if (!ASN1PEREncBits(enc, 5, o))
  10917. return 0;
  10918. if (o[0] & 0x80) {
  10919. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10920. return 0;
  10921. }
  10922. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10923. return 0;
  10924. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10925. return 0;
  10926. if (o[0] & 0x40) {
  10927. if (!ASN1PEREncBoolean(enc, (val)->originator))
  10928. return 0;
  10929. }
  10930. if (o[0] & 0x20) {
  10931. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(enc, &(val)->audio))
  10932. return 0;
  10933. }
  10934. if (o[0] & 0x10) {
  10935. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(enc, &(val)->video))
  10936. return 0;
  10937. }
  10938. if (o[0] & 0x8) {
  10939. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(enc, &(val)->data))
  10940. return 0;
  10941. }
  10942. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->h245))
  10943. return 0;
  10944. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->callSignaling))
  10945. return 0;
  10946. if (!ASN1Enc_CallType(enc, &(val)->callType))
  10947. return 0;
  10948. l = ASN1uint32_uoctets((val)->bandWidth);
  10949. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10950. return 0;
  10951. ASN1PEREncAlignment(enc);
  10952. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  10953. return 0;
  10954. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  10955. return 0;
  10956. if (y) {
  10957. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10958. return 0;
  10959. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10960. return 0;
  10961. if (o[1] & 0x80) {
  10962. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10963. return 0;
  10964. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10965. return 0;
  10966. }
  10967. if (o[1] & 0x40) {
  10968. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ee, &(val)->tokens))
  10969. return 0;
  10970. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10971. return 0;
  10972. }
  10973. if (o[1] & 0x20) {
  10974. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ee, &(val)->cryptoTokens))
  10975. return 0;
  10976. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10977. return 0;
  10978. }
  10979. if (o[1] & 0x10) {
  10980. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ee, &(val)->substituteConfIDs))
  10981. return 0;
  10982. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10983. return 0;
  10984. }
  10985. if (o[1] & 0x8) {
  10986. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ee, &(val)->pdu))
  10987. return 0;
  10988. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10989. return 0;
  10990. }
  10991. ASN1_CloseEncoder2(ee);
  10992. }
  10993. return 1;
  10994. }
  10995. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val)
  10996. {
  10997. ASN1uint32_t y;
  10998. ASN1uint32_t l;
  10999. ASN1decoding_t dd;
  11000. ASN1octet_t *db;
  11001. ASN1uint32_t ds;
  11002. ASN1uint32_t i;
  11003. ASN1uint32_t e;
  11004. if (!ASN1PERDecExtensionBit(dec, &y))
  11005. return 0;
  11006. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  11007. return 0;
  11008. if ((val)->o[0] & 0x80) {
  11009. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11010. return 0;
  11011. }
  11012. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  11013. return 0;
  11014. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  11015. return 0;
  11016. if ((val)->o[0] & 0x40) {
  11017. if (!ASN1PERDecBoolean(dec, &(val)->originator))
  11018. return 0;
  11019. }
  11020. if ((val)->o[0] & 0x20) {
  11021. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(dec, &(val)->audio))
  11022. return 0;
  11023. }
  11024. if ((val)->o[0] & 0x10) {
  11025. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(dec, &(val)->video))
  11026. return 0;
  11027. }
  11028. if ((val)->o[0] & 0x8) {
  11029. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(dec, &(val)->data))
  11030. return 0;
  11031. }
  11032. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->h245))
  11033. return 0;
  11034. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->callSignaling))
  11035. return 0;
  11036. if (!ASN1Dec_CallType(dec, &(val)->callType))
  11037. return 0;
  11038. if (!ASN1PERDecU32Val(dec, 2, &l))
  11039. return 0;
  11040. l += 1;
  11041. ASN1PERDecAlignment(dec);
  11042. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  11043. return 0;
  11044. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  11045. return 0;
  11046. if (!y) {
  11047. ZeroMemory((val)->o + 1, 1);
  11048. } else {
  11049. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  11050. return 0;
  11051. if ((val)->o[1] & 0x80) {
  11052. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11053. return 0;
  11054. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11055. return 0;
  11056. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  11057. return 0;
  11058. ASN1_CloseDecoder(dd);
  11059. ASN1Free(db);
  11060. }
  11061. if ((val)->o[1] & 0x40) {
  11062. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11063. return 0;
  11064. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11065. return 0;
  11066. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(dd, &(val)->tokens))
  11067. return 0;
  11068. ASN1_CloseDecoder(dd);
  11069. ASN1Free(db);
  11070. }
  11071. if ((val)->o[1] & 0x20) {
  11072. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11073. return 0;
  11074. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11075. return 0;
  11076. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(dd, &(val)->cryptoTokens))
  11077. return 0;
  11078. ASN1_CloseDecoder(dd);
  11079. ASN1Free(db);
  11080. }
  11081. if ((val)->o[1] & 0x10) {
  11082. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11083. return 0;
  11084. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11085. return 0;
  11086. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(dd, &(val)->substituteConfIDs))
  11087. return 0;
  11088. ASN1_CloseDecoder(dd);
  11089. ASN1Free(db);
  11090. }
  11091. if ((val)->o[1] & 0x8) {
  11092. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11093. return 0;
  11094. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11095. return 0;
  11096. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(dd, &(val)->pdu))
  11097. return 0;
  11098. ASN1_CloseDecoder(dd);
  11099. ASN1Free(db);
  11100. }
  11101. for (i = 0; i < e; i++) {
  11102. if (!ASN1PERDecSkipFragmented(dec, 8))
  11103. return 0;
  11104. }
  11105. }
  11106. return 1;
  11107. }
  11108. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val)
  11109. {
  11110. if (val) {
  11111. if ((val)->o[0] & 0x80) {
  11112. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11113. }
  11114. if ((val)->o[0] & 0x20) {
  11115. ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(&(val)->audio);
  11116. }
  11117. if ((val)->o[0] & 0x10) {
  11118. ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(&(val)->video);
  11119. }
  11120. if ((val)->o[0] & 0x8) {
  11121. ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(&(val)->data);
  11122. }
  11123. ASN1Free_TransportChannelInfo(&(val)->h245);
  11124. ASN1Free_TransportChannelInfo(&(val)->callSignaling);
  11125. if ((val)->o[1] & 0x80) {
  11126. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  11127. }
  11128. if ((val)->o[1] & 0x40) {
  11129. ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(&(val)->tokens);
  11130. }
  11131. if ((val)->o[1] & 0x20) {
  11132. ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(&(val)->cryptoTokens);
  11133. }
  11134. if ((val)->o[1] & 0x10) {
  11135. ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(&(val)->substituteConfIDs);
  11136. }
  11137. if ((val)->o[1] & 0x8) {
  11138. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(&(val)->pdu);
  11139. }
  11140. }
  11141. }
  11142. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val)
  11143. {
  11144. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn);
  11145. }
  11146. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo val)
  11147. {
  11148. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq(enc, &val->value))
  11149. return 0;
  11150. return 1;
  11151. }
  11152. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val)
  11153. {
  11154. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn, sizeof(**val));
  11155. }
  11156. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo val)
  11157. {
  11158. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq(dec, &val->value))
  11159. return 0;
  11160. return 1;
  11161. }
  11162. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val)
  11163. {
  11164. if (val) {
  11165. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_ElmFn);
  11166. }
  11167. }
  11168. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_ElmFn(PInfoRequestResponse_perCallInfo val)
  11169. {
  11170. if (val) {
  11171. ASN1Free_InfoRequestResponse_perCallInfo_Seq(&val->value);
  11172. }
  11173. }
  11174. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val)
  11175. {
  11176. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn);
  11177. }
  11178. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress val)
  11179. {
  11180. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11181. return 0;
  11182. return 1;
  11183. }
  11184. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val)
  11185. {
  11186. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn, sizeof(**val));
  11187. }
  11188. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress val)
  11189. {
  11190. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11191. return 0;
  11192. return 1;
  11193. }
  11194. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val)
  11195. {
  11196. if (val) {
  11197. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn);
  11198. }
  11199. }
  11200. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn(PInfoRequestResponse_callSignalAddress val)
  11201. {
  11202. if (val) {
  11203. ASN1Free_TransportAddress(&val->value);
  11204. }
  11205. }
  11206. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val)
  11207. {
  11208. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_callSignalAddress_ElmFn);
  11209. }
  11210. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress_ElmFn(ASN1encoding_t enc, PAdmissionReject_callSignalAddress val)
  11211. {
  11212. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11213. return 0;
  11214. return 1;
  11215. }
  11216. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val)
  11217. {
  11218. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_callSignalAddress_ElmFn, sizeof(**val));
  11219. }
  11220. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress_ElmFn(ASN1decoding_t dec, PAdmissionReject_callSignalAddress val)
  11221. {
  11222. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11223. return 0;
  11224. return 1;
  11225. }
  11226. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val)
  11227. {
  11228. if (val) {
  11229. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_callSignalAddress_ElmFn);
  11230. }
  11231. }
  11232. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress_ElmFn(PAdmissionReject_callSignalAddress val)
  11233. {
  11234. if (val) {
  11235. ASN1Free_TransportAddress(&val->value);
  11236. }
  11237. }
  11238. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val)
  11239. {
  11240. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn);
  11241. }
  11242. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress val)
  11243. {
  11244. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11245. return 0;
  11246. return 1;
  11247. }
  11248. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val)
  11249. {
  11250. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11251. }
  11252. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress val)
  11253. {
  11254. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11255. return 0;
  11256. return 1;
  11257. }
  11258. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val)
  11259. {
  11260. if (val) {
  11261. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn);
  11262. }
  11263. }
  11264. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn(PUnregistrationRequest_callSignalAddress val)
  11265. {
  11266. if (val) {
  11267. ASN1Free_TransportAddress(&val->value);
  11268. }
  11269. }
  11270. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val)
  11271. {
  11272. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11273. }
  11274. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper val)
  11275. {
  11276. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11277. return 0;
  11278. return 1;
  11279. }
  11280. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val)
  11281. {
  11282. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11283. }
  11284. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper val)
  11285. {
  11286. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11287. return 0;
  11288. return 1;
  11289. }
  11290. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val)
  11291. {
  11292. if (val) {
  11293. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11294. }
  11295. }
  11296. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn(PRegistrationConfirm_alternateGatekeeper val)
  11297. {
  11298. if (val) {
  11299. ASN1Free_AlternateGK(&val->value);
  11300. }
  11301. }
  11302. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val)
  11303. {
  11304. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn);
  11305. }
  11306. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress val)
  11307. {
  11308. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11309. return 0;
  11310. return 1;
  11311. }
  11312. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val)
  11313. {
  11314. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn, sizeof(**val));
  11315. }
  11316. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress val)
  11317. {
  11318. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11319. return 0;
  11320. return 1;
  11321. }
  11322. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val)
  11323. {
  11324. if (val) {
  11325. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn);
  11326. }
  11327. }
  11328. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn(PRegistrationConfirm_callSignalAddress val)
  11329. {
  11330. if (val) {
  11331. ASN1Free_TransportAddress(&val->value);
  11332. }
  11333. }
  11334. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val)
  11335. {
  11336. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_rasAddress_ElmFn);
  11337. }
  11338. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_rasAddress val)
  11339. {
  11340. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11341. return 0;
  11342. return 1;
  11343. }
  11344. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val)
  11345. {
  11346. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_rasAddress_ElmFn, sizeof(**val));
  11347. }
  11348. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_rasAddress val)
  11349. {
  11350. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11351. return 0;
  11352. return 1;
  11353. }
  11354. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val)
  11355. {
  11356. if (val) {
  11357. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_rasAddress_ElmFn);
  11358. }
  11359. }
  11360. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress_ElmFn(PRegistrationRequest_rasAddress val)
  11361. {
  11362. if (val) {
  11363. ASN1Free_TransportAddress(&val->value);
  11364. }
  11365. }
  11366. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val)
  11367. {
  11368. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn);
  11369. }
  11370. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress val)
  11371. {
  11372. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11373. return 0;
  11374. return 1;
  11375. }
  11376. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val)
  11377. {
  11378. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11379. }
  11380. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress val)
  11381. {
  11382. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11383. return 0;
  11384. return 1;
  11385. }
  11386. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val)
  11387. {
  11388. if (val) {
  11389. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_callSignalAddress_ElmFn);
  11390. }
  11391. }
  11392. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress_ElmFn(PRegistrationRequest_callSignalAddress val)
  11393. {
  11394. if (val) {
  11395. ASN1Free_TransportAddress(&val->value);
  11396. }
  11397. }
  11398. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val)
  11399. {
  11400. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11401. }
  11402. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper val)
  11403. {
  11404. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11405. return 0;
  11406. return 1;
  11407. }
  11408. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val)
  11409. {
  11410. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11411. }
  11412. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper val)
  11413. {
  11414. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11415. return 0;
  11416. return 1;
  11417. }
  11418. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val)
  11419. {
  11420. if (val) {
  11421. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11422. }
  11423. }
  11424. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn(PGatekeeperConfirm_alternateGatekeeper val)
  11425. {
  11426. if (val) {
  11427. ASN1Free_AlternateGK(&val->value);
  11428. }
  11429. }
  11430. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val)
  11431. {
  11432. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn);
  11433. }
  11434. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper val)
  11435. {
  11436. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11437. return 0;
  11438. return 1;
  11439. }
  11440. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val)
  11441. {
  11442. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn, sizeof(**val));
  11443. }
  11444. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper val)
  11445. {
  11446. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11447. return 0;
  11448. return 1;
  11449. }
  11450. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val)
  11451. {
  11452. if (val) {
  11453. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn);
  11454. }
  11455. }
  11456. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn(PAltGKInfo_alternateGatekeeper val)
  11457. {
  11458. if (val) {
  11459. ASN1Free_AlternateGK(&val->value);
  11460. }
  11461. }
  11462. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val)
  11463. {
  11464. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_rasAddress_ElmFn);
  11465. }
  11466. static int ASN1CALL ASN1Enc_Endpoint_rasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_rasAddress val)
  11467. {
  11468. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11469. return 0;
  11470. return 1;
  11471. }
  11472. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val)
  11473. {
  11474. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_rasAddress_ElmFn, sizeof(**val));
  11475. }
  11476. static int ASN1CALL ASN1Dec_Endpoint_rasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_rasAddress val)
  11477. {
  11478. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11479. return 0;
  11480. return 1;
  11481. }
  11482. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val)
  11483. {
  11484. if (val) {
  11485. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_rasAddress_ElmFn);
  11486. }
  11487. }
  11488. static void ASN1CALL ASN1Free_Endpoint_rasAddress_ElmFn(PEndpoint_rasAddress val)
  11489. {
  11490. if (val) {
  11491. ASN1Free_TransportAddress(&val->value);
  11492. }
  11493. }
  11494. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val)
  11495. {
  11496. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_callSignalAddress_ElmFn);
  11497. }
  11498. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress_ElmFn(ASN1encoding_t enc, PEndpoint_callSignalAddress val)
  11499. {
  11500. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11501. return 0;
  11502. return 1;
  11503. }
  11504. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val)
  11505. {
  11506. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_callSignalAddress_ElmFn, sizeof(**val));
  11507. }
  11508. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress_ElmFn(ASN1decoding_t dec, PEndpoint_callSignalAddress val)
  11509. {
  11510. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11511. return 0;
  11512. return 1;
  11513. }
  11514. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val)
  11515. {
  11516. if (val) {
  11517. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_callSignalAddress_ElmFn);
  11518. }
  11519. }
  11520. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress_ElmFn(PEndpoint_callSignalAddress val)
  11521. {
  11522. if (val) {
  11523. ASN1Free_TransportAddress(&val->value);
  11524. }
  11525. }
  11526. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val)
  11527. {
  11528. if (!ASN1PEREncExtensionBitClear(enc))
  11529. return 0;
  11530. if (!ASN1PEREncBits(enc, 6, (val)->o))
  11531. return 0;
  11532. if ((val)->o[0] & 0x80) {
  11533. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11534. return 0;
  11535. }
  11536. if ((val)->o[0] & 0x40) {
  11537. if (!ASN1Enc_VendorIdentifier(enc, &(val)->vendor))
  11538. return 0;
  11539. }
  11540. if ((val)->o[0] & 0x20) {
  11541. if (!ASN1Enc_GatekeeperInfo(enc, &(val)->gatekeeper))
  11542. return 0;
  11543. }
  11544. if ((val)->o[0] & 0x10) {
  11545. if (!ASN1Enc_GatewayInfo(enc, &(val)->gateway))
  11546. return 0;
  11547. }
  11548. if ((val)->o[0] & 0x8) {
  11549. if (!ASN1Enc_McuInfo(enc, &(val)->mcu))
  11550. return 0;
  11551. }
  11552. if ((val)->o[0] & 0x4) {
  11553. if (!ASN1Enc_TerminalInfo(enc, &(val)->terminal))
  11554. return 0;
  11555. }
  11556. if (!ASN1PEREncBoolean(enc, (val)->mc))
  11557. return 0;
  11558. if (!ASN1PEREncBoolean(enc, (val)->undefinedNode))
  11559. return 0;
  11560. return 1;
  11561. }
  11562. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val)
  11563. {
  11564. ASN1uint32_t y;
  11565. if (!ASN1PERDecExtensionBit(dec, &y))
  11566. return 0;
  11567. if (!ASN1PERDecExtension(dec, 6, (val)->o))
  11568. return 0;
  11569. if ((val)->o[0] & 0x80) {
  11570. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11571. return 0;
  11572. }
  11573. if ((val)->o[0] & 0x40) {
  11574. if (!ASN1Dec_VendorIdentifier(dec, &(val)->vendor))
  11575. return 0;
  11576. }
  11577. if ((val)->o[0] & 0x20) {
  11578. if (!ASN1Dec_GatekeeperInfo(dec, &(val)->gatekeeper))
  11579. return 0;
  11580. }
  11581. if ((val)->o[0] & 0x10) {
  11582. if (!ASN1Dec_GatewayInfo(dec, &(val)->gateway))
  11583. return 0;
  11584. }
  11585. if ((val)->o[0] & 0x8) {
  11586. if (!ASN1Dec_McuInfo(dec, &(val)->mcu))
  11587. return 0;
  11588. }
  11589. if ((val)->o[0] & 0x4) {
  11590. if (!ASN1Dec_TerminalInfo(dec, &(val)->terminal))
  11591. return 0;
  11592. }
  11593. if (!ASN1PERDecBoolean(dec, &(val)->mc))
  11594. return 0;
  11595. if (!ASN1PERDecBoolean(dec, &(val)->undefinedNode))
  11596. return 0;
  11597. if (y) {
  11598. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  11599. return 0;
  11600. }
  11601. return 1;
  11602. }
  11603. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val)
  11604. {
  11605. if (val) {
  11606. if ((val)->o[0] & 0x80) {
  11607. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11608. }
  11609. if ((val)->o[0] & 0x40) {
  11610. ASN1Free_VendorIdentifier(&(val)->vendor);
  11611. }
  11612. if ((val)->o[0] & 0x20) {
  11613. ASN1Free_GatekeeperInfo(&(val)->gatekeeper);
  11614. }
  11615. if ((val)->o[0] & 0x10) {
  11616. ASN1Free_GatewayInfo(&(val)->gateway);
  11617. }
  11618. if ((val)->o[0] & 0x8) {
  11619. ASN1Free_McuInfo(&(val)->mcu);
  11620. }
  11621. if ((val)->o[0] & 0x4) {
  11622. ASN1Free_TerminalInfo(&(val)->terminal);
  11623. }
  11624. }
  11625. }
  11626. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val)
  11627. {
  11628. ASN1encoding_t ee;
  11629. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 9))
  11630. return 0;
  11631. switch ((val)->choice) {
  11632. case 1:
  11633. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardData))
  11634. return 0;
  11635. break;
  11636. case 2:
  11637. if (!ASN1Enc_H310Caps(enc, &(val)->u.h310))
  11638. return 0;
  11639. break;
  11640. case 3:
  11641. if (!ASN1Enc_H320Caps(enc, &(val)->u.h320))
  11642. return 0;
  11643. break;
  11644. case 4:
  11645. if (!ASN1Enc_H321Caps(enc, &(val)->u.h321))
  11646. return 0;
  11647. break;
  11648. case 5:
  11649. if (!ASN1Enc_H322Caps(enc, &(val)->u.h322))
  11650. return 0;
  11651. break;
  11652. case 6:
  11653. if (!ASN1Enc_H323Caps(enc, &(val)->u.h323))
  11654. return 0;
  11655. break;
  11656. case 7:
  11657. if (!ASN1Enc_H324Caps(enc, &(val)->u.h324))
  11658. return 0;
  11659. break;
  11660. case 8:
  11661. if (!ASN1Enc_VoiceCaps(enc, &(val)->u.voice))
  11662. return 0;
  11663. break;
  11664. case 9:
  11665. if (!ASN1Enc_T120OnlyCaps(enc, &(val)->u.t120_only))
  11666. return 0;
  11667. break;
  11668. case 10:
  11669. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11670. return 0;
  11671. if (!ASN1Enc_NonStandardProtocol(ee, &(val)->u.nonStandardProtocol))
  11672. return 0;
  11673. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11674. return 0;
  11675. ASN1_CloseEncoder2(ee);
  11676. break;
  11677. default:
  11678. /* impossible */
  11679. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11680. return 0;
  11681. }
  11682. return 1;
  11683. }
  11684. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val)
  11685. {
  11686. ASN1decoding_t dd;
  11687. ASN1octet_t *db;
  11688. ASN1uint32_t ds;
  11689. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 4, 9))
  11690. return 0;
  11691. switch ((val)->choice) {
  11692. case 1:
  11693. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardData))
  11694. return 0;
  11695. break;
  11696. case 2:
  11697. if (!ASN1Dec_H310Caps(dec, &(val)->u.h310))
  11698. return 0;
  11699. break;
  11700. case 3:
  11701. if (!ASN1Dec_H320Caps(dec, &(val)->u.h320))
  11702. return 0;
  11703. break;
  11704. case 4:
  11705. if (!ASN1Dec_H321Caps(dec, &(val)->u.h321))
  11706. return 0;
  11707. break;
  11708. case 5:
  11709. if (!ASN1Dec_H322Caps(dec, &(val)->u.h322))
  11710. return 0;
  11711. break;
  11712. case 6:
  11713. if (!ASN1Dec_H323Caps(dec, &(val)->u.h323))
  11714. return 0;
  11715. break;
  11716. case 7:
  11717. if (!ASN1Dec_H324Caps(dec, &(val)->u.h324))
  11718. return 0;
  11719. break;
  11720. case 8:
  11721. if (!ASN1Dec_VoiceCaps(dec, &(val)->u.voice))
  11722. return 0;
  11723. break;
  11724. case 9:
  11725. if (!ASN1Dec_T120OnlyCaps(dec, &(val)->u.t120_only))
  11726. return 0;
  11727. break;
  11728. case 10:
  11729. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11730. return 0;
  11731. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11732. return 0;
  11733. if (!ASN1Dec_NonStandardProtocol(dd, &(val)->u.nonStandardProtocol))
  11734. return 0;
  11735. ASN1_CloseDecoder(dd);
  11736. ASN1Free(db);
  11737. break;
  11738. case 0:
  11739. /* extension case */
  11740. if (!ASN1PERDecSkipFragmented(dec, 8))
  11741. return 0;
  11742. break;
  11743. default:
  11744. /* impossible */
  11745. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11746. return 0;
  11747. }
  11748. return 1;
  11749. }
  11750. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val)
  11751. {
  11752. if (val) {
  11753. switch ((val)->choice) {
  11754. case 1:
  11755. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardData);
  11756. break;
  11757. case 2:
  11758. ASN1Free_H310Caps(&(val)->u.h310);
  11759. break;
  11760. case 3:
  11761. ASN1Free_H320Caps(&(val)->u.h320);
  11762. break;
  11763. case 4:
  11764. ASN1Free_H321Caps(&(val)->u.h321);
  11765. break;
  11766. case 5:
  11767. ASN1Free_H322Caps(&(val)->u.h322);
  11768. break;
  11769. case 6:
  11770. ASN1Free_H323Caps(&(val)->u.h323);
  11771. break;
  11772. case 7:
  11773. ASN1Free_H324Caps(&(val)->u.h324);
  11774. break;
  11775. case 8:
  11776. ASN1Free_VoiceCaps(&(val)->u.voice);
  11777. break;
  11778. case 9:
  11779. ASN1Free_T120OnlyCaps(&(val)->u.t120_only);
  11780. break;
  11781. case 10:
  11782. ASN1Free_NonStandardProtocol(&(val)->u.nonStandardProtocol);
  11783. break;
  11784. }
  11785. }
  11786. }
  11787. static ASN1stringtableentry_t AliasAddress_e164_StringTableEntries[] = {
  11788. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  11789. { 48, 57, 3 },
  11790. };
  11791. static ASN1stringtable_t AliasAddress_e164_StringTable = {
  11792. 4, AliasAddress_e164_StringTableEntries
  11793. };
  11794. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val)
  11795. {
  11796. ASN1uint32_t t;
  11797. ASN1encoding_t ee;
  11798. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  11799. return 0;
  11800. switch ((val)->choice) {
  11801. case 1:
  11802. t = lstrlenA((val)->u.e164);
  11803. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  11804. return 0;
  11805. ASN1PEREncAlignment(enc);
  11806. if (!ASN1PEREncTableCharString(enc, t, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11807. return 0;
  11808. break;
  11809. case 2:
  11810. ASN1PEREncAlignment(enc);
  11811. if (!ASN1PEREncBitVal(enc, 8, ((val)->u.h323_ID).length - 1))
  11812. return 0;
  11813. if (!ASN1PEREncChar16String(enc, ((val)->u.h323_ID).length, ((val)->u.h323_ID).value, 16))
  11814. return 0;
  11815. break;
  11816. case 3:
  11817. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11818. return 0;
  11819. t = lstrlenA((val)->u.url_ID);
  11820. ASN1PEREncAlignment(ee);
  11821. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11822. return 0;
  11823. if (!ASN1PEREncCharString(ee, t, (val)->u.url_ID, 8))
  11824. return 0;
  11825. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11826. return 0;
  11827. ASN1_CloseEncoder2(ee);
  11828. break;
  11829. case 4:
  11830. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11831. return 0;
  11832. if (!ASN1Enc_TransportAddress(ee, &(val)->u.transportID))
  11833. return 0;
  11834. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11835. return 0;
  11836. ASN1_CloseEncoder2(ee);
  11837. break;
  11838. case 5:
  11839. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11840. return 0;
  11841. t = lstrlenA((val)->u.email_ID);
  11842. ASN1PEREncAlignment(ee);
  11843. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11844. return 0;
  11845. if (!ASN1PEREncCharString(ee, t, (val)->u.email_ID, 8))
  11846. return 0;
  11847. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11848. return 0;
  11849. ASN1_CloseEncoder2(ee);
  11850. break;
  11851. case 6:
  11852. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11853. return 0;
  11854. if (!ASN1Enc_PartyNumber(ee, &(val)->u.partyNumber))
  11855. return 0;
  11856. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11857. return 0;
  11858. ASN1_CloseEncoder2(ee);
  11859. break;
  11860. default:
  11861. /* impossible */
  11862. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11863. return 0;
  11864. }
  11865. return 1;
  11866. }
  11867. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val)
  11868. {
  11869. ASN1uint32_t l;
  11870. ASN1decoding_t dd;
  11871. ASN1octet_t *db;
  11872. ASN1uint32_t ds;
  11873. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  11874. return 0;
  11875. switch ((val)->choice) {
  11876. case 1:
  11877. if (!ASN1PERDecU32Val(dec, 7, &l))
  11878. return 0;
  11879. l += 1;
  11880. ASN1PERDecAlignment(dec);
  11881. /* Start of HANDCODED FIX FOR pdu security Issue */
  11882. if (l >= sizeof((val)->u.e164))
  11883. {
  11884. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  11885. return 0;
  11886. }
  11887. /* End of HANDCODED FIX FOR pdu security Issue */
  11888. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11889. return 0;
  11890. break;
  11891. case 2:
  11892. ASN1PERDecAlignment(dec);
  11893. if (!ASN1PERDecU32Val(dec, 8, &((val)->u.h323_ID).length))
  11894. return 0;
  11895. ((val)->u.h323_ID).length += 1;
  11896. if (!ASN1PERDecChar16String(dec, ((val)->u.h323_ID).length, &((val)->u.h323_ID).value, 16))
  11897. return 0;
  11898. break;
  11899. case 3:
  11900. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11901. return 0;
  11902. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11903. return 0;
  11904. ASN1PERDecAlignment(dd);
  11905. if (!ASN1PERDecU32Val(dd, 16, &l))
  11906. return 0;
  11907. l += 1;
  11908. /* Start of HANDCODED FIX FOR pdu security Issue */
  11909. if (l >= sizeof((val)->u.url_ID))
  11910. {
  11911. ASN1DecSetError(dd, ASN1_ERR_LARGE);
  11912. return 0;
  11913. }
  11914. /* End of HANDCODED FIX FOR pdu security Issue */
  11915. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.url_ID, 8))
  11916. return 0;
  11917. ASN1_CloseDecoder(dd);
  11918. ASN1Free(db);
  11919. break;
  11920. case 4:
  11921. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11922. return 0;
  11923. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11924. return 0;
  11925. if (!ASN1Dec_TransportAddress(dd, &(val)->u.transportID))
  11926. return 0;
  11927. ASN1_CloseDecoder(dd);
  11928. ASN1Free(db);
  11929. break;
  11930. case 5:
  11931. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11932. return 0;
  11933. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11934. return 0;
  11935. ASN1PERDecAlignment(dd);
  11936. if (!ASN1PERDecU32Val(dd, 16, &l))
  11937. return 0;
  11938. l += 1;
  11939. /* Start of HANDCODED FIX FOR pdu security Issue */
  11940. if (l >= sizeof((val)->u.email_ID))
  11941. {
  11942. ASN1DecSetError(dd, ASN1_ERR_LARGE);
  11943. return 0;
  11944. }
  11945. /* End of HANDCODED FIX FOR pdu security Issue */
  11946. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.email_ID, 8))
  11947. return 0;
  11948. ASN1_CloseDecoder(dd);
  11949. ASN1Free(db);
  11950. break;
  11951. case 6:
  11952. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11953. return 0;
  11954. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11955. return 0;
  11956. if (!ASN1Dec_PartyNumber(dd, &(val)->u.partyNumber))
  11957. return 0;
  11958. ASN1_CloseDecoder(dd);
  11959. ASN1Free(db);
  11960. break;
  11961. case 0:
  11962. /* extension case */
  11963. if (!ASN1PERDecSkipFragmented(dec, 8))
  11964. return 0;
  11965. break;
  11966. default:
  11967. /* impossible */
  11968. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11969. return 0;
  11970. }
  11971. return 1;
  11972. }
  11973. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val)
  11974. {
  11975. if (val) {
  11976. switch ((val)->choice) {
  11977. case 1:
  11978. break;
  11979. case 2:
  11980. ASN1char16string_free(&(val)->u.h323_ID);
  11981. break;
  11982. case 3:
  11983. break;
  11984. case 4:
  11985. ASN1Free_TransportAddress(&(val)->u.transportID);
  11986. break;
  11987. case 5:
  11988. break;
  11989. case 6:
  11990. ASN1Free_PartyNumber(&(val)->u.partyNumber);
  11991. break;
  11992. }
  11993. }
  11994. }
  11995. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val)
  11996. {
  11997. if (!ASN1PEREncExtensionBitClear(enc))
  11998. return 0;
  11999. if (!ASN1PEREncBits(enc, 10, (val)->o))
  12000. return 0;
  12001. if ((val)->o[0] & 0x80) {
  12002. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12003. return 0;
  12004. }
  12005. if ((val)->o[0] & 0x40) {
  12006. if (!ASN1Enc_Endpoint_aliasAddress(enc, &(val)->aliasAddress))
  12007. return 0;
  12008. }
  12009. if ((val)->o[0] & 0x20) {
  12010. if (!ASN1Enc_Endpoint_callSignalAddress(enc, &(val)->callSignalAddress))
  12011. return 0;
  12012. }
  12013. if ((val)->o[0] & 0x10) {
  12014. if (!ASN1Enc_Endpoint_rasAddress(enc, &(val)->rasAddress))
  12015. return 0;
  12016. }
  12017. if ((val)->o[0] & 0x8) {
  12018. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12019. return 0;
  12020. }
  12021. if ((val)->o[0] & 0x4) {
  12022. if (!ASN1Enc_Endpoint_tokens(enc, &(val)->tokens))
  12023. return 0;
  12024. }
  12025. if ((val)->o[0] & 0x2) {
  12026. if (!ASN1Enc_Endpoint_cryptoTokens(enc, &(val)->cryptoTokens))
  12027. return 0;
  12028. }
  12029. if ((val)->o[0] & 0x1) {
  12030. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  12031. return 0;
  12032. }
  12033. if ((val)->o[1] & 0x80) {
  12034. if (!ASN1Enc_Endpoint_remoteExtensionAddress(enc, &(val)->remoteExtensionAddress))
  12035. return 0;
  12036. }
  12037. if ((val)->o[1] & 0x40) {
  12038. if (!ASN1Enc_Endpoint_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  12039. return 0;
  12040. }
  12041. return 1;
  12042. }
  12043. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val)
  12044. {
  12045. ASN1uint32_t y;
  12046. if (!ASN1PERDecExtensionBit(dec, &y))
  12047. return 0;
  12048. if (!ASN1PERDecExtension(dec, 10, (val)->o))
  12049. return 0;
  12050. if ((val)->o[0] & 0x80) {
  12051. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12052. return 0;
  12053. }
  12054. if ((val)->o[0] & 0x40) {
  12055. if (!ASN1Dec_Endpoint_aliasAddress(dec, &(val)->aliasAddress))
  12056. return 0;
  12057. }
  12058. if ((val)->o[0] & 0x20) {
  12059. if (!ASN1Dec_Endpoint_callSignalAddress(dec, &(val)->callSignalAddress))
  12060. return 0;
  12061. }
  12062. if ((val)->o[0] & 0x10) {
  12063. if (!ASN1Dec_Endpoint_rasAddress(dec, &(val)->rasAddress))
  12064. return 0;
  12065. }
  12066. if ((val)->o[0] & 0x8) {
  12067. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12068. return 0;
  12069. }
  12070. if ((val)->o[0] & 0x4) {
  12071. if (!ASN1Dec_Endpoint_tokens(dec, &(val)->tokens))
  12072. return 0;
  12073. }
  12074. if ((val)->o[0] & 0x2) {
  12075. if (!ASN1Dec_Endpoint_cryptoTokens(dec, &(val)->cryptoTokens))
  12076. return 0;
  12077. }
  12078. if ((val)->o[0] & 0x1) {
  12079. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  12080. return 0;
  12081. }
  12082. if ((val)->o[1] & 0x80) {
  12083. if (!ASN1Dec_Endpoint_remoteExtensionAddress(dec, &(val)->remoteExtensionAddress))
  12084. return 0;
  12085. }
  12086. if ((val)->o[1] & 0x40) {
  12087. if (!ASN1Dec_Endpoint_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  12088. return 0;
  12089. }
  12090. if (y) {
  12091. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12092. return 0;
  12093. }
  12094. return 1;
  12095. }
  12096. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val)
  12097. {
  12098. if (val) {
  12099. if ((val)->o[0] & 0x80) {
  12100. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12101. }
  12102. if ((val)->o[0] & 0x40) {
  12103. ASN1Free_Endpoint_aliasAddress(&(val)->aliasAddress);
  12104. }
  12105. if ((val)->o[0] & 0x20) {
  12106. ASN1Free_Endpoint_callSignalAddress(&(val)->callSignalAddress);
  12107. }
  12108. if ((val)->o[0] & 0x10) {
  12109. ASN1Free_Endpoint_rasAddress(&(val)->rasAddress);
  12110. }
  12111. if ((val)->o[0] & 0x8) {
  12112. ASN1Free_EndpointType(&(val)->endpointType);
  12113. }
  12114. if ((val)->o[0] & 0x4) {
  12115. ASN1Free_Endpoint_tokens(&(val)->tokens);
  12116. }
  12117. if ((val)->o[0] & 0x2) {
  12118. ASN1Free_Endpoint_cryptoTokens(&(val)->cryptoTokens);
  12119. }
  12120. if ((val)->o[1] & 0x80) {
  12121. ASN1Free_Endpoint_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12122. }
  12123. if ((val)->o[1] & 0x40) {
  12124. ASN1Free_Endpoint_destExtraCallInfo(&(val)->destExtraCallInfo);
  12125. }
  12126. }
  12127. }
  12128. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val)
  12129. {
  12130. if (!ASN1PEREncExtensionBitClear(enc))
  12131. return 0;
  12132. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12133. return 0;
  12134. if ((val)->o[0] & 0x80) {
  12135. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12136. return 0;
  12137. }
  12138. if (!ASN1Enc_AliasAddress(enc, &(val)->prefix))
  12139. return 0;
  12140. return 1;
  12141. }
  12142. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val)
  12143. {
  12144. ASN1uint32_t y;
  12145. if (!ASN1PERDecExtensionBit(dec, &y))
  12146. return 0;
  12147. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  12148. return 0;
  12149. if ((val)->o[0] & 0x80) {
  12150. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12151. return 0;
  12152. }
  12153. if (!ASN1Dec_AliasAddress(dec, &(val)->prefix))
  12154. return 0;
  12155. if (y) {
  12156. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12157. return 0;
  12158. }
  12159. return 1;
  12160. }
  12161. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val)
  12162. {
  12163. if (val) {
  12164. if ((val)->o[0] & 0x80) {
  12165. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12166. }
  12167. ASN1Free_AliasAddress(&(val)->prefix);
  12168. }
  12169. }
  12170. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val)
  12171. {
  12172. ASN1uint32_t y;
  12173. ASN1encoding_t ee;
  12174. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  12175. if (!ASN1PEREncBitVal(enc, 1, y))
  12176. return 0;
  12177. if (!ASN1PEREncBits(enc, 4, (val)->o))
  12178. return 0;
  12179. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12180. return 0;
  12181. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12182. return 0;
  12183. if ((val)->o[0] & 0x80) {
  12184. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12185. return 0;
  12186. }
  12187. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12188. return 0;
  12189. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12190. return 0;
  12191. if ((val)->o[0] & 0x40) {
  12192. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12193. return 0;
  12194. ASN1PEREncAlignment(enc);
  12195. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12196. return 0;
  12197. }
  12198. if ((val)->o[0] & 0x20) {
  12199. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  12200. return 0;
  12201. }
  12202. if ((val)->o[0] & 0x10) {
  12203. if (!ASN1Enc_GatekeeperRequest_endpointAlias(enc, &(val)->endpointAlias))
  12204. return 0;
  12205. }
  12206. if (y) {
  12207. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  12208. return 0;
  12209. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12210. return 0;
  12211. if ((val)->o[1] & 0x80) {
  12212. if (!ASN1Enc_GatekeeperRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12213. return 0;
  12214. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12215. return 0;
  12216. }
  12217. if ((val)->o[1] & 0x40) {
  12218. if (!ASN1Enc_GatekeeperRequest_tokens(ee, &(val)->tokens))
  12219. return 0;
  12220. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12221. return 0;
  12222. }
  12223. if ((val)->o[1] & 0x20) {
  12224. if (!ASN1Enc_GatekeeperRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12225. return 0;
  12226. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12227. return 0;
  12228. }
  12229. if ((val)->o[1] & 0x10) {
  12230. if (!ASN1Enc_GatekeeperRequest_authenticationCapability(ee, &(val)->authenticationCapability))
  12231. return 0;
  12232. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12233. return 0;
  12234. }
  12235. if ((val)->o[1] & 0x8) {
  12236. if (!ASN1Enc_GatekeeperRequest_algorithmOIDs(ee, &(val)->algorithmOIDs))
  12237. return 0;
  12238. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12239. return 0;
  12240. }
  12241. if ((val)->o[1] & 0x4) {
  12242. if (!ASN1Enc_GatekeeperRequest_integrity(ee, &(val)->integrity))
  12243. return 0;
  12244. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12245. return 0;
  12246. }
  12247. if ((val)->o[1] & 0x2) {
  12248. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12249. return 0;
  12250. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12251. return 0;
  12252. }
  12253. ASN1_CloseEncoder2(ee);
  12254. }
  12255. return 1;
  12256. }
  12257. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val)
  12258. {
  12259. ASN1uint32_t y;
  12260. ASN1decoding_t dd;
  12261. ASN1octet_t *db;
  12262. ASN1uint32_t ds;
  12263. ASN1uint32_t i;
  12264. ASN1uint32_t e;
  12265. if (!ASN1PERDecExtensionBit(dec, &y))
  12266. return 0;
  12267. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  12268. return 0;
  12269. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12270. return 0;
  12271. (val)->requestSeqNum += 1;
  12272. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12273. return 0;
  12274. if ((val)->o[0] & 0x80) {
  12275. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12276. return 0;
  12277. }
  12278. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  12279. return 0;
  12280. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12281. return 0;
  12282. if ((val)->o[0] & 0x40) {
  12283. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12284. return 0;
  12285. ((val)->gatekeeperIdentifier).length += 1;
  12286. ASN1PERDecAlignment(dec);
  12287. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12288. return 0;
  12289. }
  12290. if ((val)->o[0] & 0x20) {
  12291. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  12292. return 0;
  12293. }
  12294. if ((val)->o[0] & 0x10) {
  12295. if (!ASN1Dec_GatekeeperRequest_endpointAlias(dec, &(val)->endpointAlias))
  12296. return 0;
  12297. }
  12298. if (!y) {
  12299. ZeroMemory((val)->o + 1, 1);
  12300. } else {
  12301. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  12302. return 0;
  12303. if ((val)->o[1] & 0x80) {
  12304. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12305. return 0;
  12306. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12307. return 0;
  12308. if (!ASN1Dec_GatekeeperRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12309. return 0;
  12310. ASN1_CloseDecoder(dd);
  12311. ASN1Free(db);
  12312. }
  12313. if ((val)->o[1] & 0x40) {
  12314. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12315. return 0;
  12316. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12317. return 0;
  12318. if (!ASN1Dec_GatekeeperRequest_tokens(dd, &(val)->tokens))
  12319. return 0;
  12320. ASN1_CloseDecoder(dd);
  12321. ASN1Free(db);
  12322. }
  12323. if ((val)->o[1] & 0x20) {
  12324. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12325. return 0;
  12326. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12327. return 0;
  12328. if (!ASN1Dec_GatekeeperRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12329. return 0;
  12330. ASN1_CloseDecoder(dd);
  12331. ASN1Free(db);
  12332. }
  12333. if ((val)->o[1] & 0x10) {
  12334. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12335. return 0;
  12336. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12337. return 0;
  12338. if (!ASN1Dec_GatekeeperRequest_authenticationCapability(dd, &(val)->authenticationCapability))
  12339. return 0;
  12340. ASN1_CloseDecoder(dd);
  12341. ASN1Free(db);
  12342. }
  12343. if ((val)->o[1] & 0x8) {
  12344. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12345. return 0;
  12346. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12347. return 0;
  12348. if (!ASN1Dec_GatekeeperRequest_algorithmOIDs(dd, &(val)->algorithmOIDs))
  12349. return 0;
  12350. ASN1_CloseDecoder(dd);
  12351. ASN1Free(db);
  12352. }
  12353. if ((val)->o[1] & 0x4) {
  12354. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12355. return 0;
  12356. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12357. return 0;
  12358. if (!ASN1Dec_GatekeeperRequest_integrity(dd, &(val)->integrity))
  12359. return 0;
  12360. ASN1_CloseDecoder(dd);
  12361. ASN1Free(db);
  12362. }
  12363. if ((val)->o[1] & 0x2) {
  12364. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12365. return 0;
  12366. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12367. return 0;
  12368. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12369. return 0;
  12370. ASN1_CloseDecoder(dd);
  12371. ASN1Free(db);
  12372. }
  12373. for (i = 0; i < e; i++) {
  12374. if (!ASN1PERDecSkipFragmented(dec, 8))
  12375. return 0;
  12376. }
  12377. }
  12378. return 1;
  12379. }
  12380. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val)
  12381. {
  12382. if (val) {
  12383. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12384. if ((val)->o[0] & 0x80) {
  12385. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12386. }
  12387. ASN1Free_TransportAddress(&(val)->rasAddress);
  12388. ASN1Free_EndpointType(&(val)->endpointType);
  12389. if ((val)->o[0] & 0x40) {
  12390. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12391. }
  12392. if ((val)->o[0] & 0x10) {
  12393. ASN1Free_GatekeeperRequest_endpointAlias(&(val)->endpointAlias);
  12394. }
  12395. if ((val)->o[1] & 0x80) {
  12396. ASN1Free_GatekeeperRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12397. }
  12398. if ((val)->o[1] & 0x40) {
  12399. ASN1Free_GatekeeperRequest_tokens(&(val)->tokens);
  12400. }
  12401. if ((val)->o[1] & 0x20) {
  12402. ASN1Free_GatekeeperRequest_cryptoTokens(&(val)->cryptoTokens);
  12403. }
  12404. if ((val)->o[1] & 0x10) {
  12405. ASN1Free_GatekeeperRequest_authenticationCapability(&(val)->authenticationCapability);
  12406. }
  12407. if ((val)->o[1] & 0x8) {
  12408. ASN1Free_GatekeeperRequest_algorithmOIDs(&(val)->algorithmOIDs);
  12409. }
  12410. if ((val)->o[1] & 0x4) {
  12411. ASN1Free_GatekeeperRequest_integrity(&(val)->integrity);
  12412. }
  12413. if ((val)->o[1] & 0x2) {
  12414. ASN1Free_ICV(&(val)->integrityCheckValue);
  12415. }
  12416. }
  12417. }
  12418. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val)
  12419. {
  12420. ASN1octet_t o[2];
  12421. ASN1uint32_t y;
  12422. ASN1encoding_t ee;
  12423. ASN1uint32_t l;
  12424. CopyMemory(o, (val)->o, 2);
  12425. o[1] |= 0x4;
  12426. o[1] |= 0x1;
  12427. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12428. if (!ASN1PEREncBitVal(enc, 1, y))
  12429. return 0;
  12430. if (!ASN1PEREncBits(enc, 3, o))
  12431. return 0;
  12432. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12433. return 0;
  12434. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12435. return 0;
  12436. if (o[0] & 0x80) {
  12437. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12438. return 0;
  12439. }
  12440. if (!ASN1PEREncBoolean(enc, (val)->discoveryComplete))
  12441. return 0;
  12442. if (!ASN1Enc_RegistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  12443. return 0;
  12444. if (!ASN1Enc_RegistrationRequest_rasAddress(enc, &(val)->rasAddress))
  12445. return 0;
  12446. if (!ASN1Enc_EndpointType(enc, &(val)->terminalType))
  12447. return 0;
  12448. if (o[0] & 0x40) {
  12449. if (!ASN1Enc_RegistrationRequest_terminalAlias(enc, &(val)->terminalAlias))
  12450. return 0;
  12451. }
  12452. if (o[0] & 0x20) {
  12453. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12454. return 0;
  12455. ASN1PEREncAlignment(enc);
  12456. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12457. return 0;
  12458. }
  12459. if (!ASN1Enc_VendorIdentifier(enc, &(val)->endpointVendor))
  12460. return 0;
  12461. if (y) {
  12462. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  12463. return 0;
  12464. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12465. return 0;
  12466. if (o[1] & 0x80) {
  12467. if (!ASN1Enc_RegistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12468. return 0;
  12469. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12470. return 0;
  12471. }
  12472. if (o[1] & 0x40) {
  12473. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  12474. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  12475. return 0;
  12476. ASN1PEREncAlignment(ee);
  12477. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  12478. return 0;
  12479. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12480. return 0;
  12481. }
  12482. if (o[1] & 0x20) {
  12483. if (!ASN1Enc_RegistrationRequest_tokens(ee, &(val)->tokens))
  12484. return 0;
  12485. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12486. return 0;
  12487. }
  12488. if (o[1] & 0x10) {
  12489. if (!ASN1Enc_RegistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12490. return 0;
  12491. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12492. return 0;
  12493. }
  12494. if (o[1] & 0x8) {
  12495. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12496. return 0;
  12497. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12498. return 0;
  12499. }
  12500. if (o[1] & 0x4) {
  12501. if (!ASN1PEREncBoolean(ee, (val)->keepAlive))
  12502. return 0;
  12503. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12504. return 0;
  12505. }
  12506. if (o[1] & 0x2) {
  12507. if (!ASN1PEREncBitVal(ee, 7, ((val)->endpointIdentifier).length - 1))
  12508. return 0;
  12509. ASN1PEREncAlignment(ee);
  12510. if (!ASN1PEREncChar16String(ee, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  12511. return 0;
  12512. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12513. return 0;
  12514. }
  12515. if (o[1] & 0x1) {
  12516. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  12517. return 0;
  12518. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12519. return 0;
  12520. }
  12521. ASN1_CloseEncoder2(ee);
  12522. }
  12523. return 1;
  12524. }
  12525. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val)
  12526. {
  12527. ASN1uint32_t y;
  12528. ASN1decoding_t dd;
  12529. ASN1octet_t *db;
  12530. ASN1uint32_t ds;
  12531. ASN1uint32_t l;
  12532. ASN1uint32_t i;
  12533. ASN1uint32_t e;
  12534. if (!ASN1PERDecExtensionBit(dec, &y))
  12535. return 0;
  12536. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  12537. return 0;
  12538. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12539. return 0;
  12540. (val)->requestSeqNum += 1;
  12541. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12542. return 0;
  12543. if ((val)->o[0] & 0x80) {
  12544. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12545. return 0;
  12546. }
  12547. if (!ASN1PERDecBoolean(dec, &(val)->discoveryComplete))
  12548. return 0;
  12549. if (!ASN1Dec_RegistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  12550. return 0;
  12551. if (!ASN1Dec_RegistrationRequest_rasAddress(dec, &(val)->rasAddress))
  12552. return 0;
  12553. if (!ASN1Dec_EndpointType(dec, &(val)->terminalType))
  12554. return 0;
  12555. if ((val)->o[0] & 0x40) {
  12556. if (!ASN1Dec_RegistrationRequest_terminalAlias(dec, &(val)->terminalAlias))
  12557. return 0;
  12558. }
  12559. if ((val)->o[0] & 0x20) {
  12560. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12561. return 0;
  12562. ((val)->gatekeeperIdentifier).length += 1;
  12563. ASN1PERDecAlignment(dec);
  12564. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12565. return 0;
  12566. }
  12567. if (!ASN1Dec_VendorIdentifier(dec, &(val)->endpointVendor))
  12568. return 0;
  12569. if (!y) {
  12570. ZeroMemory((val)->o + 1, 1);
  12571. } else {
  12572. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  12573. return 0;
  12574. if ((val)->o[1] & 0x80) {
  12575. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12576. return 0;
  12577. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12578. return 0;
  12579. if (!ASN1Dec_RegistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12580. return 0;
  12581. ASN1_CloseDecoder(dd);
  12582. ASN1Free(db);
  12583. }
  12584. if ((val)->o[1] & 0x40) {
  12585. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12586. return 0;
  12587. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12588. return 0;
  12589. if (!ASN1PERDecU32Val(dd, 2, &l))
  12590. return 0;
  12591. l += 1;
  12592. ASN1PERDecAlignment(dd);
  12593. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  12594. return 0;
  12595. (val)->timeToLive += 1;
  12596. ASN1_CloseDecoder(dd);
  12597. ASN1Free(db);
  12598. }
  12599. if ((val)->o[1] & 0x20) {
  12600. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12601. return 0;
  12602. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12603. return 0;
  12604. if (!ASN1Dec_RegistrationRequest_tokens(dd, &(val)->tokens))
  12605. return 0;
  12606. ASN1_CloseDecoder(dd);
  12607. ASN1Free(db);
  12608. }
  12609. if ((val)->o[1] & 0x10) {
  12610. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12611. return 0;
  12612. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12613. return 0;
  12614. if (!ASN1Dec_RegistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12615. return 0;
  12616. ASN1_CloseDecoder(dd);
  12617. ASN1Free(db);
  12618. }
  12619. if ((val)->o[1] & 0x8) {
  12620. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12621. return 0;
  12622. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12623. return 0;
  12624. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12625. return 0;
  12626. ASN1_CloseDecoder(dd);
  12627. ASN1Free(db);
  12628. }
  12629. if ((val)->o[1] & 0x4) {
  12630. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12631. return 0;
  12632. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12633. return 0;
  12634. if (!ASN1PERDecBoolean(dd, &(val)->keepAlive))
  12635. return 0;
  12636. ASN1_CloseDecoder(dd);
  12637. ASN1Free(db);
  12638. }
  12639. if ((val)->o[1] & 0x2) {
  12640. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12641. return 0;
  12642. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12643. return 0;
  12644. if (!ASN1PERDecU32Val(dd, 7, &((val)->endpointIdentifier).length))
  12645. return 0;
  12646. ((val)->endpointIdentifier).length += 1;
  12647. ASN1PERDecAlignment(dd);
  12648. if (!ASN1PERDecChar16String(dd, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  12649. return 0;
  12650. ASN1_CloseDecoder(dd);
  12651. ASN1Free(db);
  12652. }
  12653. if ((val)->o[1] & 0x1) {
  12654. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12655. return 0;
  12656. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12657. return 0;
  12658. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  12659. return 0;
  12660. ASN1_CloseDecoder(dd);
  12661. ASN1Free(db);
  12662. }
  12663. for (i = 0; i < e; i++) {
  12664. if (!ASN1PERDecSkipFragmented(dec, 8))
  12665. return 0;
  12666. }
  12667. }
  12668. return 1;
  12669. }
  12670. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val)
  12671. {
  12672. if (val) {
  12673. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12674. if ((val)->o[0] & 0x80) {
  12675. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12676. }
  12677. ASN1Free_RegistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  12678. ASN1Free_RegistrationRequest_rasAddress(&(val)->rasAddress);
  12679. ASN1Free_EndpointType(&(val)->terminalType);
  12680. if ((val)->o[0] & 0x40) {
  12681. ASN1Free_RegistrationRequest_terminalAlias(&(val)->terminalAlias);
  12682. }
  12683. if ((val)->o[0] & 0x20) {
  12684. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12685. }
  12686. ASN1Free_VendorIdentifier(&(val)->endpointVendor);
  12687. if ((val)->o[1] & 0x80) {
  12688. ASN1Free_RegistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12689. }
  12690. if ((val)->o[1] & 0x20) {
  12691. ASN1Free_RegistrationRequest_tokens(&(val)->tokens);
  12692. }
  12693. if ((val)->o[1] & 0x10) {
  12694. ASN1Free_RegistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  12695. }
  12696. if ((val)->o[1] & 0x8) {
  12697. ASN1Free_ICV(&(val)->integrityCheckValue);
  12698. }
  12699. if ((val)->o[1] & 0x2) {
  12700. ASN1char16string_free(&(val)->endpointIdentifier);
  12701. }
  12702. }
  12703. }
  12704. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val)
  12705. {
  12706. ASN1octet_t o[3];
  12707. ASN1uint32_t y;
  12708. ASN1uint32_t l;
  12709. ASN1encoding_t ee;
  12710. CopyMemory(o, (val)->o, 3);
  12711. o[2] |= 0x40;
  12712. o[2] |= 0x20;
  12713. y = ASN1PEREncCheckExtensions(11, (val)->o + 1);
  12714. if (!ASN1PEREncBitVal(enc, 1, y))
  12715. return 0;
  12716. if (!ASN1PEREncBits(enc, 2, o))
  12717. return 0;
  12718. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12719. return 0;
  12720. l = ASN1uint32_uoctets((val)->bandWidth);
  12721. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  12722. return 0;
  12723. ASN1PEREncAlignment(enc);
  12724. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  12725. return 0;
  12726. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  12727. return 0;
  12728. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  12729. return 0;
  12730. if (o[0] & 0x80) {
  12731. if (!ASN1PEREncUnsignedShort(enc, (val)->irrFrequency - 1))
  12732. return 0;
  12733. }
  12734. if (o[0] & 0x40) {
  12735. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12736. return 0;
  12737. }
  12738. if (y) {
  12739. if (!ASN1PEREncNormallySmallBits(enc, 11, o + 1))
  12740. return 0;
  12741. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12742. return 0;
  12743. if (o[1] & 0x80) {
  12744. if (!ASN1Enc_AdmissionConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12745. return 0;
  12746. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12747. return 0;
  12748. }
  12749. if (o[1] & 0x40) {
  12750. if (!ASN1Enc_AdmissionConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12751. return 0;
  12752. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12753. return 0;
  12754. }
  12755. if (o[1] & 0x20) {
  12756. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12757. return 0;
  12758. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12759. return 0;
  12760. }
  12761. if (o[1] & 0x10) {
  12762. if (!ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12763. return 0;
  12764. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12765. return 0;
  12766. }
  12767. if (o[1] & 0x8) {
  12768. if (!ASN1Enc_AdmissionConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12769. return 0;
  12770. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12771. return 0;
  12772. }
  12773. if (o[1] & 0x4) {
  12774. if (!ASN1Enc_AdmissionConfirm_tokens(ee, &(val)->tokens))
  12775. return 0;
  12776. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12777. return 0;
  12778. }
  12779. if (o[1] & 0x2) {
  12780. if (!ASN1Enc_AdmissionConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12781. return 0;
  12782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12783. return 0;
  12784. }
  12785. if (o[1] & 0x1) {
  12786. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12787. return 0;
  12788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12789. return 0;
  12790. }
  12791. if (o[2] & 0x80) {
  12792. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  12793. return 0;
  12794. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12795. return 0;
  12796. }
  12797. if (o[2] & 0x40) {
  12798. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  12799. return 0;
  12800. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12801. return 0;
  12802. }
  12803. if (o[2] & 0x20) {
  12804. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  12805. return 0;
  12806. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12807. return 0;
  12808. }
  12809. ASN1_CloseEncoder2(ee);
  12810. }
  12811. return 1;
  12812. }
  12813. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val)
  12814. {
  12815. ASN1uint32_t y;
  12816. ASN1uint32_t l;
  12817. ASN1decoding_t dd;
  12818. ASN1octet_t *db;
  12819. ASN1uint32_t ds;
  12820. ASN1uint32_t i;
  12821. ASN1uint32_t e;
  12822. if (!ASN1PERDecExtensionBit(dec, &y))
  12823. return 0;
  12824. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  12825. return 0;
  12826. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12827. return 0;
  12828. (val)->requestSeqNum += 1;
  12829. if (!ASN1PERDecU32Val(dec, 2, &l))
  12830. return 0;
  12831. l += 1;
  12832. ASN1PERDecAlignment(dec);
  12833. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  12834. return 0;
  12835. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  12836. return 0;
  12837. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  12838. return 0;
  12839. if ((val)->o[0] & 0x80) {
  12840. if (!ASN1PERDecUnsignedShort(dec, &(val)->irrFrequency))
  12841. return 0;
  12842. (val)->irrFrequency += 1;
  12843. }
  12844. if ((val)->o[0] & 0x40) {
  12845. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12846. return 0;
  12847. }
  12848. if (!y) {
  12849. ZeroMemory((val)->o + 1, 2);
  12850. } else {
  12851. if (!ASN1PERDecNormallySmallExtension(dec, &e, 11, (val)->o + 1))
  12852. return 0;
  12853. if ((val)->o[1] & 0x80) {
  12854. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12855. return 0;
  12856. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12857. return 0;
  12858. if (!ASN1Dec_AdmissionConfirm_destinationInfo(dd, &(val)->destinationInfo))
  12859. return 0;
  12860. ASN1_CloseDecoder(dd);
  12861. ASN1Free(db);
  12862. }
  12863. if ((val)->o[1] & 0x40) {
  12864. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12865. return 0;
  12866. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12867. return 0;
  12868. if (!ASN1Dec_AdmissionConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  12869. return 0;
  12870. ASN1_CloseDecoder(dd);
  12871. ASN1Free(db);
  12872. }
  12873. if ((val)->o[1] & 0x20) {
  12874. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12875. return 0;
  12876. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12877. return 0;
  12878. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  12879. return 0;
  12880. ASN1_CloseDecoder(dd);
  12881. ASN1Free(db);
  12882. }
  12883. if ((val)->o[1] & 0x10) {
  12884. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12885. return 0;
  12886. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12887. return 0;
  12888. if (!ASN1Dec_AdmissionConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  12889. return 0;
  12890. ASN1_CloseDecoder(dd);
  12891. ASN1Free(db);
  12892. }
  12893. if ((val)->o[1] & 0x8) {
  12894. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12895. return 0;
  12896. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12897. return 0;
  12898. if (!ASN1Dec_AdmissionConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12899. return 0;
  12900. ASN1_CloseDecoder(dd);
  12901. ASN1Free(db);
  12902. }
  12903. if ((val)->o[1] & 0x4) {
  12904. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12905. return 0;
  12906. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12907. return 0;
  12908. if (!ASN1Dec_AdmissionConfirm_tokens(dd, &(val)->tokens))
  12909. return 0;
  12910. ASN1_CloseDecoder(dd);
  12911. ASN1Free(db);
  12912. }
  12913. if ((val)->o[1] & 0x2) {
  12914. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12915. return 0;
  12916. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12917. return 0;
  12918. if (!ASN1Dec_AdmissionConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  12919. return 0;
  12920. ASN1_CloseDecoder(dd);
  12921. ASN1Free(db);
  12922. }
  12923. if ((val)->o[1] & 0x1) {
  12924. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12925. return 0;
  12926. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12927. return 0;
  12928. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12929. return 0;
  12930. ASN1_CloseDecoder(dd);
  12931. ASN1Free(db);
  12932. }
  12933. if ((val)->o[2] & 0x80) {
  12934. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12935. return 0;
  12936. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12937. return 0;
  12938. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  12939. return 0;
  12940. ASN1_CloseDecoder(dd);
  12941. ASN1Free(db);
  12942. }
  12943. if ((val)->o[2] & 0x40) {
  12944. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12945. return 0;
  12946. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12947. return 0;
  12948. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  12949. return 0;
  12950. ASN1_CloseDecoder(dd);
  12951. ASN1Free(db);
  12952. }
  12953. if ((val)->o[2] & 0x20) {
  12954. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12955. return 0;
  12956. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12957. return 0;
  12958. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  12959. return 0;
  12960. ASN1_CloseDecoder(dd);
  12961. ASN1Free(db);
  12962. }
  12963. for (i = 0; i < e; i++) {
  12964. if (!ASN1PERDecSkipFragmented(dec, 8))
  12965. return 0;
  12966. }
  12967. }
  12968. return 1;
  12969. }
  12970. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val)
  12971. {
  12972. if (val) {
  12973. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  12974. if ((val)->o[0] & 0x40) {
  12975. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12976. }
  12977. if ((val)->o[1] & 0x80) {
  12978. ASN1Free_AdmissionConfirm_destinationInfo(&(val)->destinationInfo);
  12979. }
  12980. if ((val)->o[1] & 0x40) {
  12981. ASN1Free_AdmissionConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  12982. }
  12983. if ((val)->o[1] & 0x20) {
  12984. ASN1Free_EndpointType(&(val)->destinationType);
  12985. }
  12986. if ((val)->o[1] & 0x10) {
  12987. ASN1Free_AdmissionConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12988. }
  12989. if ((val)->o[1] & 0x8) {
  12990. ASN1Free_AdmissionConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  12991. }
  12992. if ((val)->o[1] & 0x4) {
  12993. ASN1Free_AdmissionConfirm_tokens(&(val)->tokens);
  12994. }
  12995. if ((val)->o[1] & 0x2) {
  12996. ASN1Free_AdmissionConfirm_cryptoTokens(&(val)->cryptoTokens);
  12997. }
  12998. if ((val)->o[1] & 0x1) {
  12999. ASN1Free_ICV(&(val)->integrityCheckValue);
  13000. }
  13001. }
  13002. }
  13003. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val)
  13004. {
  13005. ASN1uint32_t y;
  13006. ASN1encoding_t ee;
  13007. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  13008. if (!ASN1PEREncBitVal(enc, 1, y))
  13009. return 0;
  13010. if (!ASN1PEREncBits(enc, 1, (val)->o))
  13011. return 0;
  13012. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  13013. return 0;
  13014. if (!ASN1Enc_TransportAddress(enc, &(val)->callSignalAddress))
  13015. return 0;
  13016. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  13017. return 0;
  13018. if ((val)->o[0] & 0x80) {
  13019. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13020. return 0;
  13021. }
  13022. if (y) {
  13023. if (!ASN1PEREncNormallySmallBits(enc, 8, (val)->o + 1))
  13024. return 0;
  13025. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13026. return 0;
  13027. if ((val)->o[1] & 0x80) {
  13028. if (!ASN1Enc_LocationConfirm_destinationInfo(ee, &(val)->destinationInfo))
  13029. return 0;
  13030. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13031. return 0;
  13032. }
  13033. if ((val)->o[1] & 0x40) {
  13034. if (!ASN1Enc_LocationConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  13035. return 0;
  13036. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13037. return 0;
  13038. }
  13039. if ((val)->o[1] & 0x20) {
  13040. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  13041. return 0;
  13042. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13043. return 0;
  13044. }
  13045. if ((val)->o[1] & 0x10) {
  13046. if (!ASN1Enc_LocationConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  13047. return 0;
  13048. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13049. return 0;
  13050. }
  13051. if ((val)->o[1] & 0x8) {
  13052. if (!ASN1Enc_LocationConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  13053. return 0;
  13054. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13055. return 0;
  13056. }
  13057. if ((val)->o[1] & 0x4) {
  13058. if (!ASN1Enc_LocationConfirm_tokens(ee, &(val)->tokens))
  13059. return 0;
  13060. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13061. return 0;
  13062. }
  13063. if ((val)->o[1] & 0x2) {
  13064. if (!ASN1Enc_LocationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  13065. return 0;
  13066. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13067. return 0;
  13068. }
  13069. if ((val)->o[1] & 0x1) {
  13070. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13071. return 0;
  13072. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13073. return 0;
  13074. }
  13075. ASN1_CloseEncoder2(ee);
  13076. }
  13077. return 1;
  13078. }
  13079. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val)
  13080. {
  13081. ASN1uint32_t y;
  13082. ASN1decoding_t dd;
  13083. ASN1octet_t *db;
  13084. ASN1uint32_t ds;
  13085. ASN1uint32_t i;
  13086. ASN1uint32_t e;
  13087. if (!ASN1PERDecExtensionBit(dec, &y))
  13088. return 0;
  13089. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  13090. return 0;
  13091. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13092. return 0;
  13093. (val)->requestSeqNum += 1;
  13094. if (!ASN1Dec_TransportAddress(dec, &(val)->callSignalAddress))
  13095. return 0;
  13096. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13097. return 0;
  13098. if ((val)->o[0] & 0x80) {
  13099. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13100. return 0;
  13101. }
  13102. if (!y) {
  13103. ZeroMemory((val)->o + 1, 1);
  13104. } else {
  13105. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  13106. return 0;
  13107. if ((val)->o[1] & 0x80) {
  13108. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13109. return 0;
  13110. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13111. return 0;
  13112. if (!ASN1Dec_LocationConfirm_destinationInfo(dd, &(val)->destinationInfo))
  13113. return 0;
  13114. ASN1_CloseDecoder(dd);
  13115. ASN1Free(db);
  13116. }
  13117. if ((val)->o[1] & 0x40) {
  13118. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13119. return 0;
  13120. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13121. return 0;
  13122. if (!ASN1Dec_LocationConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  13123. return 0;
  13124. ASN1_CloseDecoder(dd);
  13125. ASN1Free(db);
  13126. }
  13127. if ((val)->o[1] & 0x20) {
  13128. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13129. return 0;
  13130. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13131. return 0;
  13132. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  13133. return 0;
  13134. ASN1_CloseDecoder(dd);
  13135. ASN1Free(db);
  13136. }
  13137. if ((val)->o[1] & 0x10) {
  13138. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13139. return 0;
  13140. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13141. return 0;
  13142. if (!ASN1Dec_LocationConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  13143. return 0;
  13144. ASN1_CloseDecoder(dd);
  13145. ASN1Free(db);
  13146. }
  13147. if ((val)->o[1] & 0x8) {
  13148. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13149. return 0;
  13150. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13151. return 0;
  13152. if (!ASN1Dec_LocationConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  13153. return 0;
  13154. ASN1_CloseDecoder(dd);
  13155. ASN1Free(db);
  13156. }
  13157. if ((val)->o[1] & 0x4) {
  13158. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13159. return 0;
  13160. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13161. return 0;
  13162. if (!ASN1Dec_LocationConfirm_tokens(dd, &(val)->tokens))
  13163. return 0;
  13164. ASN1_CloseDecoder(dd);
  13165. ASN1Free(db);
  13166. }
  13167. if ((val)->o[1] & 0x2) {
  13168. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13169. return 0;
  13170. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13171. return 0;
  13172. if (!ASN1Dec_LocationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  13173. return 0;
  13174. ASN1_CloseDecoder(dd);
  13175. ASN1Free(db);
  13176. }
  13177. if ((val)->o[1] & 0x1) {
  13178. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13179. return 0;
  13180. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13181. return 0;
  13182. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13183. return 0;
  13184. ASN1_CloseDecoder(dd);
  13185. ASN1Free(db);
  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_LocationConfirm(LocationConfirm *val)
  13195. {
  13196. if (val) {
  13197. ASN1Free_TransportAddress(&(val)->callSignalAddress);
  13198. ASN1Free_TransportAddress(&(val)->rasAddress);
  13199. if ((val)->o[0] & 0x80) {
  13200. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13201. }
  13202. if ((val)->o[1] & 0x80) {
  13203. ASN1Free_LocationConfirm_destinationInfo(&(val)->destinationInfo);
  13204. }
  13205. if ((val)->o[1] & 0x40) {
  13206. ASN1Free_LocationConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  13207. }
  13208. if ((val)->o[1] & 0x20) {
  13209. ASN1Free_EndpointType(&(val)->destinationType);
  13210. }
  13211. if ((val)->o[1] & 0x10) {
  13212. ASN1Free_LocationConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  13213. }
  13214. if ((val)->o[1] & 0x8) {
  13215. ASN1Free_LocationConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  13216. }
  13217. if ((val)->o[1] & 0x4) {
  13218. ASN1Free_LocationConfirm_tokens(&(val)->tokens);
  13219. }
  13220. if ((val)->o[1] & 0x2) {
  13221. ASN1Free_LocationConfirm_cryptoTokens(&(val)->cryptoTokens);
  13222. }
  13223. if ((val)->o[1] & 0x1) {
  13224. ASN1Free_ICV(&(val)->integrityCheckValue);
  13225. }
  13226. }
  13227. }
  13228. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val)
  13229. {
  13230. ASN1octet_t o[2];
  13231. ASN1uint32_t y;
  13232. ASN1encoding_t ee;
  13233. CopyMemory(o, (val)->o, 2);
  13234. o[1] |= 0x10;
  13235. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  13236. if (!ASN1PEREncBitVal(enc, 1, y))
  13237. return 0;
  13238. if (!ASN1PEREncBits(enc, 3, o))
  13239. return 0;
  13240. if (o[0] & 0x80) {
  13241. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13242. return 0;
  13243. }
  13244. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  13245. return 0;
  13246. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  13247. return 0;
  13248. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  13249. return 0;
  13250. ASN1PEREncAlignment(enc);
  13251. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  13252. return 0;
  13253. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  13254. return 0;
  13255. if (!ASN1Enc_InfoRequestResponse_callSignalAddress(enc, &(val)->callSignalAddress))
  13256. return 0;
  13257. if (o[0] & 0x40) {
  13258. if (!ASN1Enc_InfoRequestResponse_endpointAlias(enc, &(val)->endpointAlias))
  13259. return 0;
  13260. }
  13261. if (o[0] & 0x20) {
  13262. if (!ASN1Enc_InfoRequestResponse_perCallInfo(enc, &(val)->perCallInfo))
  13263. return 0;
  13264. }
  13265. if (y) {
  13266. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  13267. return 0;
  13268. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13269. return 0;
  13270. if (o[1] & 0x80) {
  13271. if (!ASN1Enc_InfoRequestResponse_tokens(ee, &(val)->tokens))
  13272. return 0;
  13273. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13274. return 0;
  13275. }
  13276. if (o[1] & 0x40) {
  13277. if (!ASN1Enc_InfoRequestResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  13278. return 0;
  13279. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13280. return 0;
  13281. }
  13282. if (o[1] & 0x20) {
  13283. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13284. return 0;
  13285. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13286. return 0;
  13287. }
  13288. if (o[1] & 0x10) {
  13289. if (!ASN1PEREncBoolean(ee, (val)->needResponse))
  13290. return 0;
  13291. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13292. return 0;
  13293. }
  13294. ASN1_CloseEncoder2(ee);
  13295. }
  13296. return 1;
  13297. }
  13298. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val)
  13299. {
  13300. ASN1uint32_t y;
  13301. ASN1decoding_t dd;
  13302. ASN1octet_t *db;
  13303. ASN1uint32_t ds;
  13304. ASN1uint32_t i;
  13305. ASN1uint32_t e;
  13306. if (!ASN1PERDecExtensionBit(dec, &y))
  13307. return 0;
  13308. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  13309. return 0;
  13310. if ((val)->o[0] & 0x80) {
  13311. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13312. return 0;
  13313. }
  13314. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13315. return 0;
  13316. (val)->requestSeqNum += 1;
  13317. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  13318. return 0;
  13319. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  13320. return 0;
  13321. ((val)->endpointIdentifier).length += 1;
  13322. ASN1PERDecAlignment(dec);
  13323. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  13324. return 0;
  13325. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13326. return 0;
  13327. if (!ASN1Dec_InfoRequestResponse_callSignalAddress(dec, &(val)->callSignalAddress))
  13328. return 0;
  13329. if ((val)->o[0] & 0x40) {
  13330. if (!ASN1Dec_InfoRequestResponse_endpointAlias(dec, &(val)->endpointAlias))
  13331. return 0;
  13332. }
  13333. if ((val)->o[0] & 0x20) {
  13334. if (!ASN1Dec_InfoRequestResponse_perCallInfo(dec, &(val)->perCallInfo))
  13335. return 0;
  13336. }
  13337. if (!y) {
  13338. ZeroMemory((val)->o + 1, 1);
  13339. } else {
  13340. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  13341. return 0;
  13342. if ((val)->o[1] & 0x80) {
  13343. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13344. return 0;
  13345. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13346. return 0;
  13347. if (!ASN1Dec_InfoRequestResponse_tokens(dd, &(val)->tokens))
  13348. return 0;
  13349. ASN1_CloseDecoder(dd);
  13350. ASN1Free(db);
  13351. }
  13352. if ((val)->o[1] & 0x40) {
  13353. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13354. return 0;
  13355. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13356. return 0;
  13357. if (!ASN1Dec_InfoRequestResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  13358. return 0;
  13359. ASN1_CloseDecoder(dd);
  13360. ASN1Free(db);
  13361. }
  13362. if ((val)->o[1] & 0x20) {
  13363. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13364. return 0;
  13365. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13366. return 0;
  13367. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13368. return 0;
  13369. ASN1_CloseDecoder(dd);
  13370. ASN1Free(db);
  13371. }
  13372. if ((val)->o[1] & 0x10) {
  13373. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13374. return 0;
  13375. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13376. return 0;
  13377. if (!ASN1PERDecBoolean(dd, &(val)->needResponse))
  13378. return 0;
  13379. ASN1_CloseDecoder(dd);
  13380. ASN1Free(db);
  13381. }
  13382. for (i = 0; i < e; i++) {
  13383. if (!ASN1PERDecSkipFragmented(dec, 8))
  13384. return 0;
  13385. }
  13386. }
  13387. return 1;
  13388. }
  13389. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val)
  13390. {
  13391. if (val) {
  13392. if ((val)->o[0] & 0x80) {
  13393. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13394. }
  13395. ASN1Free_EndpointType(&(val)->endpointType);
  13396. ASN1char16string_free(&(val)->endpointIdentifier);
  13397. ASN1Free_TransportAddress(&(val)->rasAddress);
  13398. ASN1Free_InfoRequestResponse_callSignalAddress(&(val)->callSignalAddress);
  13399. if ((val)->o[0] & 0x40) {
  13400. ASN1Free_InfoRequestResponse_endpointAlias(&(val)->endpointAlias);
  13401. }
  13402. if ((val)->o[0] & 0x20) {
  13403. ASN1Free_InfoRequestResponse_perCallInfo(&(val)->perCallInfo);
  13404. }
  13405. if ((val)->o[1] & 0x80) {
  13406. ASN1Free_InfoRequestResponse_tokens(&(val)->tokens);
  13407. }
  13408. if ((val)->o[1] & 0x40) {
  13409. ASN1Free_InfoRequestResponse_cryptoTokens(&(val)->cryptoTokens);
  13410. }
  13411. if ((val)->o[1] & 0x20) {
  13412. ASN1Free_ICV(&(val)->integrityCheckValue);
  13413. }
  13414. }
  13415. }
  13416. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val)
  13417. {
  13418. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn);
  13419. }
  13420. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols val)
  13421. {
  13422. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  13423. return 0;
  13424. return 1;
  13425. }
  13426. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val)
  13427. {
  13428. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn, sizeof(**val));
  13429. }
  13430. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols val)
  13431. {
  13432. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  13433. return 0;
  13434. return 1;
  13435. }
  13436. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val)
  13437. {
  13438. if (val) {
  13439. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn);
  13440. }
  13441. }
  13442. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn(PResourcesAvailableIndicate_protocols val)
  13443. {
  13444. if (val) {
  13445. ASN1Free_SupportedProtocols(&val->value);
  13446. }
  13447. }
  13448. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val)
  13449. {
  13450. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn);
  13451. }
  13452. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias val)
  13453. {
  13454. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13455. return 0;
  13456. return 1;
  13457. }
  13458. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val)
  13459. {
  13460. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn, sizeof(**val));
  13461. }
  13462. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias val)
  13463. {
  13464. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13465. return 0;
  13466. return 1;
  13467. }
  13468. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val)
  13469. {
  13470. if (val) {
  13471. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_endpointAlias_ElmFn);
  13472. }
  13473. }
  13474. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias_ElmFn(PInfoRequestResponse_endpointAlias val)
  13475. {
  13476. if (val) {
  13477. ASN1Free_AliasAddress(&val->value);
  13478. }
  13479. }
  13480. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val)
  13481. {
  13482. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn);
  13483. }
  13484. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints val)
  13485. {
  13486. if (!ASN1Enc_Endpoint(enc, &val->value))
  13487. return 0;
  13488. return 1;
  13489. }
  13490. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val)
  13491. {
  13492. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13493. }
  13494. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints val)
  13495. {
  13496. if (!ASN1Dec_Endpoint(dec, &val->value))
  13497. return 0;
  13498. return 1;
  13499. }
  13500. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val)
  13501. {
  13502. if (val) {
  13503. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_alternateEndpoints_ElmFn);
  13504. }
  13505. }
  13506. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints_ElmFn(PLocationConfirm_alternateEndpoints val)
  13507. {
  13508. if (val) {
  13509. ASN1Free_Endpoint(&val->value);
  13510. }
  13511. }
  13512. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val)
  13513. {
  13514. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn);
  13515. }
  13516. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress val)
  13517. {
  13518. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13519. return 0;
  13520. return 1;
  13521. }
  13522. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val)
  13523. {
  13524. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13525. }
  13526. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress val)
  13527. {
  13528. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13529. return 0;
  13530. return 1;
  13531. }
  13532. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val)
  13533. {
  13534. if (val) {
  13535. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn);
  13536. }
  13537. }
  13538. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn(PLocationConfirm_remoteExtensionAddress val)
  13539. {
  13540. if (val) {
  13541. ASN1Free_AliasAddress(&val->value);
  13542. }
  13543. }
  13544. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val)
  13545. {
  13546. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn);
  13547. }
  13548. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo val)
  13549. {
  13550. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13551. return 0;
  13552. return 1;
  13553. }
  13554. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val)
  13555. {
  13556. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13557. }
  13558. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo val)
  13559. {
  13560. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13561. return 0;
  13562. return 1;
  13563. }
  13564. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val)
  13565. {
  13566. if (val) {
  13567. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn);
  13568. }
  13569. }
  13570. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn(PLocationConfirm_destExtraCallInfo val)
  13571. {
  13572. if (val) {
  13573. ASN1Free_AliasAddress(&val->value);
  13574. }
  13575. }
  13576. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val)
  13577. {
  13578. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destinationInfo_ElmFn);
  13579. }
  13580. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destinationInfo val)
  13581. {
  13582. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13583. return 0;
  13584. return 1;
  13585. }
  13586. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val)
  13587. {
  13588. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destinationInfo_ElmFn, sizeof(**val));
  13589. }
  13590. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destinationInfo val)
  13591. {
  13592. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13593. return 0;
  13594. return 1;
  13595. }
  13596. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val)
  13597. {
  13598. if (val) {
  13599. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destinationInfo_ElmFn);
  13600. }
  13601. }
  13602. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo_ElmFn(PLocationConfirm_destinationInfo val)
  13603. {
  13604. if (val) {
  13605. ASN1Free_AliasAddress(&val->value);
  13606. }
  13607. }
  13608. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val)
  13609. {
  13610. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_sourceInfo_ElmFn);
  13611. }
  13612. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_sourceInfo val)
  13613. {
  13614. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13615. return 0;
  13616. return 1;
  13617. }
  13618. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val)
  13619. {
  13620. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_sourceInfo_ElmFn, sizeof(**val));
  13621. }
  13622. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_sourceInfo val)
  13623. {
  13624. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13625. return 0;
  13626. return 1;
  13627. }
  13628. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val)
  13629. {
  13630. if (val) {
  13631. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_sourceInfo_ElmFn);
  13632. }
  13633. }
  13634. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo_ElmFn(PLocationRequest_sourceInfo val)
  13635. {
  13636. if (val) {
  13637. ASN1Free_AliasAddress(&val->value);
  13638. }
  13639. }
  13640. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val)
  13641. {
  13642. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_destinationInfo_ElmFn);
  13643. }
  13644. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_destinationInfo val)
  13645. {
  13646. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13647. return 0;
  13648. return 1;
  13649. }
  13650. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val)
  13651. {
  13652. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_destinationInfo_ElmFn, sizeof(**val));
  13653. }
  13654. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_destinationInfo val)
  13655. {
  13656. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13657. return 0;
  13658. return 1;
  13659. }
  13660. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val)
  13661. {
  13662. if (val) {
  13663. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_destinationInfo_ElmFn);
  13664. }
  13665. }
  13666. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo_ElmFn(PLocationRequest_destinationInfo val)
  13667. {
  13668. if (val) {
  13669. ASN1Free_AliasAddress(&val->value);
  13670. }
  13671. }
  13672. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val)
  13673. {
  13674. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn);
  13675. }
  13676. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints val)
  13677. {
  13678. if (!ASN1Enc_Endpoint(enc, &val->value))
  13679. return 0;
  13680. return 1;
  13681. }
  13682. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val)
  13683. {
  13684. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13685. }
  13686. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints val)
  13687. {
  13688. if (!ASN1Dec_Endpoint(dec, &val->value))
  13689. return 0;
  13690. return 1;
  13691. }
  13692. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val)
  13693. {
  13694. if (val) {
  13695. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn);
  13696. }
  13697. }
  13698. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn(PAdmissionConfirm_alternateEndpoints val)
  13699. {
  13700. if (val) {
  13701. ASN1Free_Endpoint(&val->value);
  13702. }
  13703. }
  13704. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val)
  13705. {
  13706. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13707. }
  13708. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress val)
  13709. {
  13710. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13711. return 0;
  13712. return 1;
  13713. }
  13714. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val)
  13715. {
  13716. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13717. }
  13718. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress val)
  13719. {
  13720. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13721. return 0;
  13722. return 1;
  13723. }
  13724. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val)
  13725. {
  13726. if (val) {
  13727. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13728. }
  13729. }
  13730. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn(PAdmissionConfirm_remoteExtensionAddress val)
  13731. {
  13732. if (val) {
  13733. ASN1Free_AliasAddress(&val->value);
  13734. }
  13735. }
  13736. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val)
  13737. {
  13738. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13739. }
  13740. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo val)
  13741. {
  13742. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13743. return 0;
  13744. return 1;
  13745. }
  13746. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val)
  13747. {
  13748. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13749. }
  13750. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo val)
  13751. {
  13752. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13753. return 0;
  13754. return 1;
  13755. }
  13756. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val)
  13757. {
  13758. if (val) {
  13759. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13760. }
  13761. }
  13762. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn(PAdmissionConfirm_destExtraCallInfo val)
  13763. {
  13764. if (val) {
  13765. ASN1Free_AliasAddress(&val->value);
  13766. }
  13767. }
  13768. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val)
  13769. {
  13770. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn);
  13771. }
  13772. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo val)
  13773. {
  13774. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13775. return 0;
  13776. return 1;
  13777. }
  13778. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val)
  13779. {
  13780. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn, sizeof(**val));
  13781. }
  13782. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo val)
  13783. {
  13784. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13785. return 0;
  13786. return 1;
  13787. }
  13788. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val)
  13789. {
  13790. if (val) {
  13791. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destinationInfo_ElmFn);
  13792. }
  13793. }
  13794. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo_ElmFn(PAdmissionConfirm_destinationInfo val)
  13795. {
  13796. if (val) {
  13797. ASN1Free_AliasAddress(&val->value);
  13798. }
  13799. }
  13800. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val)
  13801. {
  13802. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destAlternatives_ElmFn);
  13803. }
  13804. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destAlternatives val)
  13805. {
  13806. if (!ASN1Enc_Endpoint(enc, &val->value))
  13807. return 0;
  13808. return 1;
  13809. }
  13810. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val)
  13811. {
  13812. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destAlternatives_ElmFn, sizeof(**val));
  13813. }
  13814. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destAlternatives val)
  13815. {
  13816. if (!ASN1Dec_Endpoint(dec, &val->value))
  13817. return 0;
  13818. return 1;
  13819. }
  13820. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val)
  13821. {
  13822. if (val) {
  13823. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destAlternatives_ElmFn);
  13824. }
  13825. }
  13826. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives_ElmFn(PAdmissionRequest_destAlternatives val)
  13827. {
  13828. if (val) {
  13829. ASN1Free_Endpoint(&val->value);
  13830. }
  13831. }
  13832. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val)
  13833. {
  13834. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn);
  13835. }
  13836. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives val)
  13837. {
  13838. if (!ASN1Enc_Endpoint(enc, &val->value))
  13839. return 0;
  13840. return 1;
  13841. }
  13842. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val)
  13843. {
  13844. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn, sizeof(**val));
  13845. }
  13846. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives val)
  13847. {
  13848. if (!ASN1Dec_Endpoint(dec, &val->value))
  13849. return 0;
  13850. return 1;
  13851. }
  13852. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val)
  13853. {
  13854. if (val) {
  13855. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcAlternatives_ElmFn);
  13856. }
  13857. }
  13858. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives_ElmFn(PAdmissionRequest_srcAlternatives val)
  13859. {
  13860. if (val) {
  13861. ASN1Free_Endpoint(&val->value);
  13862. }
  13863. }
  13864. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val)
  13865. {
  13866. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcInfo_ElmFn);
  13867. }
  13868. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcInfo val)
  13869. {
  13870. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13871. return 0;
  13872. return 1;
  13873. }
  13874. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val)
  13875. {
  13876. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcInfo_ElmFn, sizeof(**val));
  13877. }
  13878. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcInfo val)
  13879. {
  13880. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13881. return 0;
  13882. return 1;
  13883. }
  13884. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val)
  13885. {
  13886. if (val) {
  13887. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcInfo_ElmFn);
  13888. }
  13889. }
  13890. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo_ElmFn(PAdmissionRequest_srcInfo val)
  13891. {
  13892. if (val) {
  13893. ASN1Free_AliasAddress(&val->value);
  13894. }
  13895. }
  13896. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val)
  13897. {
  13898. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn);
  13899. }
  13900. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo val)
  13901. {
  13902. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13903. return 0;
  13904. return 1;
  13905. }
  13906. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val)
  13907. {
  13908. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn, sizeof(**val));
  13909. }
  13910. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo val)
  13911. {
  13912. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13913. return 0;
  13914. return 1;
  13915. }
  13916. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val)
  13917. {
  13918. if (val) {
  13919. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn);
  13920. }
  13921. }
  13922. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn(PAdmissionRequest_destExtraCallInfo val)
  13923. {
  13924. if (val) {
  13925. ASN1Free_AliasAddress(&val->value);
  13926. }
  13927. }
  13928. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val)
  13929. {
  13930. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destinationInfo_ElmFn);
  13931. }
  13932. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destinationInfo val)
  13933. {
  13934. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13935. return 0;
  13936. return 1;
  13937. }
  13938. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val)
  13939. {
  13940. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destinationInfo_ElmFn, sizeof(**val));
  13941. }
  13942. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destinationInfo val)
  13943. {
  13944. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13945. return 0;
  13946. return 1;
  13947. }
  13948. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val)
  13949. {
  13950. if (val) {
  13951. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destinationInfo_ElmFn);
  13952. }
  13953. }
  13954. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo_ElmFn(PAdmissionRequest_destinationInfo val)
  13955. {
  13956. if (val) {
  13957. ASN1Free_AliasAddress(&val->value);
  13958. }
  13959. }
  13960. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val)
  13961. {
  13962. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn);
  13963. }
  13964. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints val)
  13965. {
  13966. if (!ASN1Enc_Endpoint(enc, &val->value))
  13967. return 0;
  13968. return 1;
  13969. }
  13970. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val)
  13971. {
  13972. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13973. }
  13974. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints val)
  13975. {
  13976. if (!ASN1Dec_Endpoint(dec, &val->value))
  13977. return 0;
  13978. return 1;
  13979. }
  13980. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val)
  13981. {
  13982. if (val) {
  13983. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn);
  13984. }
  13985. }
  13986. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn(PUnregistrationRequest_alternateEndpoints val)
  13987. {
  13988. if (val) {
  13989. ASN1Free_Endpoint(&val->value);
  13990. }
  13991. }
  13992. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val)
  13993. {
  13994. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn);
  13995. }
  13996. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias val)
  13997. {
  13998. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13999. return 0;
  14000. return 1;
  14001. }
  14002. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val)
  14003. {
  14004. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn, sizeof(**val));
  14005. }
  14006. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias val)
  14007. {
  14008. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14009. return 0;
  14010. return 1;
  14011. }
  14012. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val)
  14013. {
  14014. if (val) {
  14015. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_endpointAlias_ElmFn);
  14016. }
  14017. }
  14018. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias_ElmFn(PUnregistrationRequest_endpointAlias val)
  14019. {
  14020. if (val) {
  14021. ASN1Free_AliasAddress(&val->value);
  14022. }
  14023. }
  14024. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val)
  14025. {
  14026. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn);
  14027. }
  14028. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias val)
  14029. {
  14030. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14031. return 0;
  14032. return 1;
  14033. }
  14034. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val)
  14035. {
  14036. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn, sizeof(**val));
  14037. }
  14038. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias val)
  14039. {
  14040. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14041. return 0;
  14042. return 1;
  14043. }
  14044. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val)
  14045. {
  14046. if (val) {
  14047. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn);
  14048. }
  14049. }
  14050. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn(PRegistrationRejectReason_duplicateAlias val)
  14051. {
  14052. if (val) {
  14053. ASN1Free_AliasAddress(&val->value);
  14054. }
  14055. }
  14056. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val)
  14057. {
  14058. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn);
  14059. }
  14060. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias val)
  14061. {
  14062. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14063. return 0;
  14064. return 1;
  14065. }
  14066. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val)
  14067. {
  14068. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn, sizeof(**val));
  14069. }
  14070. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias val)
  14071. {
  14072. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14073. return 0;
  14074. return 1;
  14075. }
  14076. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val)
  14077. {
  14078. if (val) {
  14079. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_terminalAlias_ElmFn);
  14080. }
  14081. }
  14082. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias_ElmFn(PRegistrationConfirm_terminalAlias val)
  14083. {
  14084. if (val) {
  14085. ASN1Free_AliasAddress(&val->value);
  14086. }
  14087. }
  14088. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val)
  14089. {
  14090. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn);
  14091. }
  14092. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints val)
  14093. {
  14094. if (!ASN1Enc_Endpoint(enc, &val->value))
  14095. return 0;
  14096. return 1;
  14097. }
  14098. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val)
  14099. {
  14100. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14101. }
  14102. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints val)
  14103. {
  14104. if (!ASN1Dec_Endpoint(dec, &val->value))
  14105. return 0;
  14106. return 1;
  14107. }
  14108. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val)
  14109. {
  14110. if (val) {
  14111. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn);
  14112. }
  14113. }
  14114. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn(PRegistrationRequest_alternateEndpoints val)
  14115. {
  14116. if (val) {
  14117. ASN1Free_Endpoint(&val->value);
  14118. }
  14119. }
  14120. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val)
  14121. {
  14122. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_terminalAlias_ElmFn);
  14123. }
  14124. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationRequest_terminalAlias val)
  14125. {
  14126. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14127. return 0;
  14128. return 1;
  14129. }
  14130. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val)
  14131. {
  14132. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_terminalAlias_ElmFn, sizeof(**val));
  14133. }
  14134. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationRequest_terminalAlias val)
  14135. {
  14136. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14137. return 0;
  14138. return 1;
  14139. }
  14140. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val)
  14141. {
  14142. if (val) {
  14143. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_terminalAlias_ElmFn);
  14144. }
  14145. }
  14146. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias_ElmFn(PRegistrationRequest_terminalAlias val)
  14147. {
  14148. if (val) {
  14149. ASN1Free_AliasAddress(&val->value);
  14150. }
  14151. }
  14152. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val)
  14153. {
  14154. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn);
  14155. }
  14156. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints val)
  14157. {
  14158. if (!ASN1Enc_Endpoint(enc, &val->value))
  14159. return 0;
  14160. return 1;
  14161. }
  14162. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val)
  14163. {
  14164. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14165. }
  14166. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints val)
  14167. {
  14168. if (!ASN1Dec_Endpoint(dec, &val->value))
  14169. return 0;
  14170. return 1;
  14171. }
  14172. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val)
  14173. {
  14174. if (val) {
  14175. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn);
  14176. }
  14177. }
  14178. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn(PGatekeeperRequest_alternateEndpoints val)
  14179. {
  14180. if (val) {
  14181. ASN1Free_Endpoint(&val->value);
  14182. }
  14183. }
  14184. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val)
  14185. {
  14186. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn);
  14187. }
  14188. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias val)
  14189. {
  14190. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14191. return 0;
  14192. return 1;
  14193. }
  14194. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val)
  14195. {
  14196. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn, sizeof(**val));
  14197. }
  14198. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias val)
  14199. {
  14200. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14201. return 0;
  14202. return 1;
  14203. }
  14204. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val)
  14205. {
  14206. if (val) {
  14207. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_endpointAlias_ElmFn);
  14208. }
  14209. }
  14210. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias_ElmFn(PGatekeeperRequest_endpointAlias val)
  14211. {
  14212. if (val) {
  14213. ASN1Free_AliasAddress(&val->value);
  14214. }
  14215. }
  14216. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val)
  14217. {
  14218. ASN1uint32_t l;
  14219. if (!ASN1Enc_AliasAddress(enc, &(val)->alias))
  14220. return 0;
  14221. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  14222. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  14223. return 0;
  14224. ASN1PEREncAlignment(enc);
  14225. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  14226. return 0;
  14227. if (!ASN1Enc_HASHED(enc, &(val)->token))
  14228. return 0;
  14229. return 1;
  14230. }
  14231. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val)
  14232. {
  14233. ASN1uint32_t l;
  14234. if (!ASN1Dec_AliasAddress(dec, &(val)->alias))
  14235. return 0;
  14236. if (!ASN1PERDecU32Val(dec, 2, &l))
  14237. return 0;
  14238. l += 1;
  14239. ASN1PERDecAlignment(dec);
  14240. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  14241. return 0;
  14242. (val)->timeStamp += 1;
  14243. if (!ASN1Dec_HASHED(dec, &(val)->token))
  14244. return 0;
  14245. return 1;
  14246. }
  14247. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val)
  14248. {
  14249. if (val) {
  14250. ASN1Free_AliasAddress(&(val)->alias);
  14251. ASN1Free_HASHED(&(val)->token);
  14252. }
  14253. }
  14254. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val)
  14255. {
  14256. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_destExtraCallInfo_ElmFn);
  14257. }
  14258. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PEndpoint_destExtraCallInfo val)
  14259. {
  14260. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14261. return 0;
  14262. return 1;
  14263. }
  14264. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val)
  14265. {
  14266. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_destExtraCallInfo_ElmFn, sizeof(**val));
  14267. }
  14268. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PEndpoint_destExtraCallInfo val)
  14269. {
  14270. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14271. return 0;
  14272. return 1;
  14273. }
  14274. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val)
  14275. {
  14276. if (val) {
  14277. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_destExtraCallInfo_ElmFn);
  14278. }
  14279. }
  14280. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo_ElmFn(PEndpoint_destExtraCallInfo val)
  14281. {
  14282. if (val) {
  14283. ASN1Free_AliasAddress(&val->value);
  14284. }
  14285. }
  14286. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val)
  14287. {
  14288. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn);
  14289. }
  14290. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress val)
  14291. {
  14292. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14293. return 0;
  14294. return 1;
  14295. }
  14296. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val)
  14297. {
  14298. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn, sizeof(**val));
  14299. }
  14300. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress val)
  14301. {
  14302. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14303. return 0;
  14304. return 1;
  14305. }
  14306. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val)
  14307. {
  14308. if (val) {
  14309. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_remoteExtensionAddress_ElmFn);
  14310. }
  14311. }
  14312. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress_ElmFn(PEndpoint_remoteExtensionAddress val)
  14313. {
  14314. if (val) {
  14315. ASN1Free_AliasAddress(&val->value);
  14316. }
  14317. }
  14318. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val)
  14319. {
  14320. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_aliasAddress_ElmFn);
  14321. }
  14322. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_aliasAddress val)
  14323. {
  14324. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14325. return 0;
  14326. return 1;
  14327. }
  14328. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val)
  14329. {
  14330. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_aliasAddress_ElmFn, sizeof(**val));
  14331. }
  14332. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_aliasAddress val)
  14333. {
  14334. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14335. return 0;
  14336. return 1;
  14337. }
  14338. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val)
  14339. {
  14340. if (val) {
  14341. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_aliasAddress_ElmFn);
  14342. }
  14343. }
  14344. static void ASN1CALL ASN1Free_Endpoint_aliasAddress_ElmFn(PEndpoint_aliasAddress val)
  14345. {
  14346. if (val) {
  14347. ASN1Free_AliasAddress(&val->value);
  14348. }
  14349. }
  14350. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val)
  14351. {
  14352. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn);
  14353. }
  14354. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes val)
  14355. {
  14356. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14357. return 0;
  14358. return 1;
  14359. }
  14360. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val)
  14361. {
  14362. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn, sizeof(**val));
  14363. }
  14364. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes val)
  14365. {
  14366. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14367. return 0;
  14368. return 1;
  14369. }
  14370. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val)
  14371. {
  14372. if (val) {
  14373. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn);
  14374. }
  14375. }
  14376. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn(PNonStandardProtocol_supportedPrefixes val)
  14377. {
  14378. if (val) {
  14379. ASN1Free_SupportedPrefix(&val->value);
  14380. }
  14381. }
  14382. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val)
  14383. {
  14384. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn);
  14385. }
  14386. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes val)
  14387. {
  14388. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14389. return 0;
  14390. return 1;
  14391. }
  14392. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val)
  14393. {
  14394. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14395. }
  14396. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes val)
  14397. {
  14398. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14399. return 0;
  14400. return 1;
  14401. }
  14402. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val)
  14403. {
  14404. if (val) {
  14405. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn);
  14406. }
  14407. }
  14408. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn(PT120OnlyCaps_supportedPrefixes val)
  14409. {
  14410. if (val) {
  14411. ASN1Free_SupportedPrefix(&val->value);
  14412. }
  14413. }
  14414. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val)
  14415. {
  14416. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn);
  14417. }
  14418. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes val)
  14419. {
  14420. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14421. return 0;
  14422. return 1;
  14423. }
  14424. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val)
  14425. {
  14426. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14427. }
  14428. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes val)
  14429. {
  14430. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14431. return 0;
  14432. return 1;
  14433. }
  14434. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val)
  14435. {
  14436. if (val) {
  14437. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_supportedPrefixes_ElmFn);
  14438. }
  14439. }
  14440. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes_ElmFn(PVoiceCaps_supportedPrefixes val)
  14441. {
  14442. if (val) {
  14443. ASN1Free_SupportedPrefix(&val->value);
  14444. }
  14445. }
  14446. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val)
  14447. {
  14448. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_supportedPrefixes_ElmFn);
  14449. }
  14450. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH324Caps_supportedPrefixes val)
  14451. {
  14452. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14453. return 0;
  14454. return 1;
  14455. }
  14456. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val)
  14457. {
  14458. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14459. }
  14460. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH324Caps_supportedPrefixes val)
  14461. {
  14462. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14463. return 0;
  14464. return 1;
  14465. }
  14466. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val)
  14467. {
  14468. if (val) {
  14469. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_supportedPrefixes_ElmFn);
  14470. }
  14471. }
  14472. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes_ElmFn(PH324Caps_supportedPrefixes val)
  14473. {
  14474. if (val) {
  14475. ASN1Free_SupportedPrefix(&val->value);
  14476. }
  14477. }
  14478. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val)
  14479. {
  14480. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_supportedPrefixes_ElmFn);
  14481. }
  14482. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH323Caps_supportedPrefixes val)
  14483. {
  14484. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14485. return 0;
  14486. return 1;
  14487. }
  14488. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val)
  14489. {
  14490. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14491. }
  14492. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH323Caps_supportedPrefixes val)
  14493. {
  14494. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14495. return 0;
  14496. return 1;
  14497. }
  14498. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val)
  14499. {
  14500. if (val) {
  14501. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_supportedPrefixes_ElmFn);
  14502. }
  14503. }
  14504. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes_ElmFn(PH323Caps_supportedPrefixes val)
  14505. {
  14506. if (val) {
  14507. ASN1Free_SupportedPrefix(&val->value);
  14508. }
  14509. }
  14510. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val)
  14511. {
  14512. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_supportedPrefixes_ElmFn);
  14513. }
  14514. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH322Caps_supportedPrefixes val)
  14515. {
  14516. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14517. return 0;
  14518. return 1;
  14519. }
  14520. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val)
  14521. {
  14522. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14523. }
  14524. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH322Caps_supportedPrefixes val)
  14525. {
  14526. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14527. return 0;
  14528. return 1;
  14529. }
  14530. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val)
  14531. {
  14532. if (val) {
  14533. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_supportedPrefixes_ElmFn);
  14534. }
  14535. }
  14536. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes_ElmFn(PH322Caps_supportedPrefixes val)
  14537. {
  14538. if (val) {
  14539. ASN1Free_SupportedPrefix(&val->value);
  14540. }
  14541. }
  14542. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val)
  14543. {
  14544. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_supportedPrefixes_ElmFn);
  14545. }
  14546. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH321Caps_supportedPrefixes val)
  14547. {
  14548. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14549. return 0;
  14550. return 1;
  14551. }
  14552. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val)
  14553. {
  14554. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14555. }
  14556. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH321Caps_supportedPrefixes val)
  14557. {
  14558. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14559. return 0;
  14560. return 1;
  14561. }
  14562. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val)
  14563. {
  14564. if (val) {
  14565. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_supportedPrefixes_ElmFn);
  14566. }
  14567. }
  14568. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes_ElmFn(PH321Caps_supportedPrefixes val)
  14569. {
  14570. if (val) {
  14571. ASN1Free_SupportedPrefix(&val->value);
  14572. }
  14573. }
  14574. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val)
  14575. {
  14576. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_supportedPrefixes_ElmFn);
  14577. }
  14578. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH320Caps_supportedPrefixes val)
  14579. {
  14580. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14581. return 0;
  14582. return 1;
  14583. }
  14584. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val)
  14585. {
  14586. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14587. }
  14588. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH320Caps_supportedPrefixes val)
  14589. {
  14590. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14591. return 0;
  14592. return 1;
  14593. }
  14594. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val)
  14595. {
  14596. if (val) {
  14597. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_supportedPrefixes_ElmFn);
  14598. }
  14599. }
  14600. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes_ElmFn(PH320Caps_supportedPrefixes val)
  14601. {
  14602. if (val) {
  14603. ASN1Free_SupportedPrefix(&val->value);
  14604. }
  14605. }
  14606. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val)
  14607. {
  14608. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_supportedPrefixes_ElmFn);
  14609. }
  14610. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH310Caps_supportedPrefixes val)
  14611. {
  14612. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14613. return 0;
  14614. return 1;
  14615. }
  14616. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val)
  14617. {
  14618. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14619. }
  14620. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH310Caps_supportedPrefixes val)
  14621. {
  14622. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14623. return 0;
  14624. return 1;
  14625. }
  14626. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val)
  14627. {
  14628. if (val) {
  14629. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_supportedPrefixes_ElmFn);
  14630. }
  14631. }
  14632. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes_ElmFn(PH310Caps_supportedPrefixes val)
  14633. {
  14634. if (val) {
  14635. ASN1Free_SupportedPrefix(&val->value);
  14636. }
  14637. }
  14638. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val)
  14639. {
  14640. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatewayInfo_protocol_ElmFn);
  14641. }
  14642. static int ASN1CALL ASN1Enc_GatewayInfo_protocol_ElmFn(ASN1encoding_t enc, PGatewayInfo_protocol val)
  14643. {
  14644. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  14645. return 0;
  14646. return 1;
  14647. }
  14648. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val)
  14649. {
  14650. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatewayInfo_protocol_ElmFn, sizeof(**val));
  14651. }
  14652. static int ASN1CALL ASN1Dec_GatewayInfo_protocol_ElmFn(ASN1decoding_t dec, PGatewayInfo_protocol val)
  14653. {
  14654. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  14655. return 0;
  14656. return 1;
  14657. }
  14658. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val)
  14659. {
  14660. if (val) {
  14661. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatewayInfo_protocol_ElmFn);
  14662. }
  14663. }
  14664. static void ASN1CALL ASN1Free_GatewayInfo_protocol_ElmFn(PGatewayInfo_protocol val)
  14665. {
  14666. if (val) {
  14667. ASN1Free_SupportedProtocols(&val->value);
  14668. }
  14669. }
  14670. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val)
  14671. {
  14672. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn);
  14673. }
  14674. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo val)
  14675. {
  14676. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14677. return 0;
  14678. return 1;
  14679. }
  14680. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val)
  14681. {
  14682. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14683. }
  14684. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo val)
  14685. {
  14686. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14687. return 0;
  14688. return 1;
  14689. }
  14690. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val)
  14691. {
  14692. if (val) {
  14693. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn);
  14694. }
  14695. }
  14696. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn(PFacility_UUIE_destExtraCallInfo val)
  14697. {
  14698. if (val) {
  14699. ASN1Free_AliasAddress(&val->value);
  14700. }
  14701. }
  14702. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val)
  14703. {
  14704. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14705. }
  14706. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress val)
  14707. {
  14708. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14709. return 0;
  14710. return 1;
  14711. }
  14712. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val)
  14713. {
  14714. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn, sizeof(**val));
  14715. }
  14716. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress val)
  14717. {
  14718. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14719. return 0;
  14720. return 1;
  14721. }
  14722. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val)
  14723. {
  14724. if (val) {
  14725. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14726. }
  14727. }
  14728. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn(PFacility_UUIE_alternativeAliasAddress val)
  14729. {
  14730. if (val) {
  14731. ASN1Free_AliasAddress(&val->value);
  14732. }
  14733. }
  14734. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val)
  14735. {
  14736. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn);
  14737. }
  14738. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo val)
  14739. {
  14740. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14741. return 0;
  14742. return 1;
  14743. }
  14744. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val)
  14745. {
  14746. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14747. }
  14748. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo val)
  14749. {
  14750. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14751. return 0;
  14752. return 1;
  14753. }
  14754. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val)
  14755. {
  14756. if (val) {
  14757. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn);
  14758. }
  14759. }
  14760. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn(PSetup_UUIE_destExtraCallInfo val)
  14761. {
  14762. if (val) {
  14763. ASN1Free_AliasAddress(&val->value);
  14764. }
  14765. }
  14766. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val)
  14767. {
  14768. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destinationAddress_ElmFn);
  14769. }
  14770. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destinationAddress val)
  14771. {
  14772. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14773. return 0;
  14774. return 1;
  14775. }
  14776. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val)
  14777. {
  14778. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destinationAddress_ElmFn, sizeof(**val));
  14779. }
  14780. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destinationAddress val)
  14781. {
  14782. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14783. return 0;
  14784. return 1;
  14785. }
  14786. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val)
  14787. {
  14788. if (val) {
  14789. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destinationAddress_ElmFn);
  14790. }
  14791. }
  14792. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress_ElmFn(PSetup_UUIE_destinationAddress val)
  14793. {
  14794. if (val) {
  14795. ASN1Free_AliasAddress(&val->value);
  14796. }
  14797. }
  14798. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val)
  14799. {
  14800. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_sourceAddress_ElmFn);
  14801. }
  14802. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_sourceAddress val)
  14803. {
  14804. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14805. return 0;
  14806. return 1;
  14807. }
  14808. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val)
  14809. {
  14810. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_sourceAddress_ElmFn, sizeof(**val));
  14811. }
  14812. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_sourceAddress val)
  14813. {
  14814. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14815. return 0;
  14816. return 1;
  14817. }
  14818. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val)
  14819. {
  14820. if (val) {
  14821. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_sourceAddress_ElmFn);
  14822. }
  14823. }
  14824. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress_ElmFn(PSetup_UUIE_sourceAddress val)
  14825. {
  14826. if (val) {
  14827. ASN1Free_AliasAddress(&val->value);
  14828. }
  14829. }
  14830. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val)
  14831. {
  14832. ASN1octet_t o[2];
  14833. ASN1uint32_t y;
  14834. ASN1encoding_t ee;
  14835. CopyMemory(o, (val)->o, 2);
  14836. o[1] |= 0x80;
  14837. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14838. if (!ASN1PEREncBitVal(enc, 1, y))
  14839. return 0;
  14840. if (!ASN1PEREncBits(enc, 1, o))
  14841. return 0;
  14842. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14843. return 0;
  14844. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14845. return 0;
  14846. if (o[0] & 0x80) {
  14847. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14848. return 0;
  14849. }
  14850. if (y) {
  14851. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14852. return 0;
  14853. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14854. return 0;
  14855. if (o[1] & 0x80) {
  14856. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14857. return 0;
  14858. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14859. return 0;
  14860. }
  14861. if (o[1] & 0x40) {
  14862. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14863. return 0;
  14864. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14865. return 0;
  14866. }
  14867. if (o[1] & 0x20) {
  14868. if (!ASN1Enc_Alerting_UUIE_tokens(ee, &(val)->tokens))
  14869. return 0;
  14870. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14871. return 0;
  14872. }
  14873. if (o[1] & 0x10) {
  14874. if (!ASN1Enc_Alerting_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14875. return 0;
  14876. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14877. return 0;
  14878. }
  14879. if (o[1] & 0x8) {
  14880. if (!ASN1Enc_Alerting_UUIE_fastStart(ee, &(val)->fastStart))
  14881. return 0;
  14882. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14883. return 0;
  14884. }
  14885. ASN1_CloseEncoder2(ee);
  14886. }
  14887. return 1;
  14888. }
  14889. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val)
  14890. {
  14891. ASN1uint32_t y;
  14892. ASN1decoding_t dd;
  14893. ASN1octet_t *db;
  14894. ASN1uint32_t ds;
  14895. ASN1uint32_t i;
  14896. ASN1uint32_t e;
  14897. if (!ASN1PERDecExtensionBit(dec, &y))
  14898. return 0;
  14899. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14900. return 0;
  14901. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  14902. return 0;
  14903. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  14904. return 0;
  14905. if ((val)->o[0] & 0x80) {
  14906. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  14907. return 0;
  14908. }
  14909. if (!y) {
  14910. ZeroMemory((val)->o + 1, 1);
  14911. } else {
  14912. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  14913. return 0;
  14914. if ((val)->o[1] & 0x80) {
  14915. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14916. return 0;
  14917. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14918. return 0;
  14919. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  14920. return 0;
  14921. ASN1_CloseDecoder(dd);
  14922. ASN1Free(db);
  14923. }
  14924. if ((val)->o[1] & 0x40) {
  14925. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14926. return 0;
  14927. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14928. return 0;
  14929. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  14930. return 0;
  14931. ASN1_CloseDecoder(dd);
  14932. ASN1Free(db);
  14933. }
  14934. if ((val)->o[1] & 0x20) {
  14935. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14936. return 0;
  14937. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14938. return 0;
  14939. if (!ASN1Dec_Alerting_UUIE_tokens(dd, &(val)->tokens))
  14940. return 0;
  14941. ASN1_CloseDecoder(dd);
  14942. ASN1Free(db);
  14943. }
  14944. if ((val)->o[1] & 0x10) {
  14945. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14946. return 0;
  14947. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14948. return 0;
  14949. if (!ASN1Dec_Alerting_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  14950. return 0;
  14951. ASN1_CloseDecoder(dd);
  14952. ASN1Free(db);
  14953. }
  14954. if ((val)->o[1] & 0x8) {
  14955. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14956. return 0;
  14957. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14958. return 0;
  14959. if (!ASN1Dec_Alerting_UUIE_fastStart(dd, &(val)->fastStart))
  14960. return 0;
  14961. ASN1_CloseDecoder(dd);
  14962. ASN1Free(db);
  14963. }
  14964. for (i = 0; i < e; i++) {
  14965. if (!ASN1PERDecSkipFragmented(dec, 8))
  14966. return 0;
  14967. }
  14968. }
  14969. return 1;
  14970. }
  14971. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val)
  14972. {
  14973. if (val) {
  14974. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  14975. ASN1Free_EndpointType(&(val)->destinationInfo);
  14976. if ((val)->o[0] & 0x80) {
  14977. ASN1Free_TransportAddress(&(val)->h245Address);
  14978. }
  14979. if ((val)->o[1] & 0x80) {
  14980. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  14981. }
  14982. if ((val)->o[1] & 0x40) {
  14983. ASN1Free_H245Security(&(val)->h245SecurityMode);
  14984. }
  14985. if ((val)->o[1] & 0x20) {
  14986. ASN1Free_Alerting_UUIE_tokens(&(val)->tokens);
  14987. }
  14988. if ((val)->o[1] & 0x10) {
  14989. ASN1Free_Alerting_UUIE_cryptoTokens(&(val)->cryptoTokens);
  14990. }
  14991. if ((val)->o[1] & 0x8) {
  14992. ASN1Free_Alerting_UUIE_fastStart(&(val)->fastStart);
  14993. }
  14994. }
  14995. }
  14996. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val)
  14997. {
  14998. ASN1octet_t o[2];
  14999. ASN1uint32_t y;
  15000. ASN1encoding_t ee;
  15001. CopyMemory(o, (val)->o, 2);
  15002. o[1] |= 0x80;
  15003. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  15004. if (!ASN1PEREncBitVal(enc, 1, y))
  15005. return 0;
  15006. if (!ASN1PEREncBits(enc, 1, o))
  15007. return 0;
  15008. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15009. return 0;
  15010. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15011. return 0;
  15012. if (o[0] & 0x80) {
  15013. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15014. return 0;
  15015. }
  15016. if (y) {
  15017. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  15018. return 0;
  15019. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15020. return 0;
  15021. if (o[1] & 0x80) {
  15022. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15023. return 0;
  15024. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15025. return 0;
  15026. }
  15027. if (o[1] & 0x40) {
  15028. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  15029. return 0;
  15030. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15031. return 0;
  15032. }
  15033. if (o[1] & 0x20) {
  15034. if (!ASN1Enc_CallProceeding_UUIE_tokens(ee, &(val)->tokens))
  15035. return 0;
  15036. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15037. return 0;
  15038. }
  15039. if (o[1] & 0x10) {
  15040. if (!ASN1Enc_CallProceeding_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15041. return 0;
  15042. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15043. return 0;
  15044. }
  15045. if (o[1] & 0x8) {
  15046. if (!ASN1Enc_CallProceeding_UUIE_fastStart(ee, &(val)->fastStart))
  15047. return 0;
  15048. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15049. return 0;
  15050. }
  15051. ASN1_CloseEncoder2(ee);
  15052. }
  15053. return 1;
  15054. }
  15055. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val)
  15056. {
  15057. ASN1uint32_t y;
  15058. ASN1decoding_t dd;
  15059. ASN1octet_t *db;
  15060. ASN1uint32_t ds;
  15061. ASN1uint32_t i;
  15062. ASN1uint32_t e;
  15063. if (!ASN1PERDecExtensionBit(dec, &y))
  15064. return 0;
  15065. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15066. return 0;
  15067. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15068. return 0;
  15069. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15070. return 0;
  15071. if ((val)->o[0] & 0x80) {
  15072. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15073. return 0;
  15074. }
  15075. if (!y) {
  15076. ZeroMemory((val)->o + 1, 1);
  15077. } else {
  15078. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15079. return 0;
  15080. if ((val)->o[1] & 0x80) {
  15081. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15082. return 0;
  15083. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15084. return 0;
  15085. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15086. return 0;
  15087. ASN1_CloseDecoder(dd);
  15088. ASN1Free(db);
  15089. }
  15090. if ((val)->o[1] & 0x40) {
  15091. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15092. return 0;
  15093. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15094. return 0;
  15095. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15096. return 0;
  15097. ASN1_CloseDecoder(dd);
  15098. ASN1Free(db);
  15099. }
  15100. if ((val)->o[1] & 0x20) {
  15101. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15102. return 0;
  15103. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15104. return 0;
  15105. if (!ASN1Dec_CallProceeding_UUIE_tokens(dd, &(val)->tokens))
  15106. return 0;
  15107. ASN1_CloseDecoder(dd);
  15108. ASN1Free(db);
  15109. }
  15110. if ((val)->o[1] & 0x10) {
  15111. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15112. return 0;
  15113. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15114. return 0;
  15115. if (!ASN1Dec_CallProceeding_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15116. return 0;
  15117. ASN1_CloseDecoder(dd);
  15118. ASN1Free(db);
  15119. }
  15120. if ((val)->o[1] & 0x8) {
  15121. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15122. return 0;
  15123. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15124. return 0;
  15125. if (!ASN1Dec_CallProceeding_UUIE_fastStart(dd, &(val)->fastStart))
  15126. return 0;
  15127. ASN1_CloseDecoder(dd);
  15128. ASN1Free(db);
  15129. }
  15130. for (i = 0; i < e; i++) {
  15131. if (!ASN1PERDecSkipFragmented(dec, 8))
  15132. return 0;
  15133. }
  15134. }
  15135. return 1;
  15136. }
  15137. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val)
  15138. {
  15139. if (val) {
  15140. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15141. ASN1Free_EndpointType(&(val)->destinationInfo);
  15142. if ((val)->o[0] & 0x80) {
  15143. ASN1Free_TransportAddress(&(val)->h245Address);
  15144. }
  15145. if ((val)->o[1] & 0x80) {
  15146. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15147. }
  15148. if ((val)->o[1] & 0x40) {
  15149. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15150. }
  15151. if ((val)->o[1] & 0x20) {
  15152. ASN1Free_CallProceeding_UUIE_tokens(&(val)->tokens);
  15153. }
  15154. if ((val)->o[1] & 0x10) {
  15155. ASN1Free_CallProceeding_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15156. }
  15157. if ((val)->o[1] & 0x8) {
  15158. ASN1Free_CallProceeding_UUIE_fastStart(&(val)->fastStart);
  15159. }
  15160. }
  15161. }
  15162. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val)
  15163. {
  15164. ASN1octet_t o[2];
  15165. ASN1uint32_t y;
  15166. ASN1encoding_t ee;
  15167. CopyMemory(o, (val)->o, 2);
  15168. o[1] |= 0x80;
  15169. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  15170. if (!ASN1PEREncBitVal(enc, 1, y))
  15171. return 0;
  15172. if (!ASN1PEREncBits(enc, 1, o))
  15173. return 0;
  15174. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15175. return 0;
  15176. if (o[0] & 0x80) {
  15177. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15178. return 0;
  15179. }
  15180. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15181. return 0;
  15182. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15183. return 0;
  15184. if (y) {
  15185. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  15186. return 0;
  15187. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15188. return 0;
  15189. if (o[1] & 0x80) {
  15190. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15191. return 0;
  15192. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15193. return 0;
  15194. }
  15195. if (o[1] & 0x40) {
  15196. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  15197. return 0;
  15198. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15199. return 0;
  15200. }
  15201. if (o[1] & 0x20) {
  15202. if (!ASN1Enc_Connect_UUIE_tokens(ee, &(val)->tokens))
  15203. return 0;
  15204. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15205. return 0;
  15206. }
  15207. if (o[1] & 0x10) {
  15208. if (!ASN1Enc_Connect_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15209. return 0;
  15210. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15211. return 0;
  15212. }
  15213. if (o[1] & 0x8) {
  15214. if (!ASN1Enc_Connect_UUIE_fastStart(ee, &(val)->fastStart))
  15215. return 0;
  15216. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15217. return 0;
  15218. }
  15219. ASN1_CloseEncoder2(ee);
  15220. }
  15221. return 1;
  15222. }
  15223. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val)
  15224. {
  15225. ASN1uint32_t y;
  15226. ASN1decoding_t dd;
  15227. ASN1octet_t *db;
  15228. ASN1uint32_t ds;
  15229. ASN1uint32_t i;
  15230. ASN1uint32_t e;
  15231. if (!ASN1PERDecExtensionBit(dec, &y))
  15232. return 0;
  15233. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15234. return 0;
  15235. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15236. return 0;
  15237. if ((val)->o[0] & 0x80) {
  15238. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15239. return 0;
  15240. }
  15241. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15242. return 0;
  15243. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15244. return 0;
  15245. if (!y) {
  15246. ZeroMemory((val)->o + 1, 1);
  15247. } else {
  15248. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15249. return 0;
  15250. if ((val)->o[1] & 0x80) {
  15251. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15252. return 0;
  15253. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15254. return 0;
  15255. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15256. return 0;
  15257. ASN1_CloseDecoder(dd);
  15258. ASN1Free(db);
  15259. }
  15260. if ((val)->o[1] & 0x40) {
  15261. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15262. return 0;
  15263. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15264. return 0;
  15265. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15266. return 0;
  15267. ASN1_CloseDecoder(dd);
  15268. ASN1Free(db);
  15269. }
  15270. if ((val)->o[1] & 0x20) {
  15271. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15272. return 0;
  15273. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15274. return 0;
  15275. if (!ASN1Dec_Connect_UUIE_tokens(dd, &(val)->tokens))
  15276. return 0;
  15277. ASN1_CloseDecoder(dd);
  15278. ASN1Free(db);
  15279. }
  15280. if ((val)->o[1] & 0x10) {
  15281. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15282. return 0;
  15283. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15284. return 0;
  15285. if (!ASN1Dec_Connect_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15286. return 0;
  15287. ASN1_CloseDecoder(dd);
  15288. ASN1Free(db);
  15289. }
  15290. if ((val)->o[1] & 0x8) {
  15291. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15292. return 0;
  15293. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15294. return 0;
  15295. if (!ASN1Dec_Connect_UUIE_fastStart(dd, &(val)->fastStart))
  15296. return 0;
  15297. ASN1_CloseDecoder(dd);
  15298. ASN1Free(db);
  15299. }
  15300. for (i = 0; i < e; i++) {
  15301. if (!ASN1PERDecSkipFragmented(dec, 8))
  15302. return 0;
  15303. }
  15304. }
  15305. return 1;
  15306. }
  15307. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val)
  15308. {
  15309. if (val) {
  15310. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15311. if ((val)->o[0] & 0x80) {
  15312. ASN1Free_TransportAddress(&(val)->h245Address);
  15313. }
  15314. ASN1Free_EndpointType(&(val)->destinationInfo);
  15315. if ((val)->o[1] & 0x80) {
  15316. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15317. }
  15318. if ((val)->o[1] & 0x40) {
  15319. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15320. }
  15321. if ((val)->o[1] & 0x20) {
  15322. ASN1Free_Connect_UUIE_tokens(&(val)->tokens);
  15323. }
  15324. if ((val)->o[1] & 0x10) {
  15325. ASN1Free_Connect_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15326. }
  15327. if ((val)->o[1] & 0x8) {
  15328. ASN1Free_Connect_UUIE_fastStart(&(val)->fastStart);
  15329. }
  15330. }
  15331. }
  15332. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val)
  15333. {
  15334. ASN1octet_t o[3];
  15335. ASN1uint32_t y;
  15336. ASN1encoding_t ee;
  15337. CopyMemory(o, (val)->o, 3);
  15338. o[1] |= 0x20;
  15339. o[1] |= 0x1;
  15340. o[2] |= 0x80;
  15341. y = ASN1PEREncCheckExtensions(9, (val)->o + 1);
  15342. if (!ASN1PEREncBitVal(enc, 1, y))
  15343. return 0;
  15344. if (!ASN1PEREncBits(enc, 7, o))
  15345. return 0;
  15346. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15347. return 0;
  15348. if (o[0] & 0x80) {
  15349. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15350. return 0;
  15351. }
  15352. if (o[0] & 0x40) {
  15353. if (!ASN1Enc_Setup_UUIE_sourceAddress(enc, &(val)->sourceAddress))
  15354. return 0;
  15355. }
  15356. if (!ASN1Enc_EndpointType(enc, &(val)->sourceInfo))
  15357. return 0;
  15358. if (o[0] & 0x20) {
  15359. if (!ASN1Enc_Setup_UUIE_destinationAddress(enc, &(val)->destinationAddress))
  15360. return 0;
  15361. }
  15362. if (o[0] & 0x10) {
  15363. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  15364. return 0;
  15365. }
  15366. if (o[0] & 0x8) {
  15367. if (!ASN1Enc_Setup_UUIE_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  15368. return 0;
  15369. }
  15370. if (o[0] & 0x4) {
  15371. if (!ASN1Enc_Setup_UUIE_destExtraCRV(enc, &(val)->destExtraCRV))
  15372. return 0;
  15373. }
  15374. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  15375. return 0;
  15376. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15377. return 0;
  15378. if (!ASN1Enc_Setup_UUIE_conferenceGoal(enc, &(val)->conferenceGoal))
  15379. return 0;
  15380. if (o[0] & 0x2) {
  15381. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  15382. return 0;
  15383. }
  15384. if (!ASN1Enc_CallType(enc, &(val)->callType))
  15385. return 0;
  15386. if (y) {
  15387. if (!ASN1PEREncNormallySmallBits(enc, 9, o + 1))
  15388. return 0;
  15389. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15390. return 0;
  15391. if (o[1] & 0x80) {
  15392. if (!ASN1Enc_TransportAddress(ee, &(val)->sourceCallSignalAddress))
  15393. return 0;
  15394. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15395. return 0;
  15396. }
  15397. if (o[1] & 0x40) {
  15398. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15399. return 0;
  15400. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15401. return 0;
  15402. }
  15403. if (o[1] & 0x20) {
  15404. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15405. return 0;
  15406. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15407. return 0;
  15408. }
  15409. if (o[1] & 0x10) {
  15410. if (!ASN1Enc_Setup_UUIE_h245SecurityCapability(ee, &(val)->h245SecurityCapability))
  15411. return 0;
  15412. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15413. return 0;
  15414. }
  15415. if (o[1] & 0x8) {
  15416. if (!ASN1Enc_Setup_UUIE_tokens(ee, &(val)->tokens))
  15417. return 0;
  15418. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15419. return 0;
  15420. }
  15421. if (o[1] & 0x4) {
  15422. if (!ASN1Enc_Setup_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15423. return 0;
  15424. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15425. return 0;
  15426. }
  15427. if (o[1] & 0x2) {
  15428. if (!ASN1Enc_Setup_UUIE_fastStart(ee, &(val)->fastStart))
  15429. return 0;
  15430. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15431. return 0;
  15432. }
  15433. if (o[1] & 0x1) {
  15434. if (!ASN1PEREncBoolean(ee, (val)->mediaWaitForConnect))
  15435. return 0;
  15436. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15437. return 0;
  15438. }
  15439. if (o[2] & 0x80) {
  15440. if (!ASN1PEREncBoolean(ee, (val)->canOverlapSend))
  15441. return 0;
  15442. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15443. return 0;
  15444. }
  15445. ASN1_CloseEncoder2(ee);
  15446. }
  15447. return 1;
  15448. }
  15449. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val)
  15450. {
  15451. ASN1uint32_t y;
  15452. ASN1decoding_t dd;
  15453. ASN1octet_t *db;
  15454. ASN1uint32_t ds;
  15455. ASN1uint32_t i;
  15456. ASN1uint32_t e;
  15457. if (!ASN1PERDecExtensionBit(dec, &y))
  15458. return 0;
  15459. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  15460. return 0;
  15461. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15462. return 0;
  15463. if ((val)->o[0] & 0x80) {
  15464. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15465. return 0;
  15466. }
  15467. if ((val)->o[0] & 0x40) {
  15468. if (!ASN1Dec_Setup_UUIE_sourceAddress(dec, &(val)->sourceAddress))
  15469. return 0;
  15470. }
  15471. if (!ASN1Dec_EndpointType(dec, &(val)->sourceInfo))
  15472. return 0;
  15473. if ((val)->o[0] & 0x20) {
  15474. if (!ASN1Dec_Setup_UUIE_destinationAddress(dec, &(val)->destinationAddress))
  15475. return 0;
  15476. }
  15477. if ((val)->o[0] & 0x10) {
  15478. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  15479. return 0;
  15480. }
  15481. if ((val)->o[0] & 0x8) {
  15482. if (!ASN1Dec_Setup_UUIE_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  15483. return 0;
  15484. }
  15485. if ((val)->o[0] & 0x4) {
  15486. if (!ASN1Dec_Setup_UUIE_destExtraCRV(dec, &(val)->destExtraCRV))
  15487. return 0;
  15488. }
  15489. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  15490. return 0;
  15491. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15492. return 0;
  15493. if (!ASN1Dec_Setup_UUIE_conferenceGoal(dec, &(val)->conferenceGoal))
  15494. return 0;
  15495. if ((val)->o[0] & 0x2) {
  15496. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  15497. return 0;
  15498. }
  15499. if (!ASN1Dec_CallType(dec, &(val)->callType))
  15500. return 0;
  15501. if (!y) {
  15502. ZeroMemory((val)->o + 1, 2);
  15503. } else {
  15504. if (!ASN1PERDecNormallySmallExtension(dec, &e, 9, (val)->o + 1))
  15505. return 0;
  15506. if ((val)->o[1] & 0x80) {
  15507. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15508. return 0;
  15509. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15510. return 0;
  15511. if (!ASN1Dec_TransportAddress(dd, &(val)->sourceCallSignalAddress))
  15512. return 0;
  15513. ASN1_CloseDecoder(dd);
  15514. ASN1Free(db);
  15515. }
  15516. if ((val)->o[1] & 0x40) {
  15517. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15518. return 0;
  15519. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15520. return 0;
  15521. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15522. return 0;
  15523. ASN1_CloseDecoder(dd);
  15524. ASN1Free(db);
  15525. }
  15526. if ((val)->o[1] & 0x20) {
  15527. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15528. return 0;
  15529. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15530. return 0;
  15531. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15532. return 0;
  15533. ASN1_CloseDecoder(dd);
  15534. ASN1Free(db);
  15535. }
  15536. if ((val)->o[1] & 0x10) {
  15537. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15538. return 0;
  15539. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15540. return 0;
  15541. if (!ASN1Dec_Setup_UUIE_h245SecurityCapability(dd, &(val)->h245SecurityCapability))
  15542. return 0;
  15543. ASN1_CloseDecoder(dd);
  15544. ASN1Free(db);
  15545. }
  15546. if ((val)->o[1] & 0x8) {
  15547. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15548. return 0;
  15549. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15550. return 0;
  15551. if (!ASN1Dec_Setup_UUIE_tokens(dd, &(val)->tokens))
  15552. return 0;
  15553. ASN1_CloseDecoder(dd);
  15554. ASN1Free(db);
  15555. }
  15556. if ((val)->o[1] & 0x4) {
  15557. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15558. return 0;
  15559. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15560. return 0;
  15561. if (!ASN1Dec_Setup_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15562. return 0;
  15563. ASN1_CloseDecoder(dd);
  15564. ASN1Free(db);
  15565. }
  15566. if ((val)->o[1] & 0x2) {
  15567. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15568. return 0;
  15569. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15570. return 0;
  15571. if (!ASN1Dec_Setup_UUIE_fastStart(dd, &(val)->fastStart))
  15572. return 0;
  15573. ASN1_CloseDecoder(dd);
  15574. ASN1Free(db);
  15575. }
  15576. if ((val)->o[1] & 0x1) {
  15577. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15578. return 0;
  15579. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15580. return 0;
  15581. if (!ASN1PERDecBoolean(dd, &(val)->mediaWaitForConnect))
  15582. return 0;
  15583. ASN1_CloseDecoder(dd);
  15584. ASN1Free(db);
  15585. }
  15586. if ((val)->o[2] & 0x80) {
  15587. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15588. return 0;
  15589. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15590. return 0;
  15591. if (!ASN1PERDecBoolean(dd, &(val)->canOverlapSend))
  15592. return 0;
  15593. ASN1_CloseDecoder(dd);
  15594. ASN1Free(db);
  15595. }
  15596. for (i = 0; i < e; i++) {
  15597. if (!ASN1PERDecSkipFragmented(dec, 8))
  15598. return 0;
  15599. }
  15600. }
  15601. return 1;
  15602. }
  15603. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val)
  15604. {
  15605. if (val) {
  15606. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15607. if ((val)->o[0] & 0x80) {
  15608. ASN1Free_TransportAddress(&(val)->h245Address);
  15609. }
  15610. if ((val)->o[0] & 0x40) {
  15611. ASN1Free_Setup_UUIE_sourceAddress(&(val)->sourceAddress);
  15612. }
  15613. ASN1Free_EndpointType(&(val)->sourceInfo);
  15614. if ((val)->o[0] & 0x20) {
  15615. ASN1Free_Setup_UUIE_destinationAddress(&(val)->destinationAddress);
  15616. }
  15617. if ((val)->o[0] & 0x10) {
  15618. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  15619. }
  15620. if ((val)->o[0] & 0x8) {
  15621. ASN1Free_Setup_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15622. }
  15623. if ((val)->o[0] & 0x4) {
  15624. ASN1Free_Setup_UUIE_destExtraCRV(&(val)->destExtraCRV);
  15625. }
  15626. if ((val)->o[1] & 0x80) {
  15627. ASN1Free_TransportAddress(&(val)->sourceCallSignalAddress);
  15628. }
  15629. if ((val)->o[1] & 0x40) {
  15630. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15631. }
  15632. if ((val)->o[1] & 0x20) {
  15633. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15634. }
  15635. if ((val)->o[1] & 0x10) {
  15636. ASN1Free_Setup_UUIE_h245SecurityCapability(&(val)->h245SecurityCapability);
  15637. }
  15638. if ((val)->o[1] & 0x8) {
  15639. ASN1Free_Setup_UUIE_tokens(&(val)->tokens);
  15640. }
  15641. if ((val)->o[1] & 0x4) {
  15642. ASN1Free_Setup_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15643. }
  15644. if ((val)->o[1] & 0x2) {
  15645. ASN1Free_Setup_UUIE_fastStart(&(val)->fastStart);
  15646. }
  15647. }
  15648. }
  15649. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val)
  15650. {
  15651. ASN1octet_t o[2];
  15652. ASN1uint32_t y;
  15653. ASN1encoding_t ee;
  15654. CopyMemory(o, (val)->o, 2);
  15655. o[1] |= 0x80;
  15656. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  15657. if (!ASN1PEREncBitVal(enc, 1, y))
  15658. return 0;
  15659. if (!ASN1PEREncBits(enc, 3, o))
  15660. return 0;
  15661. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15662. return 0;
  15663. if (o[0] & 0x80) {
  15664. if (!ASN1Enc_TransportAddress(enc, &(val)->alternativeAddress))
  15665. return 0;
  15666. }
  15667. if (o[0] & 0x40) {
  15668. if (!ASN1Enc_Facility_UUIE_alternativeAliasAddress(enc, &(val)->alternativeAliasAddress))
  15669. return 0;
  15670. }
  15671. if (o[0] & 0x20) {
  15672. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15673. return 0;
  15674. }
  15675. if (!ASN1Enc_FacilityReason(enc, &(val)->reason))
  15676. return 0;
  15677. if (y) {
  15678. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  15679. return 0;
  15680. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15681. return 0;
  15682. if (o[1] & 0x80) {
  15683. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15684. return 0;
  15685. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15686. return 0;
  15687. }
  15688. if (o[1] & 0x40) {
  15689. if (!ASN1Enc_Facility_UUIE_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  15690. return 0;
  15691. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15692. return 0;
  15693. }
  15694. if (o[1] & 0x20) {
  15695. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15696. return 0;
  15697. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15698. return 0;
  15699. }
  15700. if (o[1] & 0x10) {
  15701. if (!ASN1Enc_Facility_UUIE_tokens(ee, &(val)->tokens))
  15702. return 0;
  15703. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15704. return 0;
  15705. }
  15706. if (o[1] & 0x8) {
  15707. if (!ASN1Enc_Facility_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15708. return 0;
  15709. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15710. return 0;
  15711. }
  15712. if (o[1] & 0x4) {
  15713. if (!ASN1Enc_Facility_UUIE_conferences(ee, &(val)->conferences))
  15714. return 0;
  15715. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15716. return 0;
  15717. }
  15718. if (o[1] & 0x2) {
  15719. if (!ASN1Enc_TransportAddress(ee, &(val)->h245Address))
  15720. return 0;
  15721. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15722. return 0;
  15723. }
  15724. if (o[1] & 0x1) {
  15725. if (!ASN1Enc_Facility_UUIE_fastStart(ee, &(val)->fastStart))
  15726. return 0;
  15727. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15728. return 0;
  15729. }
  15730. ASN1_CloseEncoder2(ee);
  15731. }
  15732. return 1;
  15733. }
  15734. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val)
  15735. {
  15736. ASN1uint32_t y;
  15737. ASN1decoding_t dd;
  15738. ASN1octet_t *db;
  15739. ASN1uint32_t ds;
  15740. ASN1uint32_t i;
  15741. ASN1uint32_t e;
  15742. if (!ASN1PERDecExtensionBit(dec, &y))
  15743. return 0;
  15744. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15745. return 0;
  15746. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15747. return 0;
  15748. if ((val)->o[0] & 0x80) {
  15749. if (!ASN1Dec_TransportAddress(dec, &(val)->alternativeAddress))
  15750. return 0;
  15751. }
  15752. if ((val)->o[0] & 0x40) {
  15753. if (!ASN1Dec_Facility_UUIE_alternativeAliasAddress(dec, &(val)->alternativeAliasAddress))
  15754. return 0;
  15755. }
  15756. if ((val)->o[0] & 0x20) {
  15757. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15758. return 0;
  15759. }
  15760. if (!ASN1Dec_FacilityReason(dec, &(val)->reason))
  15761. return 0;
  15762. if (!y) {
  15763. ZeroMemory((val)->o + 1, 1);
  15764. } else {
  15765. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  15766. return 0;
  15767. if ((val)->o[1] & 0x80) {
  15768. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15769. return 0;
  15770. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15771. return 0;
  15772. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15773. return 0;
  15774. ASN1_CloseDecoder(dd);
  15775. ASN1Free(db);
  15776. }
  15777. if ((val)->o[1] & 0x40) {
  15778. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15779. return 0;
  15780. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15781. return 0;
  15782. if (!ASN1Dec_Facility_UUIE_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  15783. return 0;
  15784. ASN1_CloseDecoder(dd);
  15785. ASN1Free(db);
  15786. }
  15787. if ((val)->o[1] & 0x20) {
  15788. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15789. return 0;
  15790. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15791. return 0;
  15792. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15793. return 0;
  15794. ASN1_CloseDecoder(dd);
  15795. ASN1Free(db);
  15796. }
  15797. if ((val)->o[1] & 0x10) {
  15798. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15799. return 0;
  15800. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15801. return 0;
  15802. if (!ASN1Dec_Facility_UUIE_tokens(dd, &(val)->tokens))
  15803. return 0;
  15804. ASN1_CloseDecoder(dd);
  15805. ASN1Free(db);
  15806. }
  15807. if ((val)->o[1] & 0x8) {
  15808. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15809. return 0;
  15810. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15811. return 0;
  15812. if (!ASN1Dec_Facility_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15813. return 0;
  15814. ASN1_CloseDecoder(dd);
  15815. ASN1Free(db);
  15816. }
  15817. if ((val)->o[1] & 0x4) {
  15818. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15819. return 0;
  15820. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15821. return 0;
  15822. if (!ASN1Dec_Facility_UUIE_conferences(dd, &(val)->conferences))
  15823. return 0;
  15824. ASN1_CloseDecoder(dd);
  15825. ASN1Free(db);
  15826. }
  15827. if ((val)->o[1] & 0x2) {
  15828. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15829. return 0;
  15830. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15831. return 0;
  15832. if (!ASN1Dec_TransportAddress(dd, &(val)->h245Address))
  15833. return 0;
  15834. ASN1_CloseDecoder(dd);
  15835. ASN1Free(db);
  15836. }
  15837. if ((val)->o[1] & 0x1) {
  15838. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15839. return 0;
  15840. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15841. return 0;
  15842. if (!ASN1Dec_Facility_UUIE_fastStart(dd, &(val)->fastStart))
  15843. return 0;
  15844. ASN1_CloseDecoder(dd);
  15845. ASN1Free(db);
  15846. }
  15847. for (i = 0; i < e; i++) {
  15848. if (!ASN1PERDecSkipFragmented(dec, 8))
  15849. return 0;
  15850. }
  15851. }
  15852. return 1;
  15853. }
  15854. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val)
  15855. {
  15856. if (val) {
  15857. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15858. if ((val)->o[0] & 0x80) {
  15859. ASN1Free_TransportAddress(&(val)->alternativeAddress);
  15860. }
  15861. if ((val)->o[0] & 0x40) {
  15862. ASN1Free_Facility_UUIE_alternativeAliasAddress(&(val)->alternativeAliasAddress);
  15863. }
  15864. if ((val)->o[0] & 0x20) {
  15865. }
  15866. if ((val)->o[1] & 0x80) {
  15867. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15868. }
  15869. if ((val)->o[1] & 0x40) {
  15870. ASN1Free_Facility_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15871. }
  15872. if ((val)->o[1] & 0x20) {
  15873. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15874. }
  15875. if ((val)->o[1] & 0x10) {
  15876. ASN1Free_Facility_UUIE_tokens(&(val)->tokens);
  15877. }
  15878. if ((val)->o[1] & 0x8) {
  15879. ASN1Free_Facility_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15880. }
  15881. if ((val)->o[1] & 0x4) {
  15882. ASN1Free_Facility_UUIE_conferences(&(val)->conferences);
  15883. }
  15884. if ((val)->o[1] & 0x2) {
  15885. ASN1Free_TransportAddress(&(val)->h245Address);
  15886. }
  15887. if ((val)->o[1] & 0x1) {
  15888. ASN1Free_Facility_UUIE_fastStart(&(val)->fastStart);
  15889. }
  15890. }
  15891. }
  15892. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val)
  15893. {
  15894. if (!ASN1PEREncExtensionBitClear(enc))
  15895. return 0;
  15896. if (!ASN1PEREncBits(enc, 3, (val)->o))
  15897. return 0;
  15898. if ((val)->o[0] & 0x80) {
  15899. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15900. return 0;
  15901. }
  15902. if ((val)->o[0] & 0x40) {
  15903. if (!ASN1Enc_AliasAddress(enc, &(val)->conferenceAlias))
  15904. return 0;
  15905. }
  15906. if ((val)->o[0] & 0x20) {
  15907. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  15908. return 0;
  15909. }
  15910. return 1;
  15911. }
  15912. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val)
  15913. {
  15914. ASN1uint32_t y;
  15915. if (!ASN1PERDecExtensionBit(dec, &y))
  15916. return 0;
  15917. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15918. return 0;
  15919. if ((val)->o[0] & 0x80) {
  15920. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15921. return 0;
  15922. }
  15923. if ((val)->o[0] & 0x40) {
  15924. if (!ASN1Dec_AliasAddress(dec, &(val)->conferenceAlias))
  15925. return 0;
  15926. }
  15927. if ((val)->o[0] & 0x20) {
  15928. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  15929. return 0;
  15930. }
  15931. if (y) {
  15932. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15933. return 0;
  15934. }
  15935. return 1;
  15936. }
  15937. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val)
  15938. {
  15939. if (val) {
  15940. if ((val)->o[0] & 0x80) {
  15941. }
  15942. if ((val)->o[0] & 0x40) {
  15943. ASN1Free_AliasAddress(&(val)->conferenceAlias);
  15944. }
  15945. if ((val)->o[0] & 0x20) {
  15946. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  15947. }
  15948. }
  15949. }
  15950. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val)
  15951. {
  15952. if (!ASN1PEREncExtensionBitClear(enc))
  15953. return 0;
  15954. if (!ASN1PEREncBits(enc, 5, (val)->o))
  15955. return 0;
  15956. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15957. return 0;
  15958. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15959. return 0;
  15960. if ((val)->o[0] & 0x80) {
  15961. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15962. return 0;
  15963. }
  15964. if (!ASN1Enc_CallIdentifier(enc, &(val)->callIdentifier))
  15965. return 0;
  15966. if ((val)->o[0] & 0x40) {
  15967. if (!ASN1Enc_H245Security(enc, &(val)->h245SecurityMode))
  15968. return 0;
  15969. }
  15970. if ((val)->o[0] & 0x20) {
  15971. if (!ASN1Enc_Progress_UUIE_tokens(enc, &(val)->tokens))
  15972. return 0;
  15973. }
  15974. if ((val)->o[0] & 0x10) {
  15975. if (!ASN1Enc_Progress_UUIE_cryptoTokens(enc, &(val)->cryptoTokens))
  15976. return 0;
  15977. }
  15978. if ((val)->o[0] & 0x8) {
  15979. if (!ASN1Enc_Progress_UUIE_fastStart(enc, &(val)->fastStart))
  15980. return 0;
  15981. }
  15982. return 1;
  15983. }
  15984. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val)
  15985. {
  15986. ASN1uint32_t y;
  15987. if (!ASN1PERDecExtensionBit(dec, &y))
  15988. return 0;
  15989. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  15990. return 0;
  15991. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15992. return 0;
  15993. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15994. return 0;
  15995. if ((val)->o[0] & 0x80) {
  15996. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15997. return 0;
  15998. }
  15999. if (!ASN1Dec_CallIdentifier(dec, &(val)->callIdentifier))
  16000. return 0;
  16001. if ((val)->o[0] & 0x40) {
  16002. if (!ASN1Dec_H245Security(dec, &(val)->h245SecurityMode))
  16003. return 0;
  16004. }
  16005. if ((val)->o[0] & 0x20) {
  16006. if (!ASN1Dec_Progress_UUIE_tokens(dec, &(val)->tokens))
  16007. return 0;
  16008. }
  16009. if ((val)->o[0] & 0x10) {
  16010. if (!ASN1Dec_Progress_UUIE_cryptoTokens(dec, &(val)->cryptoTokens))
  16011. return 0;
  16012. }
  16013. if ((val)->o[0] & 0x8) {
  16014. if (!ASN1Dec_Progress_UUIE_fastStart(dec, &(val)->fastStart))
  16015. return 0;
  16016. }
  16017. if (y) {
  16018. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  16019. return 0;
  16020. }
  16021. return 1;
  16022. }
  16023. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val)
  16024. {
  16025. if (val) {
  16026. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  16027. ASN1Free_EndpointType(&(val)->destinationInfo);
  16028. if ((val)->o[0] & 0x80) {
  16029. ASN1Free_TransportAddress(&(val)->h245Address);
  16030. }
  16031. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  16032. if ((val)->o[0] & 0x40) {
  16033. ASN1Free_H245Security(&(val)->h245SecurityMode);
  16034. }
  16035. if ((val)->o[0] & 0x20) {
  16036. ASN1Free_Progress_UUIE_tokens(&(val)->tokens);
  16037. }
  16038. if ((val)->o[0] & 0x10) {
  16039. ASN1Free_Progress_UUIE_cryptoTokens(&(val)->cryptoTokens);
  16040. }
  16041. if ((val)->o[0] & 0x8) {
  16042. ASN1Free_Progress_UUIE_fastStart(&(val)->fastStart);
  16043. }
  16044. }
  16045. }
  16046. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val)
  16047. {
  16048. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  16049. return 0;
  16050. switch ((val)->choice) {
  16051. case 1:
  16052. if (!ASN1Enc_CryptoH323Token_cryptoEPPwdHash(enc, &(val)->u.cryptoEPPwdHash))
  16053. return 0;
  16054. break;
  16055. case 2:
  16056. if (!ASN1Enc_CryptoH323Token_cryptoGKPwdHash(enc, &(val)->u.cryptoGKPwdHash))
  16057. return 0;
  16058. break;
  16059. case 3:
  16060. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoEPPwdEncr))
  16061. return 0;
  16062. break;
  16063. case 4:
  16064. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoGKPwdEncr))
  16065. return 0;
  16066. break;
  16067. case 5:
  16068. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoEPCert))
  16069. return 0;
  16070. break;
  16071. case 6:
  16072. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoGKCert))
  16073. return 0;
  16074. break;
  16075. case 7:
  16076. if (!ASN1Enc_SIGNED_EncodedFastStartToken(enc, &(val)->u.cryptoFastStart))
  16077. return 0;
  16078. break;
  16079. case 8:
  16080. if (!ASN1Enc_CryptoToken(enc, &(val)->u.nestedcryptoToken))
  16081. return 0;
  16082. break;
  16083. default:
  16084. /* impossible */
  16085. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16086. return 0;
  16087. }
  16088. return 1;
  16089. }
  16090. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val)
  16091. {
  16092. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  16093. return 0;
  16094. switch ((val)->choice) {
  16095. case 1:
  16096. if (!ASN1Dec_CryptoH323Token_cryptoEPPwdHash(dec, &(val)->u.cryptoEPPwdHash))
  16097. return 0;
  16098. break;
  16099. case 2:
  16100. if (!ASN1Dec_CryptoH323Token_cryptoGKPwdHash(dec, &(val)->u.cryptoGKPwdHash))
  16101. return 0;
  16102. break;
  16103. case 3:
  16104. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoEPPwdEncr))
  16105. return 0;
  16106. break;
  16107. case 4:
  16108. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoGKPwdEncr))
  16109. return 0;
  16110. break;
  16111. case 5:
  16112. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoEPCert))
  16113. return 0;
  16114. break;
  16115. case 6:
  16116. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoGKCert))
  16117. return 0;
  16118. break;
  16119. case 7:
  16120. if (!ASN1Dec_SIGNED_EncodedFastStartToken(dec, &(val)->u.cryptoFastStart))
  16121. return 0;
  16122. break;
  16123. case 8:
  16124. if (!ASN1Dec_CryptoToken(dec, &(val)->u.nestedcryptoToken))
  16125. return 0;
  16126. break;
  16127. case 0:
  16128. /* extension case */
  16129. if (!ASN1PERDecSkipFragmented(dec, 8))
  16130. return 0;
  16131. break;
  16132. default:
  16133. /* impossible */
  16134. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16135. return 0;
  16136. }
  16137. return 1;
  16138. }
  16139. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val)
  16140. {
  16141. if (val) {
  16142. switch ((val)->choice) {
  16143. case 1:
  16144. ASN1Free_CryptoH323Token_cryptoEPPwdHash(&(val)->u.cryptoEPPwdHash);
  16145. break;
  16146. case 2:
  16147. ASN1Free_CryptoH323Token_cryptoGKPwdHash(&(val)->u.cryptoGKPwdHash);
  16148. break;
  16149. case 3:
  16150. ASN1Free_ENCRYPTED(&(val)->u.cryptoEPPwdEncr);
  16151. break;
  16152. case 4:
  16153. ASN1Free_ENCRYPTED(&(val)->u.cryptoGKPwdEncr);
  16154. break;
  16155. case 5:
  16156. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoEPCert);
  16157. break;
  16158. case 6:
  16159. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoGKCert);
  16160. break;
  16161. case 7:
  16162. ASN1Free_SIGNED_EncodedFastStartToken(&(val)->u.cryptoFastStart);
  16163. break;
  16164. case 8:
  16165. ASN1Free_CryptoToken(&(val)->u.nestedcryptoToken);
  16166. break;
  16167. }
  16168. }
  16169. }
  16170. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val)
  16171. {
  16172. ASN1encoding_t ee;
  16173. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 5, 25))
  16174. return 0;
  16175. switch ((val)->choice) {
  16176. case 1:
  16177. if (!ASN1Enc_GatekeeperRequest(enc, &(val)->u.gatekeeperRequest))
  16178. return 0;
  16179. break;
  16180. case 2:
  16181. if (!ASN1Enc_GatekeeperConfirm(enc, &(val)->u.gatekeeperConfirm))
  16182. return 0;
  16183. break;
  16184. case 3:
  16185. if (!ASN1Enc_GatekeeperReject(enc, &(val)->u.gatekeeperReject))
  16186. return 0;
  16187. break;
  16188. case 4:
  16189. if (!ASN1Enc_RegistrationRequest(enc, &(val)->u.registrationRequest))
  16190. return 0;
  16191. break;
  16192. case 5:
  16193. if (!ASN1Enc_RegistrationConfirm(enc, &(val)->u.registrationConfirm))
  16194. return 0;
  16195. break;
  16196. case 6:
  16197. if (!ASN1Enc_RegistrationReject(enc, &(val)->u.registrationReject))
  16198. return 0;
  16199. break;
  16200. case 7:
  16201. if (!ASN1Enc_UnregistrationRequest(enc, &(val)->u.unregistrationRequest))
  16202. return 0;
  16203. break;
  16204. case 8:
  16205. if (!ASN1Enc_UnregistrationConfirm(enc, &(val)->u.unregistrationConfirm))
  16206. return 0;
  16207. break;
  16208. case 9:
  16209. if (!ASN1Enc_UnregistrationReject(enc, &(val)->u.unregistrationReject))
  16210. return 0;
  16211. break;
  16212. case 10:
  16213. if (!ASN1Enc_AdmissionRequest(enc, &(val)->u.admissionRequest))
  16214. return 0;
  16215. break;
  16216. case 11:
  16217. if (!ASN1Enc_AdmissionConfirm(enc, &(val)->u.admissionConfirm))
  16218. return 0;
  16219. break;
  16220. case 12:
  16221. if (!ASN1Enc_AdmissionReject(enc, &(val)->u.admissionReject))
  16222. return 0;
  16223. break;
  16224. case 13:
  16225. if (!ASN1Enc_BandwidthRequest(enc, &(val)->u.bandwidthRequest))
  16226. return 0;
  16227. break;
  16228. case 14:
  16229. if (!ASN1Enc_BandwidthConfirm(enc, &(val)->u.bandwidthConfirm))
  16230. return 0;
  16231. break;
  16232. case 15:
  16233. if (!ASN1Enc_BandwidthReject(enc, &(val)->u.bandwidthReject))
  16234. return 0;
  16235. break;
  16236. case 16:
  16237. if (!ASN1Enc_DisengageRequest(enc, &(val)->u.disengageRequest))
  16238. return 0;
  16239. break;
  16240. case 17:
  16241. if (!ASN1Enc_DisengageConfirm(enc, &(val)->u.disengageConfirm))
  16242. return 0;
  16243. break;
  16244. case 18:
  16245. if (!ASN1Enc_DisengageReject(enc, &(val)->u.disengageReject))
  16246. return 0;
  16247. break;
  16248. case 19:
  16249. if (!ASN1Enc_LocationRequest(enc, &(val)->u.locationRequest))
  16250. return 0;
  16251. break;
  16252. case 20:
  16253. if (!ASN1Enc_LocationConfirm(enc, &(val)->u.locationConfirm))
  16254. return 0;
  16255. break;
  16256. case 21:
  16257. if (!ASN1Enc_LocationReject(enc, &(val)->u.locationReject))
  16258. return 0;
  16259. break;
  16260. case 22:
  16261. if (!ASN1Enc_InfoRequest(enc, &(val)->u.infoRequest))
  16262. return 0;
  16263. break;
  16264. case 23:
  16265. if (!ASN1Enc_InfoRequestResponse(enc, &(val)->u.infoRequestResponse))
  16266. return 0;
  16267. break;
  16268. case 24:
  16269. if (!ASN1Enc_H225NonStandardMessage(enc, &(val)->u.nonStandardMessage))
  16270. return 0;
  16271. break;
  16272. case 25:
  16273. if (!ASN1Enc_UnknownMessageResponse(enc, &(val)->u.unknownMessageResponse))
  16274. return 0;
  16275. break;
  16276. case 26:
  16277. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16278. return 0;
  16279. if (!ASN1Enc_RequestInProgress(ee, &(val)->u.requestInProgress))
  16280. return 0;
  16281. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16282. return 0;
  16283. ASN1_CloseEncoder2(ee);
  16284. break;
  16285. case 27:
  16286. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16287. return 0;
  16288. if (!ASN1Enc_ResourcesAvailableIndicate(ee, &(val)->u.resourcesAvailableIndicate))
  16289. return 0;
  16290. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16291. return 0;
  16292. ASN1_CloseEncoder2(ee);
  16293. break;
  16294. case 28:
  16295. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16296. return 0;
  16297. if (!ASN1Enc_ResourcesAvailableConfirm(ee, &(val)->u.resourcesAvailableConfirm))
  16298. return 0;
  16299. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16300. return 0;
  16301. ASN1_CloseEncoder2(ee);
  16302. break;
  16303. case 29:
  16304. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16305. return 0;
  16306. if (!ASN1Enc_InfoRequestAck(ee, &(val)->u.infoRequestAck))
  16307. return 0;
  16308. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16309. return 0;
  16310. ASN1_CloseEncoder2(ee);
  16311. break;
  16312. case 30:
  16313. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16314. return 0;
  16315. if (!ASN1Enc_InfoRequestNak(ee, &(val)->u.infoRequestNak))
  16316. return 0;
  16317. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16318. return 0;
  16319. ASN1_CloseEncoder2(ee);
  16320. break;
  16321. default:
  16322. /* impossible */
  16323. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16324. return 0;
  16325. }
  16326. return 1;
  16327. }
  16328. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val)
  16329. {
  16330. ASN1decoding_t dd;
  16331. ASN1octet_t *db;
  16332. ASN1uint32_t ds;
  16333. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 5, 25))
  16334. return 0;
  16335. switch ((val)->choice) {
  16336. case 1:
  16337. if (!ASN1Dec_GatekeeperRequest(dec, &(val)->u.gatekeeperRequest))
  16338. return 0;
  16339. break;
  16340. case 2:
  16341. if (!ASN1Dec_GatekeeperConfirm(dec, &(val)->u.gatekeeperConfirm))
  16342. return 0;
  16343. break;
  16344. case 3:
  16345. if (!ASN1Dec_GatekeeperReject(dec, &(val)->u.gatekeeperReject))
  16346. return 0;
  16347. break;
  16348. case 4:
  16349. if (!ASN1Dec_RegistrationRequest(dec, &(val)->u.registrationRequest))
  16350. return 0;
  16351. break;
  16352. case 5:
  16353. if (!ASN1Dec_RegistrationConfirm(dec, &(val)->u.registrationConfirm))
  16354. return 0;
  16355. break;
  16356. case 6:
  16357. if (!ASN1Dec_RegistrationReject(dec, &(val)->u.registrationReject))
  16358. return 0;
  16359. break;
  16360. case 7:
  16361. if (!ASN1Dec_UnregistrationRequest(dec, &(val)->u.unregistrationRequest))
  16362. return 0;
  16363. break;
  16364. case 8:
  16365. if (!ASN1Dec_UnregistrationConfirm(dec, &(val)->u.unregistrationConfirm))
  16366. return 0;
  16367. break;
  16368. case 9:
  16369. if (!ASN1Dec_UnregistrationReject(dec, &(val)->u.unregistrationReject))
  16370. return 0;
  16371. break;
  16372. case 10:
  16373. if (!ASN1Dec_AdmissionRequest(dec, &(val)->u.admissionRequest))
  16374. return 0;
  16375. break;
  16376. case 11:
  16377. if (!ASN1Dec_AdmissionConfirm(dec, &(val)->u.admissionConfirm))
  16378. return 0;
  16379. break;
  16380. case 12:
  16381. if (!ASN1Dec_AdmissionReject(dec, &(val)->u.admissionReject))
  16382. return 0;
  16383. break;
  16384. case 13:
  16385. if (!ASN1Dec_BandwidthRequest(dec, &(val)->u.bandwidthRequest))
  16386. return 0;
  16387. break;
  16388. case 14:
  16389. if (!ASN1Dec_BandwidthConfirm(dec, &(val)->u.bandwidthConfirm))
  16390. return 0;
  16391. break;
  16392. case 15:
  16393. if (!ASN1Dec_BandwidthReject(dec, &(val)->u.bandwidthReject))
  16394. return 0;
  16395. break;
  16396. case 16:
  16397. if (!ASN1Dec_DisengageRequest(dec, &(val)->u.disengageRequest))
  16398. return 0;
  16399. break;
  16400. case 17:
  16401. if (!ASN1Dec_DisengageConfirm(dec, &(val)->u.disengageConfirm))
  16402. return 0;
  16403. break;
  16404. case 18:
  16405. if (!ASN1Dec_DisengageReject(dec, &(val)->u.disengageReject))
  16406. return 0;
  16407. break;
  16408. case 19:
  16409. if (!ASN1Dec_LocationRequest(dec, &(val)->u.locationRequest))
  16410. return 0;
  16411. break;
  16412. case 20:
  16413. if (!ASN1Dec_LocationConfirm(dec, &(val)->u.locationConfirm))
  16414. return 0;
  16415. break;
  16416. case 21:
  16417. if (!ASN1Dec_LocationReject(dec, &(val)->u.locationReject))
  16418. return 0;
  16419. break;
  16420. case 22:
  16421. if (!ASN1Dec_InfoRequest(dec, &(val)->u.infoRequest))
  16422. return 0;
  16423. break;
  16424. case 23:
  16425. if (!ASN1Dec_InfoRequestResponse(dec, &(val)->u.infoRequestResponse))
  16426. return 0;
  16427. break;
  16428. case 24:
  16429. if (!ASN1Dec_H225NonStandardMessage(dec, &(val)->u.nonStandardMessage))
  16430. return 0;
  16431. break;
  16432. case 25:
  16433. if (!ASN1Dec_UnknownMessageResponse(dec, &(val)->u.unknownMessageResponse))
  16434. return 0;
  16435. break;
  16436. case 26:
  16437. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16438. return 0;
  16439. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16440. return 0;
  16441. if (!ASN1Dec_RequestInProgress(dd, &(val)->u.requestInProgress))
  16442. return 0;
  16443. ASN1_CloseDecoder(dd);
  16444. ASN1Free(db);
  16445. break;
  16446. case 27:
  16447. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16448. return 0;
  16449. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16450. return 0;
  16451. if (!ASN1Dec_ResourcesAvailableIndicate(dd, &(val)->u.resourcesAvailableIndicate))
  16452. return 0;
  16453. ASN1_CloseDecoder(dd);
  16454. ASN1Free(db);
  16455. break;
  16456. case 28:
  16457. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16458. return 0;
  16459. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16460. return 0;
  16461. if (!ASN1Dec_ResourcesAvailableConfirm(dd, &(val)->u.resourcesAvailableConfirm))
  16462. return 0;
  16463. ASN1_CloseDecoder(dd);
  16464. ASN1Free(db);
  16465. break;
  16466. case 29:
  16467. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16468. return 0;
  16469. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16470. return 0;
  16471. if (!ASN1Dec_InfoRequestAck(dd, &(val)->u.infoRequestAck))
  16472. return 0;
  16473. ASN1_CloseDecoder(dd);
  16474. ASN1Free(db);
  16475. break;
  16476. case 30:
  16477. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16478. return 0;
  16479. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16480. return 0;
  16481. if (!ASN1Dec_InfoRequestNak(dd, &(val)->u.infoRequestNak))
  16482. return 0;
  16483. ASN1_CloseDecoder(dd);
  16484. ASN1Free(db);
  16485. break;
  16486. case 0:
  16487. /* extension case */
  16488. if (!ASN1PERDecSkipFragmented(dec, 8))
  16489. return 0;
  16490. break;
  16491. default:
  16492. /* impossible */
  16493. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16494. return 0;
  16495. }
  16496. return 1;
  16497. }
  16498. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val)
  16499. {
  16500. if (val) {
  16501. switch ((val)->choice) {
  16502. case 1:
  16503. ASN1Free_GatekeeperRequest(&(val)->u.gatekeeperRequest);
  16504. break;
  16505. case 2:
  16506. ASN1Free_GatekeeperConfirm(&(val)->u.gatekeeperConfirm);
  16507. break;
  16508. case 3:
  16509. ASN1Free_GatekeeperReject(&(val)->u.gatekeeperReject);
  16510. break;
  16511. case 4:
  16512. ASN1Free_RegistrationRequest(&(val)->u.registrationRequest);
  16513. break;
  16514. case 5:
  16515. ASN1Free_RegistrationConfirm(&(val)->u.registrationConfirm);
  16516. break;
  16517. case 6:
  16518. ASN1Free_RegistrationReject(&(val)->u.registrationReject);
  16519. break;
  16520. case 7:
  16521. ASN1Free_UnregistrationRequest(&(val)->u.unregistrationRequest);
  16522. break;
  16523. case 8:
  16524. ASN1Free_UnregistrationConfirm(&(val)->u.unregistrationConfirm);
  16525. break;
  16526. case 9:
  16527. ASN1Free_UnregistrationReject(&(val)->u.unregistrationReject);
  16528. break;
  16529. case 10:
  16530. ASN1Free_AdmissionRequest(&(val)->u.admissionRequest);
  16531. break;
  16532. case 11:
  16533. ASN1Free_AdmissionConfirm(&(val)->u.admissionConfirm);
  16534. break;
  16535. case 12:
  16536. ASN1Free_AdmissionReject(&(val)->u.admissionReject);
  16537. break;
  16538. case 13:
  16539. ASN1Free_BandwidthRequest(&(val)->u.bandwidthRequest);
  16540. break;
  16541. case 14:
  16542. ASN1Free_BandwidthConfirm(&(val)->u.bandwidthConfirm);
  16543. break;
  16544. case 15:
  16545. ASN1Free_BandwidthReject(&(val)->u.bandwidthReject);
  16546. break;
  16547. case 16:
  16548. ASN1Free_DisengageRequest(&(val)->u.disengageRequest);
  16549. break;
  16550. case 17:
  16551. ASN1Free_DisengageConfirm(&(val)->u.disengageConfirm);
  16552. break;
  16553. case 18:
  16554. ASN1Free_DisengageReject(&(val)->u.disengageReject);
  16555. break;
  16556. case 19:
  16557. ASN1Free_LocationRequest(&(val)->u.locationRequest);
  16558. break;
  16559. case 20:
  16560. ASN1Free_LocationConfirm(&(val)->u.locationConfirm);
  16561. break;
  16562. case 21:
  16563. ASN1Free_LocationReject(&(val)->u.locationReject);
  16564. break;
  16565. case 22:
  16566. ASN1Free_InfoRequest(&(val)->u.infoRequest);
  16567. break;
  16568. case 23:
  16569. ASN1Free_InfoRequestResponse(&(val)->u.infoRequestResponse);
  16570. break;
  16571. case 24:
  16572. ASN1Free_H225NonStandardMessage(&(val)->u.nonStandardMessage);
  16573. break;
  16574. case 25:
  16575. ASN1Free_UnknownMessageResponse(&(val)->u.unknownMessageResponse);
  16576. break;
  16577. case 26:
  16578. ASN1Free_RequestInProgress(&(val)->u.requestInProgress);
  16579. break;
  16580. case 27:
  16581. ASN1Free_ResourcesAvailableIndicate(&(val)->u.resourcesAvailableIndicate);
  16582. break;
  16583. case 28:
  16584. ASN1Free_ResourcesAvailableConfirm(&(val)->u.resourcesAvailableConfirm);
  16585. break;
  16586. case 29:
  16587. ASN1Free_InfoRequestAck(&(val)->u.infoRequestAck);
  16588. break;
  16589. case 30:
  16590. ASN1Free_InfoRequestNak(&(val)->u.infoRequestNak);
  16591. break;
  16592. }
  16593. }
  16594. }
  16595. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16596. {
  16597. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16598. }
  16599. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16600. {
  16601. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16602. return 0;
  16603. return 1;
  16604. }
  16605. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16606. {
  16607. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn, sizeof(**val));
  16608. }
  16609. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16610. {
  16611. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16612. return 0;
  16613. return 1;
  16614. }
  16615. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16616. {
  16617. if (val) {
  16618. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16619. }
  16620. }
  16621. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16622. {
  16623. if (val) {
  16624. ASN1Free_CryptoH323Token(&val->value);
  16625. }
  16626. }
  16627. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val)
  16628. {
  16629. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16630. }
  16631. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens val)
  16632. {
  16633. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16634. return 0;
  16635. return 1;
  16636. }
  16637. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val)
  16638. {
  16639. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16640. }
  16641. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens val)
  16642. {
  16643. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16644. return 0;
  16645. return 1;
  16646. }
  16647. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val)
  16648. {
  16649. if (val) {
  16650. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16651. }
  16652. }
  16653. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn(PResourcesAvailableConfirm_cryptoTokens val)
  16654. {
  16655. if (val) {
  16656. ASN1Free_CryptoH323Token(&val->value);
  16657. }
  16658. }
  16659. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val)
  16660. {
  16661. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16662. }
  16663. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens val)
  16664. {
  16665. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16666. return 0;
  16667. return 1;
  16668. }
  16669. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val)
  16670. {
  16671. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn, sizeof(**val));
  16672. }
  16673. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens val)
  16674. {
  16675. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16676. return 0;
  16677. return 1;
  16678. }
  16679. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val)
  16680. {
  16681. if (val) {
  16682. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16683. }
  16684. }
  16685. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn(PResourcesAvailableIndicate_cryptoTokens val)
  16686. {
  16687. if (val) {
  16688. ASN1Free_CryptoH323Token(&val->value);
  16689. }
  16690. }
  16691. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val)
  16692. {
  16693. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_cryptoTokens_ElmFn);
  16694. }
  16695. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_cryptoTokens val)
  16696. {
  16697. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16698. return 0;
  16699. return 1;
  16700. }
  16701. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val)
  16702. {
  16703. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_cryptoTokens_ElmFn, sizeof(**val));
  16704. }
  16705. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_cryptoTokens val)
  16706. {
  16707. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16708. return 0;
  16709. return 1;
  16710. }
  16711. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val)
  16712. {
  16713. if (val) {
  16714. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_cryptoTokens_ElmFn);
  16715. }
  16716. }
  16717. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens_ElmFn(PRequestInProgress_cryptoTokens val)
  16718. {
  16719. if (val) {
  16720. ASN1Free_CryptoH323Token(&val->value);
  16721. }
  16722. }
  16723. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val)
  16724. {
  16725. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn);
  16726. }
  16727. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens val)
  16728. {
  16729. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16730. return 0;
  16731. return 1;
  16732. }
  16733. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val)
  16734. {
  16735. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn, sizeof(**val));
  16736. }
  16737. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens val)
  16738. {
  16739. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16740. return 0;
  16741. return 1;
  16742. }
  16743. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val)
  16744. {
  16745. if (val) {
  16746. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn);
  16747. }
  16748. }
  16749. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn(PUnknownMessageResponse_cryptoTokens val)
  16750. {
  16751. if (val) {
  16752. ASN1Free_CryptoH323Token(&val->value);
  16753. }
  16754. }
  16755. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val)
  16756. {
  16757. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn);
  16758. }
  16759. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens val)
  16760. {
  16761. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16762. return 0;
  16763. return 1;
  16764. }
  16765. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val)
  16766. {
  16767. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn, sizeof(**val));
  16768. }
  16769. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens val)
  16770. {
  16771. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16772. return 0;
  16773. return 1;
  16774. }
  16775. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val)
  16776. {
  16777. if (val) {
  16778. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn);
  16779. }
  16780. }
  16781. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn(PH225NonStandardMessage_cryptoTokens val)
  16782. {
  16783. if (val) {
  16784. ASN1Free_CryptoH323Token(&val->value);
  16785. }
  16786. }
  16787. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val)
  16788. {
  16789. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn);
  16790. }
  16791. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens val)
  16792. {
  16793. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16794. return 0;
  16795. return 1;
  16796. }
  16797. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val)
  16798. {
  16799. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn, sizeof(**val));
  16800. }
  16801. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens val)
  16802. {
  16803. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16804. return 0;
  16805. return 1;
  16806. }
  16807. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val)
  16808. {
  16809. if (val) {
  16810. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_cryptoTokens_ElmFn);
  16811. }
  16812. }
  16813. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens_ElmFn(PInfoRequestNak_cryptoTokens val)
  16814. {
  16815. if (val) {
  16816. ASN1Free_CryptoH323Token(&val->value);
  16817. }
  16818. }
  16819. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val)
  16820. {
  16821. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn);
  16822. }
  16823. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens val)
  16824. {
  16825. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16826. return 0;
  16827. return 1;
  16828. }
  16829. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val)
  16830. {
  16831. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn, sizeof(**val));
  16832. }
  16833. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens val)
  16834. {
  16835. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16836. return 0;
  16837. return 1;
  16838. }
  16839. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val)
  16840. {
  16841. if (val) {
  16842. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_cryptoTokens_ElmFn);
  16843. }
  16844. }
  16845. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens_ElmFn(PInfoRequestAck_cryptoTokens val)
  16846. {
  16847. if (val) {
  16848. ASN1Free_CryptoH323Token(&val->value);
  16849. }
  16850. }
  16851. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val)
  16852. {
  16853. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn);
  16854. }
  16855. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens val)
  16856. {
  16857. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16858. return 0;
  16859. return 1;
  16860. }
  16861. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val)
  16862. {
  16863. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn, sizeof(**val));
  16864. }
  16865. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens val)
  16866. {
  16867. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16868. return 0;
  16869. return 1;
  16870. }
  16871. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val)
  16872. {
  16873. if (val) {
  16874. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn);
  16875. }
  16876. }
  16877. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn(PInfoRequestResponse_cryptoTokens val)
  16878. {
  16879. if (val) {
  16880. ASN1Free_CryptoH323Token(&val->value);
  16881. }
  16882. }
  16883. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val)
  16884. {
  16885. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_cryptoTokens_ElmFn);
  16886. }
  16887. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequest_cryptoTokens val)
  16888. {
  16889. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16890. return 0;
  16891. return 1;
  16892. }
  16893. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val)
  16894. {
  16895. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_cryptoTokens_ElmFn, sizeof(**val));
  16896. }
  16897. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequest_cryptoTokens val)
  16898. {
  16899. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16900. return 0;
  16901. return 1;
  16902. }
  16903. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val)
  16904. {
  16905. if (val) {
  16906. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_cryptoTokens_ElmFn);
  16907. }
  16908. }
  16909. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens_ElmFn(PInfoRequest_cryptoTokens val)
  16910. {
  16911. if (val) {
  16912. ASN1Free_CryptoH323Token(&val->value);
  16913. }
  16914. }
  16915. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val)
  16916. {
  16917. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_cryptoTokens_ElmFn);
  16918. }
  16919. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageReject_cryptoTokens val)
  16920. {
  16921. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16922. return 0;
  16923. return 1;
  16924. }
  16925. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val)
  16926. {
  16927. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_cryptoTokens_ElmFn, sizeof(**val));
  16928. }
  16929. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageReject_cryptoTokens val)
  16930. {
  16931. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16932. return 0;
  16933. return 1;
  16934. }
  16935. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val)
  16936. {
  16937. if (val) {
  16938. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_cryptoTokens_ElmFn);
  16939. }
  16940. }
  16941. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens_ElmFn(PDisengageReject_cryptoTokens val)
  16942. {
  16943. if (val) {
  16944. ASN1Free_CryptoH323Token(&val->value);
  16945. }
  16946. }
  16947. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val)
  16948. {
  16949. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn);
  16950. }
  16951. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens val)
  16952. {
  16953. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16954. return 0;
  16955. return 1;
  16956. }
  16957. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val)
  16958. {
  16959. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16960. }
  16961. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens val)
  16962. {
  16963. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16964. return 0;
  16965. return 1;
  16966. }
  16967. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val)
  16968. {
  16969. if (val) {
  16970. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_cryptoTokens_ElmFn);
  16971. }
  16972. }
  16973. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens_ElmFn(PDisengageConfirm_cryptoTokens val)
  16974. {
  16975. if (val) {
  16976. ASN1Free_CryptoH323Token(&val->value);
  16977. }
  16978. }
  16979. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val)
  16980. {
  16981. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_cryptoTokens_ElmFn);
  16982. }
  16983. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_cryptoTokens val)
  16984. {
  16985. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16986. return 0;
  16987. return 1;
  16988. }
  16989. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val)
  16990. {
  16991. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_cryptoTokens_ElmFn, sizeof(**val));
  16992. }
  16993. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_cryptoTokens val)
  16994. {
  16995. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16996. return 0;
  16997. return 1;
  16998. }
  16999. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val)
  17000. {
  17001. if (val) {
  17002. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_cryptoTokens_ElmFn);
  17003. }
  17004. }
  17005. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens_ElmFn(PDisengageRequest_cryptoTokens val)
  17006. {
  17007. if (val) {
  17008. ASN1Free_CryptoH323Token(&val->value);
  17009. }
  17010. }
  17011. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val)
  17012. {
  17013. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_cryptoTokens_ElmFn);
  17014. }
  17015. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationReject_cryptoTokens val)
  17016. {
  17017. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17018. return 0;
  17019. return 1;
  17020. }
  17021. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val)
  17022. {
  17023. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_cryptoTokens_ElmFn, sizeof(**val));
  17024. }
  17025. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationReject_cryptoTokens val)
  17026. {
  17027. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17028. return 0;
  17029. return 1;
  17030. }
  17031. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val)
  17032. {
  17033. if (val) {
  17034. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_cryptoTokens_ElmFn);
  17035. }
  17036. }
  17037. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens_ElmFn(PLocationReject_cryptoTokens val)
  17038. {
  17039. if (val) {
  17040. ASN1Free_CryptoH323Token(&val->value);
  17041. }
  17042. }
  17043. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val)
  17044. {
  17045. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_cryptoTokens_ElmFn);
  17046. }
  17047. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_cryptoTokens val)
  17048. {
  17049. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17050. return 0;
  17051. return 1;
  17052. }
  17053. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val)
  17054. {
  17055. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17056. }
  17057. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_cryptoTokens val)
  17058. {
  17059. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17060. return 0;
  17061. return 1;
  17062. }
  17063. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val)
  17064. {
  17065. if (val) {
  17066. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_cryptoTokens_ElmFn);
  17067. }
  17068. }
  17069. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens_ElmFn(PLocationConfirm_cryptoTokens val)
  17070. {
  17071. if (val) {
  17072. ASN1Free_CryptoH323Token(&val->value);
  17073. }
  17074. }
  17075. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val)
  17076. {
  17077. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_cryptoTokens_ElmFn);
  17078. }
  17079. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationRequest_cryptoTokens val)
  17080. {
  17081. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17082. return 0;
  17083. return 1;
  17084. }
  17085. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val)
  17086. {
  17087. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17088. }
  17089. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationRequest_cryptoTokens val)
  17090. {
  17091. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17092. return 0;
  17093. return 1;
  17094. }
  17095. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val)
  17096. {
  17097. if (val) {
  17098. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_cryptoTokens_ElmFn);
  17099. }
  17100. }
  17101. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens_ElmFn(PLocationRequest_cryptoTokens val)
  17102. {
  17103. if (val) {
  17104. ASN1Free_CryptoH323Token(&val->value);
  17105. }
  17106. }
  17107. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val)
  17108. {
  17109. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_cryptoTokens_ElmFn);
  17110. }
  17111. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_cryptoTokens val)
  17112. {
  17113. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17114. return 0;
  17115. return 1;
  17116. }
  17117. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val)
  17118. {
  17119. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_cryptoTokens_ElmFn, sizeof(**val));
  17120. }
  17121. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_cryptoTokens val)
  17122. {
  17123. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17124. return 0;
  17125. return 1;
  17126. }
  17127. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val)
  17128. {
  17129. if (val) {
  17130. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_cryptoTokens_ElmFn);
  17131. }
  17132. }
  17133. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens_ElmFn(PBandwidthReject_cryptoTokens val)
  17134. {
  17135. if (val) {
  17136. ASN1Free_CryptoH323Token(&val->value);
  17137. }
  17138. }
  17139. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val)
  17140. {
  17141. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn);
  17142. }
  17143. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens val)
  17144. {
  17145. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17146. return 0;
  17147. return 1;
  17148. }
  17149. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val)
  17150. {
  17151. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17152. }
  17153. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens val)
  17154. {
  17155. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17156. return 0;
  17157. return 1;
  17158. }
  17159. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val)
  17160. {
  17161. if (val) {
  17162. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn);
  17163. }
  17164. }
  17165. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn(PBandwidthConfirm_cryptoTokens val)
  17166. {
  17167. if (val) {
  17168. ASN1Free_CryptoH323Token(&val->value);
  17169. }
  17170. }
  17171. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val)
  17172. {
  17173. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn);
  17174. }
  17175. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens val)
  17176. {
  17177. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17178. return 0;
  17179. return 1;
  17180. }
  17181. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val)
  17182. {
  17183. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn, sizeof(**val));
  17184. }
  17185. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens val)
  17186. {
  17187. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17188. return 0;
  17189. return 1;
  17190. }
  17191. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val)
  17192. {
  17193. if (val) {
  17194. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_cryptoTokens_ElmFn);
  17195. }
  17196. }
  17197. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens_ElmFn(PBandwidthRequest_cryptoTokens val)
  17198. {
  17199. if (val) {
  17200. ASN1Free_CryptoH323Token(&val->value);
  17201. }
  17202. }
  17203. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val)
  17204. {
  17205. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_cryptoTokens_ElmFn);
  17206. }
  17207. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_cryptoTokens val)
  17208. {
  17209. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17210. return 0;
  17211. return 1;
  17212. }
  17213. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val)
  17214. {
  17215. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_cryptoTokens_ElmFn, sizeof(**val));
  17216. }
  17217. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_cryptoTokens val)
  17218. {
  17219. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17220. return 0;
  17221. return 1;
  17222. }
  17223. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val)
  17224. {
  17225. if (val) {
  17226. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_cryptoTokens_ElmFn);
  17227. }
  17228. }
  17229. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens_ElmFn(PAdmissionReject_cryptoTokens val)
  17230. {
  17231. if (val) {
  17232. ASN1Free_CryptoH323Token(&val->value);
  17233. }
  17234. }
  17235. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val)
  17236. {
  17237. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn);
  17238. }
  17239. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens val)
  17240. {
  17241. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17242. return 0;
  17243. return 1;
  17244. }
  17245. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val)
  17246. {
  17247. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17248. }
  17249. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens val)
  17250. {
  17251. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17252. return 0;
  17253. return 1;
  17254. }
  17255. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val)
  17256. {
  17257. if (val) {
  17258. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn);
  17259. }
  17260. }
  17261. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn(PAdmissionConfirm_cryptoTokens val)
  17262. {
  17263. if (val) {
  17264. ASN1Free_CryptoH323Token(&val->value);
  17265. }
  17266. }
  17267. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val)
  17268. {
  17269. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn);
  17270. }
  17271. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens val)
  17272. {
  17273. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17274. return 0;
  17275. return 1;
  17276. }
  17277. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val)
  17278. {
  17279. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn, sizeof(**val));
  17280. }
  17281. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens val)
  17282. {
  17283. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17284. return 0;
  17285. return 1;
  17286. }
  17287. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val)
  17288. {
  17289. if (val) {
  17290. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_cryptoTokens_ElmFn);
  17291. }
  17292. }
  17293. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens_ElmFn(PAdmissionRequest_cryptoTokens val)
  17294. {
  17295. if (val) {
  17296. ASN1Free_CryptoH323Token(&val->value);
  17297. }
  17298. }
  17299. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val)
  17300. {
  17301. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn);
  17302. }
  17303. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens val)
  17304. {
  17305. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17306. return 0;
  17307. return 1;
  17308. }
  17309. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val)
  17310. {
  17311. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17312. }
  17313. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens val)
  17314. {
  17315. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17316. return 0;
  17317. return 1;
  17318. }
  17319. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val)
  17320. {
  17321. if (val) {
  17322. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_cryptoTokens_ElmFn);
  17323. }
  17324. }
  17325. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens_ElmFn(PUnregistrationReject_cryptoTokens val)
  17326. {
  17327. if (val) {
  17328. ASN1Free_CryptoH323Token(&val->value);
  17329. }
  17330. }
  17331. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val)
  17332. {
  17333. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn);
  17334. }
  17335. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens val)
  17336. {
  17337. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17338. return 0;
  17339. return 1;
  17340. }
  17341. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val)
  17342. {
  17343. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17344. }
  17345. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens val)
  17346. {
  17347. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17348. return 0;
  17349. return 1;
  17350. }
  17351. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val)
  17352. {
  17353. if (val) {
  17354. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn);
  17355. }
  17356. }
  17357. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn(PUnregistrationConfirm_cryptoTokens val)
  17358. {
  17359. if (val) {
  17360. ASN1Free_CryptoH323Token(&val->value);
  17361. }
  17362. }
  17363. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val)
  17364. {
  17365. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn);
  17366. }
  17367. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens val)
  17368. {
  17369. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17370. return 0;
  17371. return 1;
  17372. }
  17373. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val)
  17374. {
  17375. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17376. }
  17377. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens val)
  17378. {
  17379. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17380. return 0;
  17381. return 1;
  17382. }
  17383. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val)
  17384. {
  17385. if (val) {
  17386. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn);
  17387. }
  17388. }
  17389. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn(PUnregistrationRequest_cryptoTokens val)
  17390. {
  17391. if (val) {
  17392. ASN1Free_CryptoH323Token(&val->value);
  17393. }
  17394. }
  17395. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val)
  17396. {
  17397. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_cryptoTokens_ElmFn);
  17398. }
  17399. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_cryptoTokens val)
  17400. {
  17401. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17402. return 0;
  17403. return 1;
  17404. }
  17405. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val)
  17406. {
  17407. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17408. }
  17409. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_cryptoTokens val)
  17410. {
  17411. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17412. return 0;
  17413. return 1;
  17414. }
  17415. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val)
  17416. {
  17417. if (val) {
  17418. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_cryptoTokens_ElmFn);
  17419. }
  17420. }
  17421. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens_ElmFn(PRegistrationReject_cryptoTokens val)
  17422. {
  17423. if (val) {
  17424. ASN1Free_CryptoH323Token(&val->value);
  17425. }
  17426. }
  17427. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val)
  17428. {
  17429. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn);
  17430. }
  17431. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens val)
  17432. {
  17433. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17434. return 0;
  17435. return 1;
  17436. }
  17437. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val)
  17438. {
  17439. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17440. }
  17441. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens val)
  17442. {
  17443. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17444. return 0;
  17445. return 1;
  17446. }
  17447. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val)
  17448. {
  17449. if (val) {
  17450. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn);
  17451. }
  17452. }
  17453. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn(PRegistrationConfirm_cryptoTokens val)
  17454. {
  17455. if (val) {
  17456. ASN1Free_CryptoH323Token(&val->value);
  17457. }
  17458. }
  17459. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val)
  17460. {
  17461. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn);
  17462. }
  17463. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens val)
  17464. {
  17465. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17466. return 0;
  17467. return 1;
  17468. }
  17469. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val)
  17470. {
  17471. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17472. }
  17473. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens val)
  17474. {
  17475. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17476. return 0;
  17477. return 1;
  17478. }
  17479. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val)
  17480. {
  17481. if (val) {
  17482. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_cryptoTokens_ElmFn);
  17483. }
  17484. }
  17485. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens_ElmFn(PRegistrationRequest_cryptoTokens val)
  17486. {
  17487. if (val) {
  17488. ASN1Free_CryptoH323Token(&val->value);
  17489. }
  17490. }
  17491. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val)
  17492. {
  17493. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn);
  17494. }
  17495. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens val)
  17496. {
  17497. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17498. return 0;
  17499. return 1;
  17500. }
  17501. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val)
  17502. {
  17503. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn, sizeof(**val));
  17504. }
  17505. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens val)
  17506. {
  17507. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17508. return 0;
  17509. return 1;
  17510. }
  17511. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val)
  17512. {
  17513. if (val) {
  17514. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_cryptoTokens_ElmFn);
  17515. }
  17516. }
  17517. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens_ElmFn(PGatekeeperReject_cryptoTokens val)
  17518. {
  17519. if (val) {
  17520. ASN1Free_CryptoH323Token(&val->value);
  17521. }
  17522. }
  17523. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val)
  17524. {
  17525. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn);
  17526. }
  17527. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens val)
  17528. {
  17529. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17530. return 0;
  17531. return 1;
  17532. }
  17533. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val)
  17534. {
  17535. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17536. }
  17537. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens val)
  17538. {
  17539. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17540. return 0;
  17541. return 1;
  17542. }
  17543. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val)
  17544. {
  17545. if (val) {
  17546. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn);
  17547. }
  17548. }
  17549. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn(PGatekeeperConfirm_cryptoTokens val)
  17550. {
  17551. if (val) {
  17552. ASN1Free_CryptoH323Token(&val->value);
  17553. }
  17554. }
  17555. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val)
  17556. {
  17557. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn);
  17558. }
  17559. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens val)
  17560. {
  17561. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17562. return 0;
  17563. return 1;
  17564. }
  17565. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val)
  17566. {
  17567. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn, sizeof(**val));
  17568. }
  17569. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens val)
  17570. {
  17571. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17572. return 0;
  17573. return 1;
  17574. }
  17575. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val)
  17576. {
  17577. if (val) {
  17578. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn);
  17579. }
  17580. }
  17581. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn(PGatekeeperRequest_cryptoTokens val)
  17582. {
  17583. if (val) {
  17584. ASN1Free_CryptoH323Token(&val->value);
  17585. }
  17586. }
  17587. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val)
  17588. {
  17589. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_cryptoTokens_ElmFn);
  17590. }
  17591. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens_ElmFn(ASN1encoding_t enc, PEndpoint_cryptoTokens val)
  17592. {
  17593. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17594. return 0;
  17595. return 1;
  17596. }
  17597. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val)
  17598. {
  17599. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_cryptoTokens_ElmFn, sizeof(**val));
  17600. }
  17601. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens_ElmFn(ASN1decoding_t dec, PEndpoint_cryptoTokens val)
  17602. {
  17603. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17604. return 0;
  17605. return 1;
  17606. }
  17607. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val)
  17608. {
  17609. if (val) {
  17610. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_cryptoTokens_ElmFn);
  17611. }
  17612. }
  17613. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens_ElmFn(PEndpoint_cryptoTokens val)
  17614. {
  17615. if (val) {
  17616. ASN1Free_CryptoH323Token(&val->value);
  17617. }
  17618. }
  17619. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val)
  17620. {
  17621. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn);
  17622. }
  17623. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens val)
  17624. {
  17625. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17626. return 0;
  17627. return 1;
  17628. }
  17629. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val)
  17630. {
  17631. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17632. }
  17633. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens val)
  17634. {
  17635. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17636. return 0;
  17637. return 1;
  17638. }
  17639. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val)
  17640. {
  17641. if (val) {
  17642. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_cryptoTokens_ElmFn);
  17643. }
  17644. }
  17645. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens_ElmFn(PProgress_UUIE_cryptoTokens val)
  17646. {
  17647. if (val) {
  17648. ASN1Free_CryptoH323Token(&val->value);
  17649. }
  17650. }
  17651. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val)
  17652. {
  17653. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_conferences_ElmFn);
  17654. }
  17655. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences_ElmFn(ASN1encoding_t enc, PFacility_UUIE_conferences val)
  17656. {
  17657. if (!ASN1Enc_ConferenceList(enc, &val->value))
  17658. return 0;
  17659. return 1;
  17660. }
  17661. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val)
  17662. {
  17663. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_conferences_ElmFn, sizeof(**val));
  17664. }
  17665. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences_ElmFn(ASN1decoding_t dec, PFacility_UUIE_conferences val)
  17666. {
  17667. if (!ASN1Dec_ConferenceList(dec, &val->value))
  17668. return 0;
  17669. return 1;
  17670. }
  17671. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val)
  17672. {
  17673. if (val) {
  17674. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_conferences_ElmFn);
  17675. }
  17676. }
  17677. static void ASN1CALL ASN1Free_Facility_UUIE_conferences_ElmFn(PFacility_UUIE_conferences val)
  17678. {
  17679. if (val) {
  17680. ASN1Free_ConferenceList(&val->value);
  17681. }
  17682. }
  17683. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val)
  17684. {
  17685. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn);
  17686. }
  17687. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens val)
  17688. {
  17689. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17690. return 0;
  17691. return 1;
  17692. }
  17693. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val)
  17694. {
  17695. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17696. }
  17697. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens val)
  17698. {
  17699. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17700. return 0;
  17701. return 1;
  17702. }
  17703. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val)
  17704. {
  17705. if (val) {
  17706. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_cryptoTokens_ElmFn);
  17707. }
  17708. }
  17709. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens_ElmFn(PFacility_UUIE_cryptoTokens val)
  17710. {
  17711. if (val) {
  17712. ASN1Free_CryptoH323Token(&val->value);
  17713. }
  17714. }
  17715. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val)
  17716. {
  17717. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn);
  17718. }
  17719. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens val)
  17720. {
  17721. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17722. return 0;
  17723. return 1;
  17724. }
  17725. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val)
  17726. {
  17727. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17728. }
  17729. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens val)
  17730. {
  17731. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17732. return 0;
  17733. return 1;
  17734. }
  17735. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val)
  17736. {
  17737. if (val) {
  17738. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_cryptoTokens_ElmFn);
  17739. }
  17740. }
  17741. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens_ElmFn(PSetup_UUIE_cryptoTokens val)
  17742. {
  17743. if (val) {
  17744. ASN1Free_CryptoH323Token(&val->value);
  17745. }
  17746. }
  17747. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val)
  17748. {
  17749. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn);
  17750. }
  17751. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens val)
  17752. {
  17753. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17754. return 0;
  17755. return 1;
  17756. }
  17757. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val)
  17758. {
  17759. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17760. }
  17761. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens val)
  17762. {
  17763. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17764. return 0;
  17765. return 1;
  17766. }
  17767. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val)
  17768. {
  17769. if (val) {
  17770. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_cryptoTokens_ElmFn);
  17771. }
  17772. }
  17773. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens_ElmFn(PConnect_UUIE_cryptoTokens val)
  17774. {
  17775. if (val) {
  17776. ASN1Free_CryptoH323Token(&val->value);
  17777. }
  17778. }
  17779. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val)
  17780. {
  17781. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17782. }
  17783. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens val)
  17784. {
  17785. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17786. return 0;
  17787. return 1;
  17788. }
  17789. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val)
  17790. {
  17791. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17792. }
  17793. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens val)
  17794. {
  17795. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17796. return 0;
  17797. return 1;
  17798. }
  17799. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val)
  17800. {
  17801. if (val) {
  17802. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17803. }
  17804. }
  17805. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn(PCallProceeding_UUIE_cryptoTokens val)
  17806. {
  17807. if (val) {
  17808. ASN1Free_CryptoH323Token(&val->value);
  17809. }
  17810. }
  17811. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val)
  17812. {
  17813. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn);
  17814. }
  17815. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens val)
  17816. {
  17817. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17818. return 0;
  17819. return 1;
  17820. }
  17821. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val)
  17822. {
  17823. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17824. }
  17825. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens val)
  17826. {
  17827. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17828. return 0;
  17829. return 1;
  17830. }
  17831. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val)
  17832. {
  17833. if (val) {
  17834. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn);
  17835. }
  17836. }
  17837. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn(PAlerting_UUIE_cryptoTokens val)
  17838. {
  17839. if (val) {
  17840. ASN1Free_CryptoH323Token(&val->value);
  17841. }
  17842. }
  17843. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val)
  17844. {
  17845. ASN1encoding_t ee;
  17846. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 7))
  17847. return 0;
  17848. switch ((val)->choice) {
  17849. case 1:
  17850. if (!ASN1Enc_Setup_UUIE(enc, &(val)->u.setup))
  17851. return 0;
  17852. break;
  17853. case 2:
  17854. if (!ASN1Enc_CallProceeding_UUIE(enc, &(val)->u.callProceeding))
  17855. return 0;
  17856. break;
  17857. case 3:
  17858. if (!ASN1Enc_Connect_UUIE(enc, &(val)->u.connect))
  17859. return 0;
  17860. break;
  17861. case 4:
  17862. if (!ASN1Enc_Alerting_UUIE(enc, &(val)->u.alerting))
  17863. return 0;
  17864. break;
  17865. case 5:
  17866. if (!ASN1Enc_Information_UUIE(enc, &(val)->u.information))
  17867. return 0;
  17868. break;
  17869. case 6:
  17870. if (!ASN1Enc_ReleaseComplete_UUIE(enc, &(val)->u.releaseComplete))
  17871. return 0;
  17872. break;
  17873. case 7:
  17874. if (!ASN1Enc_Facility_UUIE(enc, &(val)->u.facility))
  17875. return 0;
  17876. break;
  17877. case 8:
  17878. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17879. return 0;
  17880. if (!ASN1Enc_Progress_UUIE(ee, &(val)->u.progress))
  17881. return 0;
  17882. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17883. return 0;
  17884. ASN1_CloseEncoder2(ee);
  17885. break;
  17886. case 9:
  17887. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17888. return 0;
  17889. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17890. return 0;
  17891. ASN1_CloseEncoder2(ee);
  17892. break;
  17893. default:
  17894. /* impossible */
  17895. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  17896. return 0;
  17897. }
  17898. return 1;
  17899. }
  17900. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val)
  17901. {
  17902. ASN1decoding_t dd;
  17903. ASN1octet_t *db;
  17904. ASN1uint32_t ds;
  17905. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 7))
  17906. return 0;
  17907. switch ((val)->choice) {
  17908. case 1:
  17909. if (!ASN1Dec_Setup_UUIE(dec, &(val)->u.setup))
  17910. return 0;
  17911. break;
  17912. case 2:
  17913. if (!ASN1Dec_CallProceeding_UUIE(dec, &(val)->u.callProceeding))
  17914. return 0;
  17915. break;
  17916. case 3:
  17917. if (!ASN1Dec_Connect_UUIE(dec, &(val)->u.connect))
  17918. return 0;
  17919. break;
  17920. case 4:
  17921. if (!ASN1Dec_Alerting_UUIE(dec, &(val)->u.alerting))
  17922. return 0;
  17923. break;
  17924. case 5:
  17925. if (!ASN1Dec_Information_UUIE(dec, &(val)->u.information))
  17926. return 0;
  17927. break;
  17928. case 6:
  17929. if (!ASN1Dec_ReleaseComplete_UUIE(dec, &(val)->u.releaseComplete))
  17930. return 0;
  17931. break;
  17932. case 7:
  17933. if (!ASN1Dec_Facility_UUIE(dec, &(val)->u.facility))
  17934. return 0;
  17935. break;
  17936. case 8:
  17937. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17938. return 0;
  17939. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17940. return 0;
  17941. if (!ASN1Dec_Progress_UUIE(dd, &(val)->u.progress))
  17942. return 0;
  17943. ASN1_CloseDecoder(dd);
  17944. ASN1Free(db);
  17945. break;
  17946. case 9:
  17947. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17948. return 0;
  17949. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17950. return 0;
  17951. ASN1_CloseDecoder(dd);
  17952. ASN1Free(db);
  17953. break;
  17954. case 0:
  17955. /* extension case */
  17956. if (!ASN1PERDecSkipFragmented(dec, 8))
  17957. return 0;
  17958. break;
  17959. default:
  17960. /* impossible */
  17961. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  17962. return 0;
  17963. }
  17964. return 1;
  17965. }
  17966. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val)
  17967. {
  17968. if (val) {
  17969. switch ((val)->choice) {
  17970. case 1:
  17971. ASN1Free_Setup_UUIE(&(val)->u.setup);
  17972. break;
  17973. case 2:
  17974. ASN1Free_CallProceeding_UUIE(&(val)->u.callProceeding);
  17975. break;
  17976. case 3:
  17977. ASN1Free_Connect_UUIE(&(val)->u.connect);
  17978. break;
  17979. case 4:
  17980. ASN1Free_Alerting_UUIE(&(val)->u.alerting);
  17981. break;
  17982. case 5:
  17983. ASN1Free_Information_UUIE(&(val)->u.information);
  17984. break;
  17985. case 6:
  17986. ASN1Free_ReleaseComplete_UUIE(&(val)->u.releaseComplete);
  17987. break;
  17988. case 7:
  17989. ASN1Free_Facility_UUIE(&(val)->u.facility);
  17990. break;
  17991. case 8:
  17992. ASN1Free_Progress_UUIE(&(val)->u.progress);
  17993. break;
  17994. }
  17995. }
  17996. }
  17997. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val)
  17998. {
  17999. ASN1octet_t o[2];
  18000. ASN1uint32_t y;
  18001. ASN1encoding_t ee;
  18002. CopyMemory(o, (val)->o, 2);
  18003. o[1] |= 0x40;
  18004. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  18005. if (!ASN1PEREncBitVal(enc, 1, y))
  18006. return 0;
  18007. if (!ASN1PEREncBits(enc, 1, o))
  18008. return 0;
  18009. if (!ASN1Enc_H323_UU_PDU_h323_message_body(enc, &(val)->h323_message_body))
  18010. return 0;
  18011. if (o[0] & 0x80) {
  18012. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  18013. return 0;
  18014. }
  18015. if (y) {
  18016. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  18017. return 0;
  18018. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  18019. return 0;
  18020. if (o[1] & 0x80) {
  18021. if (!ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ee, &(val)->h4501SupplementaryService))
  18022. return 0;
  18023. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18024. return 0;
  18025. }
  18026. if (o[1] & 0x40) {
  18027. if (!ASN1PEREncBoolean(ee, (val)->h245Tunneling))
  18028. return 0;
  18029. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18030. return 0;
  18031. }
  18032. if (o[1] & 0x20) {
  18033. if (!ASN1Enc_H323_UU_PDU_h245Control(ee, &(val)->h245Control))
  18034. return 0;
  18035. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18036. return 0;
  18037. }
  18038. if (o[1] & 0x10) {
  18039. if (!ASN1Enc_H323_UU_PDU_nonStandardControl(ee, &(val)->nonStandardControl))
  18040. return 0;
  18041. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18042. return 0;
  18043. }
  18044. ASN1_CloseEncoder2(ee);
  18045. }
  18046. return 1;
  18047. }
  18048. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val)
  18049. {
  18050. ASN1uint32_t y;
  18051. ASN1decoding_t dd;
  18052. ASN1octet_t *db;
  18053. ASN1uint32_t ds;
  18054. ASN1uint32_t i;
  18055. ASN1uint32_t e;
  18056. if (!ASN1PERDecExtensionBit(dec, &y))
  18057. return 0;
  18058. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  18059. return 0;
  18060. if (!ASN1Dec_H323_UU_PDU_h323_message_body(dec, &(val)->h323_message_body))
  18061. return 0;
  18062. if ((val)->o[0] & 0x80) {
  18063. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  18064. return 0;
  18065. }
  18066. if (!y) {
  18067. ZeroMemory((val)->o + 1, 1);
  18068. } else {
  18069. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  18070. return 0;
  18071. if ((val)->o[1] & 0x80) {
  18072. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18073. return 0;
  18074. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18075. return 0;
  18076. if (!ASN1Dec_H323_UU_PDU_h4501SupplementaryService(dd, &(val)->h4501SupplementaryService))
  18077. return 0;
  18078. ASN1_CloseDecoder(dd);
  18079. ASN1Free(db);
  18080. }
  18081. if ((val)->o[1] & 0x40) {
  18082. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18083. return 0;
  18084. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18085. return 0;
  18086. if (!ASN1PERDecBoolean(dd, &(val)->h245Tunneling))
  18087. return 0;
  18088. ASN1_CloseDecoder(dd);
  18089. ASN1Free(db);
  18090. }
  18091. if ((val)->o[1] & 0x20) {
  18092. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18093. return 0;
  18094. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18095. return 0;
  18096. if (!ASN1Dec_H323_UU_PDU_h245Control(dd, &(val)->h245Control))
  18097. return 0;
  18098. ASN1_CloseDecoder(dd);
  18099. ASN1Free(db);
  18100. }
  18101. if ((val)->o[1] & 0x10) {
  18102. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18103. return 0;
  18104. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18105. return 0;
  18106. if (!ASN1Dec_H323_UU_PDU_nonStandardControl(dd, &(val)->nonStandardControl))
  18107. return 0;
  18108. ASN1_CloseDecoder(dd);
  18109. ASN1Free(db);
  18110. }
  18111. for (i = 0; i < e; i++) {
  18112. if (!ASN1PERDecSkipFragmented(dec, 8))
  18113. return 0;
  18114. }
  18115. }
  18116. return 1;
  18117. }
  18118. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val)
  18119. {
  18120. if (val) {
  18121. ASN1Free_H323_UU_PDU_h323_message_body(&(val)->h323_message_body);
  18122. if ((val)->o[0] & 0x80) {
  18123. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  18124. }
  18125. if ((val)->o[1] & 0x80) {
  18126. ASN1Free_H323_UU_PDU_h4501SupplementaryService(&(val)->h4501SupplementaryService);
  18127. }
  18128. if ((val)->o[1] & 0x20) {
  18129. ASN1Free_H323_UU_PDU_h245Control(&(val)->h245Control);
  18130. }
  18131. if ((val)->o[1] & 0x10) {
  18132. ASN1Free_H323_UU_PDU_nonStandardControl(&(val)->nonStandardControl);
  18133. }
  18134. }
  18135. }
  18136. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18137. {
  18138. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323pdu))
  18139. return 0;
  18140. if (!ASN1PEREncBoolean(enc, (val)->sent))
  18141. return 0;
  18142. return 1;
  18143. }
  18144. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18145. {
  18146. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323pdu))
  18147. return 0;
  18148. if (!ASN1PERDecBoolean(dec, &(val)->sent))
  18149. return 0;
  18150. return 1;
  18151. }
  18152. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18153. {
  18154. if (val) {
  18155. ASN1Free_H323_UU_PDU(&(val)->h323pdu);
  18156. }
  18157. }
  18158. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18159. {
  18160. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18161. }
  18162. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18163. {
  18164. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(enc, &val->value))
  18165. return 0;
  18166. return 1;
  18167. }
  18168. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18169. {
  18170. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn, sizeof(**val));
  18171. }
  18172. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18173. {
  18174. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(dec, &val->value))
  18175. return 0;
  18176. return 1;
  18177. }
  18178. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18179. {
  18180. if (val) {
  18181. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18182. }
  18183. }
  18184. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18185. {
  18186. if (val) {
  18187. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(&val->value);
  18188. }
  18189. }
  18190. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val)
  18191. {
  18192. if (!ASN1PEREncExtensionBitClear(enc))
  18193. return 0;
  18194. if (!ASN1PEREncBits(enc, 1, (val)->o))
  18195. return 0;
  18196. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323_uu_pdu))
  18197. return 0;
  18198. if ((val)->o[0] & 0x80) {
  18199. if (!ASN1Enc_H323_UserInformation_user_data(enc, &(val)->user_data))
  18200. return 0;
  18201. }
  18202. return 1;
  18203. }
  18204. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val)
  18205. {
  18206. ASN1uint32_t y;
  18207. if (!ASN1PERDecExtensionBit(dec, &y))
  18208. return 0;
  18209. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  18210. return 0;
  18211. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323_uu_pdu))
  18212. return 0;
  18213. if ((val)->o[0] & 0x80) {
  18214. if (!ASN1Dec_H323_UserInformation_user_data(dec, &(val)->user_data))
  18215. return 0;
  18216. }
  18217. if (y) {
  18218. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  18219. return 0;
  18220. }
  18221. return 1;
  18222. }
  18223. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val)
  18224. {
  18225. if (val) {
  18226. ASN1Free_H323_UU_PDU(&(val)->h323_uu_pdu);
  18227. if ((val)->o[0] & 0x80) {
  18228. ASN1Free_H323_UserInformation_user_data(&(val)->user_data);
  18229. }
  18230. }
  18231. }