Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19541 lines
632 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 "h225pp.h"
  9. ASN1module_t H225PP_Module = NULL;
  10. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  11. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_routing(ASN1encoding_t enc, TransportAddress_ipSourceRoute_routing *val);
  12. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute_route(ASN1encoding_t enc, PTransportAddress_ipSourceRoute_route *val);
  13. static int ASN1CALL ASN1Enc_RTPSession_associatedSessionIds(ASN1encoding_t enc, PRTPSession_associatedSessionIds *val);
  14. static int ASN1CALL ASN1Enc_RegistrationConfirm_preGrantedARQ(ASN1encoding_t enc, RegistrationConfirm_preGrantedARQ *val);
  15. static int ASN1CALL ASN1Enc_GatekeeperRequest_algorithmOIDs(ASN1encoding_t enc, PGatekeeperRequest_algorithmOIDs *val);
  16. static int ASN1CALL ASN1Enc_TransportAddress_ip6Address(ASN1encoding_t enc, TransportAddress_ip6Address *val);
  17. static int ASN1CALL ASN1Enc_TransportAddress_ipxAddress(ASN1encoding_t enc, TransportAddress_ipxAddress *val);
  18. static int ASN1CALL ASN1Enc_TransportAddress_ipSourceRoute(ASN1encoding_t enc, TransportAddress_ipSourceRoute *val);
  19. static int ASN1CALL ASN1Enc_TransportAddress_ipAddress(ASN1encoding_t enc, TransportAddress_ipAddress *val);
  20. static int ASN1CALL ASN1Enc_Progress_UUIE_fastStart(ASN1encoding_t enc, PProgress_UUIE_fastStart *val);
  21. static int ASN1CALL ASN1Enc_Facility_UUIE_fastStart(ASN1encoding_t enc, PFacility_UUIE_fastStart *val);
  22. static int ASN1CALL ASN1Enc_Setup_UUIE_fastStart(ASN1encoding_t enc, PSetup_UUIE_fastStart *val);
  23. static int ASN1CALL ASN1Enc_Setup_UUIE_conferenceGoal(ASN1encoding_t enc, Setup_UUIE_conferenceGoal *val);
  24. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCRV(ASN1encoding_t enc, PSetup_UUIE_destExtraCRV *val);
  25. static int ASN1CALL ASN1Enc_Connect_UUIE_fastStart(ASN1encoding_t enc, PConnect_UUIE_fastStart *val);
  26. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_fastStart(ASN1encoding_t enc, PCallProceeding_UUIE_fastStart *val);
  27. static int ASN1CALL ASN1Enc_Alerting_UUIE_fastStart(ASN1encoding_t enc, PAlerting_UUIE_fastStart *val);
  28. static int ASN1CALL ASN1Enc_H323_UU_PDU_h245Control(ASN1encoding_t enc, PH323_UU_PDU_h245Control *val);
  29. static int ASN1CALL ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ASN1encoding_t enc, PH323_UU_PDU_h4501SupplementaryService *val);
  30. static int ASN1CALL ASN1Enc_H323_UserInformation_user_data(ASN1encoding_t enc, H323_UserInformation_user_data *val);
  31. static int ASN1CALL ASN1Enc_H235NonStandardParameter(ASN1encoding_t enc, H235NonStandardParameter *val);
  32. static int ASN1CALL ASN1Enc_DHset(ASN1encoding_t enc, DHset *val);
  33. static int ASN1CALL ASN1Enc_TypedCertificate(ASN1encoding_t enc, TypedCertificate *val);
  34. static int ASN1CALL ASN1Enc_AuthenticationMechanism(ASN1encoding_t enc, AuthenticationMechanism *val);
  35. static int ASN1CALL ASN1Enc_ClearToken(ASN1encoding_t enc, ClearToken *val);
  36. static int ASN1CALL ASN1Enc_Params(ASN1encoding_t enc, Params *val);
  37. static int ASN1CALL ASN1Enc_EncodedGeneralToken(ASN1encoding_t enc, EncodedGeneralToken *val);
  38. static int ASN1CALL ASN1Enc_PwdCertToken(ASN1encoding_t enc, PwdCertToken *val);
  39. static int ASN1CALL ASN1Enc_EncodedPwdCertToken(ASN1encoding_t enc, EncodedPwdCertToken *val);
  40. static int ASN1CALL ASN1Enc_ReleaseCompleteReason(ASN1encoding_t enc, ReleaseCompleteReason *val);
  41. static int ASN1CALL ASN1Enc_FacilityReason(ASN1encoding_t enc, FacilityReason *val);
  42. static int ASN1CALL ASN1Enc_H221NonStandard(ASN1encoding_t enc, H221NonStandard *val);
  43. static int ASN1CALL ASN1Enc_H225NonStandardIdentifier(ASN1encoding_t enc, H225NonStandardIdentifier *val);
  44. static int ASN1CALL ASN1Enc_PublicTypeOfNumber(ASN1encoding_t enc, PublicTypeOfNumber *val);
  45. static int ASN1CALL ASN1Enc_PrivateTypeOfNumber(ASN1encoding_t enc, PrivateTypeOfNumber *val);
  46. static int ASN1CALL ASN1Enc_AltGKInfo(ASN1encoding_t enc, AltGKInfo *val);
  47. static int ASN1CALL ASN1Enc_Q954Details(ASN1encoding_t enc, Q954Details *val);
  48. static int ASN1CALL ASN1Enc_CallIdentifier(ASN1encoding_t enc, CallIdentifier *val);
  49. static int ASN1CALL ASN1Enc_ICV(ASN1encoding_t enc, ICV *val);
  50. static int ASN1CALL ASN1Enc_GatekeeperRejectReason(ASN1encoding_t enc, GatekeeperRejectReason *val);
  51. static int ASN1CALL ASN1Enc_RegistrationRejectReason(ASN1encoding_t enc, RegistrationRejectReason *val);
  52. static int ASN1CALL ASN1Enc_UnregRequestReason(ASN1encoding_t enc, UnregRequestReason *val);
  53. static int ASN1CALL ASN1Enc_UnregRejectReason(ASN1encoding_t enc, UnregRejectReason *val);
  54. static int ASN1CALL ASN1Enc_CallType(ASN1encoding_t enc, CallType *val);
  55. static int ASN1CALL ASN1Enc_CallModel(ASN1encoding_t enc, CallModel *val);
  56. static int ASN1CALL ASN1Enc_TransportQOS(ASN1encoding_t enc, TransportQOS *val);
  57. static int ASN1CALL ASN1Enc_UUIEsRequested(ASN1encoding_t enc, UUIEsRequested *val);
  58. static int ASN1CALL ASN1Enc_AdmissionRejectReason(ASN1encoding_t enc, AdmissionRejectReason *val);
  59. static int ASN1CALL ASN1Enc_BandRejectReason(ASN1encoding_t enc, BandRejectReason *val);
  60. static int ASN1CALL ASN1Enc_LocationRejectReason(ASN1encoding_t enc, LocationRejectReason *val);
  61. static int ASN1CALL ASN1Enc_DisengageReason(ASN1encoding_t enc, DisengageReason *val);
  62. static int ASN1CALL ASN1Enc_DisengageRejectReason(ASN1encoding_t enc, DisengageRejectReason *val);
  63. static int ASN1CALL ASN1Enc_InfoRequestNakReason(ASN1encoding_t enc, InfoRequestNakReason *val);
  64. static int ASN1CALL ASN1Enc_UnknownMessageResponse(ASN1encoding_t enc, UnknownMessageResponse *val);
  65. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  66. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_tokens(ASN1encoding_t enc, PResourcesAvailableConfirm_tokens *val);
  67. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_tokens(ASN1encoding_t enc, PResourcesAvailableIndicate_tokens *val);
  68. static int ASN1CALL ASN1Enc_RequestInProgress_tokens(ASN1encoding_t enc, PRequestInProgress_tokens *val);
  69. static int ASN1CALL ASN1Enc_UnknownMessageResponse_tokens(ASN1encoding_t enc, PUnknownMessageResponse_tokens *val);
  70. static int ASN1CALL ASN1Enc_H225NonStandardMessage_tokens(ASN1encoding_t enc, PH225NonStandardMessage_tokens *val);
  71. static int ASN1CALL ASN1Enc_InfoRequestNak_tokens(ASN1encoding_t enc, PInfoRequestNak_tokens *val);
  72. static int ASN1CALL ASN1Enc_InfoRequestAck_tokens(ASN1encoding_t enc, PInfoRequestAck_tokens *val);
  73. static int ASN1CALL ASN1Enc_InfoRequestResponse_tokens(ASN1encoding_t enc, PInfoRequestResponse_tokens *val);
  74. static int ASN1CALL ASN1Enc_InfoRequest_tokens(ASN1encoding_t enc, PInfoRequest_tokens *val);
  75. static int ASN1CALL ASN1Enc_DisengageReject_tokens(ASN1encoding_t enc, PDisengageReject_tokens *val);
  76. static int ASN1CALL ASN1Enc_DisengageConfirm_tokens(ASN1encoding_t enc, PDisengageConfirm_tokens *val);
  77. static int ASN1CALL ASN1Enc_DisengageRequest_tokens(ASN1encoding_t enc, PDisengageRequest_tokens *val);
  78. static int ASN1CALL ASN1Enc_LocationReject_tokens(ASN1encoding_t enc, PLocationReject_tokens *val);
  79. static int ASN1CALL ASN1Enc_LocationConfirm_tokens(ASN1encoding_t enc, PLocationConfirm_tokens *val);
  80. static int ASN1CALL ASN1Enc_LocationRequest_tokens(ASN1encoding_t enc, PLocationRequest_tokens *val);
  81. static int ASN1CALL ASN1Enc_BandwidthReject_tokens(ASN1encoding_t enc, PBandwidthReject_tokens *val);
  82. static int ASN1CALL ASN1Enc_BandwidthConfirm_tokens(ASN1encoding_t enc, PBandwidthConfirm_tokens *val);
  83. static int ASN1CALL ASN1Enc_BandwidthRequest_tokens(ASN1encoding_t enc, PBandwidthRequest_tokens *val);
  84. static int ASN1CALL ASN1Enc_AdmissionReject_tokens(ASN1encoding_t enc, PAdmissionReject_tokens *val);
  85. static int ASN1CALL ASN1Enc_AdmissionConfirm_tokens(ASN1encoding_t enc, PAdmissionConfirm_tokens *val);
  86. static int ASN1CALL ASN1Enc_AdmissionRequest_tokens(ASN1encoding_t enc, PAdmissionRequest_tokens *val);
  87. static int ASN1CALL ASN1Enc_UnregistrationReject_tokens(ASN1encoding_t enc, PUnregistrationReject_tokens *val);
  88. static int ASN1CALL ASN1Enc_UnregistrationConfirm_tokens(ASN1encoding_t enc, PUnregistrationConfirm_tokens *val);
  89. static int ASN1CALL ASN1Enc_UnregistrationRequest_tokens(ASN1encoding_t enc, PUnregistrationRequest_tokens *val);
  90. static int ASN1CALL ASN1Enc_RegistrationReject_tokens(ASN1encoding_t enc, PRegistrationReject_tokens *val);
  91. static int ASN1CALL ASN1Enc_RegistrationConfirm_tokens(ASN1encoding_t enc, PRegistrationConfirm_tokens *val);
  92. static int ASN1CALL ASN1Enc_RegistrationRequest_tokens(ASN1encoding_t enc, PRegistrationRequest_tokens *val);
  93. static int ASN1CALL ASN1Enc_GatekeeperReject_tokens(ASN1encoding_t enc, PGatekeeperReject_tokens *val);
  94. static int ASN1CALL ASN1Enc_GatekeeperConfirm_tokens(ASN1encoding_t enc, PGatekeeperConfirm_tokens *val);
  95. static int ASN1CALL ASN1Enc_GatekeeperRequest_authenticationCapability(ASN1encoding_t enc, PGatekeeperRequest_authenticationCapability *val);
  96. static int ASN1CALL ASN1Enc_GatekeeperRequest_tokens(ASN1encoding_t enc, PGatekeeperRequest_tokens *val);
  97. static int ASN1CALL ASN1Enc_Endpoint_tokens(ASN1encoding_t enc, PEndpoint_tokens *val);
  98. static int ASN1CALL ASN1Enc_Progress_UUIE_tokens(ASN1encoding_t enc, PProgress_UUIE_tokens *val);
  99. static int ASN1CALL ASN1Enc_Facility_UUIE_tokens(ASN1encoding_t enc, PFacility_UUIE_tokens *val);
  100. static int ASN1CALL ASN1Enc_Setup_UUIE_tokens(ASN1encoding_t enc, PSetup_UUIE_tokens *val);
  101. static int ASN1CALL ASN1Enc_Connect_UUIE_tokens(ASN1encoding_t enc, PConnect_UUIE_tokens *val);
  102. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_tokens(ASN1encoding_t enc, PCallProceeding_UUIE_tokens *val);
  103. static int ASN1CALL ASN1Enc_Alerting_UUIE_tokens(ASN1encoding_t enc, PAlerting_UUIE_tokens *val);
  104. static int ASN1CALL ASN1Enc_SIGNED_EncodedGeneralToken(ASN1encoding_t enc, SIGNED_EncodedGeneralToken *val);
  105. static int ASN1CALL ASN1Enc_ENCRYPTED(ASN1encoding_t enc, ENCRYPTED *val);
  106. static int ASN1CALL ASN1Enc_HASHED(ASN1encoding_t enc, HASHED *val);
  107. static int ASN1CALL ASN1Enc_SIGNED_EncodedPwdCertToken(ASN1encoding_t enc, SIGNED_EncodedPwdCertToken *val);
  108. static int ASN1CALL ASN1Enc_Information_UUIE(ASN1encoding_t enc, Information_UUIE *val);
  109. static int ASN1CALL ASN1Enc_ReleaseComplete_UUIE(ASN1encoding_t enc, ReleaseComplete_UUIE *val);
  110. static int ASN1CALL ASN1Enc_VendorIdentifier(ASN1encoding_t enc, VendorIdentifier *val);
  111. static int ASN1CALL ASN1Enc_H225NonStandardParameter(ASN1encoding_t enc, H225NonStandardParameter *val);
  112. static int ASN1CALL ASN1Enc_PublicPartyNumber(ASN1encoding_t enc, PublicPartyNumber *val);
  113. static int ASN1CALL ASN1Enc_PrivatePartyNumber(ASN1encoding_t enc, PrivatePartyNumber *val);
  114. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val);
  115. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val);
  116. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val);
  117. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val);
  118. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val);
  119. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val);
  120. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val);
  121. #define ASN1Enc_FastStartToken(x,y) 0
  122. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val);
  123. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val);
  124. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val);
  125. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val);
  126. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val);
  127. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val);
  128. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val);
  129. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val);
  130. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val);
  131. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val);
  132. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val);
  133. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val);
  134. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val);
  135. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val);
  136. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val);
  137. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val);
  138. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val);
  139. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val);
  140. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val);
  141. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val);
  142. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val);
  143. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val);
  144. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val);
  145. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val);
  146. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val);
  147. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val);
  148. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val);
  149. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val);
  150. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val);
  151. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val);
  152. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val);
  153. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val);
  154. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val);
  155. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val);
  156. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val);
  157. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val);
  158. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val);
  159. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val);
  160. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val);
  161. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val);
  162. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val);
  163. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val);
  164. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val);
  165. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val);
  166. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val);
  167. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val);
  168. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val);
  169. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val);
  170. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val);
  171. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val);
  172. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val);
  173. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val);
  174. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val);
  175. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val);
  176. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val);
  177. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val);
  178. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val);
  179. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val);
  180. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val);
  181. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val);
  182. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val);
  183. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val);
  184. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val);
  185. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val);
  186. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val);
  187. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val);
  188. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val);
  189. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val);
  190. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val);
  191. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val);
  192. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val);
  193. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val);
  194. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val);
  195. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val);
  196. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val);
  197. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val);
  198. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val);
  199. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val);
  200. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val);
  201. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val);
  202. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val);
  203. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val);
  204. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val);
  205. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val);
  206. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val);
  207. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val);
  208. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val);
  209. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val);
  210. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val);
  211. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val);
  212. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val);
  213. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val);
  214. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val);
  215. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val);
  216. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val);
  217. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val);
  218. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val);
  219. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val);
  220. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val);
  221. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val);
  222. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val);
  223. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val);
  224. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val);
  225. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val);
  226. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val);
  227. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val);
  228. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val);
  229. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val);
  230. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val);
  231. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val);
  232. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val);
  233. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val);
  234. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val);
  235. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val);
  236. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val);
  237. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val);
  238. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val);
  239. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val);
  240. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val);
  241. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val);
  242. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val);
  243. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val);
  244. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val);
  245. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val);
  246. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val);
  247. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val);
  248. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val);
  249. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val);
  250. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val);
  251. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val);
  252. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val);
  253. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val);
  254. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val);
  255. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val);
  256. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val);
  257. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val);
  258. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val);
  259. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val);
  260. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val);
  261. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val);
  262. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val);
  263. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val);
  264. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  265. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val);
  266. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val);
  267. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val);
  268. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val);
  269. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val);
  270. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val);
  271. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val);
  272. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val);
  273. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val);
  274. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val);
  275. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val);
  276. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val);
  277. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val);
  278. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val);
  279. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val);
  280. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val);
  281. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val);
  282. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val);
  283. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val);
  284. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val);
  285. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val);
  286. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val);
  287. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val);
  288. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val);
  289. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val);
  290. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val);
  291. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val);
  292. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val);
  293. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val);
  294. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val);
  295. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val);
  296. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val);
  297. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val);
  298. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val);
  299. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val);
  300. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val);
  301. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val);
  302. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val);
  303. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val);
  304. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val);
  305. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  306. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  307. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val);
  308. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  309. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_routing(ASN1decoding_t dec, TransportAddress_ipSourceRoute_routing *val);
  310. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute_route(ASN1decoding_t dec, PTransportAddress_ipSourceRoute_route *val);
  311. static int ASN1CALL ASN1Dec_RTPSession_associatedSessionIds(ASN1decoding_t dec, PRTPSession_associatedSessionIds *val);
  312. static int ASN1CALL ASN1Dec_RegistrationConfirm_preGrantedARQ(ASN1decoding_t dec, RegistrationConfirm_preGrantedARQ *val);
  313. static int ASN1CALL ASN1Dec_GatekeeperRequest_algorithmOIDs(ASN1decoding_t dec, PGatekeeperRequest_algorithmOIDs *val);
  314. static int ASN1CALL ASN1Dec_TransportAddress_ip6Address(ASN1decoding_t dec, TransportAddress_ip6Address *val);
  315. static int ASN1CALL ASN1Dec_TransportAddress_ipxAddress(ASN1decoding_t dec, TransportAddress_ipxAddress *val);
  316. static int ASN1CALL ASN1Dec_TransportAddress_ipSourceRoute(ASN1decoding_t dec, TransportAddress_ipSourceRoute *val);
  317. static int ASN1CALL ASN1Dec_TransportAddress_ipAddress(ASN1decoding_t dec, TransportAddress_ipAddress *val);
  318. static int ASN1CALL ASN1Dec_Progress_UUIE_fastStart(ASN1decoding_t dec, PProgress_UUIE_fastStart *val);
  319. static int ASN1CALL ASN1Dec_Facility_UUIE_fastStart(ASN1decoding_t dec, PFacility_UUIE_fastStart *val);
  320. static int ASN1CALL ASN1Dec_Setup_UUIE_fastStart(ASN1decoding_t dec, PSetup_UUIE_fastStart *val);
  321. static int ASN1CALL ASN1Dec_Setup_UUIE_conferenceGoal(ASN1decoding_t dec, Setup_UUIE_conferenceGoal *val);
  322. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCRV(ASN1decoding_t dec, PSetup_UUIE_destExtraCRV *val);
  323. static int ASN1CALL ASN1Dec_Connect_UUIE_fastStart(ASN1decoding_t dec, PConnect_UUIE_fastStart *val);
  324. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_fastStart(ASN1decoding_t dec, PCallProceeding_UUIE_fastStart *val);
  325. static int ASN1CALL ASN1Dec_Alerting_UUIE_fastStart(ASN1decoding_t dec, PAlerting_UUIE_fastStart *val);
  326. static int ASN1CALL ASN1Dec_H323_UU_PDU_h245Control(ASN1decoding_t dec, PH323_UU_PDU_h245Control *val);
  327. static int ASN1CALL ASN1Dec_H323_UU_PDU_h4501SupplementaryService(ASN1decoding_t dec, PH323_UU_PDU_h4501SupplementaryService *val);
  328. static int ASN1CALL ASN1Dec_H323_UserInformation_user_data(ASN1decoding_t dec, H323_UserInformation_user_data *val);
  329. static int ASN1CALL ASN1Dec_H235NonStandardParameter(ASN1decoding_t dec, H235NonStandardParameter *val);
  330. static int ASN1CALL ASN1Dec_DHset(ASN1decoding_t dec, DHset *val);
  331. static int ASN1CALL ASN1Dec_TypedCertificate(ASN1decoding_t dec, TypedCertificate *val);
  332. static int ASN1CALL ASN1Dec_AuthenticationMechanism(ASN1decoding_t dec, AuthenticationMechanism *val);
  333. static int ASN1CALL ASN1Dec_ClearToken(ASN1decoding_t dec, ClearToken *val);
  334. static int ASN1CALL ASN1Dec_Params(ASN1decoding_t dec, Params *val);
  335. static int ASN1CALL ASN1Dec_EncodedGeneralToken(ASN1decoding_t dec, EncodedGeneralToken *val);
  336. static int ASN1CALL ASN1Dec_PwdCertToken(ASN1decoding_t dec, PwdCertToken *val);
  337. static int ASN1CALL ASN1Dec_EncodedPwdCertToken(ASN1decoding_t dec, EncodedPwdCertToken *val);
  338. static int ASN1CALL ASN1Dec_ReleaseCompleteReason(ASN1decoding_t dec, ReleaseCompleteReason *val);
  339. static int ASN1CALL ASN1Dec_FacilityReason(ASN1decoding_t dec, FacilityReason *val);
  340. static int ASN1CALL ASN1Dec_H221NonStandard(ASN1decoding_t dec, H221NonStandard *val);
  341. static int ASN1CALL ASN1Dec_H225NonStandardIdentifier(ASN1decoding_t dec, H225NonStandardIdentifier *val);
  342. static int ASN1CALL ASN1Dec_PublicTypeOfNumber(ASN1decoding_t dec, PublicTypeOfNumber *val);
  343. static int ASN1CALL ASN1Dec_PrivateTypeOfNumber(ASN1decoding_t dec, PrivateTypeOfNumber *val);
  344. static int ASN1CALL ASN1Dec_AltGKInfo(ASN1decoding_t dec, AltGKInfo *val);
  345. static int ASN1CALL ASN1Dec_Q954Details(ASN1decoding_t dec, Q954Details *val);
  346. static int ASN1CALL ASN1Dec_CallIdentifier(ASN1decoding_t dec, CallIdentifier *val);
  347. static int ASN1CALL ASN1Dec_ICV(ASN1decoding_t dec, ICV *val);
  348. static int ASN1CALL ASN1Dec_GatekeeperRejectReason(ASN1decoding_t dec, GatekeeperRejectReason *val);
  349. static int ASN1CALL ASN1Dec_RegistrationRejectReason(ASN1decoding_t dec, RegistrationRejectReason *val);
  350. static int ASN1CALL ASN1Dec_UnregRequestReason(ASN1decoding_t dec, UnregRequestReason *val);
  351. static int ASN1CALL ASN1Dec_UnregRejectReason(ASN1decoding_t dec, UnregRejectReason *val);
  352. static int ASN1CALL ASN1Dec_CallType(ASN1decoding_t dec, CallType *val);
  353. static int ASN1CALL ASN1Dec_CallModel(ASN1decoding_t dec, CallModel *val);
  354. static int ASN1CALL ASN1Dec_TransportQOS(ASN1decoding_t dec, TransportQOS *val);
  355. static int ASN1CALL ASN1Dec_UUIEsRequested(ASN1decoding_t dec, UUIEsRequested *val);
  356. static int ASN1CALL ASN1Dec_AdmissionRejectReason(ASN1decoding_t dec, AdmissionRejectReason *val);
  357. static int ASN1CALL ASN1Dec_BandRejectReason(ASN1decoding_t dec, BandRejectReason *val);
  358. static int ASN1CALL ASN1Dec_LocationRejectReason(ASN1decoding_t dec, LocationRejectReason *val);
  359. static int ASN1CALL ASN1Dec_DisengageReason(ASN1decoding_t dec, DisengageReason *val);
  360. static int ASN1CALL ASN1Dec_DisengageRejectReason(ASN1decoding_t dec, DisengageRejectReason *val);
  361. static int ASN1CALL ASN1Dec_InfoRequestNakReason(ASN1decoding_t dec, InfoRequestNakReason *val);
  362. static int ASN1CALL ASN1Dec_UnknownMessageResponse(ASN1decoding_t dec, UnknownMessageResponse *val);
  363. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  364. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_tokens(ASN1decoding_t dec, PResourcesAvailableConfirm_tokens *val);
  365. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_tokens(ASN1decoding_t dec, PResourcesAvailableIndicate_tokens *val);
  366. static int ASN1CALL ASN1Dec_RequestInProgress_tokens(ASN1decoding_t dec, PRequestInProgress_tokens *val);
  367. static int ASN1CALL ASN1Dec_UnknownMessageResponse_tokens(ASN1decoding_t dec, PUnknownMessageResponse_tokens *val);
  368. static int ASN1CALL ASN1Dec_H225NonStandardMessage_tokens(ASN1decoding_t dec, PH225NonStandardMessage_tokens *val);
  369. static int ASN1CALL ASN1Dec_InfoRequestNak_tokens(ASN1decoding_t dec, PInfoRequestNak_tokens *val);
  370. static int ASN1CALL ASN1Dec_InfoRequestAck_tokens(ASN1decoding_t dec, PInfoRequestAck_tokens *val);
  371. static int ASN1CALL ASN1Dec_InfoRequestResponse_tokens(ASN1decoding_t dec, PInfoRequestResponse_tokens *val);
  372. static int ASN1CALL ASN1Dec_InfoRequest_tokens(ASN1decoding_t dec, PInfoRequest_tokens *val);
  373. static int ASN1CALL ASN1Dec_DisengageReject_tokens(ASN1decoding_t dec, PDisengageReject_tokens *val);
  374. static int ASN1CALL ASN1Dec_DisengageConfirm_tokens(ASN1decoding_t dec, PDisengageConfirm_tokens *val);
  375. static int ASN1CALL ASN1Dec_DisengageRequest_tokens(ASN1decoding_t dec, PDisengageRequest_tokens *val);
  376. static int ASN1CALL ASN1Dec_LocationReject_tokens(ASN1decoding_t dec, PLocationReject_tokens *val);
  377. static int ASN1CALL ASN1Dec_LocationConfirm_tokens(ASN1decoding_t dec, PLocationConfirm_tokens *val);
  378. static int ASN1CALL ASN1Dec_LocationRequest_tokens(ASN1decoding_t dec, PLocationRequest_tokens *val);
  379. static int ASN1CALL ASN1Dec_BandwidthReject_tokens(ASN1decoding_t dec, PBandwidthReject_tokens *val);
  380. static int ASN1CALL ASN1Dec_BandwidthConfirm_tokens(ASN1decoding_t dec, PBandwidthConfirm_tokens *val);
  381. static int ASN1CALL ASN1Dec_BandwidthRequest_tokens(ASN1decoding_t dec, PBandwidthRequest_tokens *val);
  382. static int ASN1CALL ASN1Dec_AdmissionReject_tokens(ASN1decoding_t dec, PAdmissionReject_tokens *val);
  383. static int ASN1CALL ASN1Dec_AdmissionConfirm_tokens(ASN1decoding_t dec, PAdmissionConfirm_tokens *val);
  384. static int ASN1CALL ASN1Dec_AdmissionRequest_tokens(ASN1decoding_t dec, PAdmissionRequest_tokens *val);
  385. static int ASN1CALL ASN1Dec_UnregistrationReject_tokens(ASN1decoding_t dec, PUnregistrationReject_tokens *val);
  386. static int ASN1CALL ASN1Dec_UnregistrationConfirm_tokens(ASN1decoding_t dec, PUnregistrationConfirm_tokens *val);
  387. static int ASN1CALL ASN1Dec_UnregistrationRequest_tokens(ASN1decoding_t dec, PUnregistrationRequest_tokens *val);
  388. static int ASN1CALL ASN1Dec_RegistrationReject_tokens(ASN1decoding_t dec, PRegistrationReject_tokens *val);
  389. static int ASN1CALL ASN1Dec_RegistrationConfirm_tokens(ASN1decoding_t dec, PRegistrationConfirm_tokens *val);
  390. static int ASN1CALL ASN1Dec_RegistrationRequest_tokens(ASN1decoding_t dec, PRegistrationRequest_tokens *val);
  391. static int ASN1CALL ASN1Dec_GatekeeperReject_tokens(ASN1decoding_t dec, PGatekeeperReject_tokens *val);
  392. static int ASN1CALL ASN1Dec_GatekeeperConfirm_tokens(ASN1decoding_t dec, PGatekeeperConfirm_tokens *val);
  393. static int ASN1CALL ASN1Dec_GatekeeperRequest_authenticationCapability(ASN1decoding_t dec, PGatekeeperRequest_authenticationCapability *val);
  394. static int ASN1CALL ASN1Dec_GatekeeperRequest_tokens(ASN1decoding_t dec, PGatekeeperRequest_tokens *val);
  395. static int ASN1CALL ASN1Dec_Endpoint_tokens(ASN1decoding_t dec, PEndpoint_tokens *val);
  396. static int ASN1CALL ASN1Dec_Progress_UUIE_tokens(ASN1decoding_t dec, PProgress_UUIE_tokens *val);
  397. static int ASN1CALL ASN1Dec_Facility_UUIE_tokens(ASN1decoding_t dec, PFacility_UUIE_tokens *val);
  398. static int ASN1CALL ASN1Dec_Setup_UUIE_tokens(ASN1decoding_t dec, PSetup_UUIE_tokens *val);
  399. static int ASN1CALL ASN1Dec_Connect_UUIE_tokens(ASN1decoding_t dec, PConnect_UUIE_tokens *val);
  400. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_tokens(ASN1decoding_t dec, PCallProceeding_UUIE_tokens *val);
  401. static int ASN1CALL ASN1Dec_Alerting_UUIE_tokens(ASN1decoding_t dec, PAlerting_UUIE_tokens *val);
  402. static int ASN1CALL ASN1Dec_SIGNED_EncodedGeneralToken(ASN1decoding_t dec, SIGNED_EncodedGeneralToken *val);
  403. static int ASN1CALL ASN1Dec_ENCRYPTED(ASN1decoding_t dec, ENCRYPTED *val);
  404. static int ASN1CALL ASN1Dec_HASHED(ASN1decoding_t dec, HASHED *val);
  405. static int ASN1CALL ASN1Dec_SIGNED_EncodedPwdCertToken(ASN1decoding_t dec, SIGNED_EncodedPwdCertToken *val);
  406. static int ASN1CALL ASN1Dec_Information_UUIE(ASN1decoding_t dec, Information_UUIE *val);
  407. static int ASN1CALL ASN1Dec_ReleaseComplete_UUIE(ASN1decoding_t dec, ReleaseComplete_UUIE *val);
  408. static int ASN1CALL ASN1Dec_VendorIdentifier(ASN1decoding_t dec, VendorIdentifier *val);
  409. static int ASN1CALL ASN1Dec_H225NonStandardParameter(ASN1decoding_t dec, H225NonStandardParameter *val);
  410. static int ASN1CALL ASN1Dec_PublicPartyNumber(ASN1decoding_t dec, PublicPartyNumber *val);
  411. static int ASN1CALL ASN1Dec_PrivatePartyNumber(ASN1decoding_t dec, PrivatePartyNumber *val);
  412. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val);
  413. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val);
  414. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val);
  415. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val);
  416. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val);
  417. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val);
  418. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val);
  419. #define ASN1Dec_FastStartToken(x,y) 0
  420. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val);
  421. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val);
  422. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val);
  423. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val);
  424. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val);
  425. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val);
  426. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val);
  427. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val);
  428. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val);
  429. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val);
  430. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val);
  431. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val);
  432. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val);
  433. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val);
  434. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val);
  435. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val);
  436. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val);
  437. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val);
  438. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val);
  439. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val);
  440. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val);
  441. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val);
  442. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val);
  443. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val);
  444. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val);
  445. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val);
  446. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val);
  447. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val);
  448. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val);
  449. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val);
  450. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val);
  451. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val);
  452. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val);
  453. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val);
  454. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val);
  455. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val);
  456. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val);
  457. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val);
  458. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val);
  459. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val);
  460. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val);
  461. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val);
  462. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val);
  463. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val);
  464. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val);
  465. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val);
  466. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val);
  467. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val);
  468. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val);
  469. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val);
  470. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val);
  471. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val);
  472. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val);
  473. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val);
  474. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val);
  475. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val);
  476. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val);
  477. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val);
  478. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val);
  479. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val);
  480. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val);
  481. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val);
  482. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val);
  483. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val);
  484. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val);
  485. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val);
  486. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val);
  487. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val);
  488. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val);
  489. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val);
  490. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val);
  491. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val);
  492. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val);
  493. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val);
  494. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val);
  495. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val);
  496. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val);
  497. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val);
  498. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val);
  499. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val);
  500. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val);
  501. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val);
  502. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val);
  503. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val);
  504. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val);
  505. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val);
  506. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val);
  507. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val);
  508. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val);
  509. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val);
  510. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val);
  511. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val);
  512. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val);
  513. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val);
  514. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val);
  515. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val);
  516. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val);
  517. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val);
  518. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val);
  519. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val);
  520. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val);
  521. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val);
  522. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val);
  523. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val);
  524. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val);
  525. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val);
  526. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val);
  527. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val);
  528. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val);
  529. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val);
  530. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val);
  531. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val);
  532. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val);
  533. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val);
  534. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val);
  535. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val);
  536. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val);
  537. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val);
  538. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val);
  539. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val);
  540. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val);
  541. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val);
  542. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val);
  543. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val);
  544. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val);
  545. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val);
  546. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val);
  547. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val);
  548. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val);
  549. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val);
  550. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val);
  551. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val);
  552. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val);
  553. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val);
  554. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val);
  555. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val);
  556. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val);
  557. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val);
  558. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val);
  559. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val);
  560. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val);
  561. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val);
  562. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  563. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val);
  564. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val);
  565. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val);
  566. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val);
  567. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val);
  568. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val);
  569. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val);
  570. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val);
  571. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val);
  572. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val);
  573. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val);
  574. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val);
  575. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val);
  576. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val);
  577. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val);
  578. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val);
  579. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val);
  580. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val);
  581. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val);
  582. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val);
  583. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val);
  584. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val);
  585. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val);
  586. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val);
  587. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val);
  588. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val);
  589. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val);
  590. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val);
  591. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val);
  592. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val);
  593. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val);
  594. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val);
  595. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val);
  596. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val);
  597. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val);
  598. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val);
  599. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val);
  600. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val);
  601. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val);
  602. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val);
  603. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  604. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  605. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val);
  606. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(PInfoRequestResponse_perCallInfo_Seq_substituteConfIDs *val);
  607. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute_route(PTransportAddress_ipSourceRoute_route *val);
  608. static void ASN1CALL ASN1Free_RTPSession_associatedSessionIds(PRTPSession_associatedSessionIds *val);
  609. static void ASN1CALL ASN1Free_GatekeeperRequest_algorithmOIDs(PGatekeeperRequest_algorithmOIDs *val);
  610. static void ASN1CALL ASN1Free_TransportAddress_ip6Address(TransportAddress_ip6Address *val);
  611. static void ASN1CALL ASN1Free_TransportAddress_ipxAddress(TransportAddress_ipxAddress *val);
  612. static void ASN1CALL ASN1Free_TransportAddress_ipSourceRoute(TransportAddress_ipSourceRoute *val);
  613. static void ASN1CALL ASN1Free_TransportAddress_ipAddress(TransportAddress_ipAddress *val);
  614. static void ASN1CALL ASN1Free_Progress_UUIE_fastStart(PProgress_UUIE_fastStart *val);
  615. static void ASN1CALL ASN1Free_Facility_UUIE_fastStart(PFacility_UUIE_fastStart *val);
  616. static void ASN1CALL ASN1Free_Setup_UUIE_fastStart(PSetup_UUIE_fastStart *val);
  617. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCRV(PSetup_UUIE_destExtraCRV *val);
  618. static void ASN1CALL ASN1Free_Connect_UUIE_fastStart(PConnect_UUIE_fastStart *val);
  619. static void ASN1CALL ASN1Free_CallProceeding_UUIE_fastStart(PCallProceeding_UUIE_fastStart *val);
  620. static void ASN1CALL ASN1Free_Alerting_UUIE_fastStart(PAlerting_UUIE_fastStart *val);
  621. static void ASN1CALL ASN1Free_H323_UU_PDU_h245Control(PH323_UU_PDU_h245Control *val);
  622. static void ASN1CALL ASN1Free_H323_UU_PDU_h4501SupplementaryService(PH323_UU_PDU_h4501SupplementaryService *val);
  623. static void ASN1CALL ASN1Free_H323_UserInformation_user_data(H323_UserInformation_user_data *val);
  624. static void ASN1CALL ASN1Free_H235NonStandardParameter(H235NonStandardParameter *val);
  625. static void ASN1CALL ASN1Free_DHset(DHset *val);
  626. static void ASN1CALL ASN1Free_TypedCertificate(TypedCertificate *val);
  627. static void ASN1CALL ASN1Free_AuthenticationMechanism(AuthenticationMechanism *val);
  628. static void ASN1CALL ASN1Free_ClearToken(ClearToken *val);
  629. static void ASN1CALL ASN1Free_Params(Params *val);
  630. static void ASN1CALL ASN1Free_EncodedGeneralToken(EncodedGeneralToken *val);
  631. static void ASN1CALL ASN1Free_PwdCertToken(PwdCertToken *val);
  632. static void ASN1CALL ASN1Free_EncodedPwdCertToken(EncodedPwdCertToken *val);
  633. static void ASN1CALL ASN1Free_H225NonStandardIdentifier(H225NonStandardIdentifier *val);
  634. static void ASN1CALL ASN1Free_AltGKInfo(AltGKInfo *val);
  635. static void ASN1CALL ASN1Free_CallIdentifier(CallIdentifier *val);
  636. static void ASN1CALL ASN1Free_ICV(ICV *val);
  637. static void ASN1CALL ASN1Free_RegistrationRejectReason(RegistrationRejectReason *val);
  638. static void ASN1CALL ASN1Free_UnknownMessageResponse(UnknownMessageResponse *val);
  639. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(PInfoRequestResponse_perCallInfo_Seq_tokens *val);
  640. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_tokens(PResourcesAvailableConfirm_tokens *val);
  641. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_tokens(PResourcesAvailableIndicate_tokens *val);
  642. static void ASN1CALL ASN1Free_RequestInProgress_tokens(PRequestInProgress_tokens *val);
  643. static void ASN1CALL ASN1Free_UnknownMessageResponse_tokens(PUnknownMessageResponse_tokens *val);
  644. static void ASN1CALL ASN1Free_H225NonStandardMessage_tokens(PH225NonStandardMessage_tokens *val);
  645. static void ASN1CALL ASN1Free_InfoRequestNak_tokens(PInfoRequestNak_tokens *val);
  646. static void ASN1CALL ASN1Free_InfoRequestAck_tokens(PInfoRequestAck_tokens *val);
  647. static void ASN1CALL ASN1Free_InfoRequestResponse_tokens(PInfoRequestResponse_tokens *val);
  648. static void ASN1CALL ASN1Free_InfoRequest_tokens(PInfoRequest_tokens *val);
  649. static void ASN1CALL ASN1Free_DisengageReject_tokens(PDisengageReject_tokens *val);
  650. static void ASN1CALL ASN1Free_DisengageConfirm_tokens(PDisengageConfirm_tokens *val);
  651. static void ASN1CALL ASN1Free_DisengageRequest_tokens(PDisengageRequest_tokens *val);
  652. static void ASN1CALL ASN1Free_LocationReject_tokens(PLocationReject_tokens *val);
  653. static void ASN1CALL ASN1Free_LocationConfirm_tokens(PLocationConfirm_tokens *val);
  654. static void ASN1CALL ASN1Free_LocationRequest_tokens(PLocationRequest_tokens *val);
  655. static void ASN1CALL ASN1Free_BandwidthReject_tokens(PBandwidthReject_tokens *val);
  656. static void ASN1CALL ASN1Free_BandwidthConfirm_tokens(PBandwidthConfirm_tokens *val);
  657. static void ASN1CALL ASN1Free_BandwidthRequest_tokens(PBandwidthRequest_tokens *val);
  658. static void ASN1CALL ASN1Free_AdmissionReject_tokens(PAdmissionReject_tokens *val);
  659. static void ASN1CALL ASN1Free_AdmissionConfirm_tokens(PAdmissionConfirm_tokens *val);
  660. static void ASN1CALL ASN1Free_AdmissionRequest_tokens(PAdmissionRequest_tokens *val);
  661. static void ASN1CALL ASN1Free_UnregistrationReject_tokens(PUnregistrationReject_tokens *val);
  662. static void ASN1CALL ASN1Free_UnregistrationConfirm_tokens(PUnregistrationConfirm_tokens *val);
  663. static void ASN1CALL ASN1Free_UnregistrationRequest_tokens(PUnregistrationRequest_tokens *val);
  664. static void ASN1CALL ASN1Free_RegistrationReject_tokens(PRegistrationReject_tokens *val);
  665. static void ASN1CALL ASN1Free_RegistrationConfirm_tokens(PRegistrationConfirm_tokens *val);
  666. static void ASN1CALL ASN1Free_RegistrationRequest_tokens(PRegistrationRequest_tokens *val);
  667. static void ASN1CALL ASN1Free_GatekeeperReject_tokens(PGatekeeperReject_tokens *val);
  668. static void ASN1CALL ASN1Free_GatekeeperConfirm_tokens(PGatekeeperConfirm_tokens *val);
  669. static void ASN1CALL ASN1Free_GatekeeperRequest_authenticationCapability(PGatekeeperRequest_authenticationCapability *val);
  670. static void ASN1CALL ASN1Free_GatekeeperRequest_tokens(PGatekeeperRequest_tokens *val);
  671. static void ASN1CALL ASN1Free_Endpoint_tokens(PEndpoint_tokens *val);
  672. static void ASN1CALL ASN1Free_Progress_UUIE_tokens(PProgress_UUIE_tokens *val);
  673. static void ASN1CALL ASN1Free_Facility_UUIE_tokens(PFacility_UUIE_tokens *val);
  674. static void ASN1CALL ASN1Free_Setup_UUIE_tokens(PSetup_UUIE_tokens *val);
  675. static void ASN1CALL ASN1Free_Connect_UUIE_tokens(PConnect_UUIE_tokens *val);
  676. static void ASN1CALL ASN1Free_CallProceeding_UUIE_tokens(PCallProceeding_UUIE_tokens *val);
  677. static void ASN1CALL ASN1Free_Alerting_UUIE_tokens(PAlerting_UUIE_tokens *val);
  678. static void ASN1CALL ASN1Free_SIGNED_EncodedGeneralToken(SIGNED_EncodedGeneralToken *val);
  679. static void ASN1CALL ASN1Free_ENCRYPTED(ENCRYPTED *val);
  680. static void ASN1CALL ASN1Free_HASHED(HASHED *val);
  681. static void ASN1CALL ASN1Free_SIGNED_EncodedPwdCertToken(SIGNED_EncodedPwdCertToken *val);
  682. static void ASN1CALL ASN1Free_Information_UUIE(Information_UUIE *val);
  683. static void ASN1CALL ASN1Free_ReleaseComplete_UUIE(ReleaseComplete_UUIE *val);
  684. static void ASN1CALL ASN1Free_VendorIdentifier(VendorIdentifier *val);
  685. static void ASN1CALL ASN1Free_H225NonStandardParameter(H225NonStandardParameter *val);
  686. static void ASN1CALL ASN1Free_PublicPartyNumber(PublicPartyNumber *val);
  687. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val);
  688. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val);
  689. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val);
  690. static void ASN1CALL ASN1Free_H245Security(H245Security *val);
  691. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val);
  692. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val);
  693. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val);
  694. #define ASN1Free_FastStartToken(x)
  695. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val);
  696. static void ASN1CALL ASN1Free_DataRate(DataRate *val);
  697. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val);
  698. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val);
  699. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val);
  700. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val);
  701. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val);
  702. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val);
  703. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val);
  704. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val);
  705. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val);
  706. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val);
  707. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val);
  708. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val);
  709. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val);
  710. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val);
  711. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val);
  712. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val);
  713. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val);
  714. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val);
  715. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val);
  716. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val);
  717. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val);
  718. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val);
  719. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val);
  720. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val);
  721. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val);
  722. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val);
  723. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val);
  724. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val);
  725. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val);
  726. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val);
  727. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val);
  728. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val);
  729. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val);
  730. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val);
  731. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val);
  732. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val);
  733. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val);
  734. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val);
  735. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val);
  736. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val);
  737. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val);
  738. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val);
  739. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val);
  740. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val);
  741. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val);
  742. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val);
  743. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val);
  744. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val);
  745. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val);
  746. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val);
  747. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val);
  748. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val);
  749. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val);
  750. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val);
  751. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val);
  752. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val);
  753. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val);
  754. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val);
  755. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val);
  756. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val);
  757. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val);
  758. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val);
  759. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val);
  760. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val);
  761. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val);
  762. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val);
  763. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val);
  764. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val);
  765. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val);
  766. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val);
  767. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val);
  768. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val);
  769. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val);
  770. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val);
  771. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val);
  772. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val);
  773. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val);
  774. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val);
  775. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val);
  776. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val);
  777. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val);
  778. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val);
  779. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val);
  780. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val);
  781. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val);
  782. static void ASN1CALL ASN1Free_LocationConfirm(LocationConfirm *val);
  783. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val);
  784. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val);
  785. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val);
  786. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val);
  787. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val);
  788. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val);
  789. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val);
  790. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val);
  791. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val);
  792. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val);
  793. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val);
  794. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val);
  795. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val);
  796. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val);
  797. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val);
  798. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val);
  799. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val);
  800. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val);
  801. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val);
  802. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val);
  803. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val);
  804. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val);
  805. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val);
  806. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val);
  807. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val);
  808. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val);
  809. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val);
  810. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val);
  811. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val);
  812. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val);
  813. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val);
  814. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val);
  815. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val);
  816. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val);
  817. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val);
  818. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val);
  819. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val);
  820. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val);
  821. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val);
  822. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val);
  823. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val);
  824. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val);
  825. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val);
  826. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val);
  827. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val);
  828. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val);
  829. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val);
  830. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val);
  831. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val);
  832. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val);
  833. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val);
  834. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val);
  835. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val);
  836. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val);
  837. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val);
  838. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val);
  839. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val);
  840. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val);
  841. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val);
  842. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val);
  843. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val);
  844. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val);
  845. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val);
  846. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val);
  847. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val);
  848. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val);
  849. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val);
  850. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val);
  851. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val);
  852. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val);
  853. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val);
  854. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val);
  855. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val);
  856. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val);
  857. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val);
  858. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val);
  859. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val);
  860. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val);
  861. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val);
  862. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val);
  863. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val);
  864. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val);
  865. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val);
  866. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val);
  867. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val);
  868. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val);
  869. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val);
  870. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val);
  871. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val);
  872. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val);
  873. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val);
  874. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val);
  875. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val);
  876. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val);
  877. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val);
  878. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val);
  879. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val);
  880. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val);
  881. typedef ASN1PerEncFun_t ASN1EncFun_t;
  882. static const ASN1EncFun_t encfntab[2] = {
  883. (ASN1EncFun_t) ASN1Enc_RasMessage,
  884. (ASN1EncFun_t) ASN1Enc_H323_UserInformation,
  885. };
  886. typedef ASN1PerDecFun_t ASN1DecFun_t;
  887. static const ASN1DecFun_t decfntab[2] = {
  888. (ASN1DecFun_t) ASN1Dec_RasMessage,
  889. (ASN1DecFun_t) ASN1Dec_H323_UserInformation,
  890. };
  891. static const ASN1FreeFun_t freefntab[2] = {
  892. (ASN1FreeFun_t) ASN1Free_RasMessage,
  893. (ASN1FreeFun_t) ASN1Free_H323_UserInformation,
  894. };
  895. static const ULONG sizetab[2] = {
  896. SIZE_H225PP_Module_PDU_0,
  897. SIZE_H225PP_Module_PDU_1,
  898. };
  899. /* forward declarations of values: */
  900. /* definitions of value components: */
  901. /* definitions of values: */
  902. void ASN1CALL H225PP_Module_Startup(void)
  903. {
  904. H225PP_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 H225PP_Module_Cleanup(void)
  907. {
  908. ASN1_CloseModule(H225PP_Module);
  909. H225PP_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. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4299. return 0;
  4300. return 1;
  4301. }
  4302. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val)
  4303. {
  4304. if (val) {
  4305. }
  4306. }
  4307. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val)
  4308. {
  4309. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4310. return 0;
  4311. switch ((val)->choice) {
  4312. case 1:
  4313. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4314. return 0;
  4315. break;
  4316. case 2:
  4317. break;
  4318. case 3:
  4319. break;
  4320. default:
  4321. /* impossible */
  4322. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4323. return 0;
  4324. }
  4325. return 1;
  4326. }
  4327. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val)
  4328. {
  4329. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4330. return 0;
  4331. switch ((val)->choice) {
  4332. case 1:
  4333. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4334. return 0;
  4335. break;
  4336. case 2:
  4337. break;
  4338. case 3:
  4339. break;
  4340. case 0:
  4341. /* extension case */
  4342. if (!ASN1PERDecSkipFragmented(dec, 8))
  4343. return 0;
  4344. break;
  4345. default:
  4346. /* impossible */
  4347. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4348. return 0;
  4349. }
  4350. return 1;
  4351. }
  4352. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val)
  4353. {
  4354. if (val) {
  4355. switch ((val)->choice) {
  4356. case 1:
  4357. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4358. break;
  4359. }
  4360. }
  4361. }
  4362. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val)
  4363. {
  4364. if (!ASN1PEREncExtensionBitClear(enc))
  4365. return 0;
  4366. if (!ASN1PEREncBits(enc, 1, (val)->o))
  4367. return 0;
  4368. if ((val)->o[0] & 0x80) {
  4369. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandard))
  4370. return 0;
  4371. }
  4372. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->encryption))
  4373. return 0;
  4374. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->authenticaton))
  4375. return 0;
  4376. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->integrity))
  4377. return 0;
  4378. return 1;
  4379. }
  4380. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val)
  4381. {
  4382. ASN1uint32_t y;
  4383. if (!ASN1PERDecExtensionBit(dec, &y))
  4384. return 0;
  4385. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4386. return 0;
  4387. if ((val)->o[0] & 0x80) {
  4388. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandard))
  4389. return 0;
  4390. }
  4391. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->encryption))
  4392. return 0;
  4393. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->authenticaton))
  4394. return 0;
  4395. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->integrity))
  4396. return 0;
  4397. if (y) {
  4398. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4399. return 0;
  4400. }
  4401. return 1;
  4402. }
  4403. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val)
  4404. {
  4405. if (val) {
  4406. if ((val)->o[0] & 0x80) {
  4407. ASN1Free_H225NonStandardParameter(&(val)->nonStandard);
  4408. }
  4409. ASN1Free_SecurityServiceMode(&(val)->encryption);
  4410. ASN1Free_SecurityServiceMode(&(val)->authenticaton);
  4411. ASN1Free_SecurityServiceMode(&(val)->integrity);
  4412. }
  4413. }
  4414. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val)
  4415. {
  4416. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4417. return 0;
  4418. switch ((val)->choice) {
  4419. case 1:
  4420. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4421. return 0;
  4422. break;
  4423. case 2:
  4424. break;
  4425. case 3:
  4426. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.tls))
  4427. return 0;
  4428. break;
  4429. case 4:
  4430. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.ipsec))
  4431. return 0;
  4432. break;
  4433. default:
  4434. /* impossible */
  4435. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4436. return 0;
  4437. }
  4438. return 1;
  4439. }
  4440. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val)
  4441. {
  4442. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4443. return 0;
  4444. switch ((val)->choice) {
  4445. case 1:
  4446. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4447. return 0;
  4448. break;
  4449. case 2:
  4450. break;
  4451. case 3:
  4452. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.tls))
  4453. return 0;
  4454. break;
  4455. case 4:
  4456. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.ipsec))
  4457. return 0;
  4458. break;
  4459. case 0:
  4460. /* extension case */
  4461. if (!ASN1PERDecSkipFragmented(dec, 8))
  4462. return 0;
  4463. break;
  4464. default:
  4465. /* impossible */
  4466. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4467. return 0;
  4468. }
  4469. return 1;
  4470. }
  4471. static void ASN1CALL ASN1Free_H245Security(H245Security *val)
  4472. {
  4473. if (val) {
  4474. switch ((val)->choice) {
  4475. case 1:
  4476. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4477. break;
  4478. case 3:
  4479. ASN1Free_SecurityCapabilities(&(val)->u.tls);
  4480. break;
  4481. case 4:
  4482. ASN1Free_SecurityCapabilities(&(val)->u.ipsec);
  4483. break;
  4484. }
  4485. }
  4486. }
  4487. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val)
  4488. {
  4489. if (!ASN1PEREncExtensionBitClear(enc))
  4490. return 0;
  4491. if (!ASN1PEREncBoolean(enc, (val)->q932Full))
  4492. return 0;
  4493. if (!ASN1PEREncBoolean(enc, (val)->q951Full))
  4494. return 0;
  4495. if (!ASN1PEREncBoolean(enc, (val)->q952Full))
  4496. return 0;
  4497. if (!ASN1PEREncBoolean(enc, (val)->q953Full))
  4498. return 0;
  4499. if (!ASN1PEREncBoolean(enc, (val)->q955Full))
  4500. return 0;
  4501. if (!ASN1PEREncBoolean(enc, (val)->q956Full))
  4502. return 0;
  4503. if (!ASN1PEREncBoolean(enc, (val)->q957Full))
  4504. return 0;
  4505. if (!ASN1Enc_Q954Details(enc, &(val)->q954Info))
  4506. return 0;
  4507. return 1;
  4508. }
  4509. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val)
  4510. {
  4511. ASN1uint32_t y;
  4512. if (!ASN1PERDecExtensionBit(dec, &y))
  4513. return 0;
  4514. if (!ASN1PERDecBoolean(dec, &(val)->q932Full))
  4515. return 0;
  4516. if (!ASN1PERDecBoolean(dec, &(val)->q951Full))
  4517. return 0;
  4518. if (!ASN1PERDecBoolean(dec, &(val)->q952Full))
  4519. return 0;
  4520. if (!ASN1PERDecBoolean(dec, &(val)->q953Full))
  4521. return 0;
  4522. if (!ASN1PERDecBoolean(dec, &(val)->q955Full))
  4523. return 0;
  4524. if (!ASN1PERDecBoolean(dec, &(val)->q956Full))
  4525. return 0;
  4526. if (!ASN1PERDecBoolean(dec, &(val)->q957Full))
  4527. return 0;
  4528. if (!ASN1Dec_Q954Details(dec, &(val)->q954Info))
  4529. return 0;
  4530. if (y) {
  4531. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4532. return 0;
  4533. }
  4534. return 1;
  4535. }
  4536. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val)
  4537. {
  4538. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  4539. return 0;
  4540. switch ((val)->choice) {
  4541. case 1:
  4542. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4543. return 0;
  4544. break;
  4545. case 2:
  4546. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.isoAlgorithm))
  4547. return 0;
  4548. break;
  4549. default:
  4550. /* impossible */
  4551. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4552. return 0;
  4553. }
  4554. return 1;
  4555. }
  4556. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val)
  4557. {
  4558. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  4559. return 0;
  4560. switch ((val)->choice) {
  4561. case 1:
  4562. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4563. return 0;
  4564. break;
  4565. case 2:
  4566. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.isoAlgorithm))
  4567. return 0;
  4568. break;
  4569. case 0:
  4570. /* extension case */
  4571. if (!ASN1PERDecSkipFragmented(dec, 8))
  4572. return 0;
  4573. break;
  4574. default:
  4575. /* impossible */
  4576. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4577. return 0;
  4578. }
  4579. return 1;
  4580. }
  4581. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val)
  4582. {
  4583. if (val) {
  4584. switch ((val)->choice) {
  4585. case 1:
  4586. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4587. break;
  4588. case 2:
  4589. ASN1objectidentifier_free(&(val)->u.isoAlgorithm);
  4590. break;
  4591. }
  4592. }
  4593. }
  4594. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val)
  4595. {
  4596. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4597. return 0;
  4598. switch ((val)->choice) {
  4599. case 1:
  4600. break;
  4601. case 2:
  4602. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_s))
  4603. return 0;
  4604. break;
  4605. case 3:
  4606. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_l))
  4607. return 0;
  4608. break;
  4609. case 4:
  4610. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.hMAC_iso10118_3))
  4611. return 0;
  4612. break;
  4613. default:
  4614. /* impossible */
  4615. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4616. return 0;
  4617. }
  4618. return 1;
  4619. }
  4620. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val)
  4621. {
  4622. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4623. return 0;
  4624. switch ((val)->choice) {
  4625. case 1:
  4626. break;
  4627. case 2:
  4628. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_s))
  4629. return 0;
  4630. break;
  4631. case 3:
  4632. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_l))
  4633. return 0;
  4634. break;
  4635. case 4:
  4636. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.hMAC_iso10118_3))
  4637. return 0;
  4638. break;
  4639. case 0:
  4640. /* extension case */
  4641. if (!ASN1PERDecSkipFragmented(dec, 8))
  4642. return 0;
  4643. break;
  4644. default:
  4645. /* impossible */
  4646. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4647. return 0;
  4648. }
  4649. return 1;
  4650. }
  4651. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val)
  4652. {
  4653. if (val) {
  4654. switch ((val)->choice) {
  4655. case 2:
  4656. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_s);
  4657. break;
  4658. case 3:
  4659. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_l);
  4660. break;
  4661. case 4:
  4662. ASN1objectidentifier_free(&(val)->u.hMAC_iso10118_3);
  4663. break;
  4664. }
  4665. }
  4666. }
  4667. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val)
  4668. {
  4669. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4670. return 0;
  4671. switch ((val)->choice) {
  4672. case 1:
  4673. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4674. return 0;
  4675. break;
  4676. case 2:
  4677. break;
  4678. case 3:
  4679. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.iso9797))
  4680. return 0;
  4681. break;
  4682. case 4:
  4683. if (!ASN1Enc_NonIsoIntegrityMechanism(enc, &(val)->u.nonIsoIM))
  4684. return 0;
  4685. break;
  4686. default:
  4687. /* impossible */
  4688. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4689. return 0;
  4690. }
  4691. return 1;
  4692. }
  4693. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val)
  4694. {
  4695. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4696. return 0;
  4697. switch ((val)->choice) {
  4698. case 1:
  4699. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4700. return 0;
  4701. break;
  4702. case 2:
  4703. break;
  4704. case 3:
  4705. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.iso9797))
  4706. return 0;
  4707. break;
  4708. case 4:
  4709. if (!ASN1Dec_NonIsoIntegrityMechanism(dec, &(val)->u.nonIsoIM))
  4710. return 0;
  4711. break;
  4712. case 0:
  4713. /* extension case */
  4714. if (!ASN1PERDecSkipFragmented(dec, 8))
  4715. return 0;
  4716. break;
  4717. default:
  4718. /* impossible */
  4719. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4720. return 0;
  4721. }
  4722. return 1;
  4723. }
  4724. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val)
  4725. {
  4726. if (val) {
  4727. switch ((val)->choice) {
  4728. case 1:
  4729. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4730. break;
  4731. case 3:
  4732. ASN1objectidentifier_free(&(val)->u.iso9797);
  4733. break;
  4734. case 4:
  4735. ASN1Free_NonIsoIntegrityMechanism(&(val)->u.nonIsoIM);
  4736. break;
  4737. }
  4738. }
  4739. }
  4740. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val)
  4741. {
  4742. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  4743. return 0;
  4744. if (!ASN1Enc_FastStartToken(enc, &(val)->type))
  4745. return 0;
  4746. return 1;
  4747. }
  4748. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val)
  4749. {
  4750. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  4751. return 0;
  4752. if (!ASN1Dec_FastStartToken(dec, &(val)->type))
  4753. return 0;
  4754. return 1;
  4755. }
  4756. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val)
  4757. {
  4758. if (val) {
  4759. ASN1objectidentifier_free(&(val)->id);
  4760. ASN1Free_FastStartToken(&(val)->type);
  4761. }
  4762. }
  4763. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val)
  4764. {
  4765. ASN1uint32_t l;
  4766. if (!ASN1PEREncExtensionBitClear(enc))
  4767. return 0;
  4768. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4769. return 0;
  4770. if ((val)->o[0] & 0x80) {
  4771. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4772. return 0;
  4773. }
  4774. l = ASN1uint32_uoctets((val)->channelRate);
  4775. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  4776. return 0;
  4777. ASN1PEREncAlignment(enc);
  4778. if (!ASN1PEREncBitVal(enc, l * 8, (val)->channelRate))
  4779. return 0;
  4780. if ((val)->o[0] & 0x40) {
  4781. ASN1PEREncAlignment(enc);
  4782. if (!ASN1PEREncBitVal(enc, 8, (val)->channelMultiplier - 1))
  4783. return 0;
  4784. }
  4785. return 1;
  4786. }
  4787. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val)
  4788. {
  4789. ASN1uint32_t y;
  4790. ASN1uint32_t l;
  4791. if (!ASN1PERDecExtensionBit(dec, &y))
  4792. return 0;
  4793. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4794. return 0;
  4795. if ((val)->o[0] & 0x80) {
  4796. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4797. return 0;
  4798. }
  4799. if (!ASN1PERDecU32Val(dec, 2, &l))
  4800. return 0;
  4801. l += 1;
  4802. ASN1PERDecAlignment(dec);
  4803. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->channelRate))
  4804. return 0;
  4805. if ((val)->o[0] & 0x40) {
  4806. ASN1PERDecAlignment(dec);
  4807. if (!ASN1PERDecU16Val(dec, 8, &(val)->channelMultiplier))
  4808. return 0;
  4809. (val)->channelMultiplier += 1;
  4810. }
  4811. if (y) {
  4812. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4813. return 0;
  4814. }
  4815. return 1;
  4816. }
  4817. static void ASN1CALL ASN1Free_DataRate(DataRate *val)
  4818. {
  4819. if (val) {
  4820. if ((val)->o[0] & 0x80) {
  4821. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4822. }
  4823. }
  4824. }
  4825. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val)
  4826. {
  4827. ASN1uint32_t y;
  4828. ASN1encoding_t ee;
  4829. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  4830. if (!ASN1PEREncBitVal(enc, 1, y))
  4831. return 0;
  4832. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4833. return 0;
  4834. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  4835. return 0;
  4836. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4837. return 0;
  4838. if ((val)->o[0] & 0x80) {
  4839. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4840. return 0;
  4841. }
  4842. if ((val)->o[0] & 0x40) {
  4843. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  4844. return 0;
  4845. ASN1PEREncAlignment(enc);
  4846. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  4847. return 0;
  4848. }
  4849. if (!ASN1Enc_GatekeeperRejectReason(enc, &(val)->rejectReason))
  4850. return 0;
  4851. if (y) {
  4852. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  4853. return 0;
  4854. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4855. return 0;
  4856. if ((val)->o[1] & 0x80) {
  4857. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  4858. return 0;
  4859. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4860. return 0;
  4861. }
  4862. if ((val)->o[1] & 0x40) {
  4863. if (!ASN1Enc_GatekeeperReject_tokens(ee, &(val)->tokens))
  4864. return 0;
  4865. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4866. return 0;
  4867. }
  4868. if ((val)->o[1] & 0x20) {
  4869. if (!ASN1Enc_GatekeeperReject_cryptoTokens(ee, &(val)->cryptoTokens))
  4870. return 0;
  4871. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4872. return 0;
  4873. }
  4874. if ((val)->o[1] & 0x10) {
  4875. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  4876. return 0;
  4877. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4878. return 0;
  4879. }
  4880. ASN1_CloseEncoder2(ee);
  4881. }
  4882. return 1;
  4883. }
  4884. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val)
  4885. {
  4886. ASN1uint32_t y;
  4887. ASN1decoding_t dd;
  4888. ASN1octet_t *db;
  4889. ASN1uint32_t ds;
  4890. ASN1uint32_t i;
  4891. ASN1uint32_t e;
  4892. if (!ASN1PERDecExtensionBit(dec, &y))
  4893. return 0;
  4894. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4895. return 0;
  4896. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  4897. return 0;
  4898. (val)->requestSeqNum += 1;
  4899. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4900. return 0;
  4901. if ((val)->o[0] & 0x80) {
  4902. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4903. return 0;
  4904. }
  4905. if ((val)->o[0] & 0x40) {
  4906. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  4907. return 0;
  4908. ((val)->gatekeeperIdentifier).length += 1;
  4909. ASN1PERDecAlignment(dec);
  4910. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  4911. return 0;
  4912. }
  4913. if (!ASN1Dec_GatekeeperRejectReason(dec, &(val)->rejectReason))
  4914. return 0;
  4915. if (!y) {
  4916. ZeroMemory((val)->o + 1, 1);
  4917. } else {
  4918. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  4919. return 0;
  4920. if ((val)->o[1] & 0x80) {
  4921. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4922. return 0;
  4923. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4924. return 0;
  4925. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  4926. return 0;
  4927. ASN1_CloseDecoder(dd);
  4928. ASN1Free(db);
  4929. }
  4930. if ((val)->o[1] & 0x40) {
  4931. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4932. return 0;
  4933. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4934. return 0;
  4935. if (!ASN1Dec_GatekeeperReject_tokens(dd, &(val)->tokens))
  4936. return 0;
  4937. ASN1_CloseDecoder(dd);
  4938. ASN1Free(db);
  4939. }
  4940. if ((val)->o[1] & 0x20) {
  4941. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4942. return 0;
  4943. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4944. return 0;
  4945. if (!ASN1Dec_GatekeeperReject_cryptoTokens(dd, &(val)->cryptoTokens))
  4946. return 0;
  4947. ASN1_CloseDecoder(dd);
  4948. ASN1Free(db);
  4949. }
  4950. if ((val)->o[1] & 0x10) {
  4951. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4952. return 0;
  4953. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4954. return 0;
  4955. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  4956. return 0;
  4957. ASN1_CloseDecoder(dd);
  4958. ASN1Free(db);
  4959. }
  4960. for (i = 0; i < e; i++) {
  4961. if (!ASN1PERDecSkipFragmented(dec, 8))
  4962. return 0;
  4963. }
  4964. }
  4965. return 1;
  4966. }
  4967. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val)
  4968. {
  4969. if (val) {
  4970. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4971. if ((val)->o[0] & 0x80) {
  4972. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4973. }
  4974. if ((val)->o[0] & 0x40) {
  4975. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  4976. }
  4977. if ((val)->o[1] & 0x80) {
  4978. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  4979. }
  4980. if ((val)->o[1] & 0x40) {
  4981. ASN1Free_GatekeeperReject_tokens(&(val)->tokens);
  4982. }
  4983. if ((val)->o[1] & 0x20) {
  4984. ASN1Free_GatekeeperReject_cryptoTokens(&(val)->cryptoTokens);
  4985. }
  4986. if ((val)->o[1] & 0x10) {
  4987. ASN1Free_ICV(&(val)->integrityCheckValue);
  4988. }
  4989. }
  4990. }
  4991. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val)
  4992. {
  4993. ASN1octet_t o[2];
  4994. ASN1uint32_t y;
  4995. ASN1encoding_t ee;
  4996. ASN1uint32_t l;
  4997. CopyMemory(o, (val)->o, 2);
  4998. o[1] |= 0x4;
  4999. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  5000. if (!ASN1PEREncBitVal(enc, 1, y))
  5001. return 0;
  5002. if (!ASN1PEREncBits(enc, 3, o))
  5003. return 0;
  5004. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5005. return 0;
  5006. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5007. return 0;
  5008. if (o[0] & 0x80) {
  5009. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5010. return 0;
  5011. }
  5012. if (!ASN1Enc_RegistrationConfirm_callSignalAddress(enc, &(val)->callSignalAddress))
  5013. return 0;
  5014. if (o[0] & 0x40) {
  5015. if (!ASN1Enc_RegistrationConfirm_terminalAlias(enc, &(val)->terminalAlias))
  5016. return 0;
  5017. }
  5018. if (o[0] & 0x20) {
  5019. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5020. return 0;
  5021. ASN1PEREncAlignment(enc);
  5022. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5023. return 0;
  5024. }
  5025. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5026. return 0;
  5027. ASN1PEREncAlignment(enc);
  5028. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5029. return 0;
  5030. if (y) {
  5031. if (!ASN1PEREncNormallySmallBits(enc, 7, o + 1))
  5032. return 0;
  5033. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5034. return 0;
  5035. if (o[1] & 0x80) {
  5036. if (!ASN1Enc_RegistrationConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  5037. return 0;
  5038. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5039. return 0;
  5040. }
  5041. if (o[1] & 0x40) {
  5042. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  5043. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  5044. return 0;
  5045. ASN1PEREncAlignment(ee);
  5046. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  5047. return 0;
  5048. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5049. return 0;
  5050. }
  5051. if (o[1] & 0x20) {
  5052. if (!ASN1Enc_RegistrationConfirm_tokens(ee, &(val)->tokens))
  5053. return 0;
  5054. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5055. return 0;
  5056. }
  5057. if (o[1] & 0x10) {
  5058. if (!ASN1Enc_RegistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5059. return 0;
  5060. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5061. return 0;
  5062. }
  5063. if (o[1] & 0x8) {
  5064. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5065. return 0;
  5066. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5067. return 0;
  5068. }
  5069. if (o[1] & 0x4) {
  5070. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  5071. return 0;
  5072. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5073. return 0;
  5074. }
  5075. if (o[1] & 0x2) {
  5076. if (!ASN1Enc_RegistrationConfirm_preGrantedARQ(ee, &(val)->preGrantedARQ))
  5077. return 0;
  5078. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5079. return 0;
  5080. }
  5081. ASN1_CloseEncoder2(ee);
  5082. }
  5083. return 1;
  5084. }
  5085. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val)
  5086. {
  5087. ASN1uint32_t y;
  5088. ASN1decoding_t dd;
  5089. ASN1octet_t *db;
  5090. ASN1uint32_t ds;
  5091. ASN1uint32_t l;
  5092. ASN1uint32_t i;
  5093. ASN1uint32_t e;
  5094. if (!ASN1PERDecExtensionBit(dec, &y))
  5095. return 0;
  5096. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5097. return 0;
  5098. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5099. return 0;
  5100. (val)->requestSeqNum += 1;
  5101. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5102. return 0;
  5103. if ((val)->o[0] & 0x80) {
  5104. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5105. return 0;
  5106. }
  5107. if (!ASN1Dec_RegistrationConfirm_callSignalAddress(dec, &(val)->callSignalAddress))
  5108. return 0;
  5109. if ((val)->o[0] & 0x40) {
  5110. if (!ASN1Dec_RegistrationConfirm_terminalAlias(dec, &(val)->terminalAlias))
  5111. return 0;
  5112. }
  5113. if ((val)->o[0] & 0x20) {
  5114. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5115. return 0;
  5116. ((val)->gatekeeperIdentifier).length += 1;
  5117. ASN1PERDecAlignment(dec);
  5118. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5119. return 0;
  5120. }
  5121. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5122. return 0;
  5123. ((val)->endpointIdentifier).length += 1;
  5124. ASN1PERDecAlignment(dec);
  5125. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5126. return 0;
  5127. if (!y) {
  5128. ZeroMemory((val)->o + 1, 1);
  5129. } else {
  5130. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  5131. return 0;
  5132. if ((val)->o[1] & 0x80) {
  5133. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5134. return 0;
  5135. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5136. return 0;
  5137. if (!ASN1Dec_RegistrationConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  5138. return 0;
  5139. ASN1_CloseDecoder(dd);
  5140. ASN1Free(db);
  5141. }
  5142. if ((val)->o[1] & 0x40) {
  5143. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5144. return 0;
  5145. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5146. return 0;
  5147. if (!ASN1PERDecU32Val(dd, 2, &l))
  5148. return 0;
  5149. l += 1;
  5150. ASN1PERDecAlignment(dd);
  5151. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  5152. return 0;
  5153. (val)->timeToLive += 1;
  5154. ASN1_CloseDecoder(dd);
  5155. ASN1Free(db);
  5156. }
  5157. if ((val)->o[1] & 0x20) {
  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_tokens(dd, &(val)->tokens))
  5163. return 0;
  5164. ASN1_CloseDecoder(dd);
  5165. ASN1Free(db);
  5166. }
  5167. if ((val)->o[1] & 0x10) {
  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 (!ASN1Dec_RegistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5173. return 0;
  5174. ASN1_CloseDecoder(dd);
  5175. ASN1Free(db);
  5176. }
  5177. if ((val)->o[1] & 0x8) {
  5178. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5179. return 0;
  5180. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5181. return 0;
  5182. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5183. return 0;
  5184. ASN1_CloseDecoder(dd);
  5185. ASN1Free(db);
  5186. }
  5187. if ((val)->o[1] & 0x4) {
  5188. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5189. return 0;
  5190. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5191. return 0;
  5192. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  5193. return 0;
  5194. ASN1_CloseDecoder(dd);
  5195. ASN1Free(db);
  5196. }
  5197. if ((val)->o[1] & 0x2) {
  5198. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5199. return 0;
  5200. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5201. return 0;
  5202. if (!ASN1Dec_RegistrationConfirm_preGrantedARQ(dd, &(val)->preGrantedARQ))
  5203. return 0;
  5204. ASN1_CloseDecoder(dd);
  5205. ASN1Free(db);
  5206. }
  5207. for (i = 0; i < e; i++) {
  5208. if (!ASN1PERDecSkipFragmented(dec, 8))
  5209. return 0;
  5210. }
  5211. }
  5212. return 1;
  5213. }
  5214. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val)
  5215. {
  5216. if (val) {
  5217. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5218. if ((val)->o[0] & 0x80) {
  5219. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5220. }
  5221. ASN1Free_RegistrationConfirm_callSignalAddress(&(val)->callSignalAddress);
  5222. if ((val)->o[0] & 0x40) {
  5223. ASN1Free_RegistrationConfirm_terminalAlias(&(val)->terminalAlias);
  5224. }
  5225. if ((val)->o[0] & 0x20) {
  5226. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5227. }
  5228. ASN1char16string_free(&(val)->endpointIdentifier);
  5229. if ((val)->o[1] & 0x80) {
  5230. ASN1Free_RegistrationConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  5231. }
  5232. if ((val)->o[1] & 0x20) {
  5233. ASN1Free_RegistrationConfirm_tokens(&(val)->tokens);
  5234. }
  5235. if ((val)->o[1] & 0x10) {
  5236. ASN1Free_RegistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5237. }
  5238. if ((val)->o[1] & 0x8) {
  5239. ASN1Free_ICV(&(val)->integrityCheckValue);
  5240. }
  5241. }
  5242. }
  5243. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val)
  5244. {
  5245. ASN1uint32_t y;
  5246. ASN1encoding_t ee;
  5247. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5248. if (!ASN1PEREncBitVal(enc, 1, y))
  5249. return 0;
  5250. if (!ASN1PEREncBits(enc, 2, (val)->o))
  5251. return 0;
  5252. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5253. return 0;
  5254. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5255. return 0;
  5256. if ((val)->o[0] & 0x80) {
  5257. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5258. return 0;
  5259. }
  5260. if (!ASN1Enc_RegistrationRejectReason(enc, &(val)->rejectReason))
  5261. return 0;
  5262. if ((val)->o[0] & 0x40) {
  5263. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5264. return 0;
  5265. ASN1PEREncAlignment(enc);
  5266. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5267. return 0;
  5268. }
  5269. if (y) {
  5270. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5271. return 0;
  5272. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5273. return 0;
  5274. if ((val)->o[1] & 0x80) {
  5275. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5276. return 0;
  5277. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5278. return 0;
  5279. }
  5280. if ((val)->o[1] & 0x40) {
  5281. if (!ASN1Enc_RegistrationReject_tokens(ee, &(val)->tokens))
  5282. return 0;
  5283. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5284. return 0;
  5285. }
  5286. if ((val)->o[1] & 0x20) {
  5287. if (!ASN1Enc_RegistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5288. return 0;
  5289. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5290. return 0;
  5291. }
  5292. if ((val)->o[1] & 0x10) {
  5293. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5294. return 0;
  5295. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5296. return 0;
  5297. }
  5298. ASN1_CloseEncoder2(ee);
  5299. }
  5300. return 1;
  5301. }
  5302. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val)
  5303. {
  5304. ASN1uint32_t y;
  5305. ASN1decoding_t dd;
  5306. ASN1octet_t *db;
  5307. ASN1uint32_t ds;
  5308. ASN1uint32_t i;
  5309. ASN1uint32_t e;
  5310. if (!ASN1PERDecExtensionBit(dec, &y))
  5311. return 0;
  5312. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  5313. return 0;
  5314. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5315. return 0;
  5316. (val)->requestSeqNum += 1;
  5317. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5318. return 0;
  5319. if ((val)->o[0] & 0x80) {
  5320. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5321. return 0;
  5322. }
  5323. if (!ASN1Dec_RegistrationRejectReason(dec, &(val)->rejectReason))
  5324. return 0;
  5325. if ((val)->o[0] & 0x40) {
  5326. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5327. return 0;
  5328. ((val)->gatekeeperIdentifier).length += 1;
  5329. ASN1PERDecAlignment(dec);
  5330. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5331. return 0;
  5332. }
  5333. if (!y) {
  5334. ZeroMemory((val)->o + 1, 1);
  5335. } else {
  5336. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5337. return 0;
  5338. if ((val)->o[1] & 0x80) {
  5339. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5340. return 0;
  5341. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5342. return 0;
  5343. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5344. return 0;
  5345. ASN1_CloseDecoder(dd);
  5346. ASN1Free(db);
  5347. }
  5348. if ((val)->o[1] & 0x40) {
  5349. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5350. return 0;
  5351. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5352. return 0;
  5353. if (!ASN1Dec_RegistrationReject_tokens(dd, &(val)->tokens))
  5354. return 0;
  5355. ASN1_CloseDecoder(dd);
  5356. ASN1Free(db);
  5357. }
  5358. if ((val)->o[1] & 0x20) {
  5359. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5360. return 0;
  5361. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5362. return 0;
  5363. if (!ASN1Dec_RegistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5364. return 0;
  5365. ASN1_CloseDecoder(dd);
  5366. ASN1Free(db);
  5367. }
  5368. if ((val)->o[1] & 0x10) {
  5369. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5370. return 0;
  5371. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5372. return 0;
  5373. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5374. return 0;
  5375. ASN1_CloseDecoder(dd);
  5376. ASN1Free(db);
  5377. }
  5378. for (i = 0; i < e; i++) {
  5379. if (!ASN1PERDecSkipFragmented(dec, 8))
  5380. return 0;
  5381. }
  5382. }
  5383. return 1;
  5384. }
  5385. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val)
  5386. {
  5387. if (val) {
  5388. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5389. if ((val)->o[0] & 0x80) {
  5390. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5391. }
  5392. ASN1Free_RegistrationRejectReason(&(val)->rejectReason);
  5393. if ((val)->o[0] & 0x40) {
  5394. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5395. }
  5396. if ((val)->o[1] & 0x80) {
  5397. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5398. }
  5399. if ((val)->o[1] & 0x40) {
  5400. ASN1Free_RegistrationReject_tokens(&(val)->tokens);
  5401. }
  5402. if ((val)->o[1] & 0x20) {
  5403. ASN1Free_RegistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5404. }
  5405. if ((val)->o[1] & 0x10) {
  5406. ASN1Free_ICV(&(val)->integrityCheckValue);
  5407. }
  5408. }
  5409. }
  5410. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val)
  5411. {
  5412. ASN1uint32_t y;
  5413. ASN1encoding_t ee;
  5414. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  5415. if (!ASN1PEREncBitVal(enc, 1, y))
  5416. return 0;
  5417. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5418. return 0;
  5419. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5420. return 0;
  5421. if (!ASN1Enc_UnregistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  5422. return 0;
  5423. if ((val)->o[0] & 0x80) {
  5424. if (!ASN1Enc_UnregistrationRequest_endpointAlias(enc, &(val)->endpointAlias))
  5425. return 0;
  5426. }
  5427. if ((val)->o[0] & 0x40) {
  5428. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5429. return 0;
  5430. }
  5431. if ((val)->o[0] & 0x20) {
  5432. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5433. return 0;
  5434. ASN1PEREncAlignment(enc);
  5435. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5436. return 0;
  5437. }
  5438. if (y) {
  5439. if (!ASN1PEREncNormallySmallBits(enc, 6, (val)->o + 1))
  5440. return 0;
  5441. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5442. return 0;
  5443. if ((val)->o[1] & 0x80) {
  5444. if (!ASN1Enc_UnregistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  5445. return 0;
  5446. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5447. return 0;
  5448. }
  5449. if ((val)->o[1] & 0x40) {
  5450. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  5451. return 0;
  5452. ASN1PEREncAlignment(ee);
  5453. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5454. return 0;
  5455. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5456. return 0;
  5457. }
  5458. if ((val)->o[1] & 0x20) {
  5459. if (!ASN1Enc_UnregistrationRequest_tokens(ee, &(val)->tokens))
  5460. return 0;
  5461. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5462. return 0;
  5463. }
  5464. if ((val)->o[1] & 0x10) {
  5465. if (!ASN1Enc_UnregistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  5466. return 0;
  5467. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5468. return 0;
  5469. }
  5470. if ((val)->o[1] & 0x8) {
  5471. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5472. return 0;
  5473. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5474. return 0;
  5475. }
  5476. if ((val)->o[1] & 0x4) {
  5477. if (!ASN1Enc_UnregRequestReason(ee, &(val)->reason))
  5478. return 0;
  5479. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5480. return 0;
  5481. }
  5482. ASN1_CloseEncoder2(ee);
  5483. }
  5484. return 1;
  5485. }
  5486. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val)
  5487. {
  5488. ASN1uint32_t y;
  5489. ASN1decoding_t dd;
  5490. ASN1octet_t *db;
  5491. ASN1uint32_t ds;
  5492. ASN1uint32_t i;
  5493. ASN1uint32_t e;
  5494. if (!ASN1PERDecExtensionBit(dec, &y))
  5495. return 0;
  5496. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5497. return 0;
  5498. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5499. return 0;
  5500. (val)->requestSeqNum += 1;
  5501. if (!ASN1Dec_UnregistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  5502. return 0;
  5503. if ((val)->o[0] & 0x80) {
  5504. if (!ASN1Dec_UnregistrationRequest_endpointAlias(dec, &(val)->endpointAlias))
  5505. return 0;
  5506. }
  5507. if ((val)->o[0] & 0x40) {
  5508. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5509. return 0;
  5510. }
  5511. if ((val)->o[0] & 0x20) {
  5512. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5513. return 0;
  5514. ((val)->endpointIdentifier).length += 1;
  5515. ASN1PERDecAlignment(dec);
  5516. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5517. return 0;
  5518. }
  5519. if (!y) {
  5520. ZeroMemory((val)->o + 1, 1);
  5521. } else {
  5522. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  5523. return 0;
  5524. if ((val)->o[1] & 0x80) {
  5525. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5526. return 0;
  5527. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5528. return 0;
  5529. if (!ASN1Dec_UnregistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  5530. return 0;
  5531. ASN1_CloseDecoder(dd);
  5532. ASN1Free(db);
  5533. }
  5534. if ((val)->o[1] & 0x40) {
  5535. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5536. return 0;
  5537. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5538. return 0;
  5539. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  5540. return 0;
  5541. ((val)->gatekeeperIdentifier).length += 1;
  5542. ASN1PERDecAlignment(dd);
  5543. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5544. return 0;
  5545. ASN1_CloseDecoder(dd);
  5546. ASN1Free(db);
  5547. }
  5548. if ((val)->o[1] & 0x20) {
  5549. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5550. return 0;
  5551. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5552. return 0;
  5553. if (!ASN1Dec_UnregistrationRequest_tokens(dd, &(val)->tokens))
  5554. return 0;
  5555. ASN1_CloseDecoder(dd);
  5556. ASN1Free(db);
  5557. }
  5558. if ((val)->o[1] & 0x10) {
  5559. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5560. return 0;
  5561. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5562. return 0;
  5563. if (!ASN1Dec_UnregistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  5564. return 0;
  5565. ASN1_CloseDecoder(dd);
  5566. ASN1Free(db);
  5567. }
  5568. if ((val)->o[1] & 0x8) {
  5569. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5570. return 0;
  5571. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5572. return 0;
  5573. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5574. return 0;
  5575. ASN1_CloseDecoder(dd);
  5576. ASN1Free(db);
  5577. }
  5578. if ((val)->o[1] & 0x4) {
  5579. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5580. return 0;
  5581. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5582. return 0;
  5583. if (!ASN1Dec_UnregRequestReason(dd, &(val)->reason))
  5584. return 0;
  5585. ASN1_CloseDecoder(dd);
  5586. ASN1Free(db);
  5587. }
  5588. for (i = 0; i < e; i++) {
  5589. if (!ASN1PERDecSkipFragmented(dec, 8))
  5590. return 0;
  5591. }
  5592. }
  5593. return 1;
  5594. }
  5595. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val)
  5596. {
  5597. if (val) {
  5598. ASN1Free_UnregistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  5599. if ((val)->o[0] & 0x80) {
  5600. ASN1Free_UnregistrationRequest_endpointAlias(&(val)->endpointAlias);
  5601. }
  5602. if ((val)->o[0] & 0x40) {
  5603. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5604. }
  5605. if ((val)->o[0] & 0x20) {
  5606. ASN1char16string_free(&(val)->endpointIdentifier);
  5607. }
  5608. if ((val)->o[1] & 0x80) {
  5609. ASN1Free_UnregistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  5610. }
  5611. if ((val)->o[1] & 0x40) {
  5612. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5613. }
  5614. if ((val)->o[1] & 0x20) {
  5615. ASN1Free_UnregistrationRequest_tokens(&(val)->tokens);
  5616. }
  5617. if ((val)->o[1] & 0x10) {
  5618. ASN1Free_UnregistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  5619. }
  5620. if ((val)->o[1] & 0x8) {
  5621. ASN1Free_ICV(&(val)->integrityCheckValue);
  5622. }
  5623. }
  5624. }
  5625. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val)
  5626. {
  5627. ASN1uint32_t y;
  5628. ASN1encoding_t ee;
  5629. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  5630. if (!ASN1PEREncBitVal(enc, 1, y))
  5631. return 0;
  5632. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5633. return 0;
  5634. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5635. return 0;
  5636. if ((val)->o[0] & 0x80) {
  5637. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5638. return 0;
  5639. }
  5640. if (y) {
  5641. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  5642. return 0;
  5643. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5644. return 0;
  5645. if ((val)->o[1] & 0x80) {
  5646. if (!ASN1Enc_UnregistrationConfirm_tokens(ee, &(val)->tokens))
  5647. return 0;
  5648. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5649. return 0;
  5650. }
  5651. if ((val)->o[1] & 0x40) {
  5652. if (!ASN1Enc_UnregistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5653. return 0;
  5654. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5655. return 0;
  5656. }
  5657. if ((val)->o[1] & 0x20) {
  5658. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5659. return 0;
  5660. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5661. return 0;
  5662. }
  5663. ASN1_CloseEncoder2(ee);
  5664. }
  5665. return 1;
  5666. }
  5667. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val)
  5668. {
  5669. ASN1uint32_t y;
  5670. ASN1decoding_t dd;
  5671. ASN1octet_t *db;
  5672. ASN1uint32_t ds;
  5673. ASN1uint32_t i;
  5674. ASN1uint32_t e;
  5675. if (!ASN1PERDecExtensionBit(dec, &y))
  5676. return 0;
  5677. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5678. return 0;
  5679. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5680. return 0;
  5681. (val)->requestSeqNum += 1;
  5682. if ((val)->o[0] & 0x80) {
  5683. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5684. return 0;
  5685. }
  5686. if (!y) {
  5687. ZeroMemory((val)->o + 1, 1);
  5688. } else {
  5689. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  5690. return 0;
  5691. if ((val)->o[1] & 0x80) {
  5692. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5693. return 0;
  5694. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5695. return 0;
  5696. if (!ASN1Dec_UnregistrationConfirm_tokens(dd, &(val)->tokens))
  5697. return 0;
  5698. ASN1_CloseDecoder(dd);
  5699. ASN1Free(db);
  5700. }
  5701. if ((val)->o[1] & 0x40) {
  5702. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5703. return 0;
  5704. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5705. return 0;
  5706. if (!ASN1Dec_UnregistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5707. return 0;
  5708. ASN1_CloseDecoder(dd);
  5709. ASN1Free(db);
  5710. }
  5711. if ((val)->o[1] & 0x20) {
  5712. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5713. return 0;
  5714. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5715. return 0;
  5716. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5717. return 0;
  5718. ASN1_CloseDecoder(dd);
  5719. ASN1Free(db);
  5720. }
  5721. for (i = 0; i < e; i++) {
  5722. if (!ASN1PERDecSkipFragmented(dec, 8))
  5723. return 0;
  5724. }
  5725. }
  5726. return 1;
  5727. }
  5728. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val)
  5729. {
  5730. if (val) {
  5731. if ((val)->o[0] & 0x80) {
  5732. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5733. }
  5734. if ((val)->o[1] & 0x80) {
  5735. ASN1Free_UnregistrationConfirm_tokens(&(val)->tokens);
  5736. }
  5737. if ((val)->o[1] & 0x40) {
  5738. ASN1Free_UnregistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5739. }
  5740. if ((val)->o[1] & 0x20) {
  5741. ASN1Free_ICV(&(val)->integrityCheckValue);
  5742. }
  5743. }
  5744. }
  5745. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val)
  5746. {
  5747. ASN1uint32_t y;
  5748. ASN1encoding_t ee;
  5749. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5750. if (!ASN1PEREncBitVal(enc, 1, y))
  5751. return 0;
  5752. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5753. return 0;
  5754. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5755. return 0;
  5756. if (!ASN1Enc_UnregRejectReason(enc, &(val)->rejectReason))
  5757. return 0;
  5758. if ((val)->o[0] & 0x80) {
  5759. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5760. return 0;
  5761. }
  5762. if (y) {
  5763. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5764. return 0;
  5765. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5766. return 0;
  5767. if ((val)->o[1] & 0x80) {
  5768. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5769. return 0;
  5770. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5771. return 0;
  5772. }
  5773. if ((val)->o[1] & 0x40) {
  5774. if (!ASN1Enc_UnregistrationReject_tokens(ee, &(val)->tokens))
  5775. return 0;
  5776. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5777. return 0;
  5778. }
  5779. if ((val)->o[1] & 0x20) {
  5780. if (!ASN1Enc_UnregistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5781. return 0;
  5782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5783. return 0;
  5784. }
  5785. if ((val)->o[1] & 0x10) {
  5786. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5787. return 0;
  5788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5789. return 0;
  5790. }
  5791. ASN1_CloseEncoder2(ee);
  5792. }
  5793. return 1;
  5794. }
  5795. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val)
  5796. {
  5797. ASN1uint32_t y;
  5798. ASN1decoding_t dd;
  5799. ASN1octet_t *db;
  5800. ASN1uint32_t ds;
  5801. ASN1uint32_t i;
  5802. ASN1uint32_t e;
  5803. if (!ASN1PERDecExtensionBit(dec, &y))
  5804. return 0;
  5805. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5806. return 0;
  5807. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5808. return 0;
  5809. (val)->requestSeqNum += 1;
  5810. if (!ASN1Dec_UnregRejectReason(dec, &(val)->rejectReason))
  5811. return 0;
  5812. if ((val)->o[0] & 0x80) {
  5813. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5814. return 0;
  5815. }
  5816. if (!y) {
  5817. ZeroMemory((val)->o + 1, 1);
  5818. } else {
  5819. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5820. return 0;
  5821. if ((val)->o[1] & 0x80) {
  5822. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5823. return 0;
  5824. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5825. return 0;
  5826. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5827. return 0;
  5828. ASN1_CloseDecoder(dd);
  5829. ASN1Free(db);
  5830. }
  5831. if ((val)->o[1] & 0x40) {
  5832. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5833. return 0;
  5834. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5835. return 0;
  5836. if (!ASN1Dec_UnregistrationReject_tokens(dd, &(val)->tokens))
  5837. return 0;
  5838. ASN1_CloseDecoder(dd);
  5839. ASN1Free(db);
  5840. }
  5841. if ((val)->o[1] & 0x20) {
  5842. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5843. return 0;
  5844. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5845. return 0;
  5846. if (!ASN1Dec_UnregistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5847. return 0;
  5848. ASN1_CloseDecoder(dd);
  5849. ASN1Free(db);
  5850. }
  5851. if ((val)->o[1] & 0x10) {
  5852. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5853. return 0;
  5854. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5855. return 0;
  5856. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5857. return 0;
  5858. ASN1_CloseDecoder(dd);
  5859. ASN1Free(db);
  5860. }
  5861. for (i = 0; i < e; i++) {
  5862. if (!ASN1PERDecSkipFragmented(dec, 8))
  5863. return 0;
  5864. }
  5865. }
  5866. return 1;
  5867. }
  5868. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val)
  5869. {
  5870. if (val) {
  5871. if ((val)->o[0] & 0x80) {
  5872. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5873. }
  5874. if ((val)->o[1] & 0x80) {
  5875. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5876. }
  5877. if ((val)->o[1] & 0x40) {
  5878. ASN1Free_UnregistrationReject_tokens(&(val)->tokens);
  5879. }
  5880. if ((val)->o[1] & 0x20) {
  5881. ASN1Free_UnregistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5882. }
  5883. if ((val)->o[1] & 0x10) {
  5884. ASN1Free_ICV(&(val)->integrityCheckValue);
  5885. }
  5886. }
  5887. }
  5888. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val)
  5889. {
  5890. ASN1uint32_t y;
  5891. ASN1encoding_t ee;
  5892. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  5893. if (!ASN1PEREncBitVal(enc, 1, y))
  5894. return 0;
  5895. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5896. return 0;
  5897. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5898. return 0;
  5899. if (!ASN1Enc_AdmissionRejectReason(enc, &(val)->rejectReason))
  5900. return 0;
  5901. if ((val)->o[0] & 0x80) {
  5902. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5903. return 0;
  5904. }
  5905. if (y) {
  5906. if (!ASN1PEREncNormallySmallBits(enc, 5, (val)->o + 1))
  5907. return 0;
  5908. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5909. return 0;
  5910. if ((val)->o[1] & 0x80) {
  5911. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5912. return 0;
  5913. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5914. return 0;
  5915. }
  5916. if ((val)->o[1] & 0x40) {
  5917. if (!ASN1Enc_AdmissionReject_tokens(ee, &(val)->tokens))
  5918. return 0;
  5919. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5920. return 0;
  5921. }
  5922. if ((val)->o[1] & 0x20) {
  5923. if (!ASN1Enc_AdmissionReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5924. return 0;
  5925. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5926. return 0;
  5927. }
  5928. if ((val)->o[1] & 0x10) {
  5929. if (!ASN1Enc_AdmissionReject_callSignalAddress(ee, &(val)->callSignalAddress))
  5930. return 0;
  5931. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5932. return 0;
  5933. }
  5934. if ((val)->o[1] & 0x8) {
  5935. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5936. return 0;
  5937. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5938. return 0;
  5939. }
  5940. ASN1_CloseEncoder2(ee);
  5941. }
  5942. return 1;
  5943. }
  5944. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val)
  5945. {
  5946. ASN1uint32_t y;
  5947. ASN1decoding_t dd;
  5948. ASN1octet_t *db;
  5949. ASN1uint32_t ds;
  5950. ASN1uint32_t i;
  5951. ASN1uint32_t e;
  5952. if (!ASN1PERDecExtensionBit(dec, &y))
  5953. return 0;
  5954. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5955. return 0;
  5956. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5957. return 0;
  5958. (val)->requestSeqNum += 1;
  5959. if (!ASN1Dec_AdmissionRejectReason(dec, &(val)->rejectReason))
  5960. return 0;
  5961. if ((val)->o[0] & 0x80) {
  5962. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5963. return 0;
  5964. }
  5965. if (!y) {
  5966. ZeroMemory((val)->o + 1, 1);
  5967. } else {
  5968. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  5969. return 0;
  5970. if ((val)->o[1] & 0x80) {
  5971. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5972. return 0;
  5973. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5974. return 0;
  5975. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5976. return 0;
  5977. ASN1_CloseDecoder(dd);
  5978. ASN1Free(db);
  5979. }
  5980. if ((val)->o[1] & 0x40) {
  5981. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5982. return 0;
  5983. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5984. return 0;
  5985. if (!ASN1Dec_AdmissionReject_tokens(dd, &(val)->tokens))
  5986. return 0;
  5987. ASN1_CloseDecoder(dd);
  5988. ASN1Free(db);
  5989. }
  5990. if ((val)->o[1] & 0x20) {
  5991. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5992. return 0;
  5993. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5994. return 0;
  5995. if (!ASN1Dec_AdmissionReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5996. return 0;
  5997. ASN1_CloseDecoder(dd);
  5998. ASN1Free(db);
  5999. }
  6000. if ((val)->o[1] & 0x10) {
  6001. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6002. return 0;
  6003. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6004. return 0;
  6005. if (!ASN1Dec_AdmissionReject_callSignalAddress(dd, &(val)->callSignalAddress))
  6006. return 0;
  6007. ASN1_CloseDecoder(dd);
  6008. ASN1Free(db);
  6009. }
  6010. if ((val)->o[1] & 0x8) {
  6011. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6012. return 0;
  6013. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6014. return 0;
  6015. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6016. return 0;
  6017. ASN1_CloseDecoder(dd);
  6018. ASN1Free(db);
  6019. }
  6020. for (i = 0; i < e; i++) {
  6021. if (!ASN1PERDecSkipFragmented(dec, 8))
  6022. return 0;
  6023. }
  6024. }
  6025. return 1;
  6026. }
  6027. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val)
  6028. {
  6029. if (val) {
  6030. if ((val)->o[0] & 0x80) {
  6031. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6032. }
  6033. if ((val)->o[1] & 0x80) {
  6034. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6035. }
  6036. if ((val)->o[1] & 0x40) {
  6037. ASN1Free_AdmissionReject_tokens(&(val)->tokens);
  6038. }
  6039. if ((val)->o[1] & 0x20) {
  6040. ASN1Free_AdmissionReject_cryptoTokens(&(val)->cryptoTokens);
  6041. }
  6042. if ((val)->o[1] & 0x10) {
  6043. ASN1Free_AdmissionReject_callSignalAddress(&(val)->callSignalAddress);
  6044. }
  6045. if ((val)->o[1] & 0x8) {
  6046. ASN1Free_ICV(&(val)->integrityCheckValue);
  6047. }
  6048. }
  6049. }
  6050. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val)
  6051. {
  6052. ASN1octet_t o[2];
  6053. ASN1uint32_t y;
  6054. ASN1uint32_t l;
  6055. ASN1encoding_t ee;
  6056. CopyMemory(o, (val)->o, 2);
  6057. o[1] |= 0x80;
  6058. o[1] |= 0x4;
  6059. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6060. if (!ASN1PEREncBitVal(enc, 1, y))
  6061. return 0;
  6062. if (!ASN1PEREncBits(enc, 2, o))
  6063. return 0;
  6064. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6065. return 0;
  6066. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6067. return 0;
  6068. ASN1PEREncAlignment(enc);
  6069. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6070. return 0;
  6071. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6072. return 0;
  6073. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6074. return 0;
  6075. if (o[0] & 0x80) {
  6076. if (!ASN1Enc_CallType(enc, &(val)->callType))
  6077. return 0;
  6078. }
  6079. l = ASN1uint32_uoctets((val)->bandWidth);
  6080. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6081. return 0;
  6082. ASN1PEREncAlignment(enc);
  6083. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6084. return 0;
  6085. if (o[0] & 0x40) {
  6086. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6087. return 0;
  6088. }
  6089. if (y) {
  6090. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6091. return 0;
  6092. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6093. return 0;
  6094. if (o[1] & 0x80) {
  6095. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6096. return 0;
  6097. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6098. return 0;
  6099. }
  6100. if (o[1] & 0x40) {
  6101. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6102. return 0;
  6103. ASN1PEREncAlignment(ee);
  6104. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6105. return 0;
  6106. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6107. return 0;
  6108. }
  6109. if (o[1] & 0x20) {
  6110. if (!ASN1Enc_BandwidthRequest_tokens(ee, &(val)->tokens))
  6111. return 0;
  6112. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6113. return 0;
  6114. }
  6115. if (o[1] & 0x10) {
  6116. if (!ASN1Enc_BandwidthRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6117. return 0;
  6118. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6119. return 0;
  6120. }
  6121. if (o[1] & 0x8) {
  6122. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6123. return 0;
  6124. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6125. return 0;
  6126. }
  6127. if (o[1] & 0x4) {
  6128. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6129. return 0;
  6130. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6131. return 0;
  6132. }
  6133. ASN1_CloseEncoder2(ee);
  6134. }
  6135. return 1;
  6136. }
  6137. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val)
  6138. {
  6139. ASN1uint32_t y;
  6140. ASN1uint32_t l;
  6141. ASN1decoding_t dd;
  6142. ASN1octet_t *db;
  6143. ASN1uint32_t ds;
  6144. ASN1uint32_t i;
  6145. ASN1uint32_t e;
  6146. if (!ASN1PERDecExtensionBit(dec, &y))
  6147. return 0;
  6148. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  6149. return 0;
  6150. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6151. return 0;
  6152. (val)->requestSeqNum += 1;
  6153. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6154. return 0;
  6155. ((val)->endpointIdentifier).length += 1;
  6156. ASN1PERDecAlignment(dec);
  6157. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6158. return 0;
  6159. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6160. return 0;
  6161. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6162. return 0;
  6163. if ((val)->o[0] & 0x80) {
  6164. if (!ASN1Dec_CallType(dec, &(val)->callType))
  6165. return 0;
  6166. }
  6167. if (!ASN1PERDecU32Val(dec, 2, &l))
  6168. return 0;
  6169. l += 1;
  6170. ASN1PERDecAlignment(dec);
  6171. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6172. return 0;
  6173. if ((val)->o[0] & 0x40) {
  6174. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6175. return 0;
  6176. }
  6177. if (!y) {
  6178. ZeroMemory((val)->o + 1, 1);
  6179. } else {
  6180. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6181. return 0;
  6182. if ((val)->o[1] & 0x80) {
  6183. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6184. return 0;
  6185. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6186. return 0;
  6187. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6188. return 0;
  6189. ASN1_CloseDecoder(dd);
  6190. ASN1Free(db);
  6191. }
  6192. if ((val)->o[1] & 0x40) {
  6193. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6194. return 0;
  6195. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6196. return 0;
  6197. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6198. return 0;
  6199. ((val)->gatekeeperIdentifier).length += 1;
  6200. ASN1PERDecAlignment(dd);
  6201. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6202. return 0;
  6203. ASN1_CloseDecoder(dd);
  6204. ASN1Free(db);
  6205. }
  6206. if ((val)->o[1] & 0x20) {
  6207. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6208. return 0;
  6209. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6210. return 0;
  6211. if (!ASN1Dec_BandwidthRequest_tokens(dd, &(val)->tokens))
  6212. return 0;
  6213. ASN1_CloseDecoder(dd);
  6214. ASN1Free(db);
  6215. }
  6216. if ((val)->o[1] & 0x10) {
  6217. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6218. return 0;
  6219. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6220. return 0;
  6221. if (!ASN1Dec_BandwidthRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6222. return 0;
  6223. ASN1_CloseDecoder(dd);
  6224. ASN1Free(db);
  6225. }
  6226. if ((val)->o[1] & 0x8) {
  6227. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6228. return 0;
  6229. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6230. return 0;
  6231. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6232. return 0;
  6233. ASN1_CloseDecoder(dd);
  6234. ASN1Free(db);
  6235. }
  6236. if ((val)->o[1] & 0x4) {
  6237. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6238. return 0;
  6239. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6240. return 0;
  6241. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6242. return 0;
  6243. ASN1_CloseDecoder(dd);
  6244. ASN1Free(db);
  6245. }
  6246. for (i = 0; i < e; i++) {
  6247. if (!ASN1PERDecSkipFragmented(dec, 8))
  6248. return 0;
  6249. }
  6250. }
  6251. return 1;
  6252. }
  6253. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val)
  6254. {
  6255. if (val) {
  6256. ASN1char16string_free(&(val)->endpointIdentifier);
  6257. if ((val)->o[0] & 0x40) {
  6258. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6259. }
  6260. if ((val)->o[1] & 0x80) {
  6261. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6262. }
  6263. if ((val)->o[1] & 0x40) {
  6264. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6265. }
  6266. if ((val)->o[1] & 0x20) {
  6267. ASN1Free_BandwidthRequest_tokens(&(val)->tokens);
  6268. }
  6269. if ((val)->o[1] & 0x10) {
  6270. ASN1Free_BandwidthRequest_cryptoTokens(&(val)->cryptoTokens);
  6271. }
  6272. if ((val)->o[1] & 0x8) {
  6273. ASN1Free_ICV(&(val)->integrityCheckValue);
  6274. }
  6275. }
  6276. }
  6277. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val)
  6278. {
  6279. ASN1uint32_t y;
  6280. ASN1uint32_t l;
  6281. ASN1encoding_t ee;
  6282. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6283. if (!ASN1PEREncBitVal(enc, 1, y))
  6284. return 0;
  6285. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6286. return 0;
  6287. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6288. return 0;
  6289. l = ASN1uint32_uoctets((val)->bandWidth);
  6290. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6291. return 0;
  6292. ASN1PEREncAlignment(enc);
  6293. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6294. return 0;
  6295. if ((val)->o[0] & 0x80) {
  6296. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6297. return 0;
  6298. }
  6299. if (y) {
  6300. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6301. return 0;
  6302. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6303. return 0;
  6304. if ((val)->o[1] & 0x80) {
  6305. if (!ASN1Enc_BandwidthConfirm_tokens(ee, &(val)->tokens))
  6306. return 0;
  6307. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6308. return 0;
  6309. }
  6310. if ((val)->o[1] & 0x40) {
  6311. if (!ASN1Enc_BandwidthConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6312. return 0;
  6313. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6314. return 0;
  6315. }
  6316. if ((val)->o[1] & 0x20) {
  6317. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6318. return 0;
  6319. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6320. return 0;
  6321. }
  6322. ASN1_CloseEncoder2(ee);
  6323. }
  6324. return 1;
  6325. }
  6326. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val)
  6327. {
  6328. ASN1uint32_t y;
  6329. ASN1uint32_t l;
  6330. ASN1decoding_t dd;
  6331. ASN1octet_t *db;
  6332. ASN1uint32_t ds;
  6333. ASN1uint32_t i;
  6334. ASN1uint32_t e;
  6335. if (!ASN1PERDecExtensionBit(dec, &y))
  6336. return 0;
  6337. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6338. return 0;
  6339. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6340. return 0;
  6341. (val)->requestSeqNum += 1;
  6342. if (!ASN1PERDecU32Val(dec, 2, &l))
  6343. return 0;
  6344. l += 1;
  6345. ASN1PERDecAlignment(dec);
  6346. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6347. return 0;
  6348. if ((val)->o[0] & 0x80) {
  6349. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6350. return 0;
  6351. }
  6352. if (!y) {
  6353. ZeroMemory((val)->o + 1, 1);
  6354. } else {
  6355. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6356. return 0;
  6357. if ((val)->o[1] & 0x80) {
  6358. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6359. return 0;
  6360. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6361. return 0;
  6362. if (!ASN1Dec_BandwidthConfirm_tokens(dd, &(val)->tokens))
  6363. return 0;
  6364. ASN1_CloseDecoder(dd);
  6365. ASN1Free(db);
  6366. }
  6367. if ((val)->o[1] & 0x40) {
  6368. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6369. return 0;
  6370. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6371. return 0;
  6372. if (!ASN1Dec_BandwidthConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  6373. return 0;
  6374. ASN1_CloseDecoder(dd);
  6375. ASN1Free(db);
  6376. }
  6377. if ((val)->o[1] & 0x20) {
  6378. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6379. return 0;
  6380. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6381. return 0;
  6382. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6383. return 0;
  6384. ASN1_CloseDecoder(dd);
  6385. ASN1Free(db);
  6386. }
  6387. for (i = 0; i < e; i++) {
  6388. if (!ASN1PERDecSkipFragmented(dec, 8))
  6389. return 0;
  6390. }
  6391. }
  6392. return 1;
  6393. }
  6394. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val)
  6395. {
  6396. if (val) {
  6397. if ((val)->o[0] & 0x80) {
  6398. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6399. }
  6400. if ((val)->o[1] & 0x80) {
  6401. ASN1Free_BandwidthConfirm_tokens(&(val)->tokens);
  6402. }
  6403. if ((val)->o[1] & 0x40) {
  6404. ASN1Free_BandwidthConfirm_cryptoTokens(&(val)->cryptoTokens);
  6405. }
  6406. if ((val)->o[1] & 0x20) {
  6407. ASN1Free_ICV(&(val)->integrityCheckValue);
  6408. }
  6409. }
  6410. }
  6411. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val)
  6412. {
  6413. ASN1uint32_t y;
  6414. ASN1uint32_t l;
  6415. ASN1encoding_t ee;
  6416. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6417. if (!ASN1PEREncBitVal(enc, 1, y))
  6418. return 0;
  6419. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6420. return 0;
  6421. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6422. return 0;
  6423. if (!ASN1Enc_BandRejectReason(enc, &(val)->rejectReason))
  6424. return 0;
  6425. l = ASN1uint32_uoctets((val)->allowedBandWidth);
  6426. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6427. return 0;
  6428. ASN1PEREncAlignment(enc);
  6429. if (!ASN1PEREncBitVal(enc, l * 8, (val)->allowedBandWidth))
  6430. return 0;
  6431. if ((val)->o[0] & 0x80) {
  6432. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6433. return 0;
  6434. }
  6435. if (y) {
  6436. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6437. return 0;
  6438. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6439. return 0;
  6440. if ((val)->o[1] & 0x80) {
  6441. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6442. return 0;
  6443. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6444. return 0;
  6445. }
  6446. if ((val)->o[1] & 0x40) {
  6447. if (!ASN1Enc_BandwidthReject_tokens(ee, &(val)->tokens))
  6448. return 0;
  6449. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6450. return 0;
  6451. }
  6452. if ((val)->o[1] & 0x20) {
  6453. if (!ASN1Enc_BandwidthReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6454. return 0;
  6455. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6456. return 0;
  6457. }
  6458. if ((val)->o[1] & 0x10) {
  6459. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6460. return 0;
  6461. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6462. return 0;
  6463. }
  6464. ASN1_CloseEncoder2(ee);
  6465. }
  6466. return 1;
  6467. }
  6468. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val)
  6469. {
  6470. ASN1uint32_t y;
  6471. ASN1uint32_t l;
  6472. ASN1decoding_t dd;
  6473. ASN1octet_t *db;
  6474. ASN1uint32_t ds;
  6475. ASN1uint32_t i;
  6476. ASN1uint32_t e;
  6477. if (!ASN1PERDecExtensionBit(dec, &y))
  6478. return 0;
  6479. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6480. return 0;
  6481. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6482. return 0;
  6483. (val)->requestSeqNum += 1;
  6484. if (!ASN1Dec_BandRejectReason(dec, &(val)->rejectReason))
  6485. return 0;
  6486. if (!ASN1PERDecU32Val(dec, 2, &l))
  6487. return 0;
  6488. l += 1;
  6489. ASN1PERDecAlignment(dec);
  6490. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->allowedBandWidth))
  6491. return 0;
  6492. if ((val)->o[0] & 0x80) {
  6493. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6494. return 0;
  6495. }
  6496. if (!y) {
  6497. ZeroMemory((val)->o + 1, 1);
  6498. } else {
  6499. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6500. return 0;
  6501. if ((val)->o[1] & 0x80) {
  6502. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6503. return 0;
  6504. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6505. return 0;
  6506. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6507. return 0;
  6508. ASN1_CloseDecoder(dd);
  6509. ASN1Free(db);
  6510. }
  6511. if ((val)->o[1] & 0x40) {
  6512. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6513. return 0;
  6514. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6515. return 0;
  6516. if (!ASN1Dec_BandwidthReject_tokens(dd, &(val)->tokens))
  6517. return 0;
  6518. ASN1_CloseDecoder(dd);
  6519. ASN1Free(db);
  6520. }
  6521. if ((val)->o[1] & 0x20) {
  6522. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6523. return 0;
  6524. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6525. return 0;
  6526. if (!ASN1Dec_BandwidthReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6527. return 0;
  6528. ASN1_CloseDecoder(dd);
  6529. ASN1Free(db);
  6530. }
  6531. if ((val)->o[1] & 0x10) {
  6532. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6533. return 0;
  6534. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6535. return 0;
  6536. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6537. return 0;
  6538. ASN1_CloseDecoder(dd);
  6539. ASN1Free(db);
  6540. }
  6541. for (i = 0; i < e; i++) {
  6542. if (!ASN1PERDecSkipFragmented(dec, 8))
  6543. return 0;
  6544. }
  6545. }
  6546. return 1;
  6547. }
  6548. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val)
  6549. {
  6550. if (val) {
  6551. if ((val)->o[0] & 0x80) {
  6552. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6553. }
  6554. if ((val)->o[1] & 0x80) {
  6555. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6556. }
  6557. if ((val)->o[1] & 0x40) {
  6558. ASN1Free_BandwidthReject_tokens(&(val)->tokens);
  6559. }
  6560. if ((val)->o[1] & 0x20) {
  6561. ASN1Free_BandwidthReject_cryptoTokens(&(val)->cryptoTokens);
  6562. }
  6563. if ((val)->o[1] & 0x10) {
  6564. ASN1Free_ICV(&(val)->integrityCheckValue);
  6565. }
  6566. }
  6567. }
  6568. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val)
  6569. {
  6570. ASN1uint32_t y;
  6571. ASN1encoding_t ee;
  6572. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6573. if (!ASN1PEREncBitVal(enc, 1, y))
  6574. return 0;
  6575. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6576. return 0;
  6577. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6578. return 0;
  6579. if (!ASN1Enc_LocationRejectReason(enc, &(val)->rejectReason))
  6580. return 0;
  6581. if ((val)->o[0] & 0x80) {
  6582. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6583. return 0;
  6584. }
  6585. if (y) {
  6586. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6587. return 0;
  6588. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6589. return 0;
  6590. if ((val)->o[1] & 0x80) {
  6591. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6592. return 0;
  6593. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6594. return 0;
  6595. }
  6596. if ((val)->o[1] & 0x40) {
  6597. if (!ASN1Enc_LocationReject_tokens(ee, &(val)->tokens))
  6598. return 0;
  6599. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6600. return 0;
  6601. }
  6602. if ((val)->o[1] & 0x20) {
  6603. if (!ASN1Enc_LocationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6604. return 0;
  6605. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6606. return 0;
  6607. }
  6608. if ((val)->o[1] & 0x10) {
  6609. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6610. return 0;
  6611. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6612. return 0;
  6613. }
  6614. ASN1_CloseEncoder2(ee);
  6615. }
  6616. return 1;
  6617. }
  6618. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val)
  6619. {
  6620. ASN1uint32_t y;
  6621. ASN1decoding_t dd;
  6622. ASN1octet_t *db;
  6623. ASN1uint32_t ds;
  6624. ASN1uint32_t i;
  6625. ASN1uint32_t e;
  6626. if (!ASN1PERDecExtensionBit(dec, &y))
  6627. return 0;
  6628. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6629. return 0;
  6630. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6631. return 0;
  6632. (val)->requestSeqNum += 1;
  6633. if (!ASN1Dec_LocationRejectReason(dec, &(val)->rejectReason))
  6634. return 0;
  6635. if ((val)->o[0] & 0x80) {
  6636. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6637. return 0;
  6638. }
  6639. if (!y) {
  6640. ZeroMemory((val)->o + 1, 1);
  6641. } else {
  6642. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6643. return 0;
  6644. if ((val)->o[1] & 0x80) {
  6645. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6646. return 0;
  6647. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6648. return 0;
  6649. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6650. return 0;
  6651. ASN1_CloseDecoder(dd);
  6652. ASN1Free(db);
  6653. }
  6654. if ((val)->o[1] & 0x40) {
  6655. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6656. return 0;
  6657. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6658. return 0;
  6659. if (!ASN1Dec_LocationReject_tokens(dd, &(val)->tokens))
  6660. return 0;
  6661. ASN1_CloseDecoder(dd);
  6662. ASN1Free(db);
  6663. }
  6664. if ((val)->o[1] & 0x20) {
  6665. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6666. return 0;
  6667. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6668. return 0;
  6669. if (!ASN1Dec_LocationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6670. return 0;
  6671. ASN1_CloseDecoder(dd);
  6672. ASN1Free(db);
  6673. }
  6674. if ((val)->o[1] & 0x10) {
  6675. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6676. return 0;
  6677. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6678. return 0;
  6679. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6680. return 0;
  6681. ASN1_CloseDecoder(dd);
  6682. ASN1Free(db);
  6683. }
  6684. for (i = 0; i < e; i++) {
  6685. if (!ASN1PERDecSkipFragmented(dec, 8))
  6686. return 0;
  6687. }
  6688. }
  6689. return 1;
  6690. }
  6691. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val)
  6692. {
  6693. if (val) {
  6694. if ((val)->o[0] & 0x80) {
  6695. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6696. }
  6697. if ((val)->o[1] & 0x80) {
  6698. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6699. }
  6700. if ((val)->o[1] & 0x40) {
  6701. ASN1Free_LocationReject_tokens(&(val)->tokens);
  6702. }
  6703. if ((val)->o[1] & 0x20) {
  6704. ASN1Free_LocationReject_cryptoTokens(&(val)->cryptoTokens);
  6705. }
  6706. if ((val)->o[1] & 0x10) {
  6707. ASN1Free_ICV(&(val)->integrityCheckValue);
  6708. }
  6709. }
  6710. }
  6711. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val)
  6712. {
  6713. ASN1octet_t o[2];
  6714. ASN1uint32_t y;
  6715. ASN1encoding_t ee;
  6716. CopyMemory(o, (val)->o, 2);
  6717. o[1] |= 0x80;
  6718. o[1] |= 0x4;
  6719. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6720. if (!ASN1PEREncBitVal(enc, 1, y))
  6721. return 0;
  6722. if (!ASN1PEREncBits(enc, 1, o))
  6723. return 0;
  6724. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6725. return 0;
  6726. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6727. return 0;
  6728. ASN1PEREncAlignment(enc);
  6729. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6730. return 0;
  6731. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6732. return 0;
  6733. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6734. return 0;
  6735. if (!ASN1Enc_DisengageReason(enc, &(val)->disengageReason))
  6736. return 0;
  6737. if (o[0] & 0x80) {
  6738. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6739. return 0;
  6740. }
  6741. if (y) {
  6742. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6743. return 0;
  6744. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6745. return 0;
  6746. if (o[1] & 0x80) {
  6747. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6748. return 0;
  6749. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6750. return 0;
  6751. }
  6752. if (o[1] & 0x40) {
  6753. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6754. return 0;
  6755. ASN1PEREncAlignment(ee);
  6756. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6757. return 0;
  6758. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6759. return 0;
  6760. }
  6761. if (o[1] & 0x20) {
  6762. if (!ASN1Enc_DisengageRequest_tokens(ee, &(val)->tokens))
  6763. return 0;
  6764. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6765. return 0;
  6766. }
  6767. if (o[1] & 0x10) {
  6768. if (!ASN1Enc_DisengageRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6769. return 0;
  6770. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6771. return 0;
  6772. }
  6773. if (o[1] & 0x8) {
  6774. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6775. return 0;
  6776. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6777. return 0;
  6778. }
  6779. if (o[1] & 0x4) {
  6780. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6781. return 0;
  6782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6783. return 0;
  6784. }
  6785. ASN1_CloseEncoder2(ee);
  6786. }
  6787. return 1;
  6788. }
  6789. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val)
  6790. {
  6791. ASN1uint32_t y;
  6792. ASN1decoding_t dd;
  6793. ASN1octet_t *db;
  6794. ASN1uint32_t ds;
  6795. ASN1uint32_t i;
  6796. ASN1uint32_t e;
  6797. if (!ASN1PERDecExtensionBit(dec, &y))
  6798. return 0;
  6799. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6800. return 0;
  6801. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6802. return 0;
  6803. (val)->requestSeqNum += 1;
  6804. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6805. return 0;
  6806. ((val)->endpointIdentifier).length += 1;
  6807. ASN1PERDecAlignment(dec);
  6808. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6809. return 0;
  6810. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6811. return 0;
  6812. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6813. return 0;
  6814. if (!ASN1Dec_DisengageReason(dec, &(val)->disengageReason))
  6815. return 0;
  6816. if ((val)->o[0] & 0x80) {
  6817. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6818. return 0;
  6819. }
  6820. if (!y) {
  6821. ZeroMemory((val)->o + 1, 1);
  6822. } else {
  6823. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6824. return 0;
  6825. if ((val)->o[1] & 0x80) {
  6826. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6827. return 0;
  6828. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6829. return 0;
  6830. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6831. return 0;
  6832. ASN1_CloseDecoder(dd);
  6833. ASN1Free(db);
  6834. }
  6835. if ((val)->o[1] & 0x40) {
  6836. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6837. return 0;
  6838. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6839. return 0;
  6840. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6841. return 0;
  6842. ((val)->gatekeeperIdentifier).length += 1;
  6843. ASN1PERDecAlignment(dd);
  6844. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6845. return 0;
  6846. ASN1_CloseDecoder(dd);
  6847. ASN1Free(db);
  6848. }
  6849. if ((val)->o[1] & 0x20) {
  6850. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6851. return 0;
  6852. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6853. return 0;
  6854. if (!ASN1Dec_DisengageRequest_tokens(dd, &(val)->tokens))
  6855. return 0;
  6856. ASN1_CloseDecoder(dd);
  6857. ASN1Free(db);
  6858. }
  6859. if ((val)->o[1] & 0x10) {
  6860. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6861. return 0;
  6862. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6863. return 0;
  6864. if (!ASN1Dec_DisengageRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6865. return 0;
  6866. ASN1_CloseDecoder(dd);
  6867. ASN1Free(db);
  6868. }
  6869. if ((val)->o[1] & 0x8) {
  6870. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6871. return 0;
  6872. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6873. return 0;
  6874. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6875. return 0;
  6876. ASN1_CloseDecoder(dd);
  6877. ASN1Free(db);
  6878. }
  6879. if ((val)->o[1] & 0x4) {
  6880. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6881. return 0;
  6882. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6883. return 0;
  6884. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6885. return 0;
  6886. ASN1_CloseDecoder(dd);
  6887. ASN1Free(db);
  6888. }
  6889. for (i = 0; i < e; i++) {
  6890. if (!ASN1PERDecSkipFragmented(dec, 8))
  6891. return 0;
  6892. }
  6893. }
  6894. return 1;
  6895. }
  6896. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val)
  6897. {
  6898. if (val) {
  6899. ASN1char16string_free(&(val)->endpointIdentifier);
  6900. if ((val)->o[0] & 0x80) {
  6901. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6902. }
  6903. if ((val)->o[1] & 0x80) {
  6904. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6905. }
  6906. if ((val)->o[1] & 0x40) {
  6907. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6908. }
  6909. if ((val)->o[1] & 0x20) {
  6910. ASN1Free_DisengageRequest_tokens(&(val)->tokens);
  6911. }
  6912. if ((val)->o[1] & 0x10) {
  6913. ASN1Free_DisengageRequest_cryptoTokens(&(val)->cryptoTokens);
  6914. }
  6915. if ((val)->o[1] & 0x8) {
  6916. ASN1Free_ICV(&(val)->integrityCheckValue);
  6917. }
  6918. }
  6919. }
  6920. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val)
  6921. {
  6922. ASN1uint32_t y;
  6923. ASN1encoding_t ee;
  6924. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6925. if (!ASN1PEREncBitVal(enc, 1, y))
  6926. return 0;
  6927. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6928. return 0;
  6929. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6930. return 0;
  6931. if ((val)->o[0] & 0x80) {
  6932. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6933. return 0;
  6934. }
  6935. if (y) {
  6936. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6937. return 0;
  6938. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6939. return 0;
  6940. if ((val)->o[1] & 0x80) {
  6941. if (!ASN1Enc_DisengageConfirm_tokens(ee, &(val)->tokens))
  6942. return 0;
  6943. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6944. return 0;
  6945. }
  6946. if ((val)->o[1] & 0x40) {
  6947. if (!ASN1Enc_DisengageConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6948. return 0;
  6949. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6950. return 0;
  6951. }
  6952. if ((val)->o[1] & 0x20) {
  6953. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6954. return 0;
  6955. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6956. return 0;
  6957. }
  6958. ASN1_CloseEncoder2(ee);
  6959. }
  6960. return 1;
  6961. }
  6962. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val)
  6963. {
  6964. ASN1uint32_t y;
  6965. ASN1decoding_t dd;
  6966. ASN1octet_t *db;
  6967. ASN1uint32_t ds;
  6968. ASN1uint32_t i;
  6969. ASN1uint32_t e;
  6970. if (!ASN1PERDecExtensionBit(dec, &y))
  6971. return 0;
  6972. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6973. return 0;
  6974. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6975. return 0;
  6976. (val)->requestSeqNum += 1;
  6977. if ((val)->o[0] & 0x80) {
  6978. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6979. return 0;
  6980. }
  6981. if (!y) {
  6982. ZeroMemory((val)->o + 1, 1);
  6983. } else {
  6984. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6985. return 0;
  6986. if ((val)->o[1] & 0x80) {
  6987. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6988. return 0;
  6989. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6990. return 0;
  6991. if (!ASN1Dec_DisengageConfirm_tokens(dd, &(val)->tokens))
  6992. return 0;
  6993. ASN1_CloseDecoder(dd);
  6994. ASN1Free(db);
  6995. }
  6996. if ((val)->o[1] & 0x40) {
  6997. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6998. return 0;
  6999. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7000. return 0;
  7001. if (!ASN1Dec_DisengageConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  7002. return 0;
  7003. ASN1_CloseDecoder(dd);
  7004. ASN1Free(db);
  7005. }
  7006. if ((val)->o[1] & 0x20) {
  7007. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7008. return 0;
  7009. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7010. return 0;
  7011. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7012. return 0;
  7013. ASN1_CloseDecoder(dd);
  7014. ASN1Free(db);
  7015. }
  7016. for (i = 0; i < e; i++) {
  7017. if (!ASN1PERDecSkipFragmented(dec, 8))
  7018. return 0;
  7019. }
  7020. }
  7021. return 1;
  7022. }
  7023. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val)
  7024. {
  7025. if (val) {
  7026. if ((val)->o[0] & 0x80) {
  7027. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7028. }
  7029. if ((val)->o[1] & 0x80) {
  7030. ASN1Free_DisengageConfirm_tokens(&(val)->tokens);
  7031. }
  7032. if ((val)->o[1] & 0x40) {
  7033. ASN1Free_DisengageConfirm_cryptoTokens(&(val)->cryptoTokens);
  7034. }
  7035. if ((val)->o[1] & 0x20) {
  7036. ASN1Free_ICV(&(val)->integrityCheckValue);
  7037. }
  7038. }
  7039. }
  7040. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val)
  7041. {
  7042. ASN1uint32_t y;
  7043. ASN1encoding_t ee;
  7044. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  7045. if (!ASN1PEREncBitVal(enc, 1, y))
  7046. return 0;
  7047. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7048. return 0;
  7049. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7050. return 0;
  7051. if (!ASN1Enc_DisengageRejectReason(enc, &(val)->rejectReason))
  7052. return 0;
  7053. if ((val)->o[0] & 0x80) {
  7054. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7055. return 0;
  7056. }
  7057. if (y) {
  7058. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  7059. return 0;
  7060. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7061. return 0;
  7062. if ((val)->o[1] & 0x80) {
  7063. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  7064. return 0;
  7065. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7066. return 0;
  7067. }
  7068. if ((val)->o[1] & 0x40) {
  7069. if (!ASN1Enc_DisengageReject_tokens(ee, &(val)->tokens))
  7070. return 0;
  7071. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7072. return 0;
  7073. }
  7074. if ((val)->o[1] & 0x20) {
  7075. if (!ASN1Enc_DisengageReject_cryptoTokens(ee, &(val)->cryptoTokens))
  7076. return 0;
  7077. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7078. return 0;
  7079. }
  7080. if ((val)->o[1] & 0x10) {
  7081. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7082. return 0;
  7083. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7084. return 0;
  7085. }
  7086. ASN1_CloseEncoder2(ee);
  7087. }
  7088. return 1;
  7089. }
  7090. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val)
  7091. {
  7092. ASN1uint32_t y;
  7093. ASN1decoding_t dd;
  7094. ASN1octet_t *db;
  7095. ASN1uint32_t ds;
  7096. ASN1uint32_t i;
  7097. ASN1uint32_t e;
  7098. if (!ASN1PERDecExtensionBit(dec, &y))
  7099. return 0;
  7100. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7101. return 0;
  7102. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7103. return 0;
  7104. (val)->requestSeqNum += 1;
  7105. if (!ASN1Dec_DisengageRejectReason(dec, &(val)->rejectReason))
  7106. return 0;
  7107. if ((val)->o[0] & 0x80) {
  7108. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7109. return 0;
  7110. }
  7111. if (!y) {
  7112. ZeroMemory((val)->o + 1, 1);
  7113. } else {
  7114. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  7115. return 0;
  7116. if ((val)->o[1] & 0x80) {
  7117. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7118. return 0;
  7119. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7120. return 0;
  7121. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  7122. return 0;
  7123. ASN1_CloseDecoder(dd);
  7124. ASN1Free(db);
  7125. }
  7126. if ((val)->o[1] & 0x40) {
  7127. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7128. return 0;
  7129. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7130. return 0;
  7131. if (!ASN1Dec_DisengageReject_tokens(dd, &(val)->tokens))
  7132. return 0;
  7133. ASN1_CloseDecoder(dd);
  7134. ASN1Free(db);
  7135. }
  7136. if ((val)->o[1] & 0x20) {
  7137. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7138. return 0;
  7139. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7140. return 0;
  7141. if (!ASN1Dec_DisengageReject_cryptoTokens(dd, &(val)->cryptoTokens))
  7142. return 0;
  7143. ASN1_CloseDecoder(dd);
  7144. ASN1Free(db);
  7145. }
  7146. if ((val)->o[1] & 0x10) {
  7147. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7148. return 0;
  7149. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7150. return 0;
  7151. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7152. return 0;
  7153. ASN1_CloseDecoder(dd);
  7154. ASN1Free(db);
  7155. }
  7156. for (i = 0; i < e; i++) {
  7157. if (!ASN1PERDecSkipFragmented(dec, 8))
  7158. return 0;
  7159. }
  7160. }
  7161. return 1;
  7162. }
  7163. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val)
  7164. {
  7165. if (val) {
  7166. if ((val)->o[0] & 0x80) {
  7167. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7168. }
  7169. if ((val)->o[1] & 0x80) {
  7170. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7171. }
  7172. if ((val)->o[1] & 0x40) {
  7173. ASN1Free_DisengageReject_tokens(&(val)->tokens);
  7174. }
  7175. if ((val)->o[1] & 0x20) {
  7176. ASN1Free_DisengageReject_cryptoTokens(&(val)->cryptoTokens);
  7177. }
  7178. if ((val)->o[1] & 0x10) {
  7179. ASN1Free_ICV(&(val)->integrityCheckValue);
  7180. }
  7181. }
  7182. }
  7183. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val)
  7184. {
  7185. if (!ASN1PEREncExtensionBitClear(enc))
  7186. return 0;
  7187. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7188. return 0;
  7189. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7190. return 0;
  7191. if ((val)->o[0] & 0x80) {
  7192. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7193. return 0;
  7194. }
  7195. if ((val)->o[0] & 0x40) {
  7196. if (!ASN1Enc_InfoRequestAck_tokens(enc, &(val)->tokens))
  7197. return 0;
  7198. }
  7199. if ((val)->o[0] & 0x20) {
  7200. if (!ASN1Enc_InfoRequestAck_cryptoTokens(enc, &(val)->cryptoTokens))
  7201. return 0;
  7202. }
  7203. if ((val)->o[0] & 0x10) {
  7204. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7205. return 0;
  7206. }
  7207. return 1;
  7208. }
  7209. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val)
  7210. {
  7211. ASN1uint32_t y;
  7212. if (!ASN1PERDecExtensionBit(dec, &y))
  7213. return 0;
  7214. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7215. return 0;
  7216. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7217. return 0;
  7218. (val)->requestSeqNum += 1;
  7219. if ((val)->o[0] & 0x80) {
  7220. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7221. return 0;
  7222. }
  7223. if ((val)->o[0] & 0x40) {
  7224. if (!ASN1Dec_InfoRequestAck_tokens(dec, &(val)->tokens))
  7225. return 0;
  7226. }
  7227. if ((val)->o[0] & 0x20) {
  7228. if (!ASN1Dec_InfoRequestAck_cryptoTokens(dec, &(val)->cryptoTokens))
  7229. return 0;
  7230. }
  7231. if ((val)->o[0] & 0x10) {
  7232. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7233. return 0;
  7234. }
  7235. if (y) {
  7236. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7237. return 0;
  7238. }
  7239. return 1;
  7240. }
  7241. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val)
  7242. {
  7243. if (val) {
  7244. if ((val)->o[0] & 0x80) {
  7245. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7246. }
  7247. if ((val)->o[0] & 0x40) {
  7248. ASN1Free_InfoRequestAck_tokens(&(val)->tokens);
  7249. }
  7250. if ((val)->o[0] & 0x20) {
  7251. ASN1Free_InfoRequestAck_cryptoTokens(&(val)->cryptoTokens);
  7252. }
  7253. if ((val)->o[0] & 0x10) {
  7254. ASN1Free_ICV(&(val)->integrityCheckValue);
  7255. }
  7256. }
  7257. }
  7258. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val)
  7259. {
  7260. if (!ASN1PEREncExtensionBitClear(enc))
  7261. return 0;
  7262. if (!ASN1PEREncBits(enc, 5, (val)->o))
  7263. return 0;
  7264. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7265. return 0;
  7266. if ((val)->o[0] & 0x80) {
  7267. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7268. return 0;
  7269. }
  7270. if (!ASN1Enc_InfoRequestNakReason(enc, &(val)->nakReason))
  7271. return 0;
  7272. if ((val)->o[0] & 0x40) {
  7273. if (!ASN1Enc_AltGKInfo(enc, &(val)->altGKInfo))
  7274. return 0;
  7275. }
  7276. if ((val)->o[0] & 0x20) {
  7277. if (!ASN1Enc_InfoRequestNak_tokens(enc, &(val)->tokens))
  7278. return 0;
  7279. }
  7280. if ((val)->o[0] & 0x10) {
  7281. if (!ASN1Enc_InfoRequestNak_cryptoTokens(enc, &(val)->cryptoTokens))
  7282. return 0;
  7283. }
  7284. if ((val)->o[0] & 0x8) {
  7285. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7286. return 0;
  7287. }
  7288. return 1;
  7289. }
  7290. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val)
  7291. {
  7292. ASN1uint32_t y;
  7293. if (!ASN1PERDecExtensionBit(dec, &y))
  7294. return 0;
  7295. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7296. return 0;
  7297. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7298. return 0;
  7299. (val)->requestSeqNum += 1;
  7300. if ((val)->o[0] & 0x80) {
  7301. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7302. return 0;
  7303. }
  7304. if (!ASN1Dec_InfoRequestNakReason(dec, &(val)->nakReason))
  7305. return 0;
  7306. if ((val)->o[0] & 0x40) {
  7307. if (!ASN1Dec_AltGKInfo(dec, &(val)->altGKInfo))
  7308. return 0;
  7309. }
  7310. if ((val)->o[0] & 0x20) {
  7311. if (!ASN1Dec_InfoRequestNak_tokens(dec, &(val)->tokens))
  7312. return 0;
  7313. }
  7314. if ((val)->o[0] & 0x10) {
  7315. if (!ASN1Dec_InfoRequestNak_cryptoTokens(dec, &(val)->cryptoTokens))
  7316. return 0;
  7317. }
  7318. if ((val)->o[0] & 0x8) {
  7319. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7320. return 0;
  7321. }
  7322. if (y) {
  7323. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7324. return 0;
  7325. }
  7326. return 1;
  7327. }
  7328. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val)
  7329. {
  7330. if (val) {
  7331. if ((val)->o[0] & 0x80) {
  7332. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7333. }
  7334. if ((val)->o[0] & 0x40) {
  7335. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7336. }
  7337. if ((val)->o[0] & 0x20) {
  7338. ASN1Free_InfoRequestNak_tokens(&(val)->tokens);
  7339. }
  7340. if ((val)->o[0] & 0x10) {
  7341. ASN1Free_InfoRequestNak_cryptoTokens(&(val)->cryptoTokens);
  7342. }
  7343. if ((val)->o[0] & 0x8) {
  7344. ASN1Free_ICV(&(val)->integrityCheckValue);
  7345. }
  7346. }
  7347. }
  7348. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val)
  7349. {
  7350. ASN1uint32_t y;
  7351. ASN1encoding_t ee;
  7352. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  7353. if (!ASN1PEREncBitVal(enc, 1, y))
  7354. return 0;
  7355. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7356. return 0;
  7357. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7358. return 0;
  7359. if (y) {
  7360. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  7361. return 0;
  7362. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7363. return 0;
  7364. if ((val)->o[0] & 0x80) {
  7365. if (!ASN1Enc_H225NonStandardMessage_tokens(ee, &(val)->tokens))
  7366. return 0;
  7367. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7368. return 0;
  7369. }
  7370. if ((val)->o[0] & 0x40) {
  7371. if (!ASN1Enc_H225NonStandardMessage_cryptoTokens(ee, &(val)->cryptoTokens))
  7372. return 0;
  7373. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7374. return 0;
  7375. }
  7376. if ((val)->o[0] & 0x20) {
  7377. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7378. return 0;
  7379. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7380. return 0;
  7381. }
  7382. ASN1_CloseEncoder2(ee);
  7383. }
  7384. return 1;
  7385. }
  7386. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val)
  7387. {
  7388. ASN1uint32_t y;
  7389. ASN1decoding_t dd;
  7390. ASN1octet_t *db;
  7391. ASN1uint32_t ds;
  7392. ASN1uint32_t i;
  7393. ASN1uint32_t e;
  7394. if (!ASN1PERDecExtensionBit(dec, &y))
  7395. return 0;
  7396. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7397. return 0;
  7398. (val)->requestSeqNum += 1;
  7399. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7400. return 0;
  7401. if (!y) {
  7402. ZeroMemory((val)->o + 0, 1);
  7403. } else {
  7404. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  7405. return 0;
  7406. if ((val)->o[0] & 0x80) {
  7407. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7408. return 0;
  7409. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7410. return 0;
  7411. if (!ASN1Dec_H225NonStandardMessage_tokens(dd, &(val)->tokens))
  7412. return 0;
  7413. ASN1_CloseDecoder(dd);
  7414. ASN1Free(db);
  7415. }
  7416. if ((val)->o[0] & 0x40) {
  7417. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7418. return 0;
  7419. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7420. return 0;
  7421. if (!ASN1Dec_H225NonStandardMessage_cryptoTokens(dd, &(val)->cryptoTokens))
  7422. return 0;
  7423. ASN1_CloseDecoder(dd);
  7424. ASN1Free(db);
  7425. }
  7426. if ((val)->o[0] & 0x20) {
  7427. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7428. return 0;
  7429. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7430. return 0;
  7431. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7432. return 0;
  7433. ASN1_CloseDecoder(dd);
  7434. ASN1Free(db);
  7435. }
  7436. for (i = 0; i < e; i++) {
  7437. if (!ASN1PERDecSkipFragmented(dec, 8))
  7438. return 0;
  7439. }
  7440. }
  7441. return 1;
  7442. }
  7443. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val)
  7444. {
  7445. if (val) {
  7446. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7447. if ((val)->o[0] & 0x80) {
  7448. ASN1Free_H225NonStandardMessage_tokens(&(val)->tokens);
  7449. }
  7450. if ((val)->o[0] & 0x40) {
  7451. ASN1Free_H225NonStandardMessage_cryptoTokens(&(val)->cryptoTokens);
  7452. }
  7453. if ((val)->o[0] & 0x20) {
  7454. ASN1Free_ICV(&(val)->integrityCheckValue);
  7455. }
  7456. }
  7457. }
  7458. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val)
  7459. {
  7460. if (!ASN1PEREncExtensionBitClear(enc))
  7461. return 0;
  7462. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7463. return 0;
  7464. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7465. return 0;
  7466. if ((val)->o[0] & 0x80) {
  7467. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7468. return 0;
  7469. }
  7470. if ((val)->o[0] & 0x40) {
  7471. if (!ASN1Enc_RequestInProgress_tokens(enc, &(val)->tokens))
  7472. return 0;
  7473. }
  7474. if ((val)->o[0] & 0x20) {
  7475. if (!ASN1Enc_RequestInProgress_cryptoTokens(enc, &(val)->cryptoTokens))
  7476. return 0;
  7477. }
  7478. if ((val)->o[0] & 0x10) {
  7479. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7480. return 0;
  7481. }
  7482. if (!ASN1PEREncUnsignedShort(enc, (val)->delay - 1))
  7483. return 0;
  7484. return 1;
  7485. }
  7486. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val)
  7487. {
  7488. ASN1uint32_t y;
  7489. if (!ASN1PERDecExtensionBit(dec, &y))
  7490. return 0;
  7491. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7492. return 0;
  7493. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7494. return 0;
  7495. (val)->requestSeqNum += 1;
  7496. if ((val)->o[0] & 0x80) {
  7497. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7498. return 0;
  7499. }
  7500. if ((val)->o[0] & 0x40) {
  7501. if (!ASN1Dec_RequestInProgress_tokens(dec, &(val)->tokens))
  7502. return 0;
  7503. }
  7504. if ((val)->o[0] & 0x20) {
  7505. if (!ASN1Dec_RequestInProgress_cryptoTokens(dec, &(val)->cryptoTokens))
  7506. return 0;
  7507. }
  7508. if ((val)->o[0] & 0x10) {
  7509. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7510. return 0;
  7511. }
  7512. if (!ASN1PERDecUnsignedShort(dec, &(val)->delay))
  7513. return 0;
  7514. (val)->delay += 1;
  7515. if (y) {
  7516. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7517. return 0;
  7518. }
  7519. return 1;
  7520. }
  7521. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val)
  7522. {
  7523. if (val) {
  7524. if ((val)->o[0] & 0x80) {
  7525. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7526. }
  7527. if ((val)->o[0] & 0x40) {
  7528. ASN1Free_RequestInProgress_tokens(&(val)->tokens);
  7529. }
  7530. if ((val)->o[0] & 0x20) {
  7531. ASN1Free_RequestInProgress_cryptoTokens(&(val)->cryptoTokens);
  7532. }
  7533. if ((val)->o[0] & 0x10) {
  7534. ASN1Free_ICV(&(val)->integrityCheckValue);
  7535. }
  7536. }
  7537. }
  7538. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val)
  7539. {
  7540. if (!ASN1PEREncExtensionBitClear(enc))
  7541. return 0;
  7542. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7543. return 0;
  7544. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7545. return 0;
  7546. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7547. return 0;
  7548. if ((val)->o[0] & 0x80) {
  7549. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7550. return 0;
  7551. }
  7552. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  7553. return 0;
  7554. ASN1PEREncAlignment(enc);
  7555. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  7556. return 0;
  7557. if (!ASN1Enc_ResourcesAvailableIndicate_protocols(enc, &(val)->protocols))
  7558. return 0;
  7559. if (!ASN1PEREncBoolean(enc, (val)->almostOutOfResources))
  7560. return 0;
  7561. if ((val)->o[0] & 0x40) {
  7562. if (!ASN1Enc_ResourcesAvailableIndicate_tokens(enc, &(val)->tokens))
  7563. return 0;
  7564. }
  7565. if ((val)->o[0] & 0x20) {
  7566. if (!ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(enc, &(val)->cryptoTokens))
  7567. return 0;
  7568. }
  7569. if ((val)->o[0] & 0x10) {
  7570. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7571. return 0;
  7572. }
  7573. return 1;
  7574. }
  7575. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val)
  7576. {
  7577. ASN1uint32_t y;
  7578. if (!ASN1PERDecExtensionBit(dec, &y))
  7579. return 0;
  7580. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7581. return 0;
  7582. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7583. return 0;
  7584. (val)->requestSeqNum += 1;
  7585. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7586. return 0;
  7587. if ((val)->o[0] & 0x80) {
  7588. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7589. return 0;
  7590. }
  7591. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  7592. return 0;
  7593. ((val)->endpointIdentifier).length += 1;
  7594. ASN1PERDecAlignment(dec);
  7595. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  7596. return 0;
  7597. if (!ASN1Dec_ResourcesAvailableIndicate_protocols(dec, &(val)->protocols))
  7598. return 0;
  7599. if (!ASN1PERDecBoolean(dec, &(val)->almostOutOfResources))
  7600. return 0;
  7601. if ((val)->o[0] & 0x40) {
  7602. if (!ASN1Dec_ResourcesAvailableIndicate_tokens(dec, &(val)->tokens))
  7603. return 0;
  7604. }
  7605. if ((val)->o[0] & 0x20) {
  7606. if (!ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(dec, &(val)->cryptoTokens))
  7607. return 0;
  7608. }
  7609. if ((val)->o[0] & 0x10) {
  7610. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7611. return 0;
  7612. }
  7613. if (y) {
  7614. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7615. return 0;
  7616. }
  7617. return 1;
  7618. }
  7619. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val)
  7620. {
  7621. if (val) {
  7622. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7623. if ((val)->o[0] & 0x80) {
  7624. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7625. }
  7626. ASN1char16string_free(&(val)->endpointIdentifier);
  7627. ASN1Free_ResourcesAvailableIndicate_protocols(&(val)->protocols);
  7628. if ((val)->o[0] & 0x40) {
  7629. ASN1Free_ResourcesAvailableIndicate_tokens(&(val)->tokens);
  7630. }
  7631. if ((val)->o[0] & 0x20) {
  7632. ASN1Free_ResourcesAvailableIndicate_cryptoTokens(&(val)->cryptoTokens);
  7633. }
  7634. if ((val)->o[0] & 0x10) {
  7635. ASN1Free_ICV(&(val)->integrityCheckValue);
  7636. }
  7637. }
  7638. }
  7639. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val)
  7640. {
  7641. if (!ASN1PEREncExtensionBitClear(enc))
  7642. return 0;
  7643. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7644. return 0;
  7645. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7646. return 0;
  7647. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7648. return 0;
  7649. if ((val)->o[0] & 0x80) {
  7650. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7651. return 0;
  7652. }
  7653. if ((val)->o[0] & 0x40) {
  7654. if (!ASN1Enc_ResourcesAvailableConfirm_tokens(enc, &(val)->tokens))
  7655. return 0;
  7656. }
  7657. if ((val)->o[0] & 0x20) {
  7658. if (!ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(enc, &(val)->cryptoTokens))
  7659. return 0;
  7660. }
  7661. if ((val)->o[0] & 0x10) {
  7662. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7663. return 0;
  7664. }
  7665. return 1;
  7666. }
  7667. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val)
  7668. {
  7669. ASN1uint32_t y;
  7670. if (!ASN1PERDecExtensionBit(dec, &y))
  7671. return 0;
  7672. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7673. return 0;
  7674. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7675. return 0;
  7676. (val)->requestSeqNum += 1;
  7677. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7678. return 0;
  7679. if ((val)->o[0] & 0x80) {
  7680. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7681. return 0;
  7682. }
  7683. if ((val)->o[0] & 0x40) {
  7684. if (!ASN1Dec_ResourcesAvailableConfirm_tokens(dec, &(val)->tokens))
  7685. return 0;
  7686. }
  7687. if ((val)->o[0] & 0x20) {
  7688. if (!ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(dec, &(val)->cryptoTokens))
  7689. return 0;
  7690. }
  7691. if ((val)->o[0] & 0x10) {
  7692. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7693. return 0;
  7694. }
  7695. if (y) {
  7696. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7697. return 0;
  7698. }
  7699. return 1;
  7700. }
  7701. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val)
  7702. {
  7703. if (val) {
  7704. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7705. if ((val)->o[0] & 0x80) {
  7706. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7707. }
  7708. if ((val)->o[0] & 0x40) {
  7709. ASN1Free_ResourcesAvailableConfirm_tokens(&(val)->tokens);
  7710. }
  7711. if ((val)->o[0] & 0x20) {
  7712. ASN1Free_ResourcesAvailableConfirm_cryptoTokens(&(val)->cryptoTokens);
  7713. }
  7714. if ((val)->o[0] & 0x10) {
  7715. ASN1Free_ICV(&(val)->integrityCheckValue);
  7716. }
  7717. }
  7718. }
  7719. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val)
  7720. {
  7721. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_integrity_ElmFn);
  7722. }
  7723. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_integrity val)
  7724. {
  7725. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7726. return 0;
  7727. return 1;
  7728. }
  7729. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val)
  7730. {
  7731. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_integrity_ElmFn, sizeof(**val));
  7732. }
  7733. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_integrity val)
  7734. {
  7735. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7736. return 0;
  7737. return 1;
  7738. }
  7739. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val)
  7740. {
  7741. if (val) {
  7742. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_integrity_ElmFn);
  7743. }
  7744. }
  7745. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity_ElmFn(PGatekeeperConfirm_integrity val)
  7746. {
  7747. if (val) {
  7748. ASN1Free_IntegrityMechanism(&val->value);
  7749. }
  7750. }
  7751. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val)
  7752. {
  7753. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_integrity_ElmFn);
  7754. }
  7755. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_integrity val)
  7756. {
  7757. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7758. return 0;
  7759. return 1;
  7760. }
  7761. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val)
  7762. {
  7763. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_integrity_ElmFn, sizeof(**val));
  7764. }
  7765. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_integrity val)
  7766. {
  7767. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7768. return 0;
  7769. return 1;
  7770. }
  7771. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val)
  7772. {
  7773. if (val) {
  7774. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_integrity_ElmFn);
  7775. }
  7776. }
  7777. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity_ElmFn(PGatekeeperRequest_integrity val)
  7778. {
  7779. if (val) {
  7780. ASN1Free_IntegrityMechanism(&val->value);
  7781. }
  7782. }
  7783. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val)
  7784. {
  7785. ASN1uint32_t l;
  7786. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperId).length - 1))
  7787. return 0;
  7788. ASN1PEREncAlignment(enc);
  7789. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperId).length, ((val)->gatekeeperId).value, 16))
  7790. return 0;
  7791. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  7792. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  7793. return 0;
  7794. ASN1PEREncAlignment(enc);
  7795. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  7796. return 0;
  7797. if (!ASN1Enc_HASHED(enc, &(val)->token))
  7798. return 0;
  7799. return 1;
  7800. }
  7801. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val)
  7802. {
  7803. ASN1uint32_t l;
  7804. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperId).length))
  7805. return 0;
  7806. ((val)->gatekeeperId).length += 1;
  7807. ASN1PERDecAlignment(dec);
  7808. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperId).length, &((val)->gatekeeperId).value, 16))
  7809. return 0;
  7810. if (!ASN1PERDecU32Val(dec, 2, &l))
  7811. return 0;
  7812. l += 1;
  7813. ASN1PERDecAlignment(dec);
  7814. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  7815. return 0;
  7816. (val)->timeStamp += 1;
  7817. if (!ASN1Dec_HASHED(dec, &(val)->token))
  7818. return 0;
  7819. return 1;
  7820. }
  7821. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val)
  7822. {
  7823. if (val) {
  7824. ASN1char16string_free(&(val)->gatekeeperId);
  7825. ASN1Free_HASHED(&(val)->token);
  7826. }
  7827. }
  7828. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val)
  7829. {
  7830. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn);
  7831. }
  7832. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported val)
  7833. {
  7834. if (!ASN1Enc_DataRate(enc, &val->value))
  7835. return 0;
  7836. return 1;
  7837. }
  7838. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val)
  7839. {
  7840. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn, sizeof(**val));
  7841. }
  7842. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported val)
  7843. {
  7844. if (!ASN1Dec_DataRate(dec, &val->value))
  7845. return 0;
  7846. return 1;
  7847. }
  7848. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val)
  7849. {
  7850. if (val) {
  7851. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn);
  7852. }
  7853. }
  7854. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn(PNonStandardProtocol_dataRatesSupported val)
  7855. {
  7856. if (val) {
  7857. ASN1Free_DataRate(&val->value);
  7858. }
  7859. }
  7860. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val)
  7861. {
  7862. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn);
  7863. }
  7864. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported val)
  7865. {
  7866. if (!ASN1Enc_DataRate(enc, &val->value))
  7867. return 0;
  7868. return 1;
  7869. }
  7870. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val)
  7871. {
  7872. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7873. }
  7874. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported val)
  7875. {
  7876. if (!ASN1Dec_DataRate(dec, &val->value))
  7877. return 0;
  7878. return 1;
  7879. }
  7880. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val)
  7881. {
  7882. if (val) {
  7883. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn);
  7884. }
  7885. }
  7886. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn(PT120OnlyCaps_dataRatesSupported val)
  7887. {
  7888. if (val) {
  7889. ASN1Free_DataRate(&val->value);
  7890. }
  7891. }
  7892. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val)
  7893. {
  7894. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn);
  7895. }
  7896. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported val)
  7897. {
  7898. if (!ASN1Enc_DataRate(enc, &val->value))
  7899. return 0;
  7900. return 1;
  7901. }
  7902. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val)
  7903. {
  7904. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7905. }
  7906. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported val)
  7907. {
  7908. if (!ASN1Dec_DataRate(dec, &val->value))
  7909. return 0;
  7910. return 1;
  7911. }
  7912. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val)
  7913. {
  7914. if (val) {
  7915. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_dataRatesSupported_ElmFn);
  7916. }
  7917. }
  7918. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported_ElmFn(PVoiceCaps_dataRatesSupported val)
  7919. {
  7920. if (val) {
  7921. ASN1Free_DataRate(&val->value);
  7922. }
  7923. }
  7924. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val)
  7925. {
  7926. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_dataRatesSupported_ElmFn);
  7927. }
  7928. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH324Caps_dataRatesSupported val)
  7929. {
  7930. if (!ASN1Enc_DataRate(enc, &val->value))
  7931. return 0;
  7932. return 1;
  7933. }
  7934. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val)
  7935. {
  7936. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7937. }
  7938. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH324Caps_dataRatesSupported val)
  7939. {
  7940. if (!ASN1Dec_DataRate(dec, &val->value))
  7941. return 0;
  7942. return 1;
  7943. }
  7944. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val)
  7945. {
  7946. if (val) {
  7947. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_dataRatesSupported_ElmFn);
  7948. }
  7949. }
  7950. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported_ElmFn(PH324Caps_dataRatesSupported val)
  7951. {
  7952. if (val) {
  7953. ASN1Free_DataRate(&val->value);
  7954. }
  7955. }
  7956. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val)
  7957. {
  7958. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_dataRatesSupported_ElmFn);
  7959. }
  7960. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH323Caps_dataRatesSupported val)
  7961. {
  7962. if (!ASN1Enc_DataRate(enc, &val->value))
  7963. return 0;
  7964. return 1;
  7965. }
  7966. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val)
  7967. {
  7968. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7969. }
  7970. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH323Caps_dataRatesSupported val)
  7971. {
  7972. if (!ASN1Dec_DataRate(dec, &val->value))
  7973. return 0;
  7974. return 1;
  7975. }
  7976. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val)
  7977. {
  7978. if (val) {
  7979. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_dataRatesSupported_ElmFn);
  7980. }
  7981. }
  7982. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported_ElmFn(PH323Caps_dataRatesSupported val)
  7983. {
  7984. if (val) {
  7985. ASN1Free_DataRate(&val->value);
  7986. }
  7987. }
  7988. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val)
  7989. {
  7990. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_dataRatesSupported_ElmFn);
  7991. }
  7992. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH322Caps_dataRatesSupported val)
  7993. {
  7994. if (!ASN1Enc_DataRate(enc, &val->value))
  7995. return 0;
  7996. return 1;
  7997. }
  7998. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val)
  7999. {
  8000. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8001. }
  8002. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH322Caps_dataRatesSupported val)
  8003. {
  8004. if (!ASN1Dec_DataRate(dec, &val->value))
  8005. return 0;
  8006. return 1;
  8007. }
  8008. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val)
  8009. {
  8010. if (val) {
  8011. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_dataRatesSupported_ElmFn);
  8012. }
  8013. }
  8014. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported_ElmFn(PH322Caps_dataRatesSupported val)
  8015. {
  8016. if (val) {
  8017. ASN1Free_DataRate(&val->value);
  8018. }
  8019. }
  8020. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val)
  8021. {
  8022. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_dataRatesSupported_ElmFn);
  8023. }
  8024. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH321Caps_dataRatesSupported val)
  8025. {
  8026. if (!ASN1Enc_DataRate(enc, &val->value))
  8027. return 0;
  8028. return 1;
  8029. }
  8030. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val)
  8031. {
  8032. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8033. }
  8034. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH321Caps_dataRatesSupported val)
  8035. {
  8036. if (!ASN1Dec_DataRate(dec, &val->value))
  8037. return 0;
  8038. return 1;
  8039. }
  8040. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val)
  8041. {
  8042. if (val) {
  8043. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_dataRatesSupported_ElmFn);
  8044. }
  8045. }
  8046. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported_ElmFn(PH321Caps_dataRatesSupported val)
  8047. {
  8048. if (val) {
  8049. ASN1Free_DataRate(&val->value);
  8050. }
  8051. }
  8052. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val)
  8053. {
  8054. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_dataRatesSupported_ElmFn);
  8055. }
  8056. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH320Caps_dataRatesSupported val)
  8057. {
  8058. if (!ASN1Enc_DataRate(enc, &val->value))
  8059. return 0;
  8060. return 1;
  8061. }
  8062. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val)
  8063. {
  8064. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8065. }
  8066. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH320Caps_dataRatesSupported val)
  8067. {
  8068. if (!ASN1Dec_DataRate(dec, &val->value))
  8069. return 0;
  8070. return 1;
  8071. }
  8072. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val)
  8073. {
  8074. if (val) {
  8075. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_dataRatesSupported_ElmFn);
  8076. }
  8077. }
  8078. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported_ElmFn(PH320Caps_dataRatesSupported val)
  8079. {
  8080. if (val) {
  8081. ASN1Free_DataRate(&val->value);
  8082. }
  8083. }
  8084. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val)
  8085. {
  8086. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_dataRatesSupported_ElmFn);
  8087. }
  8088. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH310Caps_dataRatesSupported val)
  8089. {
  8090. if (!ASN1Enc_DataRate(enc, &val->value))
  8091. return 0;
  8092. return 1;
  8093. }
  8094. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val)
  8095. {
  8096. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8097. }
  8098. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH310Caps_dataRatesSupported val)
  8099. {
  8100. if (!ASN1Dec_DataRate(dec, &val->value))
  8101. return 0;
  8102. return 1;
  8103. }
  8104. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val)
  8105. {
  8106. if (val) {
  8107. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_dataRatesSupported_ElmFn);
  8108. }
  8109. }
  8110. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported_ElmFn(PH310Caps_dataRatesSupported val)
  8111. {
  8112. if (val) {
  8113. ASN1Free_DataRate(&val->value);
  8114. }
  8115. }
  8116. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val)
  8117. {
  8118. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn);
  8119. }
  8120. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability val)
  8121. {
  8122. if (!ASN1Enc_H245Security(enc, &val->value))
  8123. return 0;
  8124. return 1;
  8125. }
  8126. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val)
  8127. {
  8128. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn, sizeof(**val));
  8129. }
  8130. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability val)
  8131. {
  8132. if (!ASN1Dec_H245Security(dec, &val->value))
  8133. return 0;
  8134. return 1;
  8135. }
  8136. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val)
  8137. {
  8138. if (val) {
  8139. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn);
  8140. }
  8141. }
  8142. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn(PSetup_UUIE_h245SecurityCapability val)
  8143. {
  8144. if (val) {
  8145. ASN1Free_H245Security(&val->value);
  8146. }
  8147. }
  8148. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val)
  8149. {
  8150. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn);
  8151. }
  8152. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl val)
  8153. {
  8154. if (!ASN1Enc_H225NonStandardParameter(enc, &val->value))
  8155. return 0;
  8156. return 1;
  8157. }
  8158. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val)
  8159. {
  8160. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn, sizeof(**val));
  8161. }
  8162. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl val)
  8163. {
  8164. if (!ASN1Dec_H225NonStandardParameter(dec, &val->value))
  8165. return 0;
  8166. return 1;
  8167. }
  8168. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val)
  8169. {
  8170. if (val) {
  8171. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn);
  8172. }
  8173. }
  8174. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn(PH323_UU_PDU_nonStandardControl val)
  8175. {
  8176. if (val) {
  8177. ASN1Free_H225NonStandardParameter(&val->value);
  8178. }
  8179. }
  8180. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val)
  8181. {
  8182. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8183. return 0;
  8184. if (!ASN1Enc_ClearToken(enc, &(val)->hashedVals))
  8185. return 0;
  8186. if (!ASN1Enc_HASHED(enc, &(val)->token))
  8187. return 0;
  8188. return 1;
  8189. }
  8190. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val)
  8191. {
  8192. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8193. return 0;
  8194. if (!ASN1Dec_ClearToken(dec, &(val)->hashedVals))
  8195. return 0;
  8196. if (!ASN1Dec_HASHED(dec, &(val)->token))
  8197. return 0;
  8198. return 1;
  8199. }
  8200. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val)
  8201. {
  8202. if (val) {
  8203. ASN1objectidentifier_free(&(val)->tokenOID);
  8204. ASN1Free_ClearToken(&(val)->hashedVals);
  8205. ASN1Free_HASHED(&(val)->token);
  8206. }
  8207. }
  8208. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val)
  8209. {
  8210. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8211. return 0;
  8212. if (!ASN1Enc_SIGNED_EncodedGeneralToken(enc, &(val)->token))
  8213. return 0;
  8214. return 1;
  8215. }
  8216. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val)
  8217. {
  8218. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8219. return 0;
  8220. if (!ASN1Dec_SIGNED_EncodedGeneralToken(dec, &(val)->token))
  8221. return 0;
  8222. return 1;
  8223. }
  8224. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val)
  8225. {
  8226. if (val) {
  8227. ASN1objectidentifier_free(&(val)->tokenOID);
  8228. ASN1Free_SIGNED_EncodedGeneralToken(&(val)->token);
  8229. }
  8230. }
  8231. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val)
  8232. {
  8233. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8234. return 0;
  8235. if (!ASN1Enc_ENCRYPTED(enc, &(val)->token))
  8236. return 0;
  8237. return 1;
  8238. }
  8239. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val)
  8240. {
  8241. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8242. return 0;
  8243. if (!ASN1Dec_ENCRYPTED(dec, &(val)->token))
  8244. return 0;
  8245. return 1;
  8246. }
  8247. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val)
  8248. {
  8249. if (val) {
  8250. ASN1objectidentifier_free(&(val)->tokenOID);
  8251. ASN1Free_ENCRYPTED(&(val)->token);
  8252. }
  8253. }
  8254. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val)
  8255. {
  8256. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  8257. return 0;
  8258. switch ((val)->choice) {
  8259. case 1:
  8260. if (!ASN1Enc_CryptoToken_cryptoEncryptedToken(enc, &(val)->u.cryptoEncryptedToken))
  8261. return 0;
  8262. break;
  8263. case 2:
  8264. if (!ASN1Enc_CryptoToken_cryptoSignedToken(enc, &(val)->u.cryptoSignedToken))
  8265. return 0;
  8266. break;
  8267. case 3:
  8268. if (!ASN1Enc_CryptoToken_cryptoHashedToken(enc, &(val)->u.cryptoHashedToken))
  8269. return 0;
  8270. break;
  8271. case 4:
  8272. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoPwdEncr))
  8273. return 0;
  8274. break;
  8275. default:
  8276. /* impossible */
  8277. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8278. return 0;
  8279. }
  8280. return 1;
  8281. }
  8282. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val)
  8283. {
  8284. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  8285. return 0;
  8286. switch ((val)->choice) {
  8287. case 1:
  8288. if (!ASN1Dec_CryptoToken_cryptoEncryptedToken(dec, &(val)->u.cryptoEncryptedToken))
  8289. return 0;
  8290. break;
  8291. case 2:
  8292. if (!ASN1Dec_CryptoToken_cryptoSignedToken(dec, &(val)->u.cryptoSignedToken))
  8293. return 0;
  8294. break;
  8295. case 3:
  8296. if (!ASN1Dec_CryptoToken_cryptoHashedToken(dec, &(val)->u.cryptoHashedToken))
  8297. return 0;
  8298. break;
  8299. case 4:
  8300. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoPwdEncr))
  8301. return 0;
  8302. break;
  8303. case 0:
  8304. /* extension case */
  8305. if (!ASN1PERDecSkipFragmented(dec, 8))
  8306. return 0;
  8307. break;
  8308. default:
  8309. /* impossible */
  8310. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8311. return 0;
  8312. }
  8313. return 1;
  8314. }
  8315. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val)
  8316. {
  8317. if (val) {
  8318. switch ((val)->choice) {
  8319. case 1:
  8320. ASN1Free_CryptoToken_cryptoEncryptedToken(&(val)->u.cryptoEncryptedToken);
  8321. break;
  8322. case 2:
  8323. ASN1Free_CryptoToken_cryptoSignedToken(&(val)->u.cryptoSignedToken);
  8324. break;
  8325. case 3:
  8326. ASN1Free_CryptoToken_cryptoHashedToken(&(val)->u.cryptoHashedToken);
  8327. break;
  8328. case 4:
  8329. ASN1Free_ENCRYPTED(&(val)->u.cryptoPwdEncr);
  8330. break;
  8331. }
  8332. }
  8333. }
  8334. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val)
  8335. {
  8336. if (!ASN1Enc_EncodedFastStartToken(enc, &(val)->toBeSigned))
  8337. return 0;
  8338. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  8339. return 0;
  8340. if (!ASN1Enc_Params(enc, &(val)->paramS))
  8341. return 0;
  8342. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  8343. return 0;
  8344. return 1;
  8345. }
  8346. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val)
  8347. {
  8348. if (!ASN1Dec_EncodedFastStartToken(dec, &(val)->toBeSigned))
  8349. return 0;
  8350. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  8351. return 0;
  8352. if (!ASN1Dec_Params(dec, &(val)->paramS))
  8353. return 0;
  8354. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  8355. return 0;
  8356. return 1;
  8357. }
  8358. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val)
  8359. {
  8360. if (val) {
  8361. ASN1Free_EncodedFastStartToken(&(val)->toBeSigned);
  8362. ASN1objectidentifier_free(&(val)->algorithmOID);
  8363. ASN1Free_Params(&(val)->paramS);
  8364. ASN1bitstring_free(&(val)->signature);
  8365. }
  8366. }
  8367. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val)
  8368. {
  8369. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8370. return 0;
  8371. switch ((val)->choice) {
  8372. case 1:
  8373. if (!ASN1Enc_TransportAddress_ipAddress(enc, &(val)->u.ipAddress))
  8374. return 0;
  8375. break;
  8376. case 2:
  8377. if (!ASN1Enc_TransportAddress_ipSourceRoute(enc, &(val)->u.ipSourceRoute))
  8378. return 0;
  8379. break;
  8380. case 3:
  8381. if (!ASN1Enc_TransportAddress_ipxAddress(enc, &(val)->u.ipxAddress))
  8382. return 0;
  8383. break;
  8384. case 4:
  8385. if (!ASN1Enc_TransportAddress_ip6Address(enc, &(val)->u.ip6Address))
  8386. return 0;
  8387. break;
  8388. case 5:
  8389. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8390. return 0;
  8391. break;
  8392. case 6:
  8393. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8394. return 0;
  8395. break;
  8396. case 7:
  8397. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardAddress))
  8398. return 0;
  8399. break;
  8400. default:
  8401. /* impossible */
  8402. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8403. return 0;
  8404. }
  8405. return 1;
  8406. }
  8407. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val)
  8408. {
  8409. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8410. return 0;
  8411. switch ((val)->choice) {
  8412. case 1:
  8413. if (!ASN1Dec_TransportAddress_ipAddress(dec, &(val)->u.ipAddress))
  8414. return 0;
  8415. break;
  8416. case 2:
  8417. if (!ASN1Dec_TransportAddress_ipSourceRoute(dec, &(val)->u.ipSourceRoute))
  8418. return 0;
  8419. break;
  8420. case 3:
  8421. if (!ASN1Dec_TransportAddress_ipxAddress(dec, &(val)->u.ipxAddress))
  8422. return 0;
  8423. break;
  8424. case 4:
  8425. if (!ASN1Dec_TransportAddress_ip6Address(dec, &(val)->u.ip6Address))
  8426. return 0;
  8427. break;
  8428. case 5:
  8429. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8430. return 0;
  8431. break;
  8432. case 6:
  8433. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8434. return 0;
  8435. break;
  8436. case 7:
  8437. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardAddress))
  8438. return 0;
  8439. break;
  8440. case 0:
  8441. /* extension case */
  8442. if (!ASN1PERDecSkipFragmented(dec, 8))
  8443. return 0;
  8444. break;
  8445. default:
  8446. /* impossible */
  8447. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8448. return 0;
  8449. }
  8450. return 1;
  8451. }
  8452. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val)
  8453. {
  8454. if (val) {
  8455. switch ((val)->choice) {
  8456. case 1:
  8457. ASN1Free_TransportAddress_ipAddress(&(val)->u.ipAddress);
  8458. break;
  8459. case 2:
  8460. ASN1Free_TransportAddress_ipSourceRoute(&(val)->u.ipSourceRoute);
  8461. break;
  8462. case 3:
  8463. ASN1Free_TransportAddress_ipxAddress(&(val)->u.ipxAddress);
  8464. break;
  8465. case 4:
  8466. ASN1Free_TransportAddress_ip6Address(&(val)->u.ip6Address);
  8467. break;
  8468. case 5:
  8469. break;
  8470. case 6:
  8471. break;
  8472. case 7:
  8473. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardAddress);
  8474. break;
  8475. }
  8476. }
  8477. }
  8478. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val)
  8479. {
  8480. if (!ASN1PEREncExtensionBitClear(enc))
  8481. return 0;
  8482. if (!ASN1PEREncBits(enc, 2, (val)->o))
  8483. return 0;
  8484. if ((val)->o[0] & 0x80) {
  8485. if (!ASN1Enc_GatewayInfo_protocol(enc, &(val)->protocol))
  8486. return 0;
  8487. }
  8488. if ((val)->o[0] & 0x40) {
  8489. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8490. return 0;
  8491. }
  8492. return 1;
  8493. }
  8494. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val)
  8495. {
  8496. ASN1uint32_t y;
  8497. if (!ASN1PERDecExtensionBit(dec, &y))
  8498. return 0;
  8499. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  8500. return 0;
  8501. if ((val)->o[0] & 0x80) {
  8502. if (!ASN1Dec_GatewayInfo_protocol(dec, &(val)->protocol))
  8503. return 0;
  8504. }
  8505. if ((val)->o[0] & 0x40) {
  8506. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8507. return 0;
  8508. }
  8509. if (y) {
  8510. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8511. return 0;
  8512. }
  8513. return 1;
  8514. }
  8515. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val)
  8516. {
  8517. if (val) {
  8518. if ((val)->o[0] & 0x80) {
  8519. ASN1Free_GatewayInfo_protocol(&(val)->protocol);
  8520. }
  8521. if ((val)->o[0] & 0x40) {
  8522. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8523. }
  8524. }
  8525. }
  8526. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val)
  8527. {
  8528. ASN1octet_t o[2];
  8529. ASN1uint32_t y;
  8530. ASN1encoding_t ee;
  8531. CopyMemory(o, (val)->o, 2);
  8532. o[1] |= 0x40;
  8533. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8534. if (!ASN1PEREncBitVal(enc, 1, y))
  8535. return 0;
  8536. if (!ASN1PEREncBits(enc, 1, o))
  8537. return 0;
  8538. if (o[0] & 0x80) {
  8539. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8540. return 0;
  8541. }
  8542. if (y) {
  8543. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8544. return 0;
  8545. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8546. return 0;
  8547. if (o[1] & 0x80) {
  8548. if (!ASN1Enc_H310Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8549. return 0;
  8550. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8551. return 0;
  8552. }
  8553. if (o[1] & 0x40) {
  8554. if (!ASN1Enc_H310Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8555. return 0;
  8556. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8557. return 0;
  8558. }
  8559. ASN1_CloseEncoder2(ee);
  8560. }
  8561. return 1;
  8562. }
  8563. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val)
  8564. {
  8565. ASN1uint32_t y;
  8566. ASN1decoding_t dd;
  8567. ASN1octet_t *db;
  8568. ASN1uint32_t ds;
  8569. ASN1uint32_t i;
  8570. ASN1uint32_t e;
  8571. if (!ASN1PERDecExtensionBit(dec, &y))
  8572. return 0;
  8573. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8574. return 0;
  8575. if ((val)->o[0] & 0x80) {
  8576. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8577. return 0;
  8578. }
  8579. if (!y) {
  8580. ZeroMemory((val)->o + 1, 1);
  8581. } else {
  8582. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8583. return 0;
  8584. if ((val)->o[1] & 0x80) {
  8585. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8586. return 0;
  8587. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8588. return 0;
  8589. if (!ASN1Dec_H310Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8590. return 0;
  8591. ASN1_CloseDecoder(dd);
  8592. ASN1Free(db);
  8593. }
  8594. if ((val)->o[1] & 0x40) {
  8595. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8596. return 0;
  8597. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8598. return 0;
  8599. if (!ASN1Dec_H310Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8600. return 0;
  8601. ASN1_CloseDecoder(dd);
  8602. ASN1Free(db);
  8603. }
  8604. for (i = 0; i < e; i++) {
  8605. if (!ASN1PERDecSkipFragmented(dec, 8))
  8606. return 0;
  8607. }
  8608. }
  8609. return 1;
  8610. }
  8611. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val)
  8612. {
  8613. if (val) {
  8614. if ((val)->o[0] & 0x80) {
  8615. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8616. }
  8617. if ((val)->o[1] & 0x80) {
  8618. ASN1Free_H310Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8619. }
  8620. if ((val)->o[1] & 0x40) {
  8621. ASN1Free_H310Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8622. }
  8623. }
  8624. }
  8625. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val)
  8626. {
  8627. ASN1octet_t o[2];
  8628. ASN1uint32_t y;
  8629. ASN1encoding_t ee;
  8630. CopyMemory(o, (val)->o, 2);
  8631. o[1] |= 0x40;
  8632. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8633. if (!ASN1PEREncBitVal(enc, 1, y))
  8634. return 0;
  8635. if (!ASN1PEREncBits(enc, 1, o))
  8636. return 0;
  8637. if (o[0] & 0x80) {
  8638. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8639. return 0;
  8640. }
  8641. if (y) {
  8642. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8643. return 0;
  8644. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8645. return 0;
  8646. if (o[1] & 0x80) {
  8647. if (!ASN1Enc_H320Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8648. return 0;
  8649. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8650. return 0;
  8651. }
  8652. if (o[1] & 0x40) {
  8653. if (!ASN1Enc_H320Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8654. return 0;
  8655. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8656. return 0;
  8657. }
  8658. ASN1_CloseEncoder2(ee);
  8659. }
  8660. return 1;
  8661. }
  8662. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val)
  8663. {
  8664. ASN1uint32_t y;
  8665. ASN1decoding_t dd;
  8666. ASN1octet_t *db;
  8667. ASN1uint32_t ds;
  8668. ASN1uint32_t i;
  8669. ASN1uint32_t e;
  8670. if (!ASN1PERDecExtensionBit(dec, &y))
  8671. return 0;
  8672. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8673. return 0;
  8674. if ((val)->o[0] & 0x80) {
  8675. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8676. return 0;
  8677. }
  8678. if (!y) {
  8679. ZeroMemory((val)->o + 1, 1);
  8680. } else {
  8681. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8682. return 0;
  8683. if ((val)->o[1] & 0x80) {
  8684. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8685. return 0;
  8686. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8687. return 0;
  8688. if (!ASN1Dec_H320Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8689. return 0;
  8690. ASN1_CloseDecoder(dd);
  8691. ASN1Free(db);
  8692. }
  8693. if ((val)->o[1] & 0x40) {
  8694. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8695. return 0;
  8696. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8697. return 0;
  8698. if (!ASN1Dec_H320Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8699. return 0;
  8700. ASN1_CloseDecoder(dd);
  8701. ASN1Free(db);
  8702. }
  8703. for (i = 0; i < e; i++) {
  8704. if (!ASN1PERDecSkipFragmented(dec, 8))
  8705. return 0;
  8706. }
  8707. }
  8708. return 1;
  8709. }
  8710. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val)
  8711. {
  8712. if (val) {
  8713. if ((val)->o[0] & 0x80) {
  8714. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8715. }
  8716. if ((val)->o[1] & 0x80) {
  8717. ASN1Free_H320Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8718. }
  8719. if ((val)->o[1] & 0x40) {
  8720. ASN1Free_H320Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8721. }
  8722. }
  8723. }
  8724. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val)
  8725. {
  8726. ASN1octet_t o[2];
  8727. ASN1uint32_t y;
  8728. ASN1encoding_t ee;
  8729. CopyMemory(o, (val)->o, 2);
  8730. o[1] |= 0x40;
  8731. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8732. if (!ASN1PEREncBitVal(enc, 1, y))
  8733. return 0;
  8734. if (!ASN1PEREncBits(enc, 1, o))
  8735. return 0;
  8736. if (o[0] & 0x80) {
  8737. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8738. return 0;
  8739. }
  8740. if (y) {
  8741. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8742. return 0;
  8743. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8744. return 0;
  8745. if (o[1] & 0x80) {
  8746. if (!ASN1Enc_H321Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8747. return 0;
  8748. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8749. return 0;
  8750. }
  8751. if (o[1] & 0x40) {
  8752. if (!ASN1Enc_H321Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8753. return 0;
  8754. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8755. return 0;
  8756. }
  8757. ASN1_CloseEncoder2(ee);
  8758. }
  8759. return 1;
  8760. }
  8761. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val)
  8762. {
  8763. ASN1uint32_t y;
  8764. ASN1decoding_t dd;
  8765. ASN1octet_t *db;
  8766. ASN1uint32_t ds;
  8767. ASN1uint32_t i;
  8768. ASN1uint32_t e;
  8769. if (!ASN1PERDecExtensionBit(dec, &y))
  8770. return 0;
  8771. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8772. return 0;
  8773. if ((val)->o[0] & 0x80) {
  8774. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8775. return 0;
  8776. }
  8777. if (!y) {
  8778. ZeroMemory((val)->o + 1, 1);
  8779. } else {
  8780. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8781. return 0;
  8782. if ((val)->o[1] & 0x80) {
  8783. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8784. return 0;
  8785. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8786. return 0;
  8787. if (!ASN1Dec_H321Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8788. return 0;
  8789. ASN1_CloseDecoder(dd);
  8790. ASN1Free(db);
  8791. }
  8792. if ((val)->o[1] & 0x40) {
  8793. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8794. return 0;
  8795. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8796. return 0;
  8797. if (!ASN1Dec_H321Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8798. return 0;
  8799. ASN1_CloseDecoder(dd);
  8800. ASN1Free(db);
  8801. }
  8802. for (i = 0; i < e; i++) {
  8803. if (!ASN1PERDecSkipFragmented(dec, 8))
  8804. return 0;
  8805. }
  8806. }
  8807. return 1;
  8808. }
  8809. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val)
  8810. {
  8811. if (val) {
  8812. if ((val)->o[0] & 0x80) {
  8813. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8814. }
  8815. if ((val)->o[1] & 0x80) {
  8816. ASN1Free_H321Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8817. }
  8818. if ((val)->o[1] & 0x40) {
  8819. ASN1Free_H321Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8820. }
  8821. }
  8822. }
  8823. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val)
  8824. {
  8825. ASN1octet_t o[2];
  8826. ASN1uint32_t y;
  8827. ASN1encoding_t ee;
  8828. CopyMemory(o, (val)->o, 2);
  8829. o[1] |= 0x40;
  8830. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8831. if (!ASN1PEREncBitVal(enc, 1, y))
  8832. return 0;
  8833. if (!ASN1PEREncBits(enc, 1, o))
  8834. return 0;
  8835. if (o[0] & 0x80) {
  8836. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8837. return 0;
  8838. }
  8839. if (y) {
  8840. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8841. return 0;
  8842. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8843. return 0;
  8844. if (o[1] & 0x80) {
  8845. if (!ASN1Enc_H322Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8846. return 0;
  8847. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8848. return 0;
  8849. }
  8850. if (o[1] & 0x40) {
  8851. if (!ASN1Enc_H322Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8852. return 0;
  8853. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8854. return 0;
  8855. }
  8856. ASN1_CloseEncoder2(ee);
  8857. }
  8858. return 1;
  8859. }
  8860. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val)
  8861. {
  8862. ASN1uint32_t y;
  8863. ASN1decoding_t dd;
  8864. ASN1octet_t *db;
  8865. ASN1uint32_t ds;
  8866. ASN1uint32_t i;
  8867. ASN1uint32_t e;
  8868. if (!ASN1PERDecExtensionBit(dec, &y))
  8869. return 0;
  8870. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8871. return 0;
  8872. if ((val)->o[0] & 0x80) {
  8873. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8874. return 0;
  8875. }
  8876. if (!y) {
  8877. ZeroMemory((val)->o + 1, 1);
  8878. } else {
  8879. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8880. return 0;
  8881. if ((val)->o[1] & 0x80) {
  8882. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8883. return 0;
  8884. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8885. return 0;
  8886. if (!ASN1Dec_H322Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8887. return 0;
  8888. ASN1_CloseDecoder(dd);
  8889. ASN1Free(db);
  8890. }
  8891. if ((val)->o[1] & 0x40) {
  8892. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8893. return 0;
  8894. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8895. return 0;
  8896. if (!ASN1Dec_H322Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8897. return 0;
  8898. ASN1_CloseDecoder(dd);
  8899. ASN1Free(db);
  8900. }
  8901. for (i = 0; i < e; i++) {
  8902. if (!ASN1PERDecSkipFragmented(dec, 8))
  8903. return 0;
  8904. }
  8905. }
  8906. return 1;
  8907. }
  8908. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val)
  8909. {
  8910. if (val) {
  8911. if ((val)->o[0] & 0x80) {
  8912. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8913. }
  8914. if ((val)->o[1] & 0x80) {
  8915. ASN1Free_H322Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8916. }
  8917. if ((val)->o[1] & 0x40) {
  8918. ASN1Free_H322Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8919. }
  8920. }
  8921. }
  8922. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val)
  8923. {
  8924. ASN1octet_t o[2];
  8925. ASN1uint32_t y;
  8926. ASN1encoding_t ee;
  8927. CopyMemory(o, (val)->o, 2);
  8928. o[1] |= 0x40;
  8929. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8930. if (!ASN1PEREncBitVal(enc, 1, y))
  8931. return 0;
  8932. if (!ASN1PEREncBits(enc, 1, o))
  8933. return 0;
  8934. if (o[0] & 0x80) {
  8935. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8936. return 0;
  8937. }
  8938. if (y) {
  8939. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8940. return 0;
  8941. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8942. return 0;
  8943. if (o[1] & 0x80) {
  8944. if (!ASN1Enc_H323Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8945. return 0;
  8946. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8947. return 0;
  8948. }
  8949. if (o[1] & 0x40) {
  8950. if (!ASN1Enc_H323Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8951. return 0;
  8952. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8953. return 0;
  8954. }
  8955. ASN1_CloseEncoder2(ee);
  8956. }
  8957. return 1;
  8958. }
  8959. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val)
  8960. {
  8961. ASN1uint32_t y;
  8962. ASN1decoding_t dd;
  8963. ASN1octet_t *db;
  8964. ASN1uint32_t ds;
  8965. ASN1uint32_t i;
  8966. ASN1uint32_t e;
  8967. if (!ASN1PERDecExtensionBit(dec, &y))
  8968. return 0;
  8969. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8970. return 0;
  8971. if ((val)->o[0] & 0x80) {
  8972. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8973. return 0;
  8974. }
  8975. if (!y) {
  8976. ZeroMemory((val)->o + 1, 1);
  8977. } else {
  8978. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8979. return 0;
  8980. if ((val)->o[1] & 0x80) {
  8981. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8982. return 0;
  8983. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8984. return 0;
  8985. if (!ASN1Dec_H323Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8986. return 0;
  8987. ASN1_CloseDecoder(dd);
  8988. ASN1Free(db);
  8989. }
  8990. if ((val)->o[1] & 0x40) {
  8991. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8992. return 0;
  8993. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8994. return 0;
  8995. if (!ASN1Dec_H323Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8996. return 0;
  8997. ASN1_CloseDecoder(dd);
  8998. ASN1Free(db);
  8999. }
  9000. for (i = 0; i < e; i++) {
  9001. if (!ASN1PERDecSkipFragmented(dec, 8))
  9002. return 0;
  9003. }
  9004. }
  9005. return 1;
  9006. }
  9007. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val)
  9008. {
  9009. if (val) {
  9010. if ((val)->o[0] & 0x80) {
  9011. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9012. }
  9013. if ((val)->o[1] & 0x80) {
  9014. ASN1Free_H323Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9015. }
  9016. if ((val)->o[1] & 0x40) {
  9017. ASN1Free_H323Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9018. }
  9019. }
  9020. }
  9021. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val)
  9022. {
  9023. ASN1octet_t o[2];
  9024. ASN1uint32_t y;
  9025. ASN1encoding_t ee;
  9026. CopyMemory(o, (val)->o, 2);
  9027. o[1] |= 0x40;
  9028. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9029. if (!ASN1PEREncBitVal(enc, 1, y))
  9030. return 0;
  9031. if (!ASN1PEREncBits(enc, 1, o))
  9032. return 0;
  9033. if (o[0] & 0x80) {
  9034. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9035. return 0;
  9036. }
  9037. if (y) {
  9038. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9039. return 0;
  9040. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9041. return 0;
  9042. if (o[1] & 0x80) {
  9043. if (!ASN1Enc_H324Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9044. return 0;
  9045. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9046. return 0;
  9047. }
  9048. if (o[1] & 0x40) {
  9049. if (!ASN1Enc_H324Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9050. return 0;
  9051. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9052. return 0;
  9053. }
  9054. ASN1_CloseEncoder2(ee);
  9055. }
  9056. return 1;
  9057. }
  9058. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val)
  9059. {
  9060. ASN1uint32_t y;
  9061. ASN1decoding_t dd;
  9062. ASN1octet_t *db;
  9063. ASN1uint32_t ds;
  9064. ASN1uint32_t i;
  9065. ASN1uint32_t e;
  9066. if (!ASN1PERDecExtensionBit(dec, &y))
  9067. return 0;
  9068. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9069. return 0;
  9070. if ((val)->o[0] & 0x80) {
  9071. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9072. return 0;
  9073. }
  9074. if (!y) {
  9075. ZeroMemory((val)->o + 1, 1);
  9076. } else {
  9077. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9078. return 0;
  9079. if ((val)->o[1] & 0x80) {
  9080. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9081. return 0;
  9082. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9083. return 0;
  9084. if (!ASN1Dec_H324Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9085. return 0;
  9086. ASN1_CloseDecoder(dd);
  9087. ASN1Free(db);
  9088. }
  9089. if ((val)->o[1] & 0x40) {
  9090. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9091. return 0;
  9092. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9093. return 0;
  9094. if (!ASN1Dec_H324Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9095. return 0;
  9096. ASN1_CloseDecoder(dd);
  9097. ASN1Free(db);
  9098. }
  9099. for (i = 0; i < e; i++) {
  9100. if (!ASN1PERDecSkipFragmented(dec, 8))
  9101. return 0;
  9102. }
  9103. }
  9104. return 1;
  9105. }
  9106. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val)
  9107. {
  9108. if (val) {
  9109. if ((val)->o[0] & 0x80) {
  9110. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9111. }
  9112. if ((val)->o[1] & 0x80) {
  9113. ASN1Free_H324Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9114. }
  9115. if ((val)->o[1] & 0x40) {
  9116. ASN1Free_H324Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9117. }
  9118. }
  9119. }
  9120. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val)
  9121. {
  9122. ASN1octet_t o[2];
  9123. ASN1uint32_t y;
  9124. ASN1encoding_t ee;
  9125. CopyMemory(o, (val)->o, 2);
  9126. o[1] |= 0x40;
  9127. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9128. if (!ASN1PEREncBitVal(enc, 1, y))
  9129. return 0;
  9130. if (!ASN1PEREncBits(enc, 1, o))
  9131. return 0;
  9132. if (o[0] & 0x80) {
  9133. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9134. return 0;
  9135. }
  9136. if (y) {
  9137. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9138. return 0;
  9139. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9140. return 0;
  9141. if (o[1] & 0x80) {
  9142. if (!ASN1Enc_VoiceCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9143. return 0;
  9144. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9145. return 0;
  9146. }
  9147. if (o[1] & 0x40) {
  9148. if (!ASN1Enc_VoiceCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9149. return 0;
  9150. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9151. return 0;
  9152. }
  9153. ASN1_CloseEncoder2(ee);
  9154. }
  9155. return 1;
  9156. }
  9157. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val)
  9158. {
  9159. ASN1uint32_t y;
  9160. ASN1decoding_t dd;
  9161. ASN1octet_t *db;
  9162. ASN1uint32_t ds;
  9163. ASN1uint32_t i;
  9164. ASN1uint32_t e;
  9165. if (!ASN1PERDecExtensionBit(dec, &y))
  9166. return 0;
  9167. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9168. return 0;
  9169. if ((val)->o[0] & 0x80) {
  9170. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9171. return 0;
  9172. }
  9173. if (!y) {
  9174. ZeroMemory((val)->o + 1, 1);
  9175. } else {
  9176. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9177. return 0;
  9178. if ((val)->o[1] & 0x80) {
  9179. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9180. return 0;
  9181. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9182. return 0;
  9183. if (!ASN1Dec_VoiceCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9184. return 0;
  9185. ASN1_CloseDecoder(dd);
  9186. ASN1Free(db);
  9187. }
  9188. if ((val)->o[1] & 0x40) {
  9189. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9190. return 0;
  9191. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9192. return 0;
  9193. if (!ASN1Dec_VoiceCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9194. return 0;
  9195. ASN1_CloseDecoder(dd);
  9196. ASN1Free(db);
  9197. }
  9198. for (i = 0; i < e; i++) {
  9199. if (!ASN1PERDecSkipFragmented(dec, 8))
  9200. return 0;
  9201. }
  9202. }
  9203. return 1;
  9204. }
  9205. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val)
  9206. {
  9207. if (val) {
  9208. if ((val)->o[0] & 0x80) {
  9209. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9210. }
  9211. if ((val)->o[1] & 0x80) {
  9212. ASN1Free_VoiceCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9213. }
  9214. if ((val)->o[1] & 0x40) {
  9215. ASN1Free_VoiceCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9216. }
  9217. }
  9218. }
  9219. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val)
  9220. {
  9221. ASN1octet_t o[2];
  9222. ASN1uint32_t y;
  9223. ASN1encoding_t ee;
  9224. CopyMemory(o, (val)->o, 2);
  9225. o[1] |= 0x40;
  9226. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9227. if (!ASN1PEREncBitVal(enc, 1, y))
  9228. return 0;
  9229. if (!ASN1PEREncBits(enc, 1, o))
  9230. return 0;
  9231. if (o[0] & 0x80) {
  9232. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9233. return 0;
  9234. }
  9235. if (y) {
  9236. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9237. return 0;
  9238. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9239. return 0;
  9240. if (o[1] & 0x80) {
  9241. if (!ASN1Enc_T120OnlyCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9242. return 0;
  9243. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9244. return 0;
  9245. }
  9246. if (o[1] & 0x40) {
  9247. if (!ASN1Enc_T120OnlyCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9248. return 0;
  9249. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9250. return 0;
  9251. }
  9252. ASN1_CloseEncoder2(ee);
  9253. }
  9254. return 1;
  9255. }
  9256. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val)
  9257. {
  9258. ASN1uint32_t y;
  9259. ASN1decoding_t dd;
  9260. ASN1octet_t *db;
  9261. ASN1uint32_t ds;
  9262. ASN1uint32_t i;
  9263. ASN1uint32_t e;
  9264. if (!ASN1PERDecExtensionBit(dec, &y))
  9265. return 0;
  9266. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9267. return 0;
  9268. if ((val)->o[0] & 0x80) {
  9269. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9270. return 0;
  9271. }
  9272. if (!y) {
  9273. ZeroMemory((val)->o + 1, 1);
  9274. } else {
  9275. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9276. return 0;
  9277. if ((val)->o[1] & 0x80) {
  9278. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9279. return 0;
  9280. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9281. return 0;
  9282. if (!ASN1Dec_T120OnlyCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9283. return 0;
  9284. ASN1_CloseDecoder(dd);
  9285. ASN1Free(db);
  9286. }
  9287. if ((val)->o[1] & 0x40) {
  9288. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9289. return 0;
  9290. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9291. return 0;
  9292. if (!ASN1Dec_T120OnlyCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9293. return 0;
  9294. ASN1_CloseDecoder(dd);
  9295. ASN1Free(db);
  9296. }
  9297. for (i = 0; i < e; i++) {
  9298. if (!ASN1PERDecSkipFragmented(dec, 8))
  9299. return 0;
  9300. }
  9301. }
  9302. return 1;
  9303. }
  9304. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val)
  9305. {
  9306. if (val) {
  9307. if ((val)->o[0] & 0x80) {
  9308. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9309. }
  9310. if ((val)->o[1] & 0x80) {
  9311. ASN1Free_T120OnlyCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9312. }
  9313. if ((val)->o[1] & 0x40) {
  9314. ASN1Free_T120OnlyCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9315. }
  9316. }
  9317. }
  9318. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val)
  9319. {
  9320. if (!ASN1PEREncExtensionBitClear(enc))
  9321. return 0;
  9322. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9323. return 0;
  9324. if ((val)->o[0] & 0x80) {
  9325. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9326. return 0;
  9327. }
  9328. if ((val)->o[0] & 0x40) {
  9329. if (!ASN1Enc_NonStandardProtocol_dataRatesSupported(enc, &(val)->dataRatesSupported))
  9330. return 0;
  9331. }
  9332. if (!ASN1Enc_NonStandardProtocol_supportedPrefixes(enc, &(val)->supportedPrefixes))
  9333. return 0;
  9334. return 1;
  9335. }
  9336. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val)
  9337. {
  9338. ASN1uint32_t y;
  9339. if (!ASN1PERDecExtensionBit(dec, &y))
  9340. return 0;
  9341. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9342. return 0;
  9343. if ((val)->o[0] & 0x80) {
  9344. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9345. return 0;
  9346. }
  9347. if ((val)->o[0] & 0x40) {
  9348. if (!ASN1Dec_NonStandardProtocol_dataRatesSupported(dec, &(val)->dataRatesSupported))
  9349. return 0;
  9350. }
  9351. if (!ASN1Dec_NonStandardProtocol_supportedPrefixes(dec, &(val)->supportedPrefixes))
  9352. return 0;
  9353. if (y) {
  9354. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9355. return 0;
  9356. }
  9357. return 1;
  9358. }
  9359. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val)
  9360. {
  9361. if (val) {
  9362. if ((val)->o[0] & 0x80) {
  9363. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9364. }
  9365. if ((val)->o[0] & 0x40) {
  9366. ASN1Free_NonStandardProtocol_dataRatesSupported(&(val)->dataRatesSupported);
  9367. }
  9368. ASN1Free_NonStandardProtocol_supportedPrefixes(&(val)->supportedPrefixes);
  9369. }
  9370. }
  9371. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val)
  9372. {
  9373. if (!ASN1PEREncExtensionBitClear(enc))
  9374. return 0;
  9375. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9376. return 0;
  9377. if ((val)->o[0] & 0x80) {
  9378. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9379. return 0;
  9380. }
  9381. return 1;
  9382. }
  9383. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val)
  9384. {
  9385. ASN1uint32_t y;
  9386. if (!ASN1PERDecExtensionBit(dec, &y))
  9387. return 0;
  9388. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9389. return 0;
  9390. if ((val)->o[0] & 0x80) {
  9391. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9392. return 0;
  9393. }
  9394. if (y) {
  9395. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9396. return 0;
  9397. }
  9398. return 1;
  9399. }
  9400. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val)
  9401. {
  9402. if (val) {
  9403. if ((val)->o[0] & 0x80) {
  9404. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9405. }
  9406. }
  9407. }
  9408. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val)
  9409. {
  9410. if (!ASN1PEREncExtensionBitClear(enc))
  9411. return 0;
  9412. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9413. return 0;
  9414. if ((val)->o[0] & 0x80) {
  9415. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9416. return 0;
  9417. }
  9418. return 1;
  9419. }
  9420. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val)
  9421. {
  9422. ASN1uint32_t y;
  9423. if (!ASN1PERDecExtensionBit(dec, &y))
  9424. return 0;
  9425. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9426. return 0;
  9427. if ((val)->o[0] & 0x80) {
  9428. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9429. return 0;
  9430. }
  9431. if (y) {
  9432. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9433. return 0;
  9434. }
  9435. return 1;
  9436. }
  9437. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val)
  9438. {
  9439. if (val) {
  9440. if ((val)->o[0] & 0x80) {
  9441. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9442. }
  9443. }
  9444. }
  9445. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val)
  9446. {
  9447. if (!ASN1PEREncExtensionBitClear(enc))
  9448. return 0;
  9449. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9450. return 0;
  9451. if ((val)->o[0] & 0x80) {
  9452. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9453. return 0;
  9454. }
  9455. return 1;
  9456. }
  9457. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val)
  9458. {
  9459. ASN1uint32_t y;
  9460. if (!ASN1PERDecExtensionBit(dec, &y))
  9461. return 0;
  9462. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9463. return 0;
  9464. if ((val)->o[0] & 0x80) {
  9465. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9466. return 0;
  9467. }
  9468. if (y) {
  9469. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9470. return 0;
  9471. }
  9472. return 1;
  9473. }
  9474. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val)
  9475. {
  9476. if (val) {
  9477. if ((val)->o[0] & 0x80) {
  9478. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9479. }
  9480. }
  9481. }
  9482. static ASN1stringtableentry_t PartyNumber_dataPartyNumber_StringTableEntries[] = {
  9483. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9484. { 48, 57, 3 },
  9485. };
  9486. static ASN1stringtable_t PartyNumber_dataPartyNumber_StringTable = {
  9487. 4, PartyNumber_dataPartyNumber_StringTableEntries
  9488. };
  9489. static ASN1stringtableentry_t PartyNumber_telexPartyNumber_StringTableEntries[] = {
  9490. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9491. { 48, 57, 3 },
  9492. };
  9493. static ASN1stringtable_t PartyNumber_telexPartyNumber_StringTable = {
  9494. 4, PartyNumber_telexPartyNumber_StringTableEntries
  9495. };
  9496. static ASN1stringtableentry_t PartyNumber_nationalStandardPartyNumber_StringTableEntries[] = {
  9497. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9498. { 48, 57, 3 },
  9499. };
  9500. static ASN1stringtable_t PartyNumber_nationalStandardPartyNumber_StringTable = {
  9501. 4, PartyNumber_nationalStandardPartyNumber_StringTableEntries
  9502. };
  9503. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val)
  9504. {
  9505. ASN1uint32_t t;
  9506. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  9507. return 0;
  9508. switch ((val)->choice) {
  9509. case 1:
  9510. if (!ASN1Enc_PublicPartyNumber(enc, &(val)->u.publicNumber))
  9511. return 0;
  9512. break;
  9513. case 2:
  9514. t = lstrlenA((val)->u.dataPartyNumber);
  9515. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9516. return 0;
  9517. ASN1PEREncAlignment(enc);
  9518. if (!ASN1PEREncTableCharString(enc, t, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9519. return 0;
  9520. break;
  9521. case 3:
  9522. t = lstrlenA((val)->u.telexPartyNumber);
  9523. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9524. return 0;
  9525. ASN1PEREncAlignment(enc);
  9526. if (!ASN1PEREncTableCharString(enc, t, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9527. return 0;
  9528. break;
  9529. case 4:
  9530. if (!ASN1Enc_PrivatePartyNumber(enc, &(val)->u.privateNumber))
  9531. return 0;
  9532. break;
  9533. case 5:
  9534. t = lstrlenA((val)->u.nationalStandardPartyNumber);
  9535. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9536. return 0;
  9537. ASN1PEREncAlignment(enc);
  9538. if (!ASN1PEREncTableCharString(enc, t, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9539. return 0;
  9540. break;
  9541. default:
  9542. /* impossible */
  9543. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  9544. return 0;
  9545. }
  9546. return 1;
  9547. }
  9548. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val)
  9549. {
  9550. ASN1uint32_t l;
  9551. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  9552. return 0;
  9553. switch ((val)->choice) {
  9554. case 1:
  9555. if (!ASN1Dec_PublicPartyNumber(dec, &(val)->u.publicNumber))
  9556. return 0;
  9557. break;
  9558. case 2:
  9559. if (!ASN1PERDecU32Val(dec, 7, &l))
  9560. return 0;
  9561. l += 1;
  9562. ASN1PERDecAlignment(dec);
  9563. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9564. return 0;
  9565. break;
  9566. case 3:
  9567. if (!ASN1PERDecU32Val(dec, 7, &l))
  9568. return 0;
  9569. l += 1;
  9570. ASN1PERDecAlignment(dec);
  9571. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9572. return 0;
  9573. break;
  9574. case 4:
  9575. if (!ASN1Dec_PrivatePartyNumber(dec, &(val)->u.privateNumber))
  9576. return 0;
  9577. break;
  9578. case 5:
  9579. if (!ASN1PERDecU32Val(dec, 7, &l))
  9580. return 0;
  9581. l += 1;
  9582. ASN1PERDecAlignment(dec);
  9583. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9584. return 0;
  9585. break;
  9586. case 0:
  9587. /* extension case */
  9588. if (!ASN1PERDecSkipFragmented(dec, 8))
  9589. return 0;
  9590. break;
  9591. default:
  9592. /* impossible */
  9593. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  9594. return 0;
  9595. }
  9596. return 1;
  9597. }
  9598. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val)
  9599. {
  9600. if (val) {
  9601. switch ((val)->choice) {
  9602. case 1:
  9603. ASN1Free_PublicPartyNumber(&(val)->u.publicNumber);
  9604. break;
  9605. case 2:
  9606. break;
  9607. case 3:
  9608. break;
  9609. case 4:
  9610. ASN1Free_PrivatePartyNumber(&(val)->u.privateNumber);
  9611. break;
  9612. case 5:
  9613. break;
  9614. }
  9615. }
  9616. }
  9617. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val)
  9618. {
  9619. if (!ASN1PEREncExtensionBitClear(enc))
  9620. return 0;
  9621. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9622. return 0;
  9623. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9624. return 0;
  9625. if ((val)->o[0] & 0x80) {
  9626. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9627. return 0;
  9628. ASN1PEREncAlignment(enc);
  9629. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9630. return 0;
  9631. }
  9632. if (!ASN1PEREncBoolean(enc, (val)->needToRegister))
  9633. return 0;
  9634. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  9635. return 0;
  9636. return 1;
  9637. }
  9638. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val)
  9639. {
  9640. ASN1uint32_t y;
  9641. if (!ASN1PERDecExtensionBit(dec, &y))
  9642. return 0;
  9643. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9644. return 0;
  9645. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9646. return 0;
  9647. if ((val)->o[0] & 0x80) {
  9648. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9649. return 0;
  9650. ((val)->gatekeeperIdentifier).length += 1;
  9651. ASN1PERDecAlignment(dec);
  9652. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9653. return 0;
  9654. }
  9655. if (!ASN1PERDecBoolean(dec, &(val)->needToRegister))
  9656. return 0;
  9657. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  9658. return 0;
  9659. if (y) {
  9660. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9661. return 0;
  9662. }
  9663. return 1;
  9664. }
  9665. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val)
  9666. {
  9667. if (val) {
  9668. ASN1Free_TransportAddress(&(val)->rasAddress);
  9669. if ((val)->o[0] & 0x80) {
  9670. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9671. }
  9672. }
  9673. }
  9674. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val)
  9675. {
  9676. ASN1uint32_t y;
  9677. ASN1encoding_t ee;
  9678. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  9679. if (!ASN1PEREncBitVal(enc, 1, y))
  9680. return 0;
  9681. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9682. return 0;
  9683. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9684. return 0;
  9685. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  9686. return 0;
  9687. if ((val)->o[0] & 0x80) {
  9688. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9689. return 0;
  9690. }
  9691. if ((val)->o[0] & 0x40) {
  9692. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9693. return 0;
  9694. ASN1PEREncAlignment(enc);
  9695. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9696. return 0;
  9697. }
  9698. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9699. return 0;
  9700. if (y) {
  9701. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  9702. return 0;
  9703. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9704. return 0;
  9705. if ((val)->o[1] & 0x80) {
  9706. if (!ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  9707. return 0;
  9708. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9709. return 0;
  9710. }
  9711. if ((val)->o[1] & 0x40) {
  9712. if (!ASN1Enc_AuthenticationMechanism(ee, &(val)->authenticationMode))
  9713. return 0;
  9714. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9715. return 0;
  9716. }
  9717. if ((val)->o[1] & 0x20) {
  9718. if (!ASN1Enc_GatekeeperConfirm_tokens(ee, &(val)->tokens))
  9719. return 0;
  9720. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9721. return 0;
  9722. }
  9723. if ((val)->o[1] & 0x10) {
  9724. if (!ASN1Enc_GatekeeperConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  9725. return 0;
  9726. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9727. return 0;
  9728. }
  9729. if ((val)->o[1] & 0x8) {
  9730. if (!ASN1PEREncObjectIdentifier(ee, &(val)->algorithmOID))
  9731. return 0;
  9732. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9733. return 0;
  9734. }
  9735. if ((val)->o[1] & 0x4) {
  9736. if (!ASN1Enc_GatekeeperConfirm_integrity(ee, &(val)->integrity))
  9737. return 0;
  9738. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9739. return 0;
  9740. }
  9741. if ((val)->o[1] & 0x2) {
  9742. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  9743. return 0;
  9744. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9745. return 0;
  9746. }
  9747. ASN1_CloseEncoder2(ee);
  9748. }
  9749. return 1;
  9750. }
  9751. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val)
  9752. {
  9753. ASN1uint32_t y;
  9754. ASN1decoding_t dd;
  9755. ASN1octet_t *db;
  9756. ASN1uint32_t ds;
  9757. ASN1uint32_t i;
  9758. ASN1uint32_t e;
  9759. if (!ASN1PERDecExtensionBit(dec, &y))
  9760. return 0;
  9761. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9762. return 0;
  9763. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  9764. return 0;
  9765. (val)->requestSeqNum += 1;
  9766. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  9767. return 0;
  9768. if ((val)->o[0] & 0x80) {
  9769. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9770. return 0;
  9771. }
  9772. if ((val)->o[0] & 0x40) {
  9773. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9774. return 0;
  9775. ((val)->gatekeeperIdentifier).length += 1;
  9776. ASN1PERDecAlignment(dec);
  9777. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9778. return 0;
  9779. }
  9780. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9781. return 0;
  9782. if (!y) {
  9783. ZeroMemory((val)->o + 1, 1);
  9784. } else {
  9785. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  9786. return 0;
  9787. if ((val)->o[1] & 0x80) {
  9788. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9789. return 0;
  9790. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9791. return 0;
  9792. if (!ASN1Dec_GatekeeperConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  9793. return 0;
  9794. ASN1_CloseDecoder(dd);
  9795. ASN1Free(db);
  9796. }
  9797. if ((val)->o[1] & 0x40) {
  9798. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9799. return 0;
  9800. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9801. return 0;
  9802. if (!ASN1Dec_AuthenticationMechanism(dd, &(val)->authenticationMode))
  9803. return 0;
  9804. ASN1_CloseDecoder(dd);
  9805. ASN1Free(db);
  9806. }
  9807. if ((val)->o[1] & 0x20) {
  9808. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9809. return 0;
  9810. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9811. return 0;
  9812. if (!ASN1Dec_GatekeeperConfirm_tokens(dd, &(val)->tokens))
  9813. return 0;
  9814. ASN1_CloseDecoder(dd);
  9815. ASN1Free(db);
  9816. }
  9817. if ((val)->o[1] & 0x10) {
  9818. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9819. return 0;
  9820. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9821. return 0;
  9822. if (!ASN1Dec_GatekeeperConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  9823. return 0;
  9824. ASN1_CloseDecoder(dd);
  9825. ASN1Free(db);
  9826. }
  9827. if ((val)->o[1] & 0x8) {
  9828. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9829. return 0;
  9830. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9831. return 0;
  9832. if (!ASN1PERDecObjectIdentifier(dd, &(val)->algorithmOID))
  9833. return 0;
  9834. ASN1_CloseDecoder(dd);
  9835. ASN1Free(db);
  9836. }
  9837. if ((val)->o[1] & 0x4) {
  9838. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9839. return 0;
  9840. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9841. return 0;
  9842. if (!ASN1Dec_GatekeeperConfirm_integrity(dd, &(val)->integrity))
  9843. return 0;
  9844. ASN1_CloseDecoder(dd);
  9845. ASN1Free(db);
  9846. }
  9847. if ((val)->o[1] & 0x2) {
  9848. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9849. return 0;
  9850. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9851. return 0;
  9852. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  9853. return 0;
  9854. ASN1_CloseDecoder(dd);
  9855. ASN1Free(db);
  9856. }
  9857. for (i = 0; i < e; i++) {
  9858. if (!ASN1PERDecSkipFragmented(dec, 8))
  9859. return 0;
  9860. }
  9861. }
  9862. return 1;
  9863. }
  9864. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val)
  9865. {
  9866. if (val) {
  9867. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  9868. if ((val)->o[0] & 0x80) {
  9869. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9870. }
  9871. if ((val)->o[0] & 0x40) {
  9872. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9873. }
  9874. ASN1Free_TransportAddress(&(val)->rasAddress);
  9875. if ((val)->o[1] & 0x80) {
  9876. ASN1Free_GatekeeperConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  9877. }
  9878. if ((val)->o[1] & 0x40) {
  9879. ASN1Free_AuthenticationMechanism(&(val)->authenticationMode);
  9880. }
  9881. if ((val)->o[1] & 0x20) {
  9882. ASN1Free_GatekeeperConfirm_tokens(&(val)->tokens);
  9883. }
  9884. if ((val)->o[1] & 0x10) {
  9885. ASN1Free_GatekeeperConfirm_cryptoTokens(&(val)->cryptoTokens);
  9886. }
  9887. if ((val)->o[1] & 0x8) {
  9888. ASN1objectidentifier_free(&(val)->algorithmOID);
  9889. }
  9890. if ((val)->o[1] & 0x4) {
  9891. ASN1Free_GatekeeperConfirm_integrity(&(val)->integrity);
  9892. }
  9893. if ((val)->o[1] & 0x2) {
  9894. ASN1Free_ICV(&(val)->integrityCheckValue);
  9895. }
  9896. }
  9897. }
  9898. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val)
  9899. {
  9900. ASN1octet_t o[3];
  9901. ASN1uint32_t y;
  9902. ASN1uint32_t l;
  9903. ASN1encoding_t ee;
  9904. CopyMemory(o, (val)->o, 3);
  9905. o[1] |= 0x80;
  9906. o[1] |= 0x40;
  9907. o[2] |= 0x40;
  9908. y = ASN1PEREncCheckExtensions(10, (val)->o + 1);
  9909. if (!ASN1PEREncBitVal(enc, 1, y))
  9910. return 0;
  9911. if (!ASN1PEREncBits(enc, 7, o))
  9912. return 0;
  9913. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9914. return 0;
  9915. if (!ASN1Enc_CallType(enc, &(val)->callType))
  9916. return 0;
  9917. if (o[0] & 0x80) {
  9918. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  9919. return 0;
  9920. }
  9921. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  9922. return 0;
  9923. ASN1PEREncAlignment(enc);
  9924. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  9925. return 0;
  9926. if (o[0] & 0x40) {
  9927. if (!ASN1Enc_AdmissionRequest_destinationInfo(enc, &(val)->destinationInfo))
  9928. return 0;
  9929. }
  9930. if (o[0] & 0x20) {
  9931. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  9932. return 0;
  9933. }
  9934. if (o[0] & 0x10) {
  9935. if (!ASN1Enc_AdmissionRequest_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  9936. return 0;
  9937. }
  9938. if (!ASN1Enc_AdmissionRequest_srcInfo(enc, &(val)->srcInfo))
  9939. return 0;
  9940. if (o[0] & 0x8) {
  9941. if (!ASN1Enc_TransportAddress(enc, &(val)->srcCallSignalAddress))
  9942. return 0;
  9943. }
  9944. l = ASN1uint32_uoctets((val)->bandWidth);
  9945. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  9946. return 0;
  9947. ASN1PEREncAlignment(enc);
  9948. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  9949. return 0;
  9950. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  9951. return 0;
  9952. if (o[0] & 0x4) {
  9953. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9954. return 0;
  9955. }
  9956. if (o[0] & 0x2) {
  9957. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  9958. return 0;
  9959. }
  9960. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  9961. return 0;
  9962. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  9963. return 0;
  9964. if (!ASN1PEREncBoolean(enc, (val)->answerCall))
  9965. return 0;
  9966. if (y) {
  9967. if (!ASN1PEREncNormallySmallBits(enc, 10, o + 1))
  9968. return 0;
  9969. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9970. return 0;
  9971. if (o[1] & 0x80) {
  9972. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  9973. return 0;
  9974. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9975. return 0;
  9976. }
  9977. if (o[1] & 0x40) {
  9978. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  9979. return 0;
  9980. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9981. return 0;
  9982. }
  9983. if (o[1] & 0x20) {
  9984. if (!ASN1Enc_AdmissionRequest_srcAlternatives(ee, &(val)->srcAlternatives))
  9985. return 0;
  9986. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9987. return 0;
  9988. }
  9989. if (o[1] & 0x10) {
  9990. if (!ASN1Enc_AdmissionRequest_destAlternatives(ee, &(val)->destAlternatives))
  9991. return 0;
  9992. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9993. return 0;
  9994. }
  9995. if (o[1] & 0x8) {
  9996. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  9997. return 0;
  9998. ASN1PEREncAlignment(ee);
  9999. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10000. return 0;
  10001. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10002. return 0;
  10003. }
  10004. if (o[1] & 0x4) {
  10005. if (!ASN1Enc_AdmissionRequest_tokens(ee, &(val)->tokens))
  10006. return 0;
  10007. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10008. return 0;
  10009. }
  10010. if (o[1] & 0x2) {
  10011. if (!ASN1Enc_AdmissionRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10012. return 0;
  10013. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10014. return 0;
  10015. }
  10016. if (o[1] & 0x1) {
  10017. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10018. return 0;
  10019. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10020. return 0;
  10021. }
  10022. if (o[2] & 0x80) {
  10023. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  10024. return 0;
  10025. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10026. return 0;
  10027. }
  10028. if (o[2] & 0x40) {
  10029. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  10030. return 0;
  10031. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10032. return 0;
  10033. }
  10034. ASN1_CloseEncoder2(ee);
  10035. }
  10036. return 1;
  10037. }
  10038. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val)
  10039. {
  10040. ASN1uint32_t y;
  10041. ASN1uint32_t l;
  10042. ASN1decoding_t dd;
  10043. ASN1octet_t *db;
  10044. ASN1uint32_t ds;
  10045. ASN1uint32_t i;
  10046. ASN1uint32_t e;
  10047. if (!ASN1PERDecExtensionBit(dec, &y))
  10048. return 0;
  10049. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  10050. return 0;
  10051. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10052. return 0;
  10053. (val)->requestSeqNum += 1;
  10054. if (!ASN1Dec_CallType(dec, &(val)->callType))
  10055. return 0;
  10056. if ((val)->o[0] & 0x80) {
  10057. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  10058. return 0;
  10059. }
  10060. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10061. return 0;
  10062. ((val)->endpointIdentifier).length += 1;
  10063. ASN1PERDecAlignment(dec);
  10064. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10065. return 0;
  10066. if ((val)->o[0] & 0x40) {
  10067. if (!ASN1Dec_AdmissionRequest_destinationInfo(dec, &(val)->destinationInfo))
  10068. return 0;
  10069. }
  10070. if ((val)->o[0] & 0x20) {
  10071. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  10072. return 0;
  10073. }
  10074. if ((val)->o[0] & 0x10) {
  10075. if (!ASN1Dec_AdmissionRequest_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  10076. return 0;
  10077. }
  10078. if (!ASN1Dec_AdmissionRequest_srcInfo(dec, &(val)->srcInfo))
  10079. return 0;
  10080. if ((val)->o[0] & 0x8) {
  10081. if (!ASN1Dec_TransportAddress(dec, &(val)->srcCallSignalAddress))
  10082. return 0;
  10083. }
  10084. if (!ASN1PERDecU32Val(dec, 2, &l))
  10085. return 0;
  10086. l += 1;
  10087. ASN1PERDecAlignment(dec);
  10088. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10089. return 0;
  10090. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10091. return 0;
  10092. if ((val)->o[0] & 0x4) {
  10093. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10094. return 0;
  10095. }
  10096. if ((val)->o[0] & 0x2) {
  10097. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  10098. return 0;
  10099. }
  10100. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10101. return 0;
  10102. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  10103. return 0;
  10104. if (!ASN1PERDecBoolean(dec, &(val)->answerCall))
  10105. return 0;
  10106. if (!y) {
  10107. ZeroMemory((val)->o + 1, 2);
  10108. } else {
  10109. if (!ASN1PERDecNormallySmallExtension(dec, &e, 10, (val)->o + 1))
  10110. return 0;
  10111. if ((val)->o[1] & 0x80) {
  10112. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10113. return 0;
  10114. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10115. return 0;
  10116. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10117. return 0;
  10118. ASN1_CloseDecoder(dd);
  10119. ASN1Free(db);
  10120. }
  10121. if ((val)->o[1] & 0x40) {
  10122. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10123. return 0;
  10124. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10125. return 0;
  10126. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10127. return 0;
  10128. ASN1_CloseDecoder(dd);
  10129. ASN1Free(db);
  10130. }
  10131. if ((val)->o[1] & 0x20) {
  10132. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10133. return 0;
  10134. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10135. return 0;
  10136. if (!ASN1Dec_AdmissionRequest_srcAlternatives(dd, &(val)->srcAlternatives))
  10137. return 0;
  10138. ASN1_CloseDecoder(dd);
  10139. ASN1Free(db);
  10140. }
  10141. if ((val)->o[1] & 0x10) {
  10142. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10143. return 0;
  10144. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10145. return 0;
  10146. if (!ASN1Dec_AdmissionRequest_destAlternatives(dd, &(val)->destAlternatives))
  10147. return 0;
  10148. ASN1_CloseDecoder(dd);
  10149. ASN1Free(db);
  10150. }
  10151. if ((val)->o[1] & 0x8) {
  10152. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10153. return 0;
  10154. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10155. return 0;
  10156. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10157. return 0;
  10158. ((val)->gatekeeperIdentifier).length += 1;
  10159. ASN1PERDecAlignment(dd);
  10160. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10161. return 0;
  10162. ASN1_CloseDecoder(dd);
  10163. ASN1Free(db);
  10164. }
  10165. if ((val)->o[1] & 0x4) {
  10166. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10167. return 0;
  10168. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10169. return 0;
  10170. if (!ASN1Dec_AdmissionRequest_tokens(dd, &(val)->tokens))
  10171. return 0;
  10172. ASN1_CloseDecoder(dd);
  10173. ASN1Free(db);
  10174. }
  10175. if ((val)->o[1] & 0x2) {
  10176. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10177. return 0;
  10178. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10179. return 0;
  10180. if (!ASN1Dec_AdmissionRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10181. return 0;
  10182. ASN1_CloseDecoder(dd);
  10183. ASN1Free(db);
  10184. }
  10185. if ((val)->o[1] & 0x1) {
  10186. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10187. return 0;
  10188. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10189. return 0;
  10190. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10191. return 0;
  10192. ASN1_CloseDecoder(dd);
  10193. ASN1Free(db);
  10194. }
  10195. if ((val)->o[2] & 0x80) {
  10196. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10197. return 0;
  10198. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10199. return 0;
  10200. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  10201. return 0;
  10202. ASN1_CloseDecoder(dd);
  10203. ASN1Free(db);
  10204. }
  10205. if ((val)->o[2] & 0x40) {
  10206. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10207. return 0;
  10208. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10209. return 0;
  10210. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  10211. return 0;
  10212. ASN1_CloseDecoder(dd);
  10213. ASN1Free(db);
  10214. }
  10215. for (i = 0; i < e; i++) {
  10216. if (!ASN1PERDecSkipFragmented(dec, 8))
  10217. return 0;
  10218. }
  10219. }
  10220. return 1;
  10221. }
  10222. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val)
  10223. {
  10224. if (val) {
  10225. ASN1char16string_free(&(val)->endpointIdentifier);
  10226. if ((val)->o[0] & 0x40) {
  10227. ASN1Free_AdmissionRequest_destinationInfo(&(val)->destinationInfo);
  10228. }
  10229. if ((val)->o[0] & 0x20) {
  10230. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  10231. }
  10232. if ((val)->o[0] & 0x10) {
  10233. ASN1Free_AdmissionRequest_destExtraCallInfo(&(val)->destExtraCallInfo);
  10234. }
  10235. ASN1Free_AdmissionRequest_srcInfo(&(val)->srcInfo);
  10236. if ((val)->o[0] & 0x8) {
  10237. ASN1Free_TransportAddress(&(val)->srcCallSignalAddress);
  10238. }
  10239. if ((val)->o[0] & 0x4) {
  10240. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10241. }
  10242. if ((val)->o[1] & 0x40) {
  10243. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10244. }
  10245. if ((val)->o[1] & 0x20) {
  10246. ASN1Free_AdmissionRequest_srcAlternatives(&(val)->srcAlternatives);
  10247. }
  10248. if ((val)->o[1] & 0x10) {
  10249. ASN1Free_AdmissionRequest_destAlternatives(&(val)->destAlternatives);
  10250. }
  10251. if ((val)->o[1] & 0x8) {
  10252. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10253. }
  10254. if ((val)->o[1] & 0x4) {
  10255. ASN1Free_AdmissionRequest_tokens(&(val)->tokens);
  10256. }
  10257. if ((val)->o[1] & 0x2) {
  10258. ASN1Free_AdmissionRequest_cryptoTokens(&(val)->cryptoTokens);
  10259. }
  10260. if ((val)->o[1] & 0x1) {
  10261. ASN1Free_ICV(&(val)->integrityCheckValue);
  10262. }
  10263. }
  10264. }
  10265. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val)
  10266. {
  10267. ASN1octet_t o[2];
  10268. ASN1uint32_t y;
  10269. ASN1encoding_t ee;
  10270. CopyMemory(o, (val)->o, 2);
  10271. o[1] |= 0x40;
  10272. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  10273. if (!ASN1PEREncBitVal(enc, 1, y))
  10274. return 0;
  10275. if (!ASN1PEREncBits(enc, 2, o))
  10276. return 0;
  10277. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10278. return 0;
  10279. if (o[0] & 0x80) {
  10280. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  10281. return 0;
  10282. ASN1PEREncAlignment(enc);
  10283. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  10284. return 0;
  10285. }
  10286. if (!ASN1Enc_LocationRequest_destinationInfo(enc, &(val)->destinationInfo))
  10287. return 0;
  10288. if (o[0] & 0x40) {
  10289. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10290. return 0;
  10291. }
  10292. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10293. return 0;
  10294. if (y) {
  10295. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  10296. return 0;
  10297. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10298. return 0;
  10299. if (o[1] & 0x80) {
  10300. if (!ASN1Enc_LocationRequest_sourceInfo(ee, &(val)->sourceInfo))
  10301. return 0;
  10302. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10303. return 0;
  10304. }
  10305. if (o[1] & 0x40) {
  10306. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10307. return 0;
  10308. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10309. return 0;
  10310. }
  10311. if (o[1] & 0x20) {
  10312. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10313. return 0;
  10314. ASN1PEREncAlignment(ee);
  10315. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10316. return 0;
  10317. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10318. return 0;
  10319. }
  10320. if (o[1] & 0x10) {
  10321. if (!ASN1Enc_LocationRequest_tokens(ee, &(val)->tokens))
  10322. return 0;
  10323. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10324. return 0;
  10325. }
  10326. if (o[1] & 0x8) {
  10327. if (!ASN1Enc_LocationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10328. return 0;
  10329. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10330. return 0;
  10331. }
  10332. if (o[1] & 0x4) {
  10333. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10334. return 0;
  10335. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10336. return 0;
  10337. }
  10338. ASN1_CloseEncoder2(ee);
  10339. }
  10340. return 1;
  10341. }
  10342. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val)
  10343. {
  10344. ASN1uint32_t y;
  10345. ASN1decoding_t dd;
  10346. ASN1octet_t *db;
  10347. ASN1uint32_t ds;
  10348. ASN1uint32_t i;
  10349. ASN1uint32_t e;
  10350. if (!ASN1PERDecExtensionBit(dec, &y))
  10351. return 0;
  10352. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10353. return 0;
  10354. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10355. return 0;
  10356. (val)->requestSeqNum += 1;
  10357. if ((val)->o[0] & 0x80) {
  10358. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10359. return 0;
  10360. ((val)->endpointIdentifier).length += 1;
  10361. ASN1PERDecAlignment(dec);
  10362. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10363. return 0;
  10364. }
  10365. if (!ASN1Dec_LocationRequest_destinationInfo(dec, &(val)->destinationInfo))
  10366. return 0;
  10367. if ((val)->o[0] & 0x40) {
  10368. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10369. return 0;
  10370. }
  10371. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10372. return 0;
  10373. if (!y) {
  10374. ZeroMemory((val)->o + 1, 1);
  10375. } else {
  10376. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  10377. return 0;
  10378. if ((val)->o[1] & 0x80) {
  10379. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10380. return 0;
  10381. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10382. return 0;
  10383. if (!ASN1Dec_LocationRequest_sourceInfo(dd, &(val)->sourceInfo))
  10384. return 0;
  10385. ASN1_CloseDecoder(dd);
  10386. ASN1Free(db);
  10387. }
  10388. if ((val)->o[1] & 0x40) {
  10389. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10390. return 0;
  10391. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10392. return 0;
  10393. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10394. return 0;
  10395. ASN1_CloseDecoder(dd);
  10396. ASN1Free(db);
  10397. }
  10398. if ((val)->o[1] & 0x20) {
  10399. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10400. return 0;
  10401. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10402. return 0;
  10403. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10404. return 0;
  10405. ((val)->gatekeeperIdentifier).length += 1;
  10406. ASN1PERDecAlignment(dd);
  10407. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10408. return 0;
  10409. ASN1_CloseDecoder(dd);
  10410. ASN1Free(db);
  10411. }
  10412. if ((val)->o[1] & 0x10) {
  10413. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10414. return 0;
  10415. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10416. return 0;
  10417. if (!ASN1Dec_LocationRequest_tokens(dd, &(val)->tokens))
  10418. return 0;
  10419. ASN1_CloseDecoder(dd);
  10420. ASN1Free(db);
  10421. }
  10422. if ((val)->o[1] & 0x8) {
  10423. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10424. return 0;
  10425. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10426. return 0;
  10427. if (!ASN1Dec_LocationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10428. return 0;
  10429. ASN1_CloseDecoder(dd);
  10430. ASN1Free(db);
  10431. }
  10432. if ((val)->o[1] & 0x4) {
  10433. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10434. return 0;
  10435. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10436. return 0;
  10437. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10438. return 0;
  10439. ASN1_CloseDecoder(dd);
  10440. ASN1Free(db);
  10441. }
  10442. for (i = 0; i < e; i++) {
  10443. if (!ASN1PERDecSkipFragmented(dec, 8))
  10444. return 0;
  10445. }
  10446. }
  10447. return 1;
  10448. }
  10449. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val)
  10450. {
  10451. if (val) {
  10452. if ((val)->o[0] & 0x80) {
  10453. ASN1char16string_free(&(val)->endpointIdentifier);
  10454. }
  10455. ASN1Free_LocationRequest_destinationInfo(&(val)->destinationInfo);
  10456. if ((val)->o[0] & 0x40) {
  10457. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10458. }
  10459. ASN1Free_TransportAddress(&(val)->replyAddress);
  10460. if ((val)->o[1] & 0x80) {
  10461. ASN1Free_LocationRequest_sourceInfo(&(val)->sourceInfo);
  10462. }
  10463. if ((val)->o[1] & 0x20) {
  10464. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10465. }
  10466. if ((val)->o[1] & 0x10) {
  10467. ASN1Free_LocationRequest_tokens(&(val)->tokens);
  10468. }
  10469. if ((val)->o[1] & 0x8) {
  10470. ASN1Free_LocationRequest_cryptoTokens(&(val)->cryptoTokens);
  10471. }
  10472. if ((val)->o[1] & 0x4) {
  10473. ASN1Free_ICV(&(val)->integrityCheckValue);
  10474. }
  10475. }
  10476. }
  10477. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val)
  10478. {
  10479. ASN1octet_t o[2];
  10480. ASN1uint32_t y;
  10481. ASN1encoding_t ee;
  10482. CopyMemory(o, (val)->o, 2);
  10483. o[1] |= 0x80;
  10484. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10485. if (!ASN1PEREncBitVal(enc, 1, y))
  10486. return 0;
  10487. if (!ASN1PEREncBits(enc, 2, o))
  10488. return 0;
  10489. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10490. return 0;
  10491. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10492. return 0;
  10493. if (o[0] & 0x80) {
  10494. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10495. return 0;
  10496. }
  10497. if (o[0] & 0x40) {
  10498. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10499. return 0;
  10500. }
  10501. if (y) {
  10502. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10503. return 0;
  10504. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10505. return 0;
  10506. if (o[1] & 0x80) {
  10507. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10508. return 0;
  10509. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10510. return 0;
  10511. }
  10512. if (o[1] & 0x40) {
  10513. if (!ASN1Enc_InfoRequest_tokens(ee, &(val)->tokens))
  10514. return 0;
  10515. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10516. return 0;
  10517. }
  10518. if (o[1] & 0x20) {
  10519. if (!ASN1Enc_InfoRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10520. return 0;
  10521. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10522. return 0;
  10523. }
  10524. if (o[1] & 0x10) {
  10525. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10526. return 0;
  10527. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10528. return 0;
  10529. }
  10530. if (o[1] & 0x8) {
  10531. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  10532. return 0;
  10533. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10534. return 0;
  10535. }
  10536. ASN1_CloseEncoder2(ee);
  10537. }
  10538. return 1;
  10539. }
  10540. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val)
  10541. {
  10542. ASN1uint32_t y;
  10543. ASN1decoding_t dd;
  10544. ASN1octet_t *db;
  10545. ASN1uint32_t ds;
  10546. ASN1uint32_t i;
  10547. ASN1uint32_t e;
  10548. if (!ASN1PERDecExtensionBit(dec, &y))
  10549. return 0;
  10550. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10551. return 0;
  10552. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10553. return 0;
  10554. (val)->requestSeqNum += 1;
  10555. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10556. return 0;
  10557. if ((val)->o[0] & 0x80) {
  10558. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10559. return 0;
  10560. }
  10561. if ((val)->o[0] & 0x40) {
  10562. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10563. return 0;
  10564. }
  10565. if (!y) {
  10566. ZeroMemory((val)->o + 1, 1);
  10567. } else {
  10568. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  10569. return 0;
  10570. if ((val)->o[1] & 0x80) {
  10571. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10572. return 0;
  10573. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10574. return 0;
  10575. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10576. return 0;
  10577. ASN1_CloseDecoder(dd);
  10578. ASN1Free(db);
  10579. }
  10580. if ((val)->o[1] & 0x40) {
  10581. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10582. return 0;
  10583. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10584. return 0;
  10585. if (!ASN1Dec_InfoRequest_tokens(dd, &(val)->tokens))
  10586. return 0;
  10587. ASN1_CloseDecoder(dd);
  10588. ASN1Free(db);
  10589. }
  10590. if ((val)->o[1] & 0x20) {
  10591. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10592. return 0;
  10593. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10594. return 0;
  10595. if (!ASN1Dec_InfoRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10596. return 0;
  10597. ASN1_CloseDecoder(dd);
  10598. ASN1Free(db);
  10599. }
  10600. if ((val)->o[1] & 0x10) {
  10601. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10602. return 0;
  10603. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10604. return 0;
  10605. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10606. return 0;
  10607. ASN1_CloseDecoder(dd);
  10608. ASN1Free(db);
  10609. }
  10610. if ((val)->o[1] & 0x8) {
  10611. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10612. return 0;
  10613. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10614. return 0;
  10615. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  10616. return 0;
  10617. ASN1_CloseDecoder(dd);
  10618. ASN1Free(db);
  10619. }
  10620. for (i = 0; i < e; i++) {
  10621. if (!ASN1PERDecSkipFragmented(dec, 8))
  10622. return 0;
  10623. }
  10624. }
  10625. return 1;
  10626. }
  10627. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val)
  10628. {
  10629. if (val) {
  10630. if ((val)->o[0] & 0x80) {
  10631. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10632. }
  10633. if ((val)->o[0] & 0x40) {
  10634. ASN1Free_TransportAddress(&(val)->replyAddress);
  10635. }
  10636. if ((val)->o[1] & 0x80) {
  10637. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10638. }
  10639. if ((val)->o[1] & 0x40) {
  10640. ASN1Free_InfoRequest_tokens(&(val)->tokens);
  10641. }
  10642. if ((val)->o[1] & 0x20) {
  10643. ASN1Free_InfoRequest_cryptoTokens(&(val)->cryptoTokens);
  10644. }
  10645. if ((val)->o[1] & 0x10) {
  10646. ASN1Free_ICV(&(val)->integrityCheckValue);
  10647. }
  10648. }
  10649. }
  10650. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val)
  10651. {
  10652. if (!ASN1PEREncExtensionBitClear(enc))
  10653. return 0;
  10654. if (!ASN1PEREncBits(enc, 2, (val)->o))
  10655. return 0;
  10656. if ((val)->o[0] & 0x80) {
  10657. if (!ASN1Enc_TransportAddress(enc, &(val)->sendAddress))
  10658. return 0;
  10659. }
  10660. if ((val)->o[0] & 0x40) {
  10661. if (!ASN1Enc_TransportAddress(enc, &(val)->recvAddress))
  10662. return 0;
  10663. }
  10664. return 1;
  10665. }
  10666. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val)
  10667. {
  10668. ASN1uint32_t y;
  10669. if (!ASN1PERDecExtensionBit(dec, &y))
  10670. return 0;
  10671. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10672. return 0;
  10673. if ((val)->o[0] & 0x80) {
  10674. if (!ASN1Dec_TransportAddress(dec, &(val)->sendAddress))
  10675. return 0;
  10676. }
  10677. if ((val)->o[0] & 0x40) {
  10678. if (!ASN1Dec_TransportAddress(dec, &(val)->recvAddress))
  10679. return 0;
  10680. }
  10681. if (y) {
  10682. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10683. return 0;
  10684. }
  10685. return 1;
  10686. }
  10687. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val)
  10688. {
  10689. if (val) {
  10690. if ((val)->o[0] & 0x80) {
  10691. ASN1Free_TransportAddress(&(val)->sendAddress);
  10692. }
  10693. if ((val)->o[0] & 0x40) {
  10694. ASN1Free_TransportAddress(&(val)->recvAddress);
  10695. }
  10696. }
  10697. }
  10698. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val)
  10699. {
  10700. ASN1uint32_t t;
  10701. ASN1uint32_t l;
  10702. if (!ASN1PEREncExtensionBitClear(enc))
  10703. return 0;
  10704. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtpAddress))
  10705. return 0;
  10706. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtcpAddress))
  10707. return 0;
  10708. t = lstrlenA((val)->cname);
  10709. if (!ASN1PEREncFragmentedCharString(enc, t, (val)->cname, 8))
  10710. return 0;
  10711. l = ASN1uint32_uoctets((val)->ssrc - 1);
  10712. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10713. return 0;
  10714. ASN1PEREncAlignment(enc);
  10715. if (!ASN1PEREncBitVal(enc, l * 8, (val)->ssrc - 1))
  10716. return 0;
  10717. if (!ASN1PEREncBitVal(enc, 8, (val)->sessionId - 1))
  10718. return 0;
  10719. if (!ASN1Enc_RTPSession_associatedSessionIds(enc, &(val)->associatedSessionIds))
  10720. return 0;
  10721. return 1;
  10722. }
  10723. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val)
  10724. {
  10725. ASN1uint32_t y;
  10726. ASN1uint32_t l;
  10727. if (!ASN1PERDecExtensionBit(dec, &y))
  10728. return 0;
  10729. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtpAddress))
  10730. return 0;
  10731. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtcpAddress))
  10732. return 0;
  10733. if (!ASN1PERDecFragmentedZeroCharString(dec, &(val)->cname, 8))
  10734. return 0;
  10735. if (!ASN1PERDecU32Val(dec, 2, &l))
  10736. return 0;
  10737. l += 1;
  10738. ASN1PERDecAlignment(dec);
  10739. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->ssrc))
  10740. return 0;
  10741. (val)->ssrc += 1;
  10742. if (!ASN1PERDecU16Val(dec, 8, &(val)->sessionId))
  10743. return 0;
  10744. (val)->sessionId += 1;
  10745. if (!ASN1Dec_RTPSession_associatedSessionIds(dec, &(val)->associatedSessionIds))
  10746. return 0;
  10747. if (y) {
  10748. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10749. return 0;
  10750. }
  10751. return 1;
  10752. }
  10753. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val)
  10754. {
  10755. if (val) {
  10756. ASN1Free_TransportChannelInfo(&(val)->rtpAddress);
  10757. ASN1Free_TransportChannelInfo(&(val)->rtcpAddress);
  10758. ASN1ztcharstring_free((val)->cname);
  10759. ASN1Free_RTPSession_associatedSessionIds(&(val)->associatedSessionIds);
  10760. }
  10761. }
  10762. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10763. {
  10764. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10765. }
  10766. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data val)
  10767. {
  10768. if (!ASN1Enc_TransportChannelInfo(enc, &val->value))
  10769. return 0;
  10770. return 1;
  10771. }
  10772. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10773. {
  10774. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn, sizeof(**val));
  10775. }
  10776. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data val)
  10777. {
  10778. if (!ASN1Dec_TransportChannelInfo(dec, &val->value))
  10779. return 0;
  10780. return 1;
  10781. }
  10782. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val)
  10783. {
  10784. if (val) {
  10785. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10786. }
  10787. }
  10788. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(PInfoRequestResponse_perCallInfo_Seq_data val)
  10789. {
  10790. if (val) {
  10791. ASN1Free_TransportChannelInfo(&val->value);
  10792. }
  10793. }
  10794. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10795. {
  10796. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10797. }
  10798. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video val)
  10799. {
  10800. if (!ASN1Enc_RTPSession(enc, &val->value))
  10801. return 0;
  10802. return 1;
  10803. }
  10804. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10805. {
  10806. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn, sizeof(**val));
  10807. }
  10808. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video val)
  10809. {
  10810. if (!ASN1Dec_RTPSession(dec, &val->value))
  10811. return 0;
  10812. return 1;
  10813. }
  10814. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val)
  10815. {
  10816. if (val) {
  10817. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10818. }
  10819. }
  10820. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(PInfoRequestResponse_perCallInfo_Seq_video val)
  10821. {
  10822. if (val) {
  10823. ASN1Free_RTPSession(&val->value);
  10824. }
  10825. }
  10826. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10827. {
  10828. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10829. }
  10830. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10831. {
  10832. if (!ASN1Enc_RTPSession(enc, &val->value))
  10833. return 0;
  10834. return 1;
  10835. }
  10836. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10837. {
  10838. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn, sizeof(**val));
  10839. }
  10840. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10841. {
  10842. if (!ASN1Dec_RTPSession(dec, &val->value))
  10843. return 0;
  10844. return 1;
  10845. }
  10846. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10847. {
  10848. if (val) {
  10849. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10850. }
  10851. }
  10852. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(PInfoRequestResponse_perCallInfo_Seq_audio val)
  10853. {
  10854. if (val) {
  10855. ASN1Free_RTPSession(&val->value);
  10856. }
  10857. }
  10858. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val)
  10859. {
  10860. ASN1octet_t o[2];
  10861. ASN1uint32_t y;
  10862. ASN1uint32_t l;
  10863. ASN1encoding_t ee;
  10864. CopyMemory(o, (val)->o, 2);
  10865. o[1] |= 0x80;
  10866. o[1] |= 0x10;
  10867. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10868. if (!ASN1PEREncBitVal(enc, 1, y))
  10869. return 0;
  10870. if (!ASN1PEREncBits(enc, 5, o))
  10871. return 0;
  10872. if (o[0] & 0x80) {
  10873. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10874. return 0;
  10875. }
  10876. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10877. return 0;
  10878. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10879. return 0;
  10880. if (o[0] & 0x40) {
  10881. if (!ASN1PEREncBoolean(enc, (val)->originator))
  10882. return 0;
  10883. }
  10884. if (o[0] & 0x20) {
  10885. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(enc, &(val)->audio))
  10886. return 0;
  10887. }
  10888. if (o[0] & 0x10) {
  10889. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(enc, &(val)->video))
  10890. return 0;
  10891. }
  10892. if (o[0] & 0x8) {
  10893. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(enc, &(val)->data))
  10894. return 0;
  10895. }
  10896. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->h245))
  10897. return 0;
  10898. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->callSignaling))
  10899. return 0;
  10900. if (!ASN1Enc_CallType(enc, &(val)->callType))
  10901. return 0;
  10902. l = ASN1uint32_uoctets((val)->bandWidth);
  10903. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10904. return 0;
  10905. ASN1PEREncAlignment(enc);
  10906. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  10907. return 0;
  10908. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  10909. return 0;
  10910. if (y) {
  10911. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10912. return 0;
  10913. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10914. return 0;
  10915. if (o[1] & 0x80) {
  10916. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10917. return 0;
  10918. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10919. return 0;
  10920. }
  10921. if (o[1] & 0x40) {
  10922. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ee, &(val)->tokens))
  10923. return 0;
  10924. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10925. return 0;
  10926. }
  10927. if (o[1] & 0x20) {
  10928. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ee, &(val)->cryptoTokens))
  10929. return 0;
  10930. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10931. return 0;
  10932. }
  10933. if (o[1] & 0x10) {
  10934. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ee, &(val)->substituteConfIDs))
  10935. return 0;
  10936. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10937. return 0;
  10938. }
  10939. if (o[1] & 0x8) {
  10940. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ee, &(val)->pdu))
  10941. return 0;
  10942. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10943. return 0;
  10944. }
  10945. ASN1_CloseEncoder2(ee);
  10946. }
  10947. return 1;
  10948. }
  10949. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val)
  10950. {
  10951. ASN1uint32_t y;
  10952. ASN1uint32_t l;
  10953. ASN1decoding_t dd;
  10954. ASN1octet_t *db;
  10955. ASN1uint32_t ds;
  10956. ASN1uint32_t i;
  10957. ASN1uint32_t e;
  10958. if (!ASN1PERDecExtensionBit(dec, &y))
  10959. return 0;
  10960. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  10961. return 0;
  10962. if ((val)->o[0] & 0x80) {
  10963. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10964. return 0;
  10965. }
  10966. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10967. return 0;
  10968. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10969. return 0;
  10970. if ((val)->o[0] & 0x40) {
  10971. if (!ASN1PERDecBoolean(dec, &(val)->originator))
  10972. return 0;
  10973. }
  10974. if ((val)->o[0] & 0x20) {
  10975. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(dec, &(val)->audio))
  10976. return 0;
  10977. }
  10978. if ((val)->o[0] & 0x10) {
  10979. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(dec, &(val)->video))
  10980. return 0;
  10981. }
  10982. if ((val)->o[0] & 0x8) {
  10983. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(dec, &(val)->data))
  10984. return 0;
  10985. }
  10986. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->h245))
  10987. return 0;
  10988. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->callSignaling))
  10989. return 0;
  10990. if (!ASN1Dec_CallType(dec, &(val)->callType))
  10991. return 0;
  10992. if (!ASN1PERDecU32Val(dec, 2, &l))
  10993. return 0;
  10994. l += 1;
  10995. ASN1PERDecAlignment(dec);
  10996. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10997. return 0;
  10998. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  10999. return 0;
  11000. if (!y) {
  11001. ZeroMemory((val)->o + 1, 1);
  11002. } else {
  11003. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  11004. return 0;
  11005. if ((val)->o[1] & 0x80) {
  11006. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11007. return 0;
  11008. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11009. return 0;
  11010. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  11011. return 0;
  11012. ASN1_CloseDecoder(dd);
  11013. ASN1Free(db);
  11014. }
  11015. if ((val)->o[1] & 0x40) {
  11016. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11017. return 0;
  11018. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11019. return 0;
  11020. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_tokens(dd, &(val)->tokens))
  11021. return 0;
  11022. ASN1_CloseDecoder(dd);
  11023. ASN1Free(db);
  11024. }
  11025. if ((val)->o[1] & 0x20) {
  11026. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11027. return 0;
  11028. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11029. return 0;
  11030. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(dd, &(val)->cryptoTokens))
  11031. return 0;
  11032. ASN1_CloseDecoder(dd);
  11033. ASN1Free(db);
  11034. }
  11035. if ((val)->o[1] & 0x10) {
  11036. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11037. return 0;
  11038. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11039. return 0;
  11040. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(dd, &(val)->substituteConfIDs))
  11041. return 0;
  11042. ASN1_CloseDecoder(dd);
  11043. ASN1Free(db);
  11044. }
  11045. if ((val)->o[1] & 0x8) {
  11046. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11047. return 0;
  11048. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11049. return 0;
  11050. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(dd, &(val)->pdu))
  11051. return 0;
  11052. ASN1_CloseDecoder(dd);
  11053. ASN1Free(db);
  11054. }
  11055. for (i = 0; i < e; i++) {
  11056. if (!ASN1PERDecSkipFragmented(dec, 8))
  11057. return 0;
  11058. }
  11059. }
  11060. return 1;
  11061. }
  11062. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val)
  11063. {
  11064. if (val) {
  11065. if ((val)->o[0] & 0x80) {
  11066. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11067. }
  11068. if ((val)->o[0] & 0x20) {
  11069. ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(&(val)->audio);
  11070. }
  11071. if ((val)->o[0] & 0x10) {
  11072. ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(&(val)->video);
  11073. }
  11074. if ((val)->o[0] & 0x8) {
  11075. ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(&(val)->data);
  11076. }
  11077. ASN1Free_TransportChannelInfo(&(val)->h245);
  11078. ASN1Free_TransportChannelInfo(&(val)->callSignaling);
  11079. if ((val)->o[1] & 0x80) {
  11080. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  11081. }
  11082. if ((val)->o[1] & 0x40) {
  11083. ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(&(val)->tokens);
  11084. }
  11085. if ((val)->o[1] & 0x20) {
  11086. ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(&(val)->cryptoTokens);
  11087. }
  11088. if ((val)->o[1] & 0x10) {
  11089. ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(&(val)->substituteConfIDs);
  11090. }
  11091. if ((val)->o[1] & 0x8) {
  11092. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(&(val)->pdu);
  11093. }
  11094. }
  11095. }
  11096. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val)
  11097. {
  11098. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn);
  11099. }
  11100. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo val)
  11101. {
  11102. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq(enc, &val->value))
  11103. return 0;
  11104. return 1;
  11105. }
  11106. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val)
  11107. {
  11108. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn, sizeof(**val));
  11109. }
  11110. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo val)
  11111. {
  11112. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq(dec, &val->value))
  11113. return 0;
  11114. return 1;
  11115. }
  11116. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val)
  11117. {
  11118. if (val) {
  11119. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_ElmFn);
  11120. }
  11121. }
  11122. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_ElmFn(PInfoRequestResponse_perCallInfo val)
  11123. {
  11124. if (val) {
  11125. ASN1Free_InfoRequestResponse_perCallInfo_Seq(&val->value);
  11126. }
  11127. }
  11128. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val)
  11129. {
  11130. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn);
  11131. }
  11132. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress val)
  11133. {
  11134. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11135. return 0;
  11136. return 1;
  11137. }
  11138. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val)
  11139. {
  11140. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn, sizeof(**val));
  11141. }
  11142. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress val)
  11143. {
  11144. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11145. return 0;
  11146. return 1;
  11147. }
  11148. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val)
  11149. {
  11150. if (val) {
  11151. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn);
  11152. }
  11153. }
  11154. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn(PInfoRequestResponse_callSignalAddress val)
  11155. {
  11156. if (val) {
  11157. ASN1Free_TransportAddress(&val->value);
  11158. }
  11159. }
  11160. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val)
  11161. {
  11162. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_callSignalAddress_ElmFn);
  11163. }
  11164. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress_ElmFn(ASN1encoding_t enc, PAdmissionReject_callSignalAddress val)
  11165. {
  11166. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11167. return 0;
  11168. return 1;
  11169. }
  11170. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val)
  11171. {
  11172. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_callSignalAddress_ElmFn, sizeof(**val));
  11173. }
  11174. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress_ElmFn(ASN1decoding_t dec, PAdmissionReject_callSignalAddress val)
  11175. {
  11176. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11177. return 0;
  11178. return 1;
  11179. }
  11180. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val)
  11181. {
  11182. if (val) {
  11183. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_callSignalAddress_ElmFn);
  11184. }
  11185. }
  11186. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress_ElmFn(PAdmissionReject_callSignalAddress val)
  11187. {
  11188. if (val) {
  11189. ASN1Free_TransportAddress(&val->value);
  11190. }
  11191. }
  11192. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val)
  11193. {
  11194. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn);
  11195. }
  11196. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress val)
  11197. {
  11198. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11199. return 0;
  11200. return 1;
  11201. }
  11202. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val)
  11203. {
  11204. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11205. }
  11206. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress val)
  11207. {
  11208. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11209. return 0;
  11210. return 1;
  11211. }
  11212. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val)
  11213. {
  11214. if (val) {
  11215. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn);
  11216. }
  11217. }
  11218. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn(PUnregistrationRequest_callSignalAddress val)
  11219. {
  11220. if (val) {
  11221. ASN1Free_TransportAddress(&val->value);
  11222. }
  11223. }
  11224. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val)
  11225. {
  11226. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11227. }
  11228. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper val)
  11229. {
  11230. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11231. return 0;
  11232. return 1;
  11233. }
  11234. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val)
  11235. {
  11236. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11237. }
  11238. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper val)
  11239. {
  11240. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11241. return 0;
  11242. return 1;
  11243. }
  11244. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val)
  11245. {
  11246. if (val) {
  11247. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11248. }
  11249. }
  11250. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn(PRegistrationConfirm_alternateGatekeeper val)
  11251. {
  11252. if (val) {
  11253. ASN1Free_AlternateGK(&val->value);
  11254. }
  11255. }
  11256. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val)
  11257. {
  11258. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn);
  11259. }
  11260. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress val)
  11261. {
  11262. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11263. return 0;
  11264. return 1;
  11265. }
  11266. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val)
  11267. {
  11268. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn, sizeof(**val));
  11269. }
  11270. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress val)
  11271. {
  11272. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11273. return 0;
  11274. return 1;
  11275. }
  11276. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val)
  11277. {
  11278. if (val) {
  11279. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn);
  11280. }
  11281. }
  11282. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn(PRegistrationConfirm_callSignalAddress val)
  11283. {
  11284. if (val) {
  11285. ASN1Free_TransportAddress(&val->value);
  11286. }
  11287. }
  11288. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val)
  11289. {
  11290. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_rasAddress_ElmFn);
  11291. }
  11292. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_rasAddress val)
  11293. {
  11294. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11295. return 0;
  11296. return 1;
  11297. }
  11298. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val)
  11299. {
  11300. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_rasAddress_ElmFn, sizeof(**val));
  11301. }
  11302. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_rasAddress val)
  11303. {
  11304. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11305. return 0;
  11306. return 1;
  11307. }
  11308. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val)
  11309. {
  11310. if (val) {
  11311. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_rasAddress_ElmFn);
  11312. }
  11313. }
  11314. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress_ElmFn(PRegistrationRequest_rasAddress val)
  11315. {
  11316. if (val) {
  11317. ASN1Free_TransportAddress(&val->value);
  11318. }
  11319. }
  11320. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val)
  11321. {
  11322. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn);
  11323. }
  11324. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress val)
  11325. {
  11326. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11327. return 0;
  11328. return 1;
  11329. }
  11330. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val)
  11331. {
  11332. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11333. }
  11334. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress val)
  11335. {
  11336. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11337. return 0;
  11338. return 1;
  11339. }
  11340. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val)
  11341. {
  11342. if (val) {
  11343. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_callSignalAddress_ElmFn);
  11344. }
  11345. }
  11346. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress_ElmFn(PRegistrationRequest_callSignalAddress val)
  11347. {
  11348. if (val) {
  11349. ASN1Free_TransportAddress(&val->value);
  11350. }
  11351. }
  11352. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val)
  11353. {
  11354. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11355. }
  11356. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper val)
  11357. {
  11358. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11359. return 0;
  11360. return 1;
  11361. }
  11362. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val)
  11363. {
  11364. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11365. }
  11366. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper val)
  11367. {
  11368. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11369. return 0;
  11370. return 1;
  11371. }
  11372. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val)
  11373. {
  11374. if (val) {
  11375. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11376. }
  11377. }
  11378. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn(PGatekeeperConfirm_alternateGatekeeper val)
  11379. {
  11380. if (val) {
  11381. ASN1Free_AlternateGK(&val->value);
  11382. }
  11383. }
  11384. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val)
  11385. {
  11386. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn);
  11387. }
  11388. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper val)
  11389. {
  11390. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11391. return 0;
  11392. return 1;
  11393. }
  11394. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val)
  11395. {
  11396. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn, sizeof(**val));
  11397. }
  11398. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper val)
  11399. {
  11400. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11401. return 0;
  11402. return 1;
  11403. }
  11404. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val)
  11405. {
  11406. if (val) {
  11407. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn);
  11408. }
  11409. }
  11410. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn(PAltGKInfo_alternateGatekeeper val)
  11411. {
  11412. if (val) {
  11413. ASN1Free_AlternateGK(&val->value);
  11414. }
  11415. }
  11416. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val)
  11417. {
  11418. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_rasAddress_ElmFn);
  11419. }
  11420. static int ASN1CALL ASN1Enc_Endpoint_rasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_rasAddress val)
  11421. {
  11422. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11423. return 0;
  11424. return 1;
  11425. }
  11426. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val)
  11427. {
  11428. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_rasAddress_ElmFn, sizeof(**val));
  11429. }
  11430. static int ASN1CALL ASN1Dec_Endpoint_rasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_rasAddress val)
  11431. {
  11432. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11433. return 0;
  11434. return 1;
  11435. }
  11436. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val)
  11437. {
  11438. if (val) {
  11439. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_rasAddress_ElmFn);
  11440. }
  11441. }
  11442. static void ASN1CALL ASN1Free_Endpoint_rasAddress_ElmFn(PEndpoint_rasAddress val)
  11443. {
  11444. if (val) {
  11445. ASN1Free_TransportAddress(&val->value);
  11446. }
  11447. }
  11448. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val)
  11449. {
  11450. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_callSignalAddress_ElmFn);
  11451. }
  11452. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress_ElmFn(ASN1encoding_t enc, PEndpoint_callSignalAddress val)
  11453. {
  11454. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11455. return 0;
  11456. return 1;
  11457. }
  11458. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val)
  11459. {
  11460. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_callSignalAddress_ElmFn, sizeof(**val));
  11461. }
  11462. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress_ElmFn(ASN1decoding_t dec, PEndpoint_callSignalAddress val)
  11463. {
  11464. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11465. return 0;
  11466. return 1;
  11467. }
  11468. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val)
  11469. {
  11470. if (val) {
  11471. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_callSignalAddress_ElmFn);
  11472. }
  11473. }
  11474. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress_ElmFn(PEndpoint_callSignalAddress val)
  11475. {
  11476. if (val) {
  11477. ASN1Free_TransportAddress(&val->value);
  11478. }
  11479. }
  11480. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val)
  11481. {
  11482. if (!ASN1PEREncExtensionBitClear(enc))
  11483. return 0;
  11484. if (!ASN1PEREncBits(enc, 6, (val)->o))
  11485. return 0;
  11486. if ((val)->o[0] & 0x80) {
  11487. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11488. return 0;
  11489. }
  11490. if ((val)->o[0] & 0x40) {
  11491. if (!ASN1Enc_VendorIdentifier(enc, &(val)->vendor))
  11492. return 0;
  11493. }
  11494. if ((val)->o[0] & 0x20) {
  11495. if (!ASN1Enc_GatekeeperInfo(enc, &(val)->gatekeeper))
  11496. return 0;
  11497. }
  11498. if ((val)->o[0] & 0x10) {
  11499. if (!ASN1Enc_GatewayInfo(enc, &(val)->gateway))
  11500. return 0;
  11501. }
  11502. if ((val)->o[0] & 0x8) {
  11503. if (!ASN1Enc_McuInfo(enc, &(val)->mcu))
  11504. return 0;
  11505. }
  11506. if ((val)->o[0] & 0x4) {
  11507. if (!ASN1Enc_TerminalInfo(enc, &(val)->terminal))
  11508. return 0;
  11509. }
  11510. if (!ASN1PEREncBoolean(enc, (val)->mc))
  11511. return 0;
  11512. if (!ASN1PEREncBoolean(enc, (val)->undefinedNode))
  11513. return 0;
  11514. return 1;
  11515. }
  11516. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val)
  11517. {
  11518. ASN1uint32_t y;
  11519. if (!ASN1PERDecExtensionBit(dec, &y))
  11520. return 0;
  11521. if (!ASN1PERDecExtension(dec, 6, (val)->o))
  11522. return 0;
  11523. if ((val)->o[0] & 0x80) {
  11524. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11525. return 0;
  11526. }
  11527. if ((val)->o[0] & 0x40) {
  11528. if (!ASN1Dec_VendorIdentifier(dec, &(val)->vendor))
  11529. return 0;
  11530. }
  11531. if ((val)->o[0] & 0x20) {
  11532. if (!ASN1Dec_GatekeeperInfo(dec, &(val)->gatekeeper))
  11533. return 0;
  11534. }
  11535. if ((val)->o[0] & 0x10) {
  11536. if (!ASN1Dec_GatewayInfo(dec, &(val)->gateway))
  11537. return 0;
  11538. }
  11539. if ((val)->o[0] & 0x8) {
  11540. if (!ASN1Dec_McuInfo(dec, &(val)->mcu))
  11541. return 0;
  11542. }
  11543. if ((val)->o[0] & 0x4) {
  11544. if (!ASN1Dec_TerminalInfo(dec, &(val)->terminal))
  11545. return 0;
  11546. }
  11547. if (!ASN1PERDecBoolean(dec, &(val)->mc))
  11548. return 0;
  11549. if (!ASN1PERDecBoolean(dec, &(val)->undefinedNode))
  11550. return 0;
  11551. if (y) {
  11552. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  11553. return 0;
  11554. }
  11555. return 1;
  11556. }
  11557. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val)
  11558. {
  11559. if (val) {
  11560. if ((val)->o[0] & 0x80) {
  11561. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11562. }
  11563. if ((val)->o[0] & 0x40) {
  11564. ASN1Free_VendorIdentifier(&(val)->vendor);
  11565. }
  11566. if ((val)->o[0] & 0x20) {
  11567. ASN1Free_GatekeeperInfo(&(val)->gatekeeper);
  11568. }
  11569. if ((val)->o[0] & 0x10) {
  11570. ASN1Free_GatewayInfo(&(val)->gateway);
  11571. }
  11572. if ((val)->o[0] & 0x8) {
  11573. ASN1Free_McuInfo(&(val)->mcu);
  11574. }
  11575. if ((val)->o[0] & 0x4) {
  11576. ASN1Free_TerminalInfo(&(val)->terminal);
  11577. }
  11578. }
  11579. }
  11580. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val)
  11581. {
  11582. ASN1encoding_t ee;
  11583. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 9))
  11584. return 0;
  11585. switch ((val)->choice) {
  11586. case 1:
  11587. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardData))
  11588. return 0;
  11589. break;
  11590. case 2:
  11591. if (!ASN1Enc_H310Caps(enc, &(val)->u.h310))
  11592. return 0;
  11593. break;
  11594. case 3:
  11595. if (!ASN1Enc_H320Caps(enc, &(val)->u.h320))
  11596. return 0;
  11597. break;
  11598. case 4:
  11599. if (!ASN1Enc_H321Caps(enc, &(val)->u.h321))
  11600. return 0;
  11601. break;
  11602. case 5:
  11603. if (!ASN1Enc_H322Caps(enc, &(val)->u.h322))
  11604. return 0;
  11605. break;
  11606. case 6:
  11607. if (!ASN1Enc_H323Caps(enc, &(val)->u.h323))
  11608. return 0;
  11609. break;
  11610. case 7:
  11611. if (!ASN1Enc_H324Caps(enc, &(val)->u.h324))
  11612. return 0;
  11613. break;
  11614. case 8:
  11615. if (!ASN1Enc_VoiceCaps(enc, &(val)->u.voice))
  11616. return 0;
  11617. break;
  11618. case 9:
  11619. if (!ASN1Enc_T120OnlyCaps(enc, &(val)->u.t120_only))
  11620. return 0;
  11621. break;
  11622. case 10:
  11623. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11624. return 0;
  11625. if (!ASN1Enc_NonStandardProtocol(ee, &(val)->u.nonStandardProtocol))
  11626. return 0;
  11627. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11628. return 0;
  11629. ASN1_CloseEncoder2(ee);
  11630. break;
  11631. default:
  11632. /* impossible */
  11633. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11634. return 0;
  11635. }
  11636. return 1;
  11637. }
  11638. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val)
  11639. {
  11640. ASN1decoding_t dd;
  11641. ASN1octet_t *db;
  11642. ASN1uint32_t ds;
  11643. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 4, 9))
  11644. return 0;
  11645. switch ((val)->choice) {
  11646. case 1:
  11647. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardData))
  11648. return 0;
  11649. break;
  11650. case 2:
  11651. if (!ASN1Dec_H310Caps(dec, &(val)->u.h310))
  11652. return 0;
  11653. break;
  11654. case 3:
  11655. if (!ASN1Dec_H320Caps(dec, &(val)->u.h320))
  11656. return 0;
  11657. break;
  11658. case 4:
  11659. if (!ASN1Dec_H321Caps(dec, &(val)->u.h321))
  11660. return 0;
  11661. break;
  11662. case 5:
  11663. if (!ASN1Dec_H322Caps(dec, &(val)->u.h322))
  11664. return 0;
  11665. break;
  11666. case 6:
  11667. if (!ASN1Dec_H323Caps(dec, &(val)->u.h323))
  11668. return 0;
  11669. break;
  11670. case 7:
  11671. if (!ASN1Dec_H324Caps(dec, &(val)->u.h324))
  11672. return 0;
  11673. break;
  11674. case 8:
  11675. if (!ASN1Dec_VoiceCaps(dec, &(val)->u.voice))
  11676. return 0;
  11677. break;
  11678. case 9:
  11679. if (!ASN1Dec_T120OnlyCaps(dec, &(val)->u.t120_only))
  11680. return 0;
  11681. break;
  11682. case 10:
  11683. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11684. return 0;
  11685. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11686. return 0;
  11687. if (!ASN1Dec_NonStandardProtocol(dd, &(val)->u.nonStandardProtocol))
  11688. return 0;
  11689. ASN1_CloseDecoder(dd);
  11690. ASN1Free(db);
  11691. break;
  11692. case 0:
  11693. /* extension case */
  11694. if (!ASN1PERDecSkipFragmented(dec, 8))
  11695. return 0;
  11696. break;
  11697. default:
  11698. /* impossible */
  11699. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11700. return 0;
  11701. }
  11702. return 1;
  11703. }
  11704. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val)
  11705. {
  11706. if (val) {
  11707. switch ((val)->choice) {
  11708. case 1:
  11709. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardData);
  11710. break;
  11711. case 2:
  11712. ASN1Free_H310Caps(&(val)->u.h310);
  11713. break;
  11714. case 3:
  11715. ASN1Free_H320Caps(&(val)->u.h320);
  11716. break;
  11717. case 4:
  11718. ASN1Free_H321Caps(&(val)->u.h321);
  11719. break;
  11720. case 5:
  11721. ASN1Free_H322Caps(&(val)->u.h322);
  11722. break;
  11723. case 6:
  11724. ASN1Free_H323Caps(&(val)->u.h323);
  11725. break;
  11726. case 7:
  11727. ASN1Free_H324Caps(&(val)->u.h324);
  11728. break;
  11729. case 8:
  11730. ASN1Free_VoiceCaps(&(val)->u.voice);
  11731. break;
  11732. case 9:
  11733. ASN1Free_T120OnlyCaps(&(val)->u.t120_only);
  11734. break;
  11735. case 10:
  11736. ASN1Free_NonStandardProtocol(&(val)->u.nonStandardProtocol);
  11737. break;
  11738. }
  11739. }
  11740. }
  11741. static ASN1stringtableentry_t AliasAddress_e164_StringTableEntries[] = {
  11742. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  11743. { 48, 57, 3 },
  11744. };
  11745. static ASN1stringtable_t AliasAddress_e164_StringTable = {
  11746. 4, AliasAddress_e164_StringTableEntries
  11747. };
  11748. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val)
  11749. {
  11750. ASN1uint32_t t;
  11751. ASN1encoding_t ee;
  11752. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  11753. return 0;
  11754. switch ((val)->choice) {
  11755. case 1:
  11756. t = lstrlenA((val)->u.e164);
  11757. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  11758. return 0;
  11759. ASN1PEREncAlignment(enc);
  11760. if (!ASN1PEREncTableCharString(enc, t, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11761. return 0;
  11762. break;
  11763. case 2:
  11764. ASN1PEREncAlignment(enc);
  11765. if (!ASN1PEREncBitVal(enc, 8, ((val)->u.h323_ID).length - 1))
  11766. return 0;
  11767. if (!ASN1PEREncChar16String(enc, ((val)->u.h323_ID).length, ((val)->u.h323_ID).value, 16))
  11768. return 0;
  11769. break;
  11770. case 3:
  11771. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11772. return 0;
  11773. t = lstrlenA((val)->u.url_ID);
  11774. ASN1PEREncAlignment(ee);
  11775. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11776. return 0;
  11777. if (!ASN1PEREncCharString(ee, t, (val)->u.url_ID, 8))
  11778. return 0;
  11779. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11780. return 0;
  11781. ASN1_CloseEncoder2(ee);
  11782. break;
  11783. case 4:
  11784. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11785. return 0;
  11786. if (!ASN1Enc_TransportAddress(ee, &(val)->u.transportID))
  11787. return 0;
  11788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11789. return 0;
  11790. ASN1_CloseEncoder2(ee);
  11791. break;
  11792. case 5:
  11793. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11794. return 0;
  11795. t = lstrlenA((val)->u.email_ID);
  11796. ASN1PEREncAlignment(ee);
  11797. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11798. return 0;
  11799. if (!ASN1PEREncCharString(ee, t, (val)->u.email_ID, 8))
  11800. return 0;
  11801. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11802. return 0;
  11803. ASN1_CloseEncoder2(ee);
  11804. break;
  11805. case 6:
  11806. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11807. return 0;
  11808. if (!ASN1Enc_PartyNumber(ee, &(val)->u.partyNumber))
  11809. return 0;
  11810. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11811. return 0;
  11812. ASN1_CloseEncoder2(ee);
  11813. break;
  11814. default:
  11815. /* impossible */
  11816. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11817. return 0;
  11818. }
  11819. return 1;
  11820. }
  11821. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val)
  11822. {
  11823. ASN1uint32_t l;
  11824. ASN1decoding_t dd;
  11825. ASN1octet_t *db;
  11826. ASN1uint32_t ds;
  11827. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  11828. return 0;
  11829. switch ((val)->choice) {
  11830. case 1:
  11831. if (!ASN1PERDecU32Val(dec, 7, &l))
  11832. return 0;
  11833. l += 1;
  11834. ASN1PERDecAlignment(dec);
  11835. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11836. return 0;
  11837. break;
  11838. case 2:
  11839. ASN1PERDecAlignment(dec);
  11840. if (!ASN1PERDecU32Val(dec, 8, &((val)->u.h323_ID).length))
  11841. return 0;
  11842. ((val)->u.h323_ID).length += 1;
  11843. if (!ASN1PERDecChar16String(dec, ((val)->u.h323_ID).length, &((val)->u.h323_ID).value, 16))
  11844. return 0;
  11845. break;
  11846. case 3:
  11847. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11848. return 0;
  11849. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11850. return 0;
  11851. ASN1PERDecAlignment(dd);
  11852. if (!ASN1PERDecU32Val(dd, 16, &l))
  11853. return 0;
  11854. l += 1;
  11855. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.url_ID, 8))
  11856. return 0;
  11857. ASN1_CloseDecoder(dd);
  11858. ASN1Free(db);
  11859. break;
  11860. case 4:
  11861. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11862. return 0;
  11863. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11864. return 0;
  11865. if (!ASN1Dec_TransportAddress(dd, &(val)->u.transportID))
  11866. return 0;
  11867. ASN1_CloseDecoder(dd);
  11868. ASN1Free(db);
  11869. break;
  11870. case 5:
  11871. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11872. return 0;
  11873. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11874. return 0;
  11875. ASN1PERDecAlignment(dd);
  11876. if (!ASN1PERDecU32Val(dd, 16, &l))
  11877. return 0;
  11878. l += 1;
  11879. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.email_ID, 8))
  11880. return 0;
  11881. ASN1_CloseDecoder(dd);
  11882. ASN1Free(db);
  11883. break;
  11884. case 6:
  11885. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11886. return 0;
  11887. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11888. return 0;
  11889. if (!ASN1Dec_PartyNumber(dd, &(val)->u.partyNumber))
  11890. return 0;
  11891. ASN1_CloseDecoder(dd);
  11892. ASN1Free(db);
  11893. break;
  11894. case 0:
  11895. /* extension case */
  11896. if (!ASN1PERDecSkipFragmented(dec, 8))
  11897. return 0;
  11898. break;
  11899. default:
  11900. /* impossible */
  11901. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11902. return 0;
  11903. }
  11904. return 1;
  11905. }
  11906. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val)
  11907. {
  11908. if (val) {
  11909. switch ((val)->choice) {
  11910. case 1:
  11911. break;
  11912. case 2:
  11913. ASN1char16string_free(&(val)->u.h323_ID);
  11914. break;
  11915. case 3:
  11916. break;
  11917. case 4:
  11918. ASN1Free_TransportAddress(&(val)->u.transportID);
  11919. break;
  11920. case 5:
  11921. break;
  11922. case 6:
  11923. ASN1Free_PartyNumber(&(val)->u.partyNumber);
  11924. break;
  11925. }
  11926. }
  11927. }
  11928. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val)
  11929. {
  11930. if (!ASN1PEREncExtensionBitClear(enc))
  11931. return 0;
  11932. if (!ASN1PEREncBits(enc, 10, (val)->o))
  11933. return 0;
  11934. if ((val)->o[0] & 0x80) {
  11935. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11936. return 0;
  11937. }
  11938. if ((val)->o[0] & 0x40) {
  11939. if (!ASN1Enc_Endpoint_aliasAddress(enc, &(val)->aliasAddress))
  11940. return 0;
  11941. }
  11942. if ((val)->o[0] & 0x20) {
  11943. if (!ASN1Enc_Endpoint_callSignalAddress(enc, &(val)->callSignalAddress))
  11944. return 0;
  11945. }
  11946. if ((val)->o[0] & 0x10) {
  11947. if (!ASN1Enc_Endpoint_rasAddress(enc, &(val)->rasAddress))
  11948. return 0;
  11949. }
  11950. if ((val)->o[0] & 0x8) {
  11951. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  11952. return 0;
  11953. }
  11954. if ((val)->o[0] & 0x4) {
  11955. if (!ASN1Enc_Endpoint_tokens(enc, &(val)->tokens))
  11956. return 0;
  11957. }
  11958. if ((val)->o[0] & 0x2) {
  11959. if (!ASN1Enc_Endpoint_cryptoTokens(enc, &(val)->cryptoTokens))
  11960. return 0;
  11961. }
  11962. if ((val)->o[0] & 0x1) {
  11963. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  11964. return 0;
  11965. }
  11966. if ((val)->o[1] & 0x80) {
  11967. if (!ASN1Enc_Endpoint_remoteExtensionAddress(enc, &(val)->remoteExtensionAddress))
  11968. return 0;
  11969. }
  11970. if ((val)->o[1] & 0x40) {
  11971. if (!ASN1Enc_Endpoint_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  11972. return 0;
  11973. }
  11974. return 1;
  11975. }
  11976. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val)
  11977. {
  11978. ASN1uint32_t y;
  11979. if (!ASN1PERDecExtensionBit(dec, &y))
  11980. return 0;
  11981. if (!ASN1PERDecExtension(dec, 10, (val)->o))
  11982. return 0;
  11983. if ((val)->o[0] & 0x80) {
  11984. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11985. return 0;
  11986. }
  11987. if ((val)->o[0] & 0x40) {
  11988. if (!ASN1Dec_Endpoint_aliasAddress(dec, &(val)->aliasAddress))
  11989. return 0;
  11990. }
  11991. if ((val)->o[0] & 0x20) {
  11992. if (!ASN1Dec_Endpoint_callSignalAddress(dec, &(val)->callSignalAddress))
  11993. return 0;
  11994. }
  11995. if ((val)->o[0] & 0x10) {
  11996. if (!ASN1Dec_Endpoint_rasAddress(dec, &(val)->rasAddress))
  11997. return 0;
  11998. }
  11999. if ((val)->o[0] & 0x8) {
  12000. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12001. return 0;
  12002. }
  12003. if ((val)->o[0] & 0x4) {
  12004. if (!ASN1Dec_Endpoint_tokens(dec, &(val)->tokens))
  12005. return 0;
  12006. }
  12007. if ((val)->o[0] & 0x2) {
  12008. if (!ASN1Dec_Endpoint_cryptoTokens(dec, &(val)->cryptoTokens))
  12009. return 0;
  12010. }
  12011. if ((val)->o[0] & 0x1) {
  12012. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  12013. return 0;
  12014. }
  12015. if ((val)->o[1] & 0x80) {
  12016. if (!ASN1Dec_Endpoint_remoteExtensionAddress(dec, &(val)->remoteExtensionAddress))
  12017. return 0;
  12018. }
  12019. if ((val)->o[1] & 0x40) {
  12020. if (!ASN1Dec_Endpoint_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  12021. return 0;
  12022. }
  12023. if (y) {
  12024. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12025. return 0;
  12026. }
  12027. return 1;
  12028. }
  12029. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val)
  12030. {
  12031. if (val) {
  12032. if ((val)->o[0] & 0x80) {
  12033. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12034. }
  12035. if ((val)->o[0] & 0x40) {
  12036. ASN1Free_Endpoint_aliasAddress(&(val)->aliasAddress);
  12037. }
  12038. if ((val)->o[0] & 0x20) {
  12039. ASN1Free_Endpoint_callSignalAddress(&(val)->callSignalAddress);
  12040. }
  12041. if ((val)->o[0] & 0x10) {
  12042. ASN1Free_Endpoint_rasAddress(&(val)->rasAddress);
  12043. }
  12044. if ((val)->o[0] & 0x8) {
  12045. ASN1Free_EndpointType(&(val)->endpointType);
  12046. }
  12047. if ((val)->o[0] & 0x4) {
  12048. ASN1Free_Endpoint_tokens(&(val)->tokens);
  12049. }
  12050. if ((val)->o[0] & 0x2) {
  12051. ASN1Free_Endpoint_cryptoTokens(&(val)->cryptoTokens);
  12052. }
  12053. if ((val)->o[1] & 0x80) {
  12054. ASN1Free_Endpoint_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12055. }
  12056. if ((val)->o[1] & 0x40) {
  12057. ASN1Free_Endpoint_destExtraCallInfo(&(val)->destExtraCallInfo);
  12058. }
  12059. }
  12060. }
  12061. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val)
  12062. {
  12063. if (!ASN1PEREncExtensionBitClear(enc))
  12064. return 0;
  12065. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12066. return 0;
  12067. if ((val)->o[0] & 0x80) {
  12068. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12069. return 0;
  12070. }
  12071. if (!ASN1Enc_AliasAddress(enc, &(val)->prefix))
  12072. return 0;
  12073. return 1;
  12074. }
  12075. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val)
  12076. {
  12077. ASN1uint32_t y;
  12078. if (!ASN1PERDecExtensionBit(dec, &y))
  12079. return 0;
  12080. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  12081. return 0;
  12082. if ((val)->o[0] & 0x80) {
  12083. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12084. return 0;
  12085. }
  12086. if (!ASN1Dec_AliasAddress(dec, &(val)->prefix))
  12087. return 0;
  12088. if (y) {
  12089. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12090. return 0;
  12091. }
  12092. return 1;
  12093. }
  12094. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val)
  12095. {
  12096. if (val) {
  12097. if ((val)->o[0] & 0x80) {
  12098. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12099. }
  12100. ASN1Free_AliasAddress(&(val)->prefix);
  12101. }
  12102. }
  12103. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val)
  12104. {
  12105. ASN1uint32_t y;
  12106. ASN1encoding_t ee;
  12107. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  12108. if (!ASN1PEREncBitVal(enc, 1, y))
  12109. return 0;
  12110. if (!ASN1PEREncBits(enc, 4, (val)->o))
  12111. return 0;
  12112. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12113. return 0;
  12114. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12115. return 0;
  12116. if ((val)->o[0] & 0x80) {
  12117. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12118. return 0;
  12119. }
  12120. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12121. return 0;
  12122. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12123. return 0;
  12124. if ((val)->o[0] & 0x40) {
  12125. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12126. return 0;
  12127. ASN1PEREncAlignment(enc);
  12128. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12129. return 0;
  12130. }
  12131. if ((val)->o[0] & 0x20) {
  12132. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  12133. return 0;
  12134. }
  12135. if ((val)->o[0] & 0x10) {
  12136. if (!ASN1Enc_GatekeeperRequest_endpointAlias(enc, &(val)->endpointAlias))
  12137. return 0;
  12138. }
  12139. if (y) {
  12140. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  12141. return 0;
  12142. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12143. return 0;
  12144. if ((val)->o[1] & 0x80) {
  12145. if (!ASN1Enc_GatekeeperRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12146. return 0;
  12147. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12148. return 0;
  12149. }
  12150. if ((val)->o[1] & 0x40) {
  12151. if (!ASN1Enc_GatekeeperRequest_tokens(ee, &(val)->tokens))
  12152. return 0;
  12153. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12154. return 0;
  12155. }
  12156. if ((val)->o[1] & 0x20) {
  12157. if (!ASN1Enc_GatekeeperRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12158. return 0;
  12159. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12160. return 0;
  12161. }
  12162. if ((val)->o[1] & 0x10) {
  12163. if (!ASN1Enc_GatekeeperRequest_authenticationCapability(ee, &(val)->authenticationCapability))
  12164. return 0;
  12165. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12166. return 0;
  12167. }
  12168. if ((val)->o[1] & 0x8) {
  12169. if (!ASN1Enc_GatekeeperRequest_algorithmOIDs(ee, &(val)->algorithmOIDs))
  12170. return 0;
  12171. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12172. return 0;
  12173. }
  12174. if ((val)->o[1] & 0x4) {
  12175. if (!ASN1Enc_GatekeeperRequest_integrity(ee, &(val)->integrity))
  12176. return 0;
  12177. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12178. return 0;
  12179. }
  12180. if ((val)->o[1] & 0x2) {
  12181. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12182. return 0;
  12183. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12184. return 0;
  12185. }
  12186. ASN1_CloseEncoder2(ee);
  12187. }
  12188. return 1;
  12189. }
  12190. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val)
  12191. {
  12192. ASN1uint32_t y;
  12193. ASN1decoding_t dd;
  12194. ASN1octet_t *db;
  12195. ASN1uint32_t ds;
  12196. ASN1uint32_t i;
  12197. ASN1uint32_t e;
  12198. if (!ASN1PERDecExtensionBit(dec, &y))
  12199. return 0;
  12200. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  12201. return 0;
  12202. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12203. return 0;
  12204. (val)->requestSeqNum += 1;
  12205. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12206. return 0;
  12207. if ((val)->o[0] & 0x80) {
  12208. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12209. return 0;
  12210. }
  12211. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  12212. return 0;
  12213. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12214. return 0;
  12215. if ((val)->o[0] & 0x40) {
  12216. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12217. return 0;
  12218. ((val)->gatekeeperIdentifier).length += 1;
  12219. ASN1PERDecAlignment(dec);
  12220. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12221. return 0;
  12222. }
  12223. if ((val)->o[0] & 0x20) {
  12224. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  12225. return 0;
  12226. }
  12227. if ((val)->o[0] & 0x10) {
  12228. if (!ASN1Dec_GatekeeperRequest_endpointAlias(dec, &(val)->endpointAlias))
  12229. return 0;
  12230. }
  12231. if (!y) {
  12232. ZeroMemory((val)->o + 1, 1);
  12233. } else {
  12234. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  12235. return 0;
  12236. if ((val)->o[1] & 0x80) {
  12237. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12238. return 0;
  12239. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12240. return 0;
  12241. if (!ASN1Dec_GatekeeperRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12242. return 0;
  12243. ASN1_CloseDecoder(dd);
  12244. ASN1Free(db);
  12245. }
  12246. if ((val)->o[1] & 0x40) {
  12247. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12248. return 0;
  12249. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12250. return 0;
  12251. if (!ASN1Dec_GatekeeperRequest_tokens(dd, &(val)->tokens))
  12252. return 0;
  12253. ASN1_CloseDecoder(dd);
  12254. ASN1Free(db);
  12255. }
  12256. if ((val)->o[1] & 0x20) {
  12257. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12258. return 0;
  12259. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12260. return 0;
  12261. if (!ASN1Dec_GatekeeperRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12262. return 0;
  12263. ASN1_CloseDecoder(dd);
  12264. ASN1Free(db);
  12265. }
  12266. if ((val)->o[1] & 0x10) {
  12267. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12268. return 0;
  12269. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12270. return 0;
  12271. if (!ASN1Dec_GatekeeperRequest_authenticationCapability(dd, &(val)->authenticationCapability))
  12272. return 0;
  12273. ASN1_CloseDecoder(dd);
  12274. ASN1Free(db);
  12275. }
  12276. if ((val)->o[1] & 0x8) {
  12277. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12278. return 0;
  12279. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12280. return 0;
  12281. if (!ASN1Dec_GatekeeperRequest_algorithmOIDs(dd, &(val)->algorithmOIDs))
  12282. return 0;
  12283. ASN1_CloseDecoder(dd);
  12284. ASN1Free(db);
  12285. }
  12286. if ((val)->o[1] & 0x4) {
  12287. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12288. return 0;
  12289. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12290. return 0;
  12291. if (!ASN1Dec_GatekeeperRequest_integrity(dd, &(val)->integrity))
  12292. return 0;
  12293. ASN1_CloseDecoder(dd);
  12294. ASN1Free(db);
  12295. }
  12296. if ((val)->o[1] & 0x2) {
  12297. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12298. return 0;
  12299. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12300. return 0;
  12301. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12302. return 0;
  12303. ASN1_CloseDecoder(dd);
  12304. ASN1Free(db);
  12305. }
  12306. for (i = 0; i < e; i++) {
  12307. if (!ASN1PERDecSkipFragmented(dec, 8))
  12308. return 0;
  12309. }
  12310. }
  12311. return 1;
  12312. }
  12313. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val)
  12314. {
  12315. if (val) {
  12316. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12317. if ((val)->o[0] & 0x80) {
  12318. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12319. }
  12320. ASN1Free_TransportAddress(&(val)->rasAddress);
  12321. ASN1Free_EndpointType(&(val)->endpointType);
  12322. if ((val)->o[0] & 0x40) {
  12323. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12324. }
  12325. if ((val)->o[0] & 0x10) {
  12326. ASN1Free_GatekeeperRequest_endpointAlias(&(val)->endpointAlias);
  12327. }
  12328. if ((val)->o[1] & 0x80) {
  12329. ASN1Free_GatekeeperRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12330. }
  12331. if ((val)->o[1] & 0x40) {
  12332. ASN1Free_GatekeeperRequest_tokens(&(val)->tokens);
  12333. }
  12334. if ((val)->o[1] & 0x20) {
  12335. ASN1Free_GatekeeperRequest_cryptoTokens(&(val)->cryptoTokens);
  12336. }
  12337. if ((val)->o[1] & 0x10) {
  12338. ASN1Free_GatekeeperRequest_authenticationCapability(&(val)->authenticationCapability);
  12339. }
  12340. if ((val)->o[1] & 0x8) {
  12341. ASN1Free_GatekeeperRequest_algorithmOIDs(&(val)->algorithmOIDs);
  12342. }
  12343. if ((val)->o[1] & 0x4) {
  12344. ASN1Free_GatekeeperRequest_integrity(&(val)->integrity);
  12345. }
  12346. if ((val)->o[1] & 0x2) {
  12347. ASN1Free_ICV(&(val)->integrityCheckValue);
  12348. }
  12349. }
  12350. }
  12351. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val)
  12352. {
  12353. ASN1octet_t o[2];
  12354. ASN1uint32_t y;
  12355. ASN1encoding_t ee;
  12356. ASN1uint32_t l;
  12357. CopyMemory(o, (val)->o, 2);
  12358. o[1] |= 0x4;
  12359. o[1] |= 0x1;
  12360. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12361. if (!ASN1PEREncBitVal(enc, 1, y))
  12362. return 0;
  12363. if (!ASN1PEREncBits(enc, 3, o))
  12364. return 0;
  12365. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12366. return 0;
  12367. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12368. return 0;
  12369. if (o[0] & 0x80) {
  12370. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12371. return 0;
  12372. }
  12373. if (!ASN1PEREncBoolean(enc, (val)->discoveryComplete))
  12374. return 0;
  12375. if (!ASN1Enc_RegistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  12376. return 0;
  12377. if (!ASN1Enc_RegistrationRequest_rasAddress(enc, &(val)->rasAddress))
  12378. return 0;
  12379. if (!ASN1Enc_EndpointType(enc, &(val)->terminalType))
  12380. return 0;
  12381. if (o[0] & 0x40) {
  12382. if (!ASN1Enc_RegistrationRequest_terminalAlias(enc, &(val)->terminalAlias))
  12383. return 0;
  12384. }
  12385. if (o[0] & 0x20) {
  12386. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12387. return 0;
  12388. ASN1PEREncAlignment(enc);
  12389. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12390. return 0;
  12391. }
  12392. if (!ASN1Enc_VendorIdentifier(enc, &(val)->endpointVendor))
  12393. return 0;
  12394. if (y) {
  12395. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  12396. return 0;
  12397. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12398. return 0;
  12399. if (o[1] & 0x80) {
  12400. if (!ASN1Enc_RegistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12401. return 0;
  12402. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12403. return 0;
  12404. }
  12405. if (o[1] & 0x40) {
  12406. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  12407. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  12408. return 0;
  12409. ASN1PEREncAlignment(ee);
  12410. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  12411. return 0;
  12412. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12413. return 0;
  12414. }
  12415. if (o[1] & 0x20) {
  12416. if (!ASN1Enc_RegistrationRequest_tokens(ee, &(val)->tokens))
  12417. return 0;
  12418. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12419. return 0;
  12420. }
  12421. if (o[1] & 0x10) {
  12422. if (!ASN1Enc_RegistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12423. return 0;
  12424. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12425. return 0;
  12426. }
  12427. if (o[1] & 0x8) {
  12428. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12429. return 0;
  12430. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12431. return 0;
  12432. }
  12433. if (o[1] & 0x4) {
  12434. if (!ASN1PEREncBoolean(ee, (val)->keepAlive))
  12435. return 0;
  12436. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12437. return 0;
  12438. }
  12439. if (o[1] & 0x2) {
  12440. if (!ASN1PEREncBitVal(ee, 7, ((val)->endpointIdentifier).length - 1))
  12441. return 0;
  12442. ASN1PEREncAlignment(ee);
  12443. if (!ASN1PEREncChar16String(ee, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  12444. return 0;
  12445. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12446. return 0;
  12447. }
  12448. if (o[1] & 0x1) {
  12449. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  12450. return 0;
  12451. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12452. return 0;
  12453. }
  12454. ASN1_CloseEncoder2(ee);
  12455. }
  12456. return 1;
  12457. }
  12458. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val)
  12459. {
  12460. ASN1uint32_t y;
  12461. ASN1decoding_t dd;
  12462. ASN1octet_t *db;
  12463. ASN1uint32_t ds;
  12464. ASN1uint32_t l;
  12465. ASN1uint32_t i;
  12466. ASN1uint32_t e;
  12467. if (!ASN1PERDecExtensionBit(dec, &y))
  12468. return 0;
  12469. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  12470. return 0;
  12471. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12472. return 0;
  12473. (val)->requestSeqNum += 1;
  12474. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12475. return 0;
  12476. if ((val)->o[0] & 0x80) {
  12477. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12478. return 0;
  12479. }
  12480. if (!ASN1PERDecBoolean(dec, &(val)->discoveryComplete))
  12481. return 0;
  12482. if (!ASN1Dec_RegistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  12483. return 0;
  12484. if (!ASN1Dec_RegistrationRequest_rasAddress(dec, &(val)->rasAddress))
  12485. return 0;
  12486. if (!ASN1Dec_EndpointType(dec, &(val)->terminalType))
  12487. return 0;
  12488. if ((val)->o[0] & 0x40) {
  12489. if (!ASN1Dec_RegistrationRequest_terminalAlias(dec, &(val)->terminalAlias))
  12490. return 0;
  12491. }
  12492. if ((val)->o[0] & 0x20) {
  12493. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12494. return 0;
  12495. ((val)->gatekeeperIdentifier).length += 1;
  12496. ASN1PERDecAlignment(dec);
  12497. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12498. return 0;
  12499. }
  12500. if (!ASN1Dec_VendorIdentifier(dec, &(val)->endpointVendor))
  12501. return 0;
  12502. if (!y) {
  12503. ZeroMemory((val)->o + 1, 1);
  12504. } else {
  12505. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  12506. return 0;
  12507. if ((val)->o[1] & 0x80) {
  12508. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12509. return 0;
  12510. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12511. return 0;
  12512. if (!ASN1Dec_RegistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12513. return 0;
  12514. ASN1_CloseDecoder(dd);
  12515. ASN1Free(db);
  12516. }
  12517. if ((val)->o[1] & 0x40) {
  12518. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12519. return 0;
  12520. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12521. return 0;
  12522. if (!ASN1PERDecU32Val(dd, 2, &l))
  12523. return 0;
  12524. l += 1;
  12525. ASN1PERDecAlignment(dd);
  12526. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  12527. return 0;
  12528. (val)->timeToLive += 1;
  12529. ASN1_CloseDecoder(dd);
  12530. ASN1Free(db);
  12531. }
  12532. if ((val)->o[1] & 0x20) {
  12533. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12534. return 0;
  12535. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12536. return 0;
  12537. if (!ASN1Dec_RegistrationRequest_tokens(dd, &(val)->tokens))
  12538. return 0;
  12539. ASN1_CloseDecoder(dd);
  12540. ASN1Free(db);
  12541. }
  12542. if ((val)->o[1] & 0x10) {
  12543. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12544. return 0;
  12545. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12546. return 0;
  12547. if (!ASN1Dec_RegistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12548. return 0;
  12549. ASN1_CloseDecoder(dd);
  12550. ASN1Free(db);
  12551. }
  12552. if ((val)->o[1] & 0x8) {
  12553. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12554. return 0;
  12555. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12556. return 0;
  12557. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12558. return 0;
  12559. ASN1_CloseDecoder(dd);
  12560. ASN1Free(db);
  12561. }
  12562. if ((val)->o[1] & 0x4) {
  12563. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12564. return 0;
  12565. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12566. return 0;
  12567. if (!ASN1PERDecBoolean(dd, &(val)->keepAlive))
  12568. return 0;
  12569. ASN1_CloseDecoder(dd);
  12570. ASN1Free(db);
  12571. }
  12572. if ((val)->o[1] & 0x2) {
  12573. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12574. return 0;
  12575. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12576. return 0;
  12577. if (!ASN1PERDecU32Val(dd, 7, &((val)->endpointIdentifier).length))
  12578. return 0;
  12579. ((val)->endpointIdentifier).length += 1;
  12580. ASN1PERDecAlignment(dd);
  12581. if (!ASN1PERDecChar16String(dd, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  12582. return 0;
  12583. ASN1_CloseDecoder(dd);
  12584. ASN1Free(db);
  12585. }
  12586. if ((val)->o[1] & 0x1) {
  12587. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12588. return 0;
  12589. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12590. return 0;
  12591. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  12592. return 0;
  12593. ASN1_CloseDecoder(dd);
  12594. ASN1Free(db);
  12595. }
  12596. for (i = 0; i < e; i++) {
  12597. if (!ASN1PERDecSkipFragmented(dec, 8))
  12598. return 0;
  12599. }
  12600. }
  12601. return 1;
  12602. }
  12603. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val)
  12604. {
  12605. if (val) {
  12606. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12607. if ((val)->o[0] & 0x80) {
  12608. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12609. }
  12610. ASN1Free_RegistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  12611. ASN1Free_RegistrationRequest_rasAddress(&(val)->rasAddress);
  12612. ASN1Free_EndpointType(&(val)->terminalType);
  12613. if ((val)->o[0] & 0x40) {
  12614. ASN1Free_RegistrationRequest_terminalAlias(&(val)->terminalAlias);
  12615. }
  12616. if ((val)->o[0] & 0x20) {
  12617. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12618. }
  12619. ASN1Free_VendorIdentifier(&(val)->endpointVendor);
  12620. if ((val)->o[1] & 0x80) {
  12621. ASN1Free_RegistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12622. }
  12623. if ((val)->o[1] & 0x20) {
  12624. ASN1Free_RegistrationRequest_tokens(&(val)->tokens);
  12625. }
  12626. if ((val)->o[1] & 0x10) {
  12627. ASN1Free_RegistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  12628. }
  12629. if ((val)->o[1] & 0x8) {
  12630. ASN1Free_ICV(&(val)->integrityCheckValue);
  12631. }
  12632. if ((val)->o[1] & 0x2) {
  12633. ASN1char16string_free(&(val)->endpointIdentifier);
  12634. }
  12635. }
  12636. }
  12637. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val)
  12638. {
  12639. ASN1octet_t o[3];
  12640. ASN1uint32_t y;
  12641. ASN1uint32_t l;
  12642. ASN1encoding_t ee;
  12643. CopyMemory(o, (val)->o, 3);
  12644. o[2] |= 0x40;
  12645. o[2] |= 0x20;
  12646. y = ASN1PEREncCheckExtensions(11, (val)->o + 1);
  12647. if (!ASN1PEREncBitVal(enc, 1, y))
  12648. return 0;
  12649. if (!ASN1PEREncBits(enc, 2, o))
  12650. return 0;
  12651. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12652. return 0;
  12653. l = ASN1uint32_uoctets((val)->bandWidth);
  12654. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  12655. return 0;
  12656. ASN1PEREncAlignment(enc);
  12657. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  12658. return 0;
  12659. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  12660. return 0;
  12661. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  12662. return 0;
  12663. if (o[0] & 0x80) {
  12664. if (!ASN1PEREncUnsignedShort(enc, (val)->irrFrequency - 1))
  12665. return 0;
  12666. }
  12667. if (o[0] & 0x40) {
  12668. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12669. return 0;
  12670. }
  12671. if (y) {
  12672. if (!ASN1PEREncNormallySmallBits(enc, 11, o + 1))
  12673. return 0;
  12674. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12675. return 0;
  12676. if (o[1] & 0x80) {
  12677. if (!ASN1Enc_AdmissionConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12678. return 0;
  12679. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12680. return 0;
  12681. }
  12682. if (o[1] & 0x40) {
  12683. if (!ASN1Enc_AdmissionConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12684. return 0;
  12685. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12686. return 0;
  12687. }
  12688. if (o[1] & 0x20) {
  12689. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12690. return 0;
  12691. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12692. return 0;
  12693. }
  12694. if (o[1] & 0x10) {
  12695. if (!ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12696. return 0;
  12697. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12698. return 0;
  12699. }
  12700. if (o[1] & 0x8) {
  12701. if (!ASN1Enc_AdmissionConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12702. return 0;
  12703. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12704. return 0;
  12705. }
  12706. if (o[1] & 0x4) {
  12707. if (!ASN1Enc_AdmissionConfirm_tokens(ee, &(val)->tokens))
  12708. return 0;
  12709. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12710. return 0;
  12711. }
  12712. if (o[1] & 0x2) {
  12713. if (!ASN1Enc_AdmissionConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12714. return 0;
  12715. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12716. return 0;
  12717. }
  12718. if (o[1] & 0x1) {
  12719. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12720. return 0;
  12721. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12722. return 0;
  12723. }
  12724. if (o[2] & 0x80) {
  12725. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  12726. return 0;
  12727. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12728. return 0;
  12729. }
  12730. if (o[2] & 0x40) {
  12731. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  12732. return 0;
  12733. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12734. return 0;
  12735. }
  12736. if (o[2] & 0x20) {
  12737. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  12738. return 0;
  12739. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12740. return 0;
  12741. }
  12742. ASN1_CloseEncoder2(ee);
  12743. }
  12744. return 1;
  12745. }
  12746. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val)
  12747. {
  12748. ASN1uint32_t y;
  12749. ASN1uint32_t l;
  12750. ASN1decoding_t dd;
  12751. ASN1octet_t *db;
  12752. ASN1uint32_t ds;
  12753. ASN1uint32_t i;
  12754. ASN1uint32_t e;
  12755. if (!ASN1PERDecExtensionBit(dec, &y))
  12756. return 0;
  12757. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  12758. return 0;
  12759. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12760. return 0;
  12761. (val)->requestSeqNum += 1;
  12762. if (!ASN1PERDecU32Val(dec, 2, &l))
  12763. return 0;
  12764. l += 1;
  12765. ASN1PERDecAlignment(dec);
  12766. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  12767. return 0;
  12768. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  12769. return 0;
  12770. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  12771. return 0;
  12772. if ((val)->o[0] & 0x80) {
  12773. if (!ASN1PERDecUnsignedShort(dec, &(val)->irrFrequency))
  12774. return 0;
  12775. (val)->irrFrequency += 1;
  12776. }
  12777. if ((val)->o[0] & 0x40) {
  12778. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12779. return 0;
  12780. }
  12781. if (!y) {
  12782. ZeroMemory((val)->o + 1, 2);
  12783. } else {
  12784. if (!ASN1PERDecNormallySmallExtension(dec, &e, 11, (val)->o + 1))
  12785. return 0;
  12786. if ((val)->o[1] & 0x80) {
  12787. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12788. return 0;
  12789. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12790. return 0;
  12791. if (!ASN1Dec_AdmissionConfirm_destinationInfo(dd, &(val)->destinationInfo))
  12792. return 0;
  12793. ASN1_CloseDecoder(dd);
  12794. ASN1Free(db);
  12795. }
  12796. if ((val)->o[1] & 0x40) {
  12797. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12798. return 0;
  12799. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12800. return 0;
  12801. if (!ASN1Dec_AdmissionConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  12802. return 0;
  12803. ASN1_CloseDecoder(dd);
  12804. ASN1Free(db);
  12805. }
  12806. if ((val)->o[1] & 0x20) {
  12807. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12808. return 0;
  12809. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12810. return 0;
  12811. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  12812. return 0;
  12813. ASN1_CloseDecoder(dd);
  12814. ASN1Free(db);
  12815. }
  12816. if ((val)->o[1] & 0x10) {
  12817. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12818. return 0;
  12819. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12820. return 0;
  12821. if (!ASN1Dec_AdmissionConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  12822. return 0;
  12823. ASN1_CloseDecoder(dd);
  12824. ASN1Free(db);
  12825. }
  12826. if ((val)->o[1] & 0x8) {
  12827. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12828. return 0;
  12829. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12830. return 0;
  12831. if (!ASN1Dec_AdmissionConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12832. return 0;
  12833. ASN1_CloseDecoder(dd);
  12834. ASN1Free(db);
  12835. }
  12836. if ((val)->o[1] & 0x4) {
  12837. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12838. return 0;
  12839. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12840. return 0;
  12841. if (!ASN1Dec_AdmissionConfirm_tokens(dd, &(val)->tokens))
  12842. return 0;
  12843. ASN1_CloseDecoder(dd);
  12844. ASN1Free(db);
  12845. }
  12846. if ((val)->o[1] & 0x2) {
  12847. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12848. return 0;
  12849. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12850. return 0;
  12851. if (!ASN1Dec_AdmissionConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  12852. return 0;
  12853. ASN1_CloseDecoder(dd);
  12854. ASN1Free(db);
  12855. }
  12856. if ((val)->o[1] & 0x1) {
  12857. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12858. return 0;
  12859. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12860. return 0;
  12861. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12862. return 0;
  12863. ASN1_CloseDecoder(dd);
  12864. ASN1Free(db);
  12865. }
  12866. if ((val)->o[2] & 0x80) {
  12867. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12868. return 0;
  12869. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12870. return 0;
  12871. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  12872. return 0;
  12873. ASN1_CloseDecoder(dd);
  12874. ASN1Free(db);
  12875. }
  12876. if ((val)->o[2] & 0x40) {
  12877. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12878. return 0;
  12879. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12880. return 0;
  12881. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  12882. return 0;
  12883. ASN1_CloseDecoder(dd);
  12884. ASN1Free(db);
  12885. }
  12886. if ((val)->o[2] & 0x20) {
  12887. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12888. return 0;
  12889. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12890. return 0;
  12891. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  12892. return 0;
  12893. ASN1_CloseDecoder(dd);
  12894. ASN1Free(db);
  12895. }
  12896. for (i = 0; i < e; i++) {
  12897. if (!ASN1PERDecSkipFragmented(dec, 8))
  12898. return 0;
  12899. }
  12900. }
  12901. return 1;
  12902. }
  12903. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val)
  12904. {
  12905. if (val) {
  12906. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  12907. if ((val)->o[0] & 0x40) {
  12908. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12909. }
  12910. if ((val)->o[1] & 0x80) {
  12911. ASN1Free_AdmissionConfirm_destinationInfo(&(val)->destinationInfo);
  12912. }
  12913. if ((val)->o[1] & 0x40) {
  12914. ASN1Free_AdmissionConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  12915. }
  12916. if ((val)->o[1] & 0x20) {
  12917. ASN1Free_EndpointType(&(val)->destinationType);
  12918. }
  12919. if ((val)->o[1] & 0x10) {
  12920. ASN1Free_AdmissionConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12921. }
  12922. if ((val)->o[1] & 0x8) {
  12923. ASN1Free_AdmissionConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  12924. }
  12925. if ((val)->o[1] & 0x4) {
  12926. ASN1Free_AdmissionConfirm_tokens(&(val)->tokens);
  12927. }
  12928. if ((val)->o[1] & 0x2) {
  12929. ASN1Free_AdmissionConfirm_cryptoTokens(&(val)->cryptoTokens);
  12930. }
  12931. if ((val)->o[1] & 0x1) {
  12932. ASN1Free_ICV(&(val)->integrityCheckValue);
  12933. }
  12934. }
  12935. }
  12936. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val)
  12937. {
  12938. ASN1uint32_t y;
  12939. ASN1encoding_t ee;
  12940. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12941. if (!ASN1PEREncBitVal(enc, 1, y))
  12942. return 0;
  12943. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12944. return 0;
  12945. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12946. return 0;
  12947. if (!ASN1Enc_TransportAddress(enc, &(val)->callSignalAddress))
  12948. return 0;
  12949. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12950. return 0;
  12951. if ((val)->o[0] & 0x80) {
  12952. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12953. return 0;
  12954. }
  12955. if (y) {
  12956. if (!ASN1PEREncNormallySmallBits(enc, 8, (val)->o + 1))
  12957. return 0;
  12958. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12959. return 0;
  12960. if ((val)->o[1] & 0x80) {
  12961. if (!ASN1Enc_LocationConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12962. return 0;
  12963. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12964. return 0;
  12965. }
  12966. if ((val)->o[1] & 0x40) {
  12967. if (!ASN1Enc_LocationConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12968. return 0;
  12969. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12970. return 0;
  12971. }
  12972. if ((val)->o[1] & 0x20) {
  12973. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12974. return 0;
  12975. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12976. return 0;
  12977. }
  12978. if ((val)->o[1] & 0x10) {
  12979. if (!ASN1Enc_LocationConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12980. return 0;
  12981. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12982. return 0;
  12983. }
  12984. if ((val)->o[1] & 0x8) {
  12985. if (!ASN1Enc_LocationConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12986. return 0;
  12987. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12988. return 0;
  12989. }
  12990. if ((val)->o[1] & 0x4) {
  12991. if (!ASN1Enc_LocationConfirm_tokens(ee, &(val)->tokens))
  12992. return 0;
  12993. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12994. return 0;
  12995. }
  12996. if ((val)->o[1] & 0x2) {
  12997. if (!ASN1Enc_LocationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12998. return 0;
  12999. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13000. return 0;
  13001. }
  13002. if ((val)->o[1] & 0x1) {
  13003. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13004. return 0;
  13005. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13006. return 0;
  13007. }
  13008. ASN1_CloseEncoder2(ee);
  13009. }
  13010. return 1;
  13011. }
  13012. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val)
  13013. {
  13014. ASN1uint32_t y;
  13015. ASN1decoding_t dd;
  13016. ASN1octet_t *db;
  13017. ASN1uint32_t ds;
  13018. ASN1uint32_t i;
  13019. ASN1uint32_t e;
  13020. if (!ASN1PERDecExtensionBit(dec, &y))
  13021. return 0;
  13022. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  13023. return 0;
  13024. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13025. return 0;
  13026. (val)->requestSeqNum += 1;
  13027. if (!ASN1Dec_TransportAddress(dec, &(val)->callSignalAddress))
  13028. return 0;
  13029. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13030. return 0;
  13031. if ((val)->o[0] & 0x80) {
  13032. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13033. return 0;
  13034. }
  13035. if (!y) {
  13036. ZeroMemory((val)->o + 1, 1);
  13037. } else {
  13038. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  13039. return 0;
  13040. if ((val)->o[1] & 0x80) {
  13041. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13042. return 0;
  13043. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13044. return 0;
  13045. if (!ASN1Dec_LocationConfirm_destinationInfo(dd, &(val)->destinationInfo))
  13046. return 0;
  13047. ASN1_CloseDecoder(dd);
  13048. ASN1Free(db);
  13049. }
  13050. if ((val)->o[1] & 0x40) {
  13051. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13052. return 0;
  13053. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13054. return 0;
  13055. if (!ASN1Dec_LocationConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  13056. return 0;
  13057. ASN1_CloseDecoder(dd);
  13058. ASN1Free(db);
  13059. }
  13060. if ((val)->o[1] & 0x20) {
  13061. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13062. return 0;
  13063. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13064. return 0;
  13065. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  13066. return 0;
  13067. ASN1_CloseDecoder(dd);
  13068. ASN1Free(db);
  13069. }
  13070. if ((val)->o[1] & 0x10) {
  13071. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13072. return 0;
  13073. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13074. return 0;
  13075. if (!ASN1Dec_LocationConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  13076. return 0;
  13077. ASN1_CloseDecoder(dd);
  13078. ASN1Free(db);
  13079. }
  13080. if ((val)->o[1] & 0x8) {
  13081. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13082. return 0;
  13083. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13084. return 0;
  13085. if (!ASN1Dec_LocationConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  13086. return 0;
  13087. ASN1_CloseDecoder(dd);
  13088. ASN1Free(db);
  13089. }
  13090. if ((val)->o[1] & 0x4) {
  13091. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13092. return 0;
  13093. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13094. return 0;
  13095. if (!ASN1Dec_LocationConfirm_tokens(dd, &(val)->tokens))
  13096. return 0;
  13097. ASN1_CloseDecoder(dd);
  13098. ASN1Free(db);
  13099. }
  13100. if ((val)->o[1] & 0x2) {
  13101. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13102. return 0;
  13103. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13104. return 0;
  13105. if (!ASN1Dec_LocationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  13106. return 0;
  13107. ASN1_CloseDecoder(dd);
  13108. ASN1Free(db);
  13109. }
  13110. if ((val)->o[1] & 0x1) {
  13111. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13112. return 0;
  13113. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13114. return 0;
  13115. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13116. return 0;
  13117. ASN1_CloseDecoder(dd);
  13118. ASN1Free(db);
  13119. }
  13120. for (i = 0; i < e; i++) {
  13121. if (!ASN1PERDecSkipFragmented(dec, 8))
  13122. return 0;
  13123. }
  13124. }
  13125. return 1;
  13126. }
  13127. static void ASN1CALL ASN1Free_LocationConfirm(LocationConfirm *val)
  13128. {
  13129. if (val) {
  13130. ASN1Free_TransportAddress(&(val)->callSignalAddress);
  13131. ASN1Free_TransportAddress(&(val)->rasAddress);
  13132. if ((val)->o[0] & 0x80) {
  13133. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13134. }
  13135. if ((val)->o[1] & 0x80) {
  13136. ASN1Free_LocationConfirm_destinationInfo(&(val)->destinationInfo);
  13137. }
  13138. if ((val)->o[1] & 0x40) {
  13139. ASN1Free_LocationConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  13140. }
  13141. if ((val)->o[1] & 0x20) {
  13142. ASN1Free_EndpointType(&(val)->destinationType);
  13143. }
  13144. if ((val)->o[1] & 0x10) {
  13145. ASN1Free_LocationConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  13146. }
  13147. if ((val)->o[1] & 0x8) {
  13148. ASN1Free_LocationConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  13149. }
  13150. if ((val)->o[1] & 0x4) {
  13151. ASN1Free_LocationConfirm_tokens(&(val)->tokens);
  13152. }
  13153. if ((val)->o[1] & 0x2) {
  13154. ASN1Free_LocationConfirm_cryptoTokens(&(val)->cryptoTokens);
  13155. }
  13156. if ((val)->o[1] & 0x1) {
  13157. ASN1Free_ICV(&(val)->integrityCheckValue);
  13158. }
  13159. }
  13160. }
  13161. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val)
  13162. {
  13163. ASN1octet_t o[2];
  13164. ASN1uint32_t y;
  13165. ASN1encoding_t ee;
  13166. CopyMemory(o, (val)->o, 2);
  13167. o[1] |= 0x10;
  13168. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  13169. if (!ASN1PEREncBitVal(enc, 1, y))
  13170. return 0;
  13171. if (!ASN1PEREncBits(enc, 3, o))
  13172. return 0;
  13173. if (o[0] & 0x80) {
  13174. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13175. return 0;
  13176. }
  13177. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  13178. return 0;
  13179. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  13180. return 0;
  13181. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  13182. return 0;
  13183. ASN1PEREncAlignment(enc);
  13184. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  13185. return 0;
  13186. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  13187. return 0;
  13188. if (!ASN1Enc_InfoRequestResponse_callSignalAddress(enc, &(val)->callSignalAddress))
  13189. return 0;
  13190. if (o[0] & 0x40) {
  13191. if (!ASN1Enc_InfoRequestResponse_endpointAlias(enc, &(val)->endpointAlias))
  13192. return 0;
  13193. }
  13194. if (o[0] & 0x20) {
  13195. if (!ASN1Enc_InfoRequestResponse_perCallInfo(enc, &(val)->perCallInfo))
  13196. return 0;
  13197. }
  13198. if (y) {
  13199. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  13200. return 0;
  13201. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13202. return 0;
  13203. if (o[1] & 0x80) {
  13204. if (!ASN1Enc_InfoRequestResponse_tokens(ee, &(val)->tokens))
  13205. return 0;
  13206. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13207. return 0;
  13208. }
  13209. if (o[1] & 0x40) {
  13210. if (!ASN1Enc_InfoRequestResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  13211. return 0;
  13212. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13213. return 0;
  13214. }
  13215. if (o[1] & 0x20) {
  13216. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13217. return 0;
  13218. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13219. return 0;
  13220. }
  13221. if (o[1] & 0x10) {
  13222. if (!ASN1PEREncBoolean(ee, (val)->needResponse))
  13223. return 0;
  13224. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13225. return 0;
  13226. }
  13227. ASN1_CloseEncoder2(ee);
  13228. }
  13229. return 1;
  13230. }
  13231. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val)
  13232. {
  13233. ASN1uint32_t y;
  13234. ASN1decoding_t dd;
  13235. ASN1octet_t *db;
  13236. ASN1uint32_t ds;
  13237. ASN1uint32_t i;
  13238. ASN1uint32_t e;
  13239. if (!ASN1PERDecExtensionBit(dec, &y))
  13240. return 0;
  13241. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  13242. return 0;
  13243. if ((val)->o[0] & 0x80) {
  13244. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13245. return 0;
  13246. }
  13247. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13248. return 0;
  13249. (val)->requestSeqNum += 1;
  13250. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  13251. return 0;
  13252. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  13253. return 0;
  13254. ((val)->endpointIdentifier).length += 1;
  13255. ASN1PERDecAlignment(dec);
  13256. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  13257. return 0;
  13258. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13259. return 0;
  13260. if (!ASN1Dec_InfoRequestResponse_callSignalAddress(dec, &(val)->callSignalAddress))
  13261. return 0;
  13262. if ((val)->o[0] & 0x40) {
  13263. if (!ASN1Dec_InfoRequestResponse_endpointAlias(dec, &(val)->endpointAlias))
  13264. return 0;
  13265. }
  13266. if ((val)->o[0] & 0x20) {
  13267. if (!ASN1Dec_InfoRequestResponse_perCallInfo(dec, &(val)->perCallInfo))
  13268. return 0;
  13269. }
  13270. if (!y) {
  13271. ZeroMemory((val)->o + 1, 1);
  13272. } else {
  13273. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  13274. return 0;
  13275. if ((val)->o[1] & 0x80) {
  13276. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13277. return 0;
  13278. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13279. return 0;
  13280. if (!ASN1Dec_InfoRequestResponse_tokens(dd, &(val)->tokens))
  13281. return 0;
  13282. ASN1_CloseDecoder(dd);
  13283. ASN1Free(db);
  13284. }
  13285. if ((val)->o[1] & 0x40) {
  13286. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13287. return 0;
  13288. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13289. return 0;
  13290. if (!ASN1Dec_InfoRequestResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  13291. return 0;
  13292. ASN1_CloseDecoder(dd);
  13293. ASN1Free(db);
  13294. }
  13295. if ((val)->o[1] & 0x20) {
  13296. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13297. return 0;
  13298. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13299. return 0;
  13300. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13301. return 0;
  13302. ASN1_CloseDecoder(dd);
  13303. ASN1Free(db);
  13304. }
  13305. if ((val)->o[1] & 0x10) {
  13306. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13307. return 0;
  13308. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13309. return 0;
  13310. if (!ASN1PERDecBoolean(dd, &(val)->needResponse))
  13311. return 0;
  13312. ASN1_CloseDecoder(dd);
  13313. ASN1Free(db);
  13314. }
  13315. for (i = 0; i < e; i++) {
  13316. if (!ASN1PERDecSkipFragmented(dec, 8))
  13317. return 0;
  13318. }
  13319. }
  13320. return 1;
  13321. }
  13322. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val)
  13323. {
  13324. if (val) {
  13325. if ((val)->o[0] & 0x80) {
  13326. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13327. }
  13328. ASN1Free_EndpointType(&(val)->endpointType);
  13329. ASN1char16string_free(&(val)->endpointIdentifier);
  13330. ASN1Free_TransportAddress(&(val)->rasAddress);
  13331. ASN1Free_InfoRequestResponse_callSignalAddress(&(val)->callSignalAddress);
  13332. if ((val)->o[0] & 0x40) {
  13333. ASN1Free_InfoRequestResponse_endpointAlias(&(val)->endpointAlias);
  13334. }
  13335. if ((val)->o[0] & 0x20) {
  13336. ASN1Free_InfoRequestResponse_perCallInfo(&(val)->perCallInfo);
  13337. }
  13338. if ((val)->o[1] & 0x80) {
  13339. ASN1Free_InfoRequestResponse_tokens(&(val)->tokens);
  13340. }
  13341. if ((val)->o[1] & 0x40) {
  13342. ASN1Free_InfoRequestResponse_cryptoTokens(&(val)->cryptoTokens);
  13343. }
  13344. if ((val)->o[1] & 0x20) {
  13345. ASN1Free_ICV(&(val)->integrityCheckValue);
  13346. }
  13347. }
  13348. }
  13349. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val)
  13350. {
  13351. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn);
  13352. }
  13353. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols val)
  13354. {
  13355. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  13356. return 0;
  13357. return 1;
  13358. }
  13359. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val)
  13360. {
  13361. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn, sizeof(**val));
  13362. }
  13363. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols val)
  13364. {
  13365. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  13366. return 0;
  13367. return 1;
  13368. }
  13369. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val)
  13370. {
  13371. if (val) {
  13372. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn);
  13373. }
  13374. }
  13375. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn(PResourcesAvailableIndicate_protocols val)
  13376. {
  13377. if (val) {
  13378. ASN1Free_SupportedProtocols(&val->value);
  13379. }
  13380. }
  13381. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val)
  13382. {
  13383. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn);
  13384. }
  13385. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias val)
  13386. {
  13387. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13388. return 0;
  13389. return 1;
  13390. }
  13391. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val)
  13392. {
  13393. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn, sizeof(**val));
  13394. }
  13395. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias val)
  13396. {
  13397. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13398. return 0;
  13399. return 1;
  13400. }
  13401. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val)
  13402. {
  13403. if (val) {
  13404. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_endpointAlias_ElmFn);
  13405. }
  13406. }
  13407. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias_ElmFn(PInfoRequestResponse_endpointAlias val)
  13408. {
  13409. if (val) {
  13410. ASN1Free_AliasAddress(&val->value);
  13411. }
  13412. }
  13413. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val)
  13414. {
  13415. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn);
  13416. }
  13417. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints val)
  13418. {
  13419. if (!ASN1Enc_Endpoint(enc, &val->value))
  13420. return 0;
  13421. return 1;
  13422. }
  13423. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val)
  13424. {
  13425. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13426. }
  13427. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints val)
  13428. {
  13429. if (!ASN1Dec_Endpoint(dec, &val->value))
  13430. return 0;
  13431. return 1;
  13432. }
  13433. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val)
  13434. {
  13435. if (val) {
  13436. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_alternateEndpoints_ElmFn);
  13437. }
  13438. }
  13439. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints_ElmFn(PLocationConfirm_alternateEndpoints val)
  13440. {
  13441. if (val) {
  13442. ASN1Free_Endpoint(&val->value);
  13443. }
  13444. }
  13445. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val)
  13446. {
  13447. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn);
  13448. }
  13449. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress val)
  13450. {
  13451. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13452. return 0;
  13453. return 1;
  13454. }
  13455. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val)
  13456. {
  13457. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13458. }
  13459. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress val)
  13460. {
  13461. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13462. return 0;
  13463. return 1;
  13464. }
  13465. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val)
  13466. {
  13467. if (val) {
  13468. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn);
  13469. }
  13470. }
  13471. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn(PLocationConfirm_remoteExtensionAddress val)
  13472. {
  13473. if (val) {
  13474. ASN1Free_AliasAddress(&val->value);
  13475. }
  13476. }
  13477. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val)
  13478. {
  13479. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn);
  13480. }
  13481. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo val)
  13482. {
  13483. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13484. return 0;
  13485. return 1;
  13486. }
  13487. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val)
  13488. {
  13489. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13490. }
  13491. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo val)
  13492. {
  13493. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13494. return 0;
  13495. return 1;
  13496. }
  13497. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val)
  13498. {
  13499. if (val) {
  13500. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn);
  13501. }
  13502. }
  13503. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn(PLocationConfirm_destExtraCallInfo val)
  13504. {
  13505. if (val) {
  13506. ASN1Free_AliasAddress(&val->value);
  13507. }
  13508. }
  13509. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val)
  13510. {
  13511. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destinationInfo_ElmFn);
  13512. }
  13513. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destinationInfo val)
  13514. {
  13515. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13516. return 0;
  13517. return 1;
  13518. }
  13519. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val)
  13520. {
  13521. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destinationInfo_ElmFn, sizeof(**val));
  13522. }
  13523. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destinationInfo val)
  13524. {
  13525. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13526. return 0;
  13527. return 1;
  13528. }
  13529. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val)
  13530. {
  13531. if (val) {
  13532. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destinationInfo_ElmFn);
  13533. }
  13534. }
  13535. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo_ElmFn(PLocationConfirm_destinationInfo val)
  13536. {
  13537. if (val) {
  13538. ASN1Free_AliasAddress(&val->value);
  13539. }
  13540. }
  13541. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val)
  13542. {
  13543. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_sourceInfo_ElmFn);
  13544. }
  13545. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_sourceInfo val)
  13546. {
  13547. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13548. return 0;
  13549. return 1;
  13550. }
  13551. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val)
  13552. {
  13553. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_sourceInfo_ElmFn, sizeof(**val));
  13554. }
  13555. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_sourceInfo val)
  13556. {
  13557. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13558. return 0;
  13559. return 1;
  13560. }
  13561. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val)
  13562. {
  13563. if (val) {
  13564. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_sourceInfo_ElmFn);
  13565. }
  13566. }
  13567. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo_ElmFn(PLocationRequest_sourceInfo val)
  13568. {
  13569. if (val) {
  13570. ASN1Free_AliasAddress(&val->value);
  13571. }
  13572. }
  13573. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val)
  13574. {
  13575. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_destinationInfo_ElmFn);
  13576. }
  13577. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_destinationInfo val)
  13578. {
  13579. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13580. return 0;
  13581. return 1;
  13582. }
  13583. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val)
  13584. {
  13585. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_destinationInfo_ElmFn, sizeof(**val));
  13586. }
  13587. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_destinationInfo val)
  13588. {
  13589. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13590. return 0;
  13591. return 1;
  13592. }
  13593. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val)
  13594. {
  13595. if (val) {
  13596. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_destinationInfo_ElmFn);
  13597. }
  13598. }
  13599. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo_ElmFn(PLocationRequest_destinationInfo val)
  13600. {
  13601. if (val) {
  13602. ASN1Free_AliasAddress(&val->value);
  13603. }
  13604. }
  13605. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val)
  13606. {
  13607. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn);
  13608. }
  13609. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints val)
  13610. {
  13611. if (!ASN1Enc_Endpoint(enc, &val->value))
  13612. return 0;
  13613. return 1;
  13614. }
  13615. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val)
  13616. {
  13617. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13618. }
  13619. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints val)
  13620. {
  13621. if (!ASN1Dec_Endpoint(dec, &val->value))
  13622. return 0;
  13623. return 1;
  13624. }
  13625. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val)
  13626. {
  13627. if (val) {
  13628. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn);
  13629. }
  13630. }
  13631. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn(PAdmissionConfirm_alternateEndpoints val)
  13632. {
  13633. if (val) {
  13634. ASN1Free_Endpoint(&val->value);
  13635. }
  13636. }
  13637. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val)
  13638. {
  13639. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13640. }
  13641. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress val)
  13642. {
  13643. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13644. return 0;
  13645. return 1;
  13646. }
  13647. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val)
  13648. {
  13649. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13650. }
  13651. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress val)
  13652. {
  13653. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13654. return 0;
  13655. return 1;
  13656. }
  13657. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val)
  13658. {
  13659. if (val) {
  13660. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13661. }
  13662. }
  13663. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn(PAdmissionConfirm_remoteExtensionAddress val)
  13664. {
  13665. if (val) {
  13666. ASN1Free_AliasAddress(&val->value);
  13667. }
  13668. }
  13669. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val)
  13670. {
  13671. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13672. }
  13673. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo val)
  13674. {
  13675. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13676. return 0;
  13677. return 1;
  13678. }
  13679. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val)
  13680. {
  13681. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13682. }
  13683. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo val)
  13684. {
  13685. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13686. return 0;
  13687. return 1;
  13688. }
  13689. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val)
  13690. {
  13691. if (val) {
  13692. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13693. }
  13694. }
  13695. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn(PAdmissionConfirm_destExtraCallInfo val)
  13696. {
  13697. if (val) {
  13698. ASN1Free_AliasAddress(&val->value);
  13699. }
  13700. }
  13701. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val)
  13702. {
  13703. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn);
  13704. }
  13705. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo val)
  13706. {
  13707. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13708. return 0;
  13709. return 1;
  13710. }
  13711. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val)
  13712. {
  13713. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn, sizeof(**val));
  13714. }
  13715. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo val)
  13716. {
  13717. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13718. return 0;
  13719. return 1;
  13720. }
  13721. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val)
  13722. {
  13723. if (val) {
  13724. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destinationInfo_ElmFn);
  13725. }
  13726. }
  13727. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo_ElmFn(PAdmissionConfirm_destinationInfo val)
  13728. {
  13729. if (val) {
  13730. ASN1Free_AliasAddress(&val->value);
  13731. }
  13732. }
  13733. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val)
  13734. {
  13735. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destAlternatives_ElmFn);
  13736. }
  13737. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destAlternatives val)
  13738. {
  13739. if (!ASN1Enc_Endpoint(enc, &val->value))
  13740. return 0;
  13741. return 1;
  13742. }
  13743. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val)
  13744. {
  13745. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destAlternatives_ElmFn, sizeof(**val));
  13746. }
  13747. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destAlternatives val)
  13748. {
  13749. if (!ASN1Dec_Endpoint(dec, &val->value))
  13750. return 0;
  13751. return 1;
  13752. }
  13753. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val)
  13754. {
  13755. if (val) {
  13756. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destAlternatives_ElmFn);
  13757. }
  13758. }
  13759. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives_ElmFn(PAdmissionRequest_destAlternatives val)
  13760. {
  13761. if (val) {
  13762. ASN1Free_Endpoint(&val->value);
  13763. }
  13764. }
  13765. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val)
  13766. {
  13767. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn);
  13768. }
  13769. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives val)
  13770. {
  13771. if (!ASN1Enc_Endpoint(enc, &val->value))
  13772. return 0;
  13773. return 1;
  13774. }
  13775. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val)
  13776. {
  13777. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn, sizeof(**val));
  13778. }
  13779. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives val)
  13780. {
  13781. if (!ASN1Dec_Endpoint(dec, &val->value))
  13782. return 0;
  13783. return 1;
  13784. }
  13785. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val)
  13786. {
  13787. if (val) {
  13788. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcAlternatives_ElmFn);
  13789. }
  13790. }
  13791. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives_ElmFn(PAdmissionRequest_srcAlternatives val)
  13792. {
  13793. if (val) {
  13794. ASN1Free_Endpoint(&val->value);
  13795. }
  13796. }
  13797. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val)
  13798. {
  13799. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcInfo_ElmFn);
  13800. }
  13801. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcInfo val)
  13802. {
  13803. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13804. return 0;
  13805. return 1;
  13806. }
  13807. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val)
  13808. {
  13809. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcInfo_ElmFn, sizeof(**val));
  13810. }
  13811. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcInfo val)
  13812. {
  13813. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13814. return 0;
  13815. return 1;
  13816. }
  13817. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val)
  13818. {
  13819. if (val) {
  13820. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcInfo_ElmFn);
  13821. }
  13822. }
  13823. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo_ElmFn(PAdmissionRequest_srcInfo val)
  13824. {
  13825. if (val) {
  13826. ASN1Free_AliasAddress(&val->value);
  13827. }
  13828. }
  13829. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val)
  13830. {
  13831. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn);
  13832. }
  13833. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo val)
  13834. {
  13835. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13836. return 0;
  13837. return 1;
  13838. }
  13839. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val)
  13840. {
  13841. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn, sizeof(**val));
  13842. }
  13843. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo val)
  13844. {
  13845. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13846. return 0;
  13847. return 1;
  13848. }
  13849. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val)
  13850. {
  13851. if (val) {
  13852. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn);
  13853. }
  13854. }
  13855. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn(PAdmissionRequest_destExtraCallInfo val)
  13856. {
  13857. if (val) {
  13858. ASN1Free_AliasAddress(&val->value);
  13859. }
  13860. }
  13861. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val)
  13862. {
  13863. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destinationInfo_ElmFn);
  13864. }
  13865. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destinationInfo val)
  13866. {
  13867. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13868. return 0;
  13869. return 1;
  13870. }
  13871. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val)
  13872. {
  13873. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destinationInfo_ElmFn, sizeof(**val));
  13874. }
  13875. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destinationInfo val)
  13876. {
  13877. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13878. return 0;
  13879. return 1;
  13880. }
  13881. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val)
  13882. {
  13883. if (val) {
  13884. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destinationInfo_ElmFn);
  13885. }
  13886. }
  13887. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo_ElmFn(PAdmissionRequest_destinationInfo val)
  13888. {
  13889. if (val) {
  13890. ASN1Free_AliasAddress(&val->value);
  13891. }
  13892. }
  13893. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val)
  13894. {
  13895. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn);
  13896. }
  13897. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints val)
  13898. {
  13899. if (!ASN1Enc_Endpoint(enc, &val->value))
  13900. return 0;
  13901. return 1;
  13902. }
  13903. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val)
  13904. {
  13905. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13906. }
  13907. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints val)
  13908. {
  13909. if (!ASN1Dec_Endpoint(dec, &val->value))
  13910. return 0;
  13911. return 1;
  13912. }
  13913. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val)
  13914. {
  13915. if (val) {
  13916. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn);
  13917. }
  13918. }
  13919. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn(PUnregistrationRequest_alternateEndpoints val)
  13920. {
  13921. if (val) {
  13922. ASN1Free_Endpoint(&val->value);
  13923. }
  13924. }
  13925. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val)
  13926. {
  13927. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn);
  13928. }
  13929. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias val)
  13930. {
  13931. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13932. return 0;
  13933. return 1;
  13934. }
  13935. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val)
  13936. {
  13937. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn, sizeof(**val));
  13938. }
  13939. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias val)
  13940. {
  13941. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13942. return 0;
  13943. return 1;
  13944. }
  13945. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val)
  13946. {
  13947. if (val) {
  13948. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_endpointAlias_ElmFn);
  13949. }
  13950. }
  13951. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias_ElmFn(PUnregistrationRequest_endpointAlias val)
  13952. {
  13953. if (val) {
  13954. ASN1Free_AliasAddress(&val->value);
  13955. }
  13956. }
  13957. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val)
  13958. {
  13959. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn);
  13960. }
  13961. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias val)
  13962. {
  13963. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13964. return 0;
  13965. return 1;
  13966. }
  13967. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val)
  13968. {
  13969. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn, sizeof(**val));
  13970. }
  13971. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias val)
  13972. {
  13973. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13974. return 0;
  13975. return 1;
  13976. }
  13977. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val)
  13978. {
  13979. if (val) {
  13980. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn);
  13981. }
  13982. }
  13983. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn(PRegistrationRejectReason_duplicateAlias val)
  13984. {
  13985. if (val) {
  13986. ASN1Free_AliasAddress(&val->value);
  13987. }
  13988. }
  13989. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val)
  13990. {
  13991. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn);
  13992. }
  13993. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias val)
  13994. {
  13995. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13996. return 0;
  13997. return 1;
  13998. }
  13999. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val)
  14000. {
  14001. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn, sizeof(**val));
  14002. }
  14003. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias val)
  14004. {
  14005. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14006. return 0;
  14007. return 1;
  14008. }
  14009. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val)
  14010. {
  14011. if (val) {
  14012. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_terminalAlias_ElmFn);
  14013. }
  14014. }
  14015. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias_ElmFn(PRegistrationConfirm_terminalAlias val)
  14016. {
  14017. if (val) {
  14018. ASN1Free_AliasAddress(&val->value);
  14019. }
  14020. }
  14021. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val)
  14022. {
  14023. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn);
  14024. }
  14025. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints val)
  14026. {
  14027. if (!ASN1Enc_Endpoint(enc, &val->value))
  14028. return 0;
  14029. return 1;
  14030. }
  14031. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val)
  14032. {
  14033. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14034. }
  14035. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints val)
  14036. {
  14037. if (!ASN1Dec_Endpoint(dec, &val->value))
  14038. return 0;
  14039. return 1;
  14040. }
  14041. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val)
  14042. {
  14043. if (val) {
  14044. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn);
  14045. }
  14046. }
  14047. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn(PRegistrationRequest_alternateEndpoints val)
  14048. {
  14049. if (val) {
  14050. ASN1Free_Endpoint(&val->value);
  14051. }
  14052. }
  14053. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val)
  14054. {
  14055. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_terminalAlias_ElmFn);
  14056. }
  14057. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationRequest_terminalAlias val)
  14058. {
  14059. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14060. return 0;
  14061. return 1;
  14062. }
  14063. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val)
  14064. {
  14065. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_terminalAlias_ElmFn, sizeof(**val));
  14066. }
  14067. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationRequest_terminalAlias val)
  14068. {
  14069. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14070. return 0;
  14071. return 1;
  14072. }
  14073. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val)
  14074. {
  14075. if (val) {
  14076. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_terminalAlias_ElmFn);
  14077. }
  14078. }
  14079. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias_ElmFn(PRegistrationRequest_terminalAlias val)
  14080. {
  14081. if (val) {
  14082. ASN1Free_AliasAddress(&val->value);
  14083. }
  14084. }
  14085. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val)
  14086. {
  14087. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn);
  14088. }
  14089. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints val)
  14090. {
  14091. if (!ASN1Enc_Endpoint(enc, &val->value))
  14092. return 0;
  14093. return 1;
  14094. }
  14095. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val)
  14096. {
  14097. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14098. }
  14099. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints val)
  14100. {
  14101. if (!ASN1Dec_Endpoint(dec, &val->value))
  14102. return 0;
  14103. return 1;
  14104. }
  14105. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val)
  14106. {
  14107. if (val) {
  14108. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn);
  14109. }
  14110. }
  14111. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn(PGatekeeperRequest_alternateEndpoints val)
  14112. {
  14113. if (val) {
  14114. ASN1Free_Endpoint(&val->value);
  14115. }
  14116. }
  14117. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val)
  14118. {
  14119. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn);
  14120. }
  14121. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias val)
  14122. {
  14123. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14124. return 0;
  14125. return 1;
  14126. }
  14127. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val)
  14128. {
  14129. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn, sizeof(**val));
  14130. }
  14131. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias val)
  14132. {
  14133. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14134. return 0;
  14135. return 1;
  14136. }
  14137. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val)
  14138. {
  14139. if (val) {
  14140. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_endpointAlias_ElmFn);
  14141. }
  14142. }
  14143. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias_ElmFn(PGatekeeperRequest_endpointAlias val)
  14144. {
  14145. if (val) {
  14146. ASN1Free_AliasAddress(&val->value);
  14147. }
  14148. }
  14149. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val)
  14150. {
  14151. ASN1uint32_t l;
  14152. if (!ASN1Enc_AliasAddress(enc, &(val)->alias))
  14153. return 0;
  14154. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  14155. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  14156. return 0;
  14157. ASN1PEREncAlignment(enc);
  14158. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  14159. return 0;
  14160. if (!ASN1Enc_HASHED(enc, &(val)->token))
  14161. return 0;
  14162. return 1;
  14163. }
  14164. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val)
  14165. {
  14166. ASN1uint32_t l;
  14167. if (!ASN1Dec_AliasAddress(dec, &(val)->alias))
  14168. return 0;
  14169. if (!ASN1PERDecU32Val(dec, 2, &l))
  14170. return 0;
  14171. l += 1;
  14172. ASN1PERDecAlignment(dec);
  14173. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  14174. return 0;
  14175. (val)->timeStamp += 1;
  14176. if (!ASN1Dec_HASHED(dec, &(val)->token))
  14177. return 0;
  14178. return 1;
  14179. }
  14180. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val)
  14181. {
  14182. if (val) {
  14183. ASN1Free_AliasAddress(&(val)->alias);
  14184. ASN1Free_HASHED(&(val)->token);
  14185. }
  14186. }
  14187. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val)
  14188. {
  14189. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_destExtraCallInfo_ElmFn);
  14190. }
  14191. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PEndpoint_destExtraCallInfo val)
  14192. {
  14193. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14194. return 0;
  14195. return 1;
  14196. }
  14197. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val)
  14198. {
  14199. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_destExtraCallInfo_ElmFn, sizeof(**val));
  14200. }
  14201. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PEndpoint_destExtraCallInfo val)
  14202. {
  14203. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14204. return 0;
  14205. return 1;
  14206. }
  14207. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val)
  14208. {
  14209. if (val) {
  14210. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_destExtraCallInfo_ElmFn);
  14211. }
  14212. }
  14213. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo_ElmFn(PEndpoint_destExtraCallInfo val)
  14214. {
  14215. if (val) {
  14216. ASN1Free_AliasAddress(&val->value);
  14217. }
  14218. }
  14219. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val)
  14220. {
  14221. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn);
  14222. }
  14223. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress val)
  14224. {
  14225. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14226. return 0;
  14227. return 1;
  14228. }
  14229. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val)
  14230. {
  14231. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn, sizeof(**val));
  14232. }
  14233. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress val)
  14234. {
  14235. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14236. return 0;
  14237. return 1;
  14238. }
  14239. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val)
  14240. {
  14241. if (val) {
  14242. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_remoteExtensionAddress_ElmFn);
  14243. }
  14244. }
  14245. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress_ElmFn(PEndpoint_remoteExtensionAddress val)
  14246. {
  14247. if (val) {
  14248. ASN1Free_AliasAddress(&val->value);
  14249. }
  14250. }
  14251. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val)
  14252. {
  14253. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_aliasAddress_ElmFn);
  14254. }
  14255. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_aliasAddress val)
  14256. {
  14257. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14258. return 0;
  14259. return 1;
  14260. }
  14261. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val)
  14262. {
  14263. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_aliasAddress_ElmFn, sizeof(**val));
  14264. }
  14265. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_aliasAddress val)
  14266. {
  14267. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14268. return 0;
  14269. return 1;
  14270. }
  14271. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val)
  14272. {
  14273. if (val) {
  14274. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_aliasAddress_ElmFn);
  14275. }
  14276. }
  14277. static void ASN1CALL ASN1Free_Endpoint_aliasAddress_ElmFn(PEndpoint_aliasAddress val)
  14278. {
  14279. if (val) {
  14280. ASN1Free_AliasAddress(&val->value);
  14281. }
  14282. }
  14283. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val)
  14284. {
  14285. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn);
  14286. }
  14287. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes val)
  14288. {
  14289. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14290. return 0;
  14291. return 1;
  14292. }
  14293. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val)
  14294. {
  14295. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn, sizeof(**val));
  14296. }
  14297. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes val)
  14298. {
  14299. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14300. return 0;
  14301. return 1;
  14302. }
  14303. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val)
  14304. {
  14305. if (val) {
  14306. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn);
  14307. }
  14308. }
  14309. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn(PNonStandardProtocol_supportedPrefixes val)
  14310. {
  14311. if (val) {
  14312. ASN1Free_SupportedPrefix(&val->value);
  14313. }
  14314. }
  14315. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val)
  14316. {
  14317. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn);
  14318. }
  14319. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes val)
  14320. {
  14321. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14322. return 0;
  14323. return 1;
  14324. }
  14325. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val)
  14326. {
  14327. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14328. }
  14329. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes val)
  14330. {
  14331. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14332. return 0;
  14333. return 1;
  14334. }
  14335. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val)
  14336. {
  14337. if (val) {
  14338. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn);
  14339. }
  14340. }
  14341. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn(PT120OnlyCaps_supportedPrefixes val)
  14342. {
  14343. if (val) {
  14344. ASN1Free_SupportedPrefix(&val->value);
  14345. }
  14346. }
  14347. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val)
  14348. {
  14349. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn);
  14350. }
  14351. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes val)
  14352. {
  14353. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14354. return 0;
  14355. return 1;
  14356. }
  14357. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val)
  14358. {
  14359. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14360. }
  14361. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes val)
  14362. {
  14363. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14364. return 0;
  14365. return 1;
  14366. }
  14367. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val)
  14368. {
  14369. if (val) {
  14370. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_supportedPrefixes_ElmFn);
  14371. }
  14372. }
  14373. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes_ElmFn(PVoiceCaps_supportedPrefixes val)
  14374. {
  14375. if (val) {
  14376. ASN1Free_SupportedPrefix(&val->value);
  14377. }
  14378. }
  14379. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val)
  14380. {
  14381. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_supportedPrefixes_ElmFn);
  14382. }
  14383. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH324Caps_supportedPrefixes val)
  14384. {
  14385. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14386. return 0;
  14387. return 1;
  14388. }
  14389. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val)
  14390. {
  14391. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14392. }
  14393. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH324Caps_supportedPrefixes val)
  14394. {
  14395. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14396. return 0;
  14397. return 1;
  14398. }
  14399. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val)
  14400. {
  14401. if (val) {
  14402. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_supportedPrefixes_ElmFn);
  14403. }
  14404. }
  14405. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes_ElmFn(PH324Caps_supportedPrefixes val)
  14406. {
  14407. if (val) {
  14408. ASN1Free_SupportedPrefix(&val->value);
  14409. }
  14410. }
  14411. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val)
  14412. {
  14413. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_supportedPrefixes_ElmFn);
  14414. }
  14415. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH323Caps_supportedPrefixes val)
  14416. {
  14417. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14418. return 0;
  14419. return 1;
  14420. }
  14421. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val)
  14422. {
  14423. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14424. }
  14425. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH323Caps_supportedPrefixes val)
  14426. {
  14427. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14428. return 0;
  14429. return 1;
  14430. }
  14431. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val)
  14432. {
  14433. if (val) {
  14434. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_supportedPrefixes_ElmFn);
  14435. }
  14436. }
  14437. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes_ElmFn(PH323Caps_supportedPrefixes val)
  14438. {
  14439. if (val) {
  14440. ASN1Free_SupportedPrefix(&val->value);
  14441. }
  14442. }
  14443. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val)
  14444. {
  14445. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_supportedPrefixes_ElmFn);
  14446. }
  14447. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH322Caps_supportedPrefixes val)
  14448. {
  14449. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14450. return 0;
  14451. return 1;
  14452. }
  14453. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val)
  14454. {
  14455. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14456. }
  14457. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH322Caps_supportedPrefixes val)
  14458. {
  14459. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14460. return 0;
  14461. return 1;
  14462. }
  14463. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val)
  14464. {
  14465. if (val) {
  14466. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_supportedPrefixes_ElmFn);
  14467. }
  14468. }
  14469. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes_ElmFn(PH322Caps_supportedPrefixes val)
  14470. {
  14471. if (val) {
  14472. ASN1Free_SupportedPrefix(&val->value);
  14473. }
  14474. }
  14475. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val)
  14476. {
  14477. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_supportedPrefixes_ElmFn);
  14478. }
  14479. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH321Caps_supportedPrefixes val)
  14480. {
  14481. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14482. return 0;
  14483. return 1;
  14484. }
  14485. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val)
  14486. {
  14487. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14488. }
  14489. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH321Caps_supportedPrefixes val)
  14490. {
  14491. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14492. return 0;
  14493. return 1;
  14494. }
  14495. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val)
  14496. {
  14497. if (val) {
  14498. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_supportedPrefixes_ElmFn);
  14499. }
  14500. }
  14501. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes_ElmFn(PH321Caps_supportedPrefixes val)
  14502. {
  14503. if (val) {
  14504. ASN1Free_SupportedPrefix(&val->value);
  14505. }
  14506. }
  14507. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val)
  14508. {
  14509. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_supportedPrefixes_ElmFn);
  14510. }
  14511. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH320Caps_supportedPrefixes val)
  14512. {
  14513. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14514. return 0;
  14515. return 1;
  14516. }
  14517. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val)
  14518. {
  14519. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14520. }
  14521. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH320Caps_supportedPrefixes val)
  14522. {
  14523. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14524. return 0;
  14525. return 1;
  14526. }
  14527. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val)
  14528. {
  14529. if (val) {
  14530. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_supportedPrefixes_ElmFn);
  14531. }
  14532. }
  14533. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes_ElmFn(PH320Caps_supportedPrefixes val)
  14534. {
  14535. if (val) {
  14536. ASN1Free_SupportedPrefix(&val->value);
  14537. }
  14538. }
  14539. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val)
  14540. {
  14541. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_supportedPrefixes_ElmFn);
  14542. }
  14543. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH310Caps_supportedPrefixes val)
  14544. {
  14545. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14546. return 0;
  14547. return 1;
  14548. }
  14549. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val)
  14550. {
  14551. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14552. }
  14553. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH310Caps_supportedPrefixes val)
  14554. {
  14555. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14556. return 0;
  14557. return 1;
  14558. }
  14559. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val)
  14560. {
  14561. if (val) {
  14562. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_supportedPrefixes_ElmFn);
  14563. }
  14564. }
  14565. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes_ElmFn(PH310Caps_supportedPrefixes val)
  14566. {
  14567. if (val) {
  14568. ASN1Free_SupportedPrefix(&val->value);
  14569. }
  14570. }
  14571. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val)
  14572. {
  14573. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatewayInfo_protocol_ElmFn);
  14574. }
  14575. static int ASN1CALL ASN1Enc_GatewayInfo_protocol_ElmFn(ASN1encoding_t enc, PGatewayInfo_protocol val)
  14576. {
  14577. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  14578. return 0;
  14579. return 1;
  14580. }
  14581. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val)
  14582. {
  14583. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatewayInfo_protocol_ElmFn, sizeof(**val));
  14584. }
  14585. static int ASN1CALL ASN1Dec_GatewayInfo_protocol_ElmFn(ASN1decoding_t dec, PGatewayInfo_protocol val)
  14586. {
  14587. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  14588. return 0;
  14589. return 1;
  14590. }
  14591. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val)
  14592. {
  14593. if (val) {
  14594. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatewayInfo_protocol_ElmFn);
  14595. }
  14596. }
  14597. static void ASN1CALL ASN1Free_GatewayInfo_protocol_ElmFn(PGatewayInfo_protocol val)
  14598. {
  14599. if (val) {
  14600. ASN1Free_SupportedProtocols(&val->value);
  14601. }
  14602. }
  14603. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val)
  14604. {
  14605. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn);
  14606. }
  14607. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo val)
  14608. {
  14609. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14610. return 0;
  14611. return 1;
  14612. }
  14613. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val)
  14614. {
  14615. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14616. }
  14617. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo val)
  14618. {
  14619. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14620. return 0;
  14621. return 1;
  14622. }
  14623. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val)
  14624. {
  14625. if (val) {
  14626. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn);
  14627. }
  14628. }
  14629. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn(PFacility_UUIE_destExtraCallInfo val)
  14630. {
  14631. if (val) {
  14632. ASN1Free_AliasAddress(&val->value);
  14633. }
  14634. }
  14635. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val)
  14636. {
  14637. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14638. }
  14639. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress val)
  14640. {
  14641. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14642. return 0;
  14643. return 1;
  14644. }
  14645. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val)
  14646. {
  14647. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn, sizeof(**val));
  14648. }
  14649. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress val)
  14650. {
  14651. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14652. return 0;
  14653. return 1;
  14654. }
  14655. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val)
  14656. {
  14657. if (val) {
  14658. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14659. }
  14660. }
  14661. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn(PFacility_UUIE_alternativeAliasAddress val)
  14662. {
  14663. if (val) {
  14664. ASN1Free_AliasAddress(&val->value);
  14665. }
  14666. }
  14667. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val)
  14668. {
  14669. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn);
  14670. }
  14671. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo val)
  14672. {
  14673. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14674. return 0;
  14675. return 1;
  14676. }
  14677. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val)
  14678. {
  14679. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14680. }
  14681. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo val)
  14682. {
  14683. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14684. return 0;
  14685. return 1;
  14686. }
  14687. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val)
  14688. {
  14689. if (val) {
  14690. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn);
  14691. }
  14692. }
  14693. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn(PSetup_UUIE_destExtraCallInfo val)
  14694. {
  14695. if (val) {
  14696. ASN1Free_AliasAddress(&val->value);
  14697. }
  14698. }
  14699. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val)
  14700. {
  14701. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destinationAddress_ElmFn);
  14702. }
  14703. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destinationAddress val)
  14704. {
  14705. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14706. return 0;
  14707. return 1;
  14708. }
  14709. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val)
  14710. {
  14711. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destinationAddress_ElmFn, sizeof(**val));
  14712. }
  14713. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destinationAddress val)
  14714. {
  14715. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14716. return 0;
  14717. return 1;
  14718. }
  14719. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val)
  14720. {
  14721. if (val) {
  14722. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destinationAddress_ElmFn);
  14723. }
  14724. }
  14725. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress_ElmFn(PSetup_UUIE_destinationAddress val)
  14726. {
  14727. if (val) {
  14728. ASN1Free_AliasAddress(&val->value);
  14729. }
  14730. }
  14731. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val)
  14732. {
  14733. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_sourceAddress_ElmFn);
  14734. }
  14735. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_sourceAddress val)
  14736. {
  14737. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14738. return 0;
  14739. return 1;
  14740. }
  14741. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val)
  14742. {
  14743. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_sourceAddress_ElmFn, sizeof(**val));
  14744. }
  14745. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_sourceAddress val)
  14746. {
  14747. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14748. return 0;
  14749. return 1;
  14750. }
  14751. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val)
  14752. {
  14753. if (val) {
  14754. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_sourceAddress_ElmFn);
  14755. }
  14756. }
  14757. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress_ElmFn(PSetup_UUIE_sourceAddress val)
  14758. {
  14759. if (val) {
  14760. ASN1Free_AliasAddress(&val->value);
  14761. }
  14762. }
  14763. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val)
  14764. {
  14765. ASN1octet_t o[2];
  14766. ASN1uint32_t y;
  14767. ASN1encoding_t ee;
  14768. CopyMemory(o, (val)->o, 2);
  14769. o[1] |= 0x80;
  14770. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14771. if (!ASN1PEREncBitVal(enc, 1, y))
  14772. return 0;
  14773. if (!ASN1PEREncBits(enc, 1, o))
  14774. return 0;
  14775. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14776. return 0;
  14777. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14778. return 0;
  14779. if (o[0] & 0x80) {
  14780. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14781. return 0;
  14782. }
  14783. if (y) {
  14784. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14785. return 0;
  14786. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14787. return 0;
  14788. if (o[1] & 0x80) {
  14789. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14790. return 0;
  14791. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14792. return 0;
  14793. }
  14794. if (o[1] & 0x40) {
  14795. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14796. return 0;
  14797. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14798. return 0;
  14799. }
  14800. if (o[1] & 0x20) {
  14801. if (!ASN1Enc_Alerting_UUIE_tokens(ee, &(val)->tokens))
  14802. return 0;
  14803. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14804. return 0;
  14805. }
  14806. if (o[1] & 0x10) {
  14807. if (!ASN1Enc_Alerting_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14808. return 0;
  14809. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14810. return 0;
  14811. }
  14812. if (o[1] & 0x8) {
  14813. if (!ASN1Enc_Alerting_UUIE_fastStart(ee, &(val)->fastStart))
  14814. return 0;
  14815. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14816. return 0;
  14817. }
  14818. ASN1_CloseEncoder2(ee);
  14819. }
  14820. return 1;
  14821. }
  14822. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val)
  14823. {
  14824. ASN1uint32_t y;
  14825. ASN1decoding_t dd;
  14826. ASN1octet_t *db;
  14827. ASN1uint32_t ds;
  14828. ASN1uint32_t i;
  14829. ASN1uint32_t e;
  14830. if (!ASN1PERDecExtensionBit(dec, &y))
  14831. return 0;
  14832. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14833. return 0;
  14834. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  14835. return 0;
  14836. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  14837. return 0;
  14838. if ((val)->o[0] & 0x80) {
  14839. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  14840. return 0;
  14841. }
  14842. if (!y) {
  14843. ZeroMemory((val)->o + 1, 1);
  14844. } else {
  14845. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  14846. return 0;
  14847. if ((val)->o[1] & 0x80) {
  14848. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14849. return 0;
  14850. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14851. return 0;
  14852. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  14853. return 0;
  14854. ASN1_CloseDecoder(dd);
  14855. ASN1Free(db);
  14856. }
  14857. if ((val)->o[1] & 0x40) {
  14858. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14859. return 0;
  14860. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14861. return 0;
  14862. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  14863. return 0;
  14864. ASN1_CloseDecoder(dd);
  14865. ASN1Free(db);
  14866. }
  14867. if ((val)->o[1] & 0x20) {
  14868. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14869. return 0;
  14870. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14871. return 0;
  14872. if (!ASN1Dec_Alerting_UUIE_tokens(dd, &(val)->tokens))
  14873. return 0;
  14874. ASN1_CloseDecoder(dd);
  14875. ASN1Free(db);
  14876. }
  14877. if ((val)->o[1] & 0x10) {
  14878. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14879. return 0;
  14880. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14881. return 0;
  14882. if (!ASN1Dec_Alerting_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  14883. return 0;
  14884. ASN1_CloseDecoder(dd);
  14885. ASN1Free(db);
  14886. }
  14887. if ((val)->o[1] & 0x8) {
  14888. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14889. return 0;
  14890. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14891. return 0;
  14892. if (!ASN1Dec_Alerting_UUIE_fastStart(dd, &(val)->fastStart))
  14893. return 0;
  14894. ASN1_CloseDecoder(dd);
  14895. ASN1Free(db);
  14896. }
  14897. for (i = 0; i < e; i++) {
  14898. if (!ASN1PERDecSkipFragmented(dec, 8))
  14899. return 0;
  14900. }
  14901. }
  14902. return 1;
  14903. }
  14904. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val)
  14905. {
  14906. if (val) {
  14907. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  14908. ASN1Free_EndpointType(&(val)->destinationInfo);
  14909. if ((val)->o[0] & 0x80) {
  14910. ASN1Free_TransportAddress(&(val)->h245Address);
  14911. }
  14912. if ((val)->o[1] & 0x80) {
  14913. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  14914. }
  14915. if ((val)->o[1] & 0x40) {
  14916. ASN1Free_H245Security(&(val)->h245SecurityMode);
  14917. }
  14918. if ((val)->o[1] & 0x20) {
  14919. ASN1Free_Alerting_UUIE_tokens(&(val)->tokens);
  14920. }
  14921. if ((val)->o[1] & 0x10) {
  14922. ASN1Free_Alerting_UUIE_cryptoTokens(&(val)->cryptoTokens);
  14923. }
  14924. if ((val)->o[1] & 0x8) {
  14925. ASN1Free_Alerting_UUIE_fastStart(&(val)->fastStart);
  14926. }
  14927. }
  14928. }
  14929. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val)
  14930. {
  14931. ASN1octet_t o[2];
  14932. ASN1uint32_t y;
  14933. ASN1encoding_t ee;
  14934. CopyMemory(o, (val)->o, 2);
  14935. o[1] |= 0x80;
  14936. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14937. if (!ASN1PEREncBitVal(enc, 1, y))
  14938. return 0;
  14939. if (!ASN1PEREncBits(enc, 1, o))
  14940. return 0;
  14941. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14942. return 0;
  14943. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14944. return 0;
  14945. if (o[0] & 0x80) {
  14946. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14947. return 0;
  14948. }
  14949. if (y) {
  14950. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14951. return 0;
  14952. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14953. return 0;
  14954. if (o[1] & 0x80) {
  14955. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14956. return 0;
  14957. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14958. return 0;
  14959. }
  14960. if (o[1] & 0x40) {
  14961. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14962. return 0;
  14963. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14964. return 0;
  14965. }
  14966. if (o[1] & 0x20) {
  14967. if (!ASN1Enc_CallProceeding_UUIE_tokens(ee, &(val)->tokens))
  14968. return 0;
  14969. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14970. return 0;
  14971. }
  14972. if (o[1] & 0x10) {
  14973. if (!ASN1Enc_CallProceeding_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14974. return 0;
  14975. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14976. return 0;
  14977. }
  14978. if (o[1] & 0x8) {
  14979. if (!ASN1Enc_CallProceeding_UUIE_fastStart(ee, &(val)->fastStart))
  14980. return 0;
  14981. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14982. return 0;
  14983. }
  14984. ASN1_CloseEncoder2(ee);
  14985. }
  14986. return 1;
  14987. }
  14988. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val)
  14989. {
  14990. ASN1uint32_t y;
  14991. ASN1decoding_t dd;
  14992. ASN1octet_t *db;
  14993. ASN1uint32_t ds;
  14994. ASN1uint32_t i;
  14995. ASN1uint32_t e;
  14996. if (!ASN1PERDecExtensionBit(dec, &y))
  14997. return 0;
  14998. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14999. return 0;
  15000. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15001. return 0;
  15002. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15003. return 0;
  15004. if ((val)->o[0] & 0x80) {
  15005. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15006. return 0;
  15007. }
  15008. if (!y) {
  15009. ZeroMemory((val)->o + 1, 1);
  15010. } else {
  15011. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15012. return 0;
  15013. if ((val)->o[1] & 0x80) {
  15014. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15015. return 0;
  15016. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15017. return 0;
  15018. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15019. return 0;
  15020. ASN1_CloseDecoder(dd);
  15021. ASN1Free(db);
  15022. }
  15023. if ((val)->o[1] & 0x40) {
  15024. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15025. return 0;
  15026. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15027. return 0;
  15028. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15029. return 0;
  15030. ASN1_CloseDecoder(dd);
  15031. ASN1Free(db);
  15032. }
  15033. if ((val)->o[1] & 0x20) {
  15034. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15035. return 0;
  15036. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15037. return 0;
  15038. if (!ASN1Dec_CallProceeding_UUIE_tokens(dd, &(val)->tokens))
  15039. return 0;
  15040. ASN1_CloseDecoder(dd);
  15041. ASN1Free(db);
  15042. }
  15043. if ((val)->o[1] & 0x10) {
  15044. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15045. return 0;
  15046. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15047. return 0;
  15048. if (!ASN1Dec_CallProceeding_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15049. return 0;
  15050. ASN1_CloseDecoder(dd);
  15051. ASN1Free(db);
  15052. }
  15053. if ((val)->o[1] & 0x8) {
  15054. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15055. return 0;
  15056. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15057. return 0;
  15058. if (!ASN1Dec_CallProceeding_UUIE_fastStart(dd, &(val)->fastStart))
  15059. return 0;
  15060. ASN1_CloseDecoder(dd);
  15061. ASN1Free(db);
  15062. }
  15063. for (i = 0; i < e; i++) {
  15064. if (!ASN1PERDecSkipFragmented(dec, 8))
  15065. return 0;
  15066. }
  15067. }
  15068. return 1;
  15069. }
  15070. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val)
  15071. {
  15072. if (val) {
  15073. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15074. ASN1Free_EndpointType(&(val)->destinationInfo);
  15075. if ((val)->o[0] & 0x80) {
  15076. ASN1Free_TransportAddress(&(val)->h245Address);
  15077. }
  15078. if ((val)->o[1] & 0x80) {
  15079. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15080. }
  15081. if ((val)->o[1] & 0x40) {
  15082. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15083. }
  15084. if ((val)->o[1] & 0x20) {
  15085. ASN1Free_CallProceeding_UUIE_tokens(&(val)->tokens);
  15086. }
  15087. if ((val)->o[1] & 0x10) {
  15088. ASN1Free_CallProceeding_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15089. }
  15090. if ((val)->o[1] & 0x8) {
  15091. ASN1Free_CallProceeding_UUIE_fastStart(&(val)->fastStart);
  15092. }
  15093. }
  15094. }
  15095. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val)
  15096. {
  15097. ASN1octet_t o[2];
  15098. ASN1uint32_t y;
  15099. ASN1encoding_t ee;
  15100. CopyMemory(o, (val)->o, 2);
  15101. o[1] |= 0x80;
  15102. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  15103. if (!ASN1PEREncBitVal(enc, 1, y))
  15104. return 0;
  15105. if (!ASN1PEREncBits(enc, 1, o))
  15106. return 0;
  15107. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15108. return 0;
  15109. if (o[0] & 0x80) {
  15110. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15111. return 0;
  15112. }
  15113. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15114. return 0;
  15115. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15116. return 0;
  15117. if (y) {
  15118. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  15119. return 0;
  15120. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15121. return 0;
  15122. if (o[1] & 0x80) {
  15123. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15124. return 0;
  15125. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15126. return 0;
  15127. }
  15128. if (o[1] & 0x40) {
  15129. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  15130. return 0;
  15131. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15132. return 0;
  15133. }
  15134. if (o[1] & 0x20) {
  15135. if (!ASN1Enc_Connect_UUIE_tokens(ee, &(val)->tokens))
  15136. return 0;
  15137. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15138. return 0;
  15139. }
  15140. if (o[1] & 0x10) {
  15141. if (!ASN1Enc_Connect_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15142. return 0;
  15143. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15144. return 0;
  15145. }
  15146. if (o[1] & 0x8) {
  15147. if (!ASN1Enc_Connect_UUIE_fastStart(ee, &(val)->fastStart))
  15148. return 0;
  15149. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15150. return 0;
  15151. }
  15152. ASN1_CloseEncoder2(ee);
  15153. }
  15154. return 1;
  15155. }
  15156. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val)
  15157. {
  15158. ASN1uint32_t y;
  15159. ASN1decoding_t dd;
  15160. ASN1octet_t *db;
  15161. ASN1uint32_t ds;
  15162. ASN1uint32_t i;
  15163. ASN1uint32_t e;
  15164. if (!ASN1PERDecExtensionBit(dec, &y))
  15165. return 0;
  15166. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15167. return 0;
  15168. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15169. return 0;
  15170. if ((val)->o[0] & 0x80) {
  15171. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15172. return 0;
  15173. }
  15174. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15175. return 0;
  15176. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15177. return 0;
  15178. if (!y) {
  15179. ZeroMemory((val)->o + 1, 1);
  15180. } else {
  15181. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15182. return 0;
  15183. if ((val)->o[1] & 0x80) {
  15184. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15185. return 0;
  15186. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15187. return 0;
  15188. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15189. return 0;
  15190. ASN1_CloseDecoder(dd);
  15191. ASN1Free(db);
  15192. }
  15193. if ((val)->o[1] & 0x40) {
  15194. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15195. return 0;
  15196. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15197. return 0;
  15198. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15199. return 0;
  15200. ASN1_CloseDecoder(dd);
  15201. ASN1Free(db);
  15202. }
  15203. if ((val)->o[1] & 0x20) {
  15204. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15205. return 0;
  15206. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15207. return 0;
  15208. if (!ASN1Dec_Connect_UUIE_tokens(dd, &(val)->tokens))
  15209. return 0;
  15210. ASN1_CloseDecoder(dd);
  15211. ASN1Free(db);
  15212. }
  15213. if ((val)->o[1] & 0x10) {
  15214. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15215. return 0;
  15216. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15217. return 0;
  15218. if (!ASN1Dec_Connect_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15219. return 0;
  15220. ASN1_CloseDecoder(dd);
  15221. ASN1Free(db);
  15222. }
  15223. if ((val)->o[1] & 0x8) {
  15224. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15225. return 0;
  15226. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15227. return 0;
  15228. if (!ASN1Dec_Connect_UUIE_fastStart(dd, &(val)->fastStart))
  15229. return 0;
  15230. ASN1_CloseDecoder(dd);
  15231. ASN1Free(db);
  15232. }
  15233. for (i = 0; i < e; i++) {
  15234. if (!ASN1PERDecSkipFragmented(dec, 8))
  15235. return 0;
  15236. }
  15237. }
  15238. return 1;
  15239. }
  15240. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val)
  15241. {
  15242. if (val) {
  15243. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15244. if ((val)->o[0] & 0x80) {
  15245. ASN1Free_TransportAddress(&(val)->h245Address);
  15246. }
  15247. ASN1Free_EndpointType(&(val)->destinationInfo);
  15248. if ((val)->o[1] & 0x80) {
  15249. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15250. }
  15251. if ((val)->o[1] & 0x40) {
  15252. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15253. }
  15254. if ((val)->o[1] & 0x20) {
  15255. ASN1Free_Connect_UUIE_tokens(&(val)->tokens);
  15256. }
  15257. if ((val)->o[1] & 0x10) {
  15258. ASN1Free_Connect_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15259. }
  15260. if ((val)->o[1] & 0x8) {
  15261. ASN1Free_Connect_UUIE_fastStart(&(val)->fastStart);
  15262. }
  15263. }
  15264. }
  15265. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val)
  15266. {
  15267. ASN1octet_t o[3];
  15268. ASN1uint32_t y;
  15269. ASN1encoding_t ee;
  15270. CopyMemory(o, (val)->o, 3);
  15271. o[1] |= 0x20;
  15272. o[1] |= 0x1;
  15273. o[2] |= 0x80;
  15274. y = ASN1PEREncCheckExtensions(9, (val)->o + 1);
  15275. if (!ASN1PEREncBitVal(enc, 1, y))
  15276. return 0;
  15277. if (!ASN1PEREncBits(enc, 7, o))
  15278. return 0;
  15279. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15280. return 0;
  15281. if (o[0] & 0x80) {
  15282. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15283. return 0;
  15284. }
  15285. if (o[0] & 0x40) {
  15286. if (!ASN1Enc_Setup_UUIE_sourceAddress(enc, &(val)->sourceAddress))
  15287. return 0;
  15288. }
  15289. if (!ASN1Enc_EndpointType(enc, &(val)->sourceInfo))
  15290. return 0;
  15291. if (o[0] & 0x20) {
  15292. if (!ASN1Enc_Setup_UUIE_destinationAddress(enc, &(val)->destinationAddress))
  15293. return 0;
  15294. }
  15295. if (o[0] & 0x10) {
  15296. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  15297. return 0;
  15298. }
  15299. if (o[0] & 0x8) {
  15300. if (!ASN1Enc_Setup_UUIE_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  15301. return 0;
  15302. }
  15303. if (o[0] & 0x4) {
  15304. if (!ASN1Enc_Setup_UUIE_destExtraCRV(enc, &(val)->destExtraCRV))
  15305. return 0;
  15306. }
  15307. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  15308. return 0;
  15309. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15310. return 0;
  15311. if (!ASN1Enc_Setup_UUIE_conferenceGoal(enc, &(val)->conferenceGoal))
  15312. return 0;
  15313. if (o[0] & 0x2) {
  15314. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  15315. return 0;
  15316. }
  15317. if (!ASN1Enc_CallType(enc, &(val)->callType))
  15318. return 0;
  15319. if (y) {
  15320. if (!ASN1PEREncNormallySmallBits(enc, 9, o + 1))
  15321. return 0;
  15322. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15323. return 0;
  15324. if (o[1] & 0x80) {
  15325. if (!ASN1Enc_TransportAddress(ee, &(val)->sourceCallSignalAddress))
  15326. return 0;
  15327. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15328. return 0;
  15329. }
  15330. if (o[1] & 0x40) {
  15331. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15332. return 0;
  15333. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15334. return 0;
  15335. }
  15336. if (o[1] & 0x20) {
  15337. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15338. return 0;
  15339. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15340. return 0;
  15341. }
  15342. if (o[1] & 0x10) {
  15343. if (!ASN1Enc_Setup_UUIE_h245SecurityCapability(ee, &(val)->h245SecurityCapability))
  15344. return 0;
  15345. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15346. return 0;
  15347. }
  15348. if (o[1] & 0x8) {
  15349. if (!ASN1Enc_Setup_UUIE_tokens(ee, &(val)->tokens))
  15350. return 0;
  15351. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15352. return 0;
  15353. }
  15354. if (o[1] & 0x4) {
  15355. if (!ASN1Enc_Setup_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15356. return 0;
  15357. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15358. return 0;
  15359. }
  15360. if (o[1] & 0x2) {
  15361. if (!ASN1Enc_Setup_UUIE_fastStart(ee, &(val)->fastStart))
  15362. return 0;
  15363. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15364. return 0;
  15365. }
  15366. if (o[1] & 0x1) {
  15367. if (!ASN1PEREncBoolean(ee, (val)->mediaWaitForConnect))
  15368. return 0;
  15369. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15370. return 0;
  15371. }
  15372. if (o[2] & 0x80) {
  15373. if (!ASN1PEREncBoolean(ee, (val)->canOverlapSend))
  15374. return 0;
  15375. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15376. return 0;
  15377. }
  15378. ASN1_CloseEncoder2(ee);
  15379. }
  15380. return 1;
  15381. }
  15382. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val)
  15383. {
  15384. ASN1uint32_t y;
  15385. ASN1decoding_t dd;
  15386. ASN1octet_t *db;
  15387. ASN1uint32_t ds;
  15388. ASN1uint32_t i;
  15389. ASN1uint32_t e;
  15390. if (!ASN1PERDecExtensionBit(dec, &y))
  15391. return 0;
  15392. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  15393. return 0;
  15394. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15395. return 0;
  15396. if ((val)->o[0] & 0x80) {
  15397. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15398. return 0;
  15399. }
  15400. if ((val)->o[0] & 0x40) {
  15401. if (!ASN1Dec_Setup_UUIE_sourceAddress(dec, &(val)->sourceAddress))
  15402. return 0;
  15403. }
  15404. if (!ASN1Dec_EndpointType(dec, &(val)->sourceInfo))
  15405. return 0;
  15406. if ((val)->o[0] & 0x20) {
  15407. if (!ASN1Dec_Setup_UUIE_destinationAddress(dec, &(val)->destinationAddress))
  15408. return 0;
  15409. }
  15410. if ((val)->o[0] & 0x10) {
  15411. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  15412. return 0;
  15413. }
  15414. if ((val)->o[0] & 0x8) {
  15415. if (!ASN1Dec_Setup_UUIE_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  15416. return 0;
  15417. }
  15418. if ((val)->o[0] & 0x4) {
  15419. if (!ASN1Dec_Setup_UUIE_destExtraCRV(dec, &(val)->destExtraCRV))
  15420. return 0;
  15421. }
  15422. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  15423. return 0;
  15424. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15425. return 0;
  15426. if (!ASN1Dec_Setup_UUIE_conferenceGoal(dec, &(val)->conferenceGoal))
  15427. return 0;
  15428. if ((val)->o[0] & 0x2) {
  15429. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  15430. return 0;
  15431. }
  15432. if (!ASN1Dec_CallType(dec, &(val)->callType))
  15433. return 0;
  15434. if (!y) {
  15435. ZeroMemory((val)->o + 1, 2);
  15436. } else {
  15437. if (!ASN1PERDecNormallySmallExtension(dec, &e, 9, (val)->o + 1))
  15438. return 0;
  15439. if ((val)->o[1] & 0x80) {
  15440. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15441. return 0;
  15442. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15443. return 0;
  15444. if (!ASN1Dec_TransportAddress(dd, &(val)->sourceCallSignalAddress))
  15445. return 0;
  15446. ASN1_CloseDecoder(dd);
  15447. ASN1Free(db);
  15448. }
  15449. if ((val)->o[1] & 0x40) {
  15450. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15451. return 0;
  15452. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15453. return 0;
  15454. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15455. return 0;
  15456. ASN1_CloseDecoder(dd);
  15457. ASN1Free(db);
  15458. }
  15459. if ((val)->o[1] & 0x20) {
  15460. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15461. return 0;
  15462. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15463. return 0;
  15464. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15465. return 0;
  15466. ASN1_CloseDecoder(dd);
  15467. ASN1Free(db);
  15468. }
  15469. if ((val)->o[1] & 0x10) {
  15470. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15471. return 0;
  15472. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15473. return 0;
  15474. if (!ASN1Dec_Setup_UUIE_h245SecurityCapability(dd, &(val)->h245SecurityCapability))
  15475. return 0;
  15476. ASN1_CloseDecoder(dd);
  15477. ASN1Free(db);
  15478. }
  15479. if ((val)->o[1] & 0x8) {
  15480. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15481. return 0;
  15482. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15483. return 0;
  15484. if (!ASN1Dec_Setup_UUIE_tokens(dd, &(val)->tokens))
  15485. return 0;
  15486. ASN1_CloseDecoder(dd);
  15487. ASN1Free(db);
  15488. }
  15489. if ((val)->o[1] & 0x4) {
  15490. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15491. return 0;
  15492. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15493. return 0;
  15494. if (!ASN1Dec_Setup_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15495. return 0;
  15496. ASN1_CloseDecoder(dd);
  15497. ASN1Free(db);
  15498. }
  15499. if ((val)->o[1] & 0x2) {
  15500. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15501. return 0;
  15502. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15503. return 0;
  15504. if (!ASN1Dec_Setup_UUIE_fastStart(dd, &(val)->fastStart))
  15505. return 0;
  15506. ASN1_CloseDecoder(dd);
  15507. ASN1Free(db);
  15508. }
  15509. if ((val)->o[1] & 0x1) {
  15510. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15511. return 0;
  15512. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15513. return 0;
  15514. if (!ASN1PERDecBoolean(dd, &(val)->mediaWaitForConnect))
  15515. return 0;
  15516. ASN1_CloseDecoder(dd);
  15517. ASN1Free(db);
  15518. }
  15519. if ((val)->o[2] & 0x80) {
  15520. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15521. return 0;
  15522. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15523. return 0;
  15524. if (!ASN1PERDecBoolean(dd, &(val)->canOverlapSend))
  15525. return 0;
  15526. ASN1_CloseDecoder(dd);
  15527. ASN1Free(db);
  15528. }
  15529. for (i = 0; i < e; i++) {
  15530. if (!ASN1PERDecSkipFragmented(dec, 8))
  15531. return 0;
  15532. }
  15533. }
  15534. return 1;
  15535. }
  15536. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val)
  15537. {
  15538. if (val) {
  15539. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15540. if ((val)->o[0] & 0x80) {
  15541. ASN1Free_TransportAddress(&(val)->h245Address);
  15542. }
  15543. if ((val)->o[0] & 0x40) {
  15544. ASN1Free_Setup_UUIE_sourceAddress(&(val)->sourceAddress);
  15545. }
  15546. ASN1Free_EndpointType(&(val)->sourceInfo);
  15547. if ((val)->o[0] & 0x20) {
  15548. ASN1Free_Setup_UUIE_destinationAddress(&(val)->destinationAddress);
  15549. }
  15550. if ((val)->o[0] & 0x10) {
  15551. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  15552. }
  15553. if ((val)->o[0] & 0x8) {
  15554. ASN1Free_Setup_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15555. }
  15556. if ((val)->o[0] & 0x4) {
  15557. ASN1Free_Setup_UUIE_destExtraCRV(&(val)->destExtraCRV);
  15558. }
  15559. if ((val)->o[1] & 0x80) {
  15560. ASN1Free_TransportAddress(&(val)->sourceCallSignalAddress);
  15561. }
  15562. if ((val)->o[1] & 0x40) {
  15563. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15564. }
  15565. if ((val)->o[1] & 0x20) {
  15566. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15567. }
  15568. if ((val)->o[1] & 0x10) {
  15569. ASN1Free_Setup_UUIE_h245SecurityCapability(&(val)->h245SecurityCapability);
  15570. }
  15571. if ((val)->o[1] & 0x8) {
  15572. ASN1Free_Setup_UUIE_tokens(&(val)->tokens);
  15573. }
  15574. if ((val)->o[1] & 0x4) {
  15575. ASN1Free_Setup_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15576. }
  15577. if ((val)->o[1] & 0x2) {
  15578. ASN1Free_Setup_UUIE_fastStart(&(val)->fastStart);
  15579. }
  15580. }
  15581. }
  15582. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val)
  15583. {
  15584. ASN1octet_t o[2];
  15585. ASN1uint32_t y;
  15586. ASN1encoding_t ee;
  15587. CopyMemory(o, (val)->o, 2);
  15588. o[1] |= 0x80;
  15589. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  15590. if (!ASN1PEREncBitVal(enc, 1, y))
  15591. return 0;
  15592. if (!ASN1PEREncBits(enc, 3, o))
  15593. return 0;
  15594. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15595. return 0;
  15596. if (o[0] & 0x80) {
  15597. if (!ASN1Enc_TransportAddress(enc, &(val)->alternativeAddress))
  15598. return 0;
  15599. }
  15600. if (o[0] & 0x40) {
  15601. if (!ASN1Enc_Facility_UUIE_alternativeAliasAddress(enc, &(val)->alternativeAliasAddress))
  15602. return 0;
  15603. }
  15604. if (o[0] & 0x20) {
  15605. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15606. return 0;
  15607. }
  15608. if (!ASN1Enc_FacilityReason(enc, &(val)->reason))
  15609. return 0;
  15610. if (y) {
  15611. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  15612. return 0;
  15613. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15614. return 0;
  15615. if (o[1] & 0x80) {
  15616. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15617. return 0;
  15618. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15619. return 0;
  15620. }
  15621. if (o[1] & 0x40) {
  15622. if (!ASN1Enc_Facility_UUIE_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  15623. return 0;
  15624. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15625. return 0;
  15626. }
  15627. if (o[1] & 0x20) {
  15628. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15629. return 0;
  15630. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15631. return 0;
  15632. }
  15633. if (o[1] & 0x10) {
  15634. if (!ASN1Enc_Facility_UUIE_tokens(ee, &(val)->tokens))
  15635. return 0;
  15636. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15637. return 0;
  15638. }
  15639. if (o[1] & 0x8) {
  15640. if (!ASN1Enc_Facility_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15641. return 0;
  15642. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15643. return 0;
  15644. }
  15645. if (o[1] & 0x4) {
  15646. if (!ASN1Enc_Facility_UUIE_conferences(ee, &(val)->conferences))
  15647. return 0;
  15648. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15649. return 0;
  15650. }
  15651. if (o[1] & 0x2) {
  15652. if (!ASN1Enc_TransportAddress(ee, &(val)->h245Address))
  15653. return 0;
  15654. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15655. return 0;
  15656. }
  15657. if (o[1] & 0x1) {
  15658. if (!ASN1Enc_Facility_UUIE_fastStart(ee, &(val)->fastStart))
  15659. return 0;
  15660. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15661. return 0;
  15662. }
  15663. ASN1_CloseEncoder2(ee);
  15664. }
  15665. return 1;
  15666. }
  15667. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val)
  15668. {
  15669. ASN1uint32_t y;
  15670. ASN1decoding_t dd;
  15671. ASN1octet_t *db;
  15672. ASN1uint32_t ds;
  15673. ASN1uint32_t i;
  15674. ASN1uint32_t e;
  15675. if (!ASN1PERDecExtensionBit(dec, &y))
  15676. return 0;
  15677. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15678. return 0;
  15679. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15680. return 0;
  15681. if ((val)->o[0] & 0x80) {
  15682. if (!ASN1Dec_TransportAddress(dec, &(val)->alternativeAddress))
  15683. return 0;
  15684. }
  15685. if ((val)->o[0] & 0x40) {
  15686. if (!ASN1Dec_Facility_UUIE_alternativeAliasAddress(dec, &(val)->alternativeAliasAddress))
  15687. return 0;
  15688. }
  15689. if ((val)->o[0] & 0x20) {
  15690. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15691. return 0;
  15692. }
  15693. if (!ASN1Dec_FacilityReason(dec, &(val)->reason))
  15694. return 0;
  15695. if (!y) {
  15696. ZeroMemory((val)->o + 1, 1);
  15697. } else {
  15698. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  15699. return 0;
  15700. if ((val)->o[1] & 0x80) {
  15701. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15702. return 0;
  15703. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15704. return 0;
  15705. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15706. return 0;
  15707. ASN1_CloseDecoder(dd);
  15708. ASN1Free(db);
  15709. }
  15710. if ((val)->o[1] & 0x40) {
  15711. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15712. return 0;
  15713. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15714. return 0;
  15715. if (!ASN1Dec_Facility_UUIE_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  15716. return 0;
  15717. ASN1_CloseDecoder(dd);
  15718. ASN1Free(db);
  15719. }
  15720. if ((val)->o[1] & 0x20) {
  15721. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15722. return 0;
  15723. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15724. return 0;
  15725. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15726. return 0;
  15727. ASN1_CloseDecoder(dd);
  15728. ASN1Free(db);
  15729. }
  15730. if ((val)->o[1] & 0x10) {
  15731. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15732. return 0;
  15733. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15734. return 0;
  15735. if (!ASN1Dec_Facility_UUIE_tokens(dd, &(val)->tokens))
  15736. return 0;
  15737. ASN1_CloseDecoder(dd);
  15738. ASN1Free(db);
  15739. }
  15740. if ((val)->o[1] & 0x8) {
  15741. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15742. return 0;
  15743. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15744. return 0;
  15745. if (!ASN1Dec_Facility_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15746. return 0;
  15747. ASN1_CloseDecoder(dd);
  15748. ASN1Free(db);
  15749. }
  15750. if ((val)->o[1] & 0x4) {
  15751. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15752. return 0;
  15753. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15754. return 0;
  15755. if (!ASN1Dec_Facility_UUIE_conferences(dd, &(val)->conferences))
  15756. return 0;
  15757. ASN1_CloseDecoder(dd);
  15758. ASN1Free(db);
  15759. }
  15760. if ((val)->o[1] & 0x2) {
  15761. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15762. return 0;
  15763. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15764. return 0;
  15765. if (!ASN1Dec_TransportAddress(dd, &(val)->h245Address))
  15766. return 0;
  15767. ASN1_CloseDecoder(dd);
  15768. ASN1Free(db);
  15769. }
  15770. if ((val)->o[1] & 0x1) {
  15771. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15772. return 0;
  15773. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15774. return 0;
  15775. if (!ASN1Dec_Facility_UUIE_fastStart(dd, &(val)->fastStart))
  15776. return 0;
  15777. ASN1_CloseDecoder(dd);
  15778. ASN1Free(db);
  15779. }
  15780. for (i = 0; i < e; i++) {
  15781. if (!ASN1PERDecSkipFragmented(dec, 8))
  15782. return 0;
  15783. }
  15784. }
  15785. return 1;
  15786. }
  15787. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val)
  15788. {
  15789. if (val) {
  15790. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15791. if ((val)->o[0] & 0x80) {
  15792. ASN1Free_TransportAddress(&(val)->alternativeAddress);
  15793. }
  15794. if ((val)->o[0] & 0x40) {
  15795. ASN1Free_Facility_UUIE_alternativeAliasAddress(&(val)->alternativeAliasAddress);
  15796. }
  15797. if ((val)->o[0] & 0x20) {
  15798. }
  15799. if ((val)->o[1] & 0x80) {
  15800. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15801. }
  15802. if ((val)->o[1] & 0x40) {
  15803. ASN1Free_Facility_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15804. }
  15805. if ((val)->o[1] & 0x20) {
  15806. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15807. }
  15808. if ((val)->o[1] & 0x10) {
  15809. ASN1Free_Facility_UUIE_tokens(&(val)->tokens);
  15810. }
  15811. if ((val)->o[1] & 0x8) {
  15812. ASN1Free_Facility_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15813. }
  15814. if ((val)->o[1] & 0x4) {
  15815. ASN1Free_Facility_UUIE_conferences(&(val)->conferences);
  15816. }
  15817. if ((val)->o[1] & 0x2) {
  15818. ASN1Free_TransportAddress(&(val)->h245Address);
  15819. }
  15820. if ((val)->o[1] & 0x1) {
  15821. ASN1Free_Facility_UUIE_fastStart(&(val)->fastStart);
  15822. }
  15823. }
  15824. }
  15825. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val)
  15826. {
  15827. if (!ASN1PEREncExtensionBitClear(enc))
  15828. return 0;
  15829. if (!ASN1PEREncBits(enc, 3, (val)->o))
  15830. return 0;
  15831. if ((val)->o[0] & 0x80) {
  15832. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15833. return 0;
  15834. }
  15835. if ((val)->o[0] & 0x40) {
  15836. if (!ASN1Enc_AliasAddress(enc, &(val)->conferenceAlias))
  15837. return 0;
  15838. }
  15839. if ((val)->o[0] & 0x20) {
  15840. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  15841. return 0;
  15842. }
  15843. return 1;
  15844. }
  15845. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val)
  15846. {
  15847. ASN1uint32_t y;
  15848. if (!ASN1PERDecExtensionBit(dec, &y))
  15849. return 0;
  15850. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15851. return 0;
  15852. if ((val)->o[0] & 0x80) {
  15853. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15854. return 0;
  15855. }
  15856. if ((val)->o[0] & 0x40) {
  15857. if (!ASN1Dec_AliasAddress(dec, &(val)->conferenceAlias))
  15858. return 0;
  15859. }
  15860. if ((val)->o[0] & 0x20) {
  15861. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  15862. return 0;
  15863. }
  15864. if (y) {
  15865. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15866. return 0;
  15867. }
  15868. return 1;
  15869. }
  15870. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val)
  15871. {
  15872. if (val) {
  15873. if ((val)->o[0] & 0x80) {
  15874. }
  15875. if ((val)->o[0] & 0x40) {
  15876. ASN1Free_AliasAddress(&(val)->conferenceAlias);
  15877. }
  15878. if ((val)->o[0] & 0x20) {
  15879. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  15880. }
  15881. }
  15882. }
  15883. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val)
  15884. {
  15885. if (!ASN1PEREncExtensionBitClear(enc))
  15886. return 0;
  15887. if (!ASN1PEREncBits(enc, 5, (val)->o))
  15888. return 0;
  15889. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15890. return 0;
  15891. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15892. return 0;
  15893. if ((val)->o[0] & 0x80) {
  15894. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15895. return 0;
  15896. }
  15897. if (!ASN1Enc_CallIdentifier(enc, &(val)->callIdentifier))
  15898. return 0;
  15899. if ((val)->o[0] & 0x40) {
  15900. if (!ASN1Enc_H245Security(enc, &(val)->h245SecurityMode))
  15901. return 0;
  15902. }
  15903. if ((val)->o[0] & 0x20) {
  15904. if (!ASN1Enc_Progress_UUIE_tokens(enc, &(val)->tokens))
  15905. return 0;
  15906. }
  15907. if ((val)->o[0] & 0x10) {
  15908. if (!ASN1Enc_Progress_UUIE_cryptoTokens(enc, &(val)->cryptoTokens))
  15909. return 0;
  15910. }
  15911. if ((val)->o[0] & 0x8) {
  15912. if (!ASN1Enc_Progress_UUIE_fastStart(enc, &(val)->fastStart))
  15913. return 0;
  15914. }
  15915. return 1;
  15916. }
  15917. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val)
  15918. {
  15919. ASN1uint32_t y;
  15920. if (!ASN1PERDecExtensionBit(dec, &y))
  15921. return 0;
  15922. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  15923. return 0;
  15924. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15925. return 0;
  15926. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15927. return 0;
  15928. if ((val)->o[0] & 0x80) {
  15929. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15930. return 0;
  15931. }
  15932. if (!ASN1Dec_CallIdentifier(dec, &(val)->callIdentifier))
  15933. return 0;
  15934. if ((val)->o[0] & 0x40) {
  15935. if (!ASN1Dec_H245Security(dec, &(val)->h245SecurityMode))
  15936. return 0;
  15937. }
  15938. if ((val)->o[0] & 0x20) {
  15939. if (!ASN1Dec_Progress_UUIE_tokens(dec, &(val)->tokens))
  15940. return 0;
  15941. }
  15942. if ((val)->o[0] & 0x10) {
  15943. if (!ASN1Dec_Progress_UUIE_cryptoTokens(dec, &(val)->cryptoTokens))
  15944. return 0;
  15945. }
  15946. if ((val)->o[0] & 0x8) {
  15947. if (!ASN1Dec_Progress_UUIE_fastStart(dec, &(val)->fastStart))
  15948. return 0;
  15949. }
  15950. if (y) {
  15951. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15952. return 0;
  15953. }
  15954. return 1;
  15955. }
  15956. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val)
  15957. {
  15958. if (val) {
  15959. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15960. ASN1Free_EndpointType(&(val)->destinationInfo);
  15961. if ((val)->o[0] & 0x80) {
  15962. ASN1Free_TransportAddress(&(val)->h245Address);
  15963. }
  15964. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15965. if ((val)->o[0] & 0x40) {
  15966. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15967. }
  15968. if ((val)->o[0] & 0x20) {
  15969. ASN1Free_Progress_UUIE_tokens(&(val)->tokens);
  15970. }
  15971. if ((val)->o[0] & 0x10) {
  15972. ASN1Free_Progress_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15973. }
  15974. if ((val)->o[0] & 0x8) {
  15975. ASN1Free_Progress_UUIE_fastStart(&(val)->fastStart);
  15976. }
  15977. }
  15978. }
  15979. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val)
  15980. {
  15981. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  15982. return 0;
  15983. switch ((val)->choice) {
  15984. case 1:
  15985. if (!ASN1Enc_CryptoH323Token_cryptoEPPwdHash(enc, &(val)->u.cryptoEPPwdHash))
  15986. return 0;
  15987. break;
  15988. case 2:
  15989. if (!ASN1Enc_CryptoH323Token_cryptoGKPwdHash(enc, &(val)->u.cryptoGKPwdHash))
  15990. return 0;
  15991. break;
  15992. case 3:
  15993. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoEPPwdEncr))
  15994. return 0;
  15995. break;
  15996. case 4:
  15997. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoGKPwdEncr))
  15998. return 0;
  15999. break;
  16000. case 5:
  16001. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoEPCert))
  16002. return 0;
  16003. break;
  16004. case 6:
  16005. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoGKCert))
  16006. return 0;
  16007. break;
  16008. case 7:
  16009. if (!ASN1Enc_SIGNED_EncodedFastStartToken(enc, &(val)->u.cryptoFastStart))
  16010. return 0;
  16011. break;
  16012. case 8:
  16013. if (!ASN1Enc_CryptoToken(enc, &(val)->u.nestedcryptoToken))
  16014. return 0;
  16015. break;
  16016. default:
  16017. /* impossible */
  16018. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16019. return 0;
  16020. }
  16021. return 1;
  16022. }
  16023. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val)
  16024. {
  16025. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  16026. return 0;
  16027. switch ((val)->choice) {
  16028. case 1:
  16029. if (!ASN1Dec_CryptoH323Token_cryptoEPPwdHash(dec, &(val)->u.cryptoEPPwdHash))
  16030. return 0;
  16031. break;
  16032. case 2:
  16033. if (!ASN1Dec_CryptoH323Token_cryptoGKPwdHash(dec, &(val)->u.cryptoGKPwdHash))
  16034. return 0;
  16035. break;
  16036. case 3:
  16037. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoEPPwdEncr))
  16038. return 0;
  16039. break;
  16040. case 4:
  16041. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoGKPwdEncr))
  16042. return 0;
  16043. break;
  16044. case 5:
  16045. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoEPCert))
  16046. return 0;
  16047. break;
  16048. case 6:
  16049. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoGKCert))
  16050. return 0;
  16051. break;
  16052. case 7:
  16053. if (!ASN1Dec_SIGNED_EncodedFastStartToken(dec, &(val)->u.cryptoFastStart))
  16054. return 0;
  16055. break;
  16056. case 8:
  16057. if (!ASN1Dec_CryptoToken(dec, &(val)->u.nestedcryptoToken))
  16058. return 0;
  16059. break;
  16060. case 0:
  16061. /* extension case */
  16062. if (!ASN1PERDecSkipFragmented(dec, 8))
  16063. return 0;
  16064. break;
  16065. default:
  16066. /* impossible */
  16067. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16068. return 0;
  16069. }
  16070. return 1;
  16071. }
  16072. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val)
  16073. {
  16074. if (val) {
  16075. switch ((val)->choice) {
  16076. case 1:
  16077. ASN1Free_CryptoH323Token_cryptoEPPwdHash(&(val)->u.cryptoEPPwdHash);
  16078. break;
  16079. case 2:
  16080. ASN1Free_CryptoH323Token_cryptoGKPwdHash(&(val)->u.cryptoGKPwdHash);
  16081. break;
  16082. case 3:
  16083. ASN1Free_ENCRYPTED(&(val)->u.cryptoEPPwdEncr);
  16084. break;
  16085. case 4:
  16086. ASN1Free_ENCRYPTED(&(val)->u.cryptoGKPwdEncr);
  16087. break;
  16088. case 5:
  16089. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoEPCert);
  16090. break;
  16091. case 6:
  16092. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoGKCert);
  16093. break;
  16094. case 7:
  16095. ASN1Free_SIGNED_EncodedFastStartToken(&(val)->u.cryptoFastStart);
  16096. break;
  16097. case 8:
  16098. ASN1Free_CryptoToken(&(val)->u.nestedcryptoToken);
  16099. break;
  16100. }
  16101. }
  16102. }
  16103. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val)
  16104. {
  16105. ASN1encoding_t ee;
  16106. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 5, 25))
  16107. return 0;
  16108. switch ((val)->choice) {
  16109. case 1:
  16110. if (!ASN1Enc_GatekeeperRequest(enc, &(val)->u.gatekeeperRequest))
  16111. return 0;
  16112. break;
  16113. case 2:
  16114. if (!ASN1Enc_GatekeeperConfirm(enc, &(val)->u.gatekeeperConfirm))
  16115. return 0;
  16116. break;
  16117. case 3:
  16118. if (!ASN1Enc_GatekeeperReject(enc, &(val)->u.gatekeeperReject))
  16119. return 0;
  16120. break;
  16121. case 4:
  16122. if (!ASN1Enc_RegistrationRequest(enc, &(val)->u.registrationRequest))
  16123. return 0;
  16124. break;
  16125. case 5:
  16126. if (!ASN1Enc_RegistrationConfirm(enc, &(val)->u.registrationConfirm))
  16127. return 0;
  16128. break;
  16129. case 6:
  16130. if (!ASN1Enc_RegistrationReject(enc, &(val)->u.registrationReject))
  16131. return 0;
  16132. break;
  16133. case 7:
  16134. if (!ASN1Enc_UnregistrationRequest(enc, &(val)->u.unregistrationRequest))
  16135. return 0;
  16136. break;
  16137. case 8:
  16138. if (!ASN1Enc_UnregistrationConfirm(enc, &(val)->u.unregistrationConfirm))
  16139. return 0;
  16140. break;
  16141. case 9:
  16142. if (!ASN1Enc_UnregistrationReject(enc, &(val)->u.unregistrationReject))
  16143. return 0;
  16144. break;
  16145. case 10:
  16146. if (!ASN1Enc_AdmissionRequest(enc, &(val)->u.admissionRequest))
  16147. return 0;
  16148. break;
  16149. case 11:
  16150. if (!ASN1Enc_AdmissionConfirm(enc, &(val)->u.admissionConfirm))
  16151. return 0;
  16152. break;
  16153. case 12:
  16154. if (!ASN1Enc_AdmissionReject(enc, &(val)->u.admissionReject))
  16155. return 0;
  16156. break;
  16157. case 13:
  16158. if (!ASN1Enc_BandwidthRequest(enc, &(val)->u.bandwidthRequest))
  16159. return 0;
  16160. break;
  16161. case 14:
  16162. if (!ASN1Enc_BandwidthConfirm(enc, &(val)->u.bandwidthConfirm))
  16163. return 0;
  16164. break;
  16165. case 15:
  16166. if (!ASN1Enc_BandwidthReject(enc, &(val)->u.bandwidthReject))
  16167. return 0;
  16168. break;
  16169. case 16:
  16170. if (!ASN1Enc_DisengageRequest(enc, &(val)->u.disengageRequest))
  16171. return 0;
  16172. break;
  16173. case 17:
  16174. if (!ASN1Enc_DisengageConfirm(enc, &(val)->u.disengageConfirm))
  16175. return 0;
  16176. break;
  16177. case 18:
  16178. if (!ASN1Enc_DisengageReject(enc, &(val)->u.disengageReject))
  16179. return 0;
  16180. break;
  16181. case 19:
  16182. if (!ASN1Enc_LocationRequest(enc, &(val)->u.locationRequest))
  16183. return 0;
  16184. break;
  16185. case 20:
  16186. if (!ASN1Enc_LocationConfirm(enc, &(val)->u.locationConfirm))
  16187. return 0;
  16188. break;
  16189. case 21:
  16190. if (!ASN1Enc_LocationReject(enc, &(val)->u.locationReject))
  16191. return 0;
  16192. break;
  16193. case 22:
  16194. if (!ASN1Enc_InfoRequest(enc, &(val)->u.infoRequest))
  16195. return 0;
  16196. break;
  16197. case 23:
  16198. if (!ASN1Enc_InfoRequestResponse(enc, &(val)->u.infoRequestResponse))
  16199. return 0;
  16200. break;
  16201. case 24:
  16202. if (!ASN1Enc_H225NonStandardMessage(enc, &(val)->u.nonStandardMessage))
  16203. return 0;
  16204. break;
  16205. case 25:
  16206. if (!ASN1Enc_UnknownMessageResponse(enc, &(val)->u.unknownMessageResponse))
  16207. return 0;
  16208. break;
  16209. case 26:
  16210. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16211. return 0;
  16212. if (!ASN1Enc_RequestInProgress(ee, &(val)->u.requestInProgress))
  16213. return 0;
  16214. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16215. return 0;
  16216. ASN1_CloseEncoder2(ee);
  16217. break;
  16218. case 27:
  16219. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16220. return 0;
  16221. if (!ASN1Enc_ResourcesAvailableIndicate(ee, &(val)->u.resourcesAvailableIndicate))
  16222. return 0;
  16223. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16224. return 0;
  16225. ASN1_CloseEncoder2(ee);
  16226. break;
  16227. case 28:
  16228. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16229. return 0;
  16230. if (!ASN1Enc_ResourcesAvailableConfirm(ee, &(val)->u.resourcesAvailableConfirm))
  16231. return 0;
  16232. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16233. return 0;
  16234. ASN1_CloseEncoder2(ee);
  16235. break;
  16236. case 29:
  16237. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16238. return 0;
  16239. if (!ASN1Enc_InfoRequestAck(ee, &(val)->u.infoRequestAck))
  16240. return 0;
  16241. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16242. return 0;
  16243. ASN1_CloseEncoder2(ee);
  16244. break;
  16245. case 30:
  16246. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16247. return 0;
  16248. if (!ASN1Enc_InfoRequestNak(ee, &(val)->u.infoRequestNak))
  16249. return 0;
  16250. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16251. return 0;
  16252. ASN1_CloseEncoder2(ee);
  16253. break;
  16254. default:
  16255. /* impossible */
  16256. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16257. return 0;
  16258. }
  16259. return 1;
  16260. }
  16261. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val)
  16262. {
  16263. ASN1decoding_t dd;
  16264. ASN1octet_t *db;
  16265. ASN1uint32_t ds;
  16266. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 5, 25))
  16267. return 0;
  16268. switch ((val)->choice) {
  16269. case 1:
  16270. if (!ASN1Dec_GatekeeperRequest(dec, &(val)->u.gatekeeperRequest))
  16271. return 0;
  16272. break;
  16273. case 2:
  16274. if (!ASN1Dec_GatekeeperConfirm(dec, &(val)->u.gatekeeperConfirm))
  16275. return 0;
  16276. break;
  16277. case 3:
  16278. if (!ASN1Dec_GatekeeperReject(dec, &(val)->u.gatekeeperReject))
  16279. return 0;
  16280. break;
  16281. case 4:
  16282. if (!ASN1Dec_RegistrationRequest(dec, &(val)->u.registrationRequest))
  16283. return 0;
  16284. break;
  16285. case 5:
  16286. if (!ASN1Dec_RegistrationConfirm(dec, &(val)->u.registrationConfirm))
  16287. return 0;
  16288. break;
  16289. case 6:
  16290. if (!ASN1Dec_RegistrationReject(dec, &(val)->u.registrationReject))
  16291. return 0;
  16292. break;
  16293. case 7:
  16294. if (!ASN1Dec_UnregistrationRequest(dec, &(val)->u.unregistrationRequest))
  16295. return 0;
  16296. break;
  16297. case 8:
  16298. if (!ASN1Dec_UnregistrationConfirm(dec, &(val)->u.unregistrationConfirm))
  16299. return 0;
  16300. break;
  16301. case 9:
  16302. if (!ASN1Dec_UnregistrationReject(dec, &(val)->u.unregistrationReject))
  16303. return 0;
  16304. break;
  16305. case 10:
  16306. if (!ASN1Dec_AdmissionRequest(dec, &(val)->u.admissionRequest))
  16307. return 0;
  16308. break;
  16309. case 11:
  16310. if (!ASN1Dec_AdmissionConfirm(dec, &(val)->u.admissionConfirm))
  16311. return 0;
  16312. break;
  16313. case 12:
  16314. if (!ASN1Dec_AdmissionReject(dec, &(val)->u.admissionReject))
  16315. return 0;
  16316. break;
  16317. case 13:
  16318. if (!ASN1Dec_BandwidthRequest(dec, &(val)->u.bandwidthRequest))
  16319. return 0;
  16320. break;
  16321. case 14:
  16322. if (!ASN1Dec_BandwidthConfirm(dec, &(val)->u.bandwidthConfirm))
  16323. return 0;
  16324. break;
  16325. case 15:
  16326. if (!ASN1Dec_BandwidthReject(dec, &(val)->u.bandwidthReject))
  16327. return 0;
  16328. break;
  16329. case 16:
  16330. if (!ASN1Dec_DisengageRequest(dec, &(val)->u.disengageRequest))
  16331. return 0;
  16332. break;
  16333. case 17:
  16334. if (!ASN1Dec_DisengageConfirm(dec, &(val)->u.disengageConfirm))
  16335. return 0;
  16336. break;
  16337. case 18:
  16338. if (!ASN1Dec_DisengageReject(dec, &(val)->u.disengageReject))
  16339. return 0;
  16340. break;
  16341. case 19:
  16342. if (!ASN1Dec_LocationRequest(dec, &(val)->u.locationRequest))
  16343. return 0;
  16344. break;
  16345. case 20:
  16346. if (!ASN1Dec_LocationConfirm(dec, &(val)->u.locationConfirm))
  16347. return 0;
  16348. break;
  16349. case 21:
  16350. if (!ASN1Dec_LocationReject(dec, &(val)->u.locationReject))
  16351. return 0;
  16352. break;
  16353. case 22:
  16354. if (!ASN1Dec_InfoRequest(dec, &(val)->u.infoRequest))
  16355. return 0;
  16356. break;
  16357. case 23:
  16358. if (!ASN1Dec_InfoRequestResponse(dec, &(val)->u.infoRequestResponse))
  16359. return 0;
  16360. break;
  16361. case 24:
  16362. if (!ASN1Dec_H225NonStandardMessage(dec, &(val)->u.nonStandardMessage))
  16363. return 0;
  16364. break;
  16365. case 25:
  16366. if (!ASN1Dec_UnknownMessageResponse(dec, &(val)->u.unknownMessageResponse))
  16367. return 0;
  16368. break;
  16369. case 26:
  16370. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16371. return 0;
  16372. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16373. return 0;
  16374. if (!ASN1Dec_RequestInProgress(dd, &(val)->u.requestInProgress))
  16375. return 0;
  16376. ASN1_CloseDecoder(dd);
  16377. ASN1Free(db);
  16378. break;
  16379. case 27:
  16380. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16381. return 0;
  16382. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16383. return 0;
  16384. if (!ASN1Dec_ResourcesAvailableIndicate(dd, &(val)->u.resourcesAvailableIndicate))
  16385. return 0;
  16386. ASN1_CloseDecoder(dd);
  16387. ASN1Free(db);
  16388. break;
  16389. case 28:
  16390. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16391. return 0;
  16392. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16393. return 0;
  16394. if (!ASN1Dec_ResourcesAvailableConfirm(dd, &(val)->u.resourcesAvailableConfirm))
  16395. return 0;
  16396. ASN1_CloseDecoder(dd);
  16397. ASN1Free(db);
  16398. break;
  16399. case 29:
  16400. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16401. return 0;
  16402. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16403. return 0;
  16404. if (!ASN1Dec_InfoRequestAck(dd, &(val)->u.infoRequestAck))
  16405. return 0;
  16406. ASN1_CloseDecoder(dd);
  16407. ASN1Free(db);
  16408. break;
  16409. case 30:
  16410. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16411. return 0;
  16412. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16413. return 0;
  16414. if (!ASN1Dec_InfoRequestNak(dd, &(val)->u.infoRequestNak))
  16415. return 0;
  16416. ASN1_CloseDecoder(dd);
  16417. ASN1Free(db);
  16418. break;
  16419. case 0:
  16420. /* extension case */
  16421. if (!ASN1PERDecSkipFragmented(dec, 8))
  16422. return 0;
  16423. break;
  16424. default:
  16425. /* impossible */
  16426. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16427. return 0;
  16428. }
  16429. return 1;
  16430. }
  16431. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val)
  16432. {
  16433. if (val) {
  16434. switch ((val)->choice) {
  16435. case 1:
  16436. ASN1Free_GatekeeperRequest(&(val)->u.gatekeeperRequest);
  16437. break;
  16438. case 2:
  16439. ASN1Free_GatekeeperConfirm(&(val)->u.gatekeeperConfirm);
  16440. break;
  16441. case 3:
  16442. ASN1Free_GatekeeperReject(&(val)->u.gatekeeperReject);
  16443. break;
  16444. case 4:
  16445. ASN1Free_RegistrationRequest(&(val)->u.registrationRequest);
  16446. break;
  16447. case 5:
  16448. ASN1Free_RegistrationConfirm(&(val)->u.registrationConfirm);
  16449. break;
  16450. case 6:
  16451. ASN1Free_RegistrationReject(&(val)->u.registrationReject);
  16452. break;
  16453. case 7:
  16454. ASN1Free_UnregistrationRequest(&(val)->u.unregistrationRequest);
  16455. break;
  16456. case 8:
  16457. ASN1Free_UnregistrationConfirm(&(val)->u.unregistrationConfirm);
  16458. break;
  16459. case 9:
  16460. ASN1Free_UnregistrationReject(&(val)->u.unregistrationReject);
  16461. break;
  16462. case 10:
  16463. ASN1Free_AdmissionRequest(&(val)->u.admissionRequest);
  16464. break;
  16465. case 11:
  16466. ASN1Free_AdmissionConfirm(&(val)->u.admissionConfirm);
  16467. break;
  16468. case 12:
  16469. ASN1Free_AdmissionReject(&(val)->u.admissionReject);
  16470. break;
  16471. case 13:
  16472. ASN1Free_BandwidthRequest(&(val)->u.bandwidthRequest);
  16473. break;
  16474. case 14:
  16475. ASN1Free_BandwidthConfirm(&(val)->u.bandwidthConfirm);
  16476. break;
  16477. case 15:
  16478. ASN1Free_BandwidthReject(&(val)->u.bandwidthReject);
  16479. break;
  16480. case 16:
  16481. ASN1Free_DisengageRequest(&(val)->u.disengageRequest);
  16482. break;
  16483. case 17:
  16484. ASN1Free_DisengageConfirm(&(val)->u.disengageConfirm);
  16485. break;
  16486. case 18:
  16487. ASN1Free_DisengageReject(&(val)->u.disengageReject);
  16488. break;
  16489. case 19:
  16490. ASN1Free_LocationRequest(&(val)->u.locationRequest);
  16491. break;
  16492. case 20:
  16493. ASN1Free_LocationConfirm(&(val)->u.locationConfirm);
  16494. break;
  16495. case 21:
  16496. ASN1Free_LocationReject(&(val)->u.locationReject);
  16497. break;
  16498. case 22:
  16499. ASN1Free_InfoRequest(&(val)->u.infoRequest);
  16500. break;
  16501. case 23:
  16502. ASN1Free_InfoRequestResponse(&(val)->u.infoRequestResponse);
  16503. break;
  16504. case 24:
  16505. ASN1Free_H225NonStandardMessage(&(val)->u.nonStandardMessage);
  16506. break;
  16507. case 25:
  16508. ASN1Free_UnknownMessageResponse(&(val)->u.unknownMessageResponse);
  16509. break;
  16510. case 26:
  16511. ASN1Free_RequestInProgress(&(val)->u.requestInProgress);
  16512. break;
  16513. case 27:
  16514. ASN1Free_ResourcesAvailableIndicate(&(val)->u.resourcesAvailableIndicate);
  16515. break;
  16516. case 28:
  16517. ASN1Free_ResourcesAvailableConfirm(&(val)->u.resourcesAvailableConfirm);
  16518. break;
  16519. case 29:
  16520. ASN1Free_InfoRequestAck(&(val)->u.infoRequestAck);
  16521. break;
  16522. case 30:
  16523. ASN1Free_InfoRequestNak(&(val)->u.infoRequestNak);
  16524. break;
  16525. }
  16526. }
  16527. }
  16528. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16529. {
  16530. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16531. }
  16532. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16533. {
  16534. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16535. return 0;
  16536. return 1;
  16537. }
  16538. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16539. {
  16540. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn, sizeof(**val));
  16541. }
  16542. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16543. {
  16544. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16545. return 0;
  16546. return 1;
  16547. }
  16548. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16549. {
  16550. if (val) {
  16551. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16552. }
  16553. }
  16554. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16555. {
  16556. if (val) {
  16557. ASN1Free_CryptoH323Token(&val->value);
  16558. }
  16559. }
  16560. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val)
  16561. {
  16562. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16563. }
  16564. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens val)
  16565. {
  16566. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16567. return 0;
  16568. return 1;
  16569. }
  16570. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val)
  16571. {
  16572. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16573. }
  16574. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens val)
  16575. {
  16576. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16577. return 0;
  16578. return 1;
  16579. }
  16580. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val)
  16581. {
  16582. if (val) {
  16583. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16584. }
  16585. }
  16586. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn(PResourcesAvailableConfirm_cryptoTokens val)
  16587. {
  16588. if (val) {
  16589. ASN1Free_CryptoH323Token(&val->value);
  16590. }
  16591. }
  16592. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val)
  16593. {
  16594. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16595. }
  16596. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens val)
  16597. {
  16598. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16599. return 0;
  16600. return 1;
  16601. }
  16602. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val)
  16603. {
  16604. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn, sizeof(**val));
  16605. }
  16606. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens val)
  16607. {
  16608. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16609. return 0;
  16610. return 1;
  16611. }
  16612. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val)
  16613. {
  16614. if (val) {
  16615. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16616. }
  16617. }
  16618. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn(PResourcesAvailableIndicate_cryptoTokens val)
  16619. {
  16620. if (val) {
  16621. ASN1Free_CryptoH323Token(&val->value);
  16622. }
  16623. }
  16624. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val)
  16625. {
  16626. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_cryptoTokens_ElmFn);
  16627. }
  16628. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_cryptoTokens val)
  16629. {
  16630. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16631. return 0;
  16632. return 1;
  16633. }
  16634. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val)
  16635. {
  16636. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_cryptoTokens_ElmFn, sizeof(**val));
  16637. }
  16638. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_cryptoTokens val)
  16639. {
  16640. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16641. return 0;
  16642. return 1;
  16643. }
  16644. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val)
  16645. {
  16646. if (val) {
  16647. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_cryptoTokens_ElmFn);
  16648. }
  16649. }
  16650. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens_ElmFn(PRequestInProgress_cryptoTokens val)
  16651. {
  16652. if (val) {
  16653. ASN1Free_CryptoH323Token(&val->value);
  16654. }
  16655. }
  16656. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val)
  16657. {
  16658. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn);
  16659. }
  16660. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens val)
  16661. {
  16662. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16663. return 0;
  16664. return 1;
  16665. }
  16666. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val)
  16667. {
  16668. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn, sizeof(**val));
  16669. }
  16670. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens val)
  16671. {
  16672. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16673. return 0;
  16674. return 1;
  16675. }
  16676. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val)
  16677. {
  16678. if (val) {
  16679. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn);
  16680. }
  16681. }
  16682. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn(PUnknownMessageResponse_cryptoTokens val)
  16683. {
  16684. if (val) {
  16685. ASN1Free_CryptoH323Token(&val->value);
  16686. }
  16687. }
  16688. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val)
  16689. {
  16690. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn);
  16691. }
  16692. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens val)
  16693. {
  16694. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16695. return 0;
  16696. return 1;
  16697. }
  16698. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val)
  16699. {
  16700. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn, sizeof(**val));
  16701. }
  16702. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens val)
  16703. {
  16704. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16705. return 0;
  16706. return 1;
  16707. }
  16708. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val)
  16709. {
  16710. if (val) {
  16711. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn);
  16712. }
  16713. }
  16714. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn(PH225NonStandardMessage_cryptoTokens val)
  16715. {
  16716. if (val) {
  16717. ASN1Free_CryptoH323Token(&val->value);
  16718. }
  16719. }
  16720. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val)
  16721. {
  16722. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn);
  16723. }
  16724. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens val)
  16725. {
  16726. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16727. return 0;
  16728. return 1;
  16729. }
  16730. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val)
  16731. {
  16732. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn, sizeof(**val));
  16733. }
  16734. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens val)
  16735. {
  16736. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16737. return 0;
  16738. return 1;
  16739. }
  16740. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val)
  16741. {
  16742. if (val) {
  16743. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_cryptoTokens_ElmFn);
  16744. }
  16745. }
  16746. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens_ElmFn(PInfoRequestNak_cryptoTokens val)
  16747. {
  16748. if (val) {
  16749. ASN1Free_CryptoH323Token(&val->value);
  16750. }
  16751. }
  16752. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val)
  16753. {
  16754. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn);
  16755. }
  16756. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens val)
  16757. {
  16758. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16759. return 0;
  16760. return 1;
  16761. }
  16762. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val)
  16763. {
  16764. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn, sizeof(**val));
  16765. }
  16766. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens val)
  16767. {
  16768. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16769. return 0;
  16770. return 1;
  16771. }
  16772. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val)
  16773. {
  16774. if (val) {
  16775. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_cryptoTokens_ElmFn);
  16776. }
  16777. }
  16778. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens_ElmFn(PInfoRequestAck_cryptoTokens val)
  16779. {
  16780. if (val) {
  16781. ASN1Free_CryptoH323Token(&val->value);
  16782. }
  16783. }
  16784. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val)
  16785. {
  16786. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn);
  16787. }
  16788. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens val)
  16789. {
  16790. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16791. return 0;
  16792. return 1;
  16793. }
  16794. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val)
  16795. {
  16796. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn, sizeof(**val));
  16797. }
  16798. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens val)
  16799. {
  16800. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16801. return 0;
  16802. return 1;
  16803. }
  16804. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val)
  16805. {
  16806. if (val) {
  16807. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn);
  16808. }
  16809. }
  16810. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn(PInfoRequestResponse_cryptoTokens val)
  16811. {
  16812. if (val) {
  16813. ASN1Free_CryptoH323Token(&val->value);
  16814. }
  16815. }
  16816. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val)
  16817. {
  16818. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_cryptoTokens_ElmFn);
  16819. }
  16820. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequest_cryptoTokens val)
  16821. {
  16822. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16823. return 0;
  16824. return 1;
  16825. }
  16826. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val)
  16827. {
  16828. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_cryptoTokens_ElmFn, sizeof(**val));
  16829. }
  16830. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequest_cryptoTokens val)
  16831. {
  16832. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16833. return 0;
  16834. return 1;
  16835. }
  16836. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val)
  16837. {
  16838. if (val) {
  16839. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_cryptoTokens_ElmFn);
  16840. }
  16841. }
  16842. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens_ElmFn(PInfoRequest_cryptoTokens val)
  16843. {
  16844. if (val) {
  16845. ASN1Free_CryptoH323Token(&val->value);
  16846. }
  16847. }
  16848. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val)
  16849. {
  16850. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_cryptoTokens_ElmFn);
  16851. }
  16852. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageReject_cryptoTokens val)
  16853. {
  16854. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16855. return 0;
  16856. return 1;
  16857. }
  16858. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val)
  16859. {
  16860. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_cryptoTokens_ElmFn, sizeof(**val));
  16861. }
  16862. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageReject_cryptoTokens val)
  16863. {
  16864. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16865. return 0;
  16866. return 1;
  16867. }
  16868. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val)
  16869. {
  16870. if (val) {
  16871. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_cryptoTokens_ElmFn);
  16872. }
  16873. }
  16874. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens_ElmFn(PDisengageReject_cryptoTokens val)
  16875. {
  16876. if (val) {
  16877. ASN1Free_CryptoH323Token(&val->value);
  16878. }
  16879. }
  16880. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val)
  16881. {
  16882. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn);
  16883. }
  16884. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens val)
  16885. {
  16886. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16887. return 0;
  16888. return 1;
  16889. }
  16890. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val)
  16891. {
  16892. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16893. }
  16894. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens val)
  16895. {
  16896. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16897. return 0;
  16898. return 1;
  16899. }
  16900. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val)
  16901. {
  16902. if (val) {
  16903. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_cryptoTokens_ElmFn);
  16904. }
  16905. }
  16906. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens_ElmFn(PDisengageConfirm_cryptoTokens val)
  16907. {
  16908. if (val) {
  16909. ASN1Free_CryptoH323Token(&val->value);
  16910. }
  16911. }
  16912. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val)
  16913. {
  16914. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_cryptoTokens_ElmFn);
  16915. }
  16916. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_cryptoTokens val)
  16917. {
  16918. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16919. return 0;
  16920. return 1;
  16921. }
  16922. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val)
  16923. {
  16924. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_cryptoTokens_ElmFn, sizeof(**val));
  16925. }
  16926. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_cryptoTokens val)
  16927. {
  16928. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16929. return 0;
  16930. return 1;
  16931. }
  16932. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val)
  16933. {
  16934. if (val) {
  16935. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_cryptoTokens_ElmFn);
  16936. }
  16937. }
  16938. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens_ElmFn(PDisengageRequest_cryptoTokens val)
  16939. {
  16940. if (val) {
  16941. ASN1Free_CryptoH323Token(&val->value);
  16942. }
  16943. }
  16944. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val)
  16945. {
  16946. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_cryptoTokens_ElmFn);
  16947. }
  16948. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationReject_cryptoTokens val)
  16949. {
  16950. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16951. return 0;
  16952. return 1;
  16953. }
  16954. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val)
  16955. {
  16956. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_cryptoTokens_ElmFn, sizeof(**val));
  16957. }
  16958. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationReject_cryptoTokens val)
  16959. {
  16960. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16961. return 0;
  16962. return 1;
  16963. }
  16964. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val)
  16965. {
  16966. if (val) {
  16967. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_cryptoTokens_ElmFn);
  16968. }
  16969. }
  16970. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens_ElmFn(PLocationReject_cryptoTokens val)
  16971. {
  16972. if (val) {
  16973. ASN1Free_CryptoH323Token(&val->value);
  16974. }
  16975. }
  16976. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val)
  16977. {
  16978. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_cryptoTokens_ElmFn);
  16979. }
  16980. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_cryptoTokens val)
  16981. {
  16982. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16983. return 0;
  16984. return 1;
  16985. }
  16986. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val)
  16987. {
  16988. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16989. }
  16990. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_cryptoTokens val)
  16991. {
  16992. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16993. return 0;
  16994. return 1;
  16995. }
  16996. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val)
  16997. {
  16998. if (val) {
  16999. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_cryptoTokens_ElmFn);
  17000. }
  17001. }
  17002. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens_ElmFn(PLocationConfirm_cryptoTokens val)
  17003. {
  17004. if (val) {
  17005. ASN1Free_CryptoH323Token(&val->value);
  17006. }
  17007. }
  17008. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val)
  17009. {
  17010. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_cryptoTokens_ElmFn);
  17011. }
  17012. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationRequest_cryptoTokens val)
  17013. {
  17014. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17015. return 0;
  17016. return 1;
  17017. }
  17018. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val)
  17019. {
  17020. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17021. }
  17022. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationRequest_cryptoTokens val)
  17023. {
  17024. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17025. return 0;
  17026. return 1;
  17027. }
  17028. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val)
  17029. {
  17030. if (val) {
  17031. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_cryptoTokens_ElmFn);
  17032. }
  17033. }
  17034. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens_ElmFn(PLocationRequest_cryptoTokens val)
  17035. {
  17036. if (val) {
  17037. ASN1Free_CryptoH323Token(&val->value);
  17038. }
  17039. }
  17040. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val)
  17041. {
  17042. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_cryptoTokens_ElmFn);
  17043. }
  17044. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_cryptoTokens val)
  17045. {
  17046. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17047. return 0;
  17048. return 1;
  17049. }
  17050. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val)
  17051. {
  17052. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_cryptoTokens_ElmFn, sizeof(**val));
  17053. }
  17054. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_cryptoTokens val)
  17055. {
  17056. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17057. return 0;
  17058. return 1;
  17059. }
  17060. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val)
  17061. {
  17062. if (val) {
  17063. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_cryptoTokens_ElmFn);
  17064. }
  17065. }
  17066. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens_ElmFn(PBandwidthReject_cryptoTokens val)
  17067. {
  17068. if (val) {
  17069. ASN1Free_CryptoH323Token(&val->value);
  17070. }
  17071. }
  17072. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val)
  17073. {
  17074. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn);
  17075. }
  17076. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens val)
  17077. {
  17078. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17079. return 0;
  17080. return 1;
  17081. }
  17082. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val)
  17083. {
  17084. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17085. }
  17086. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens val)
  17087. {
  17088. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17089. return 0;
  17090. return 1;
  17091. }
  17092. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val)
  17093. {
  17094. if (val) {
  17095. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn);
  17096. }
  17097. }
  17098. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn(PBandwidthConfirm_cryptoTokens val)
  17099. {
  17100. if (val) {
  17101. ASN1Free_CryptoH323Token(&val->value);
  17102. }
  17103. }
  17104. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val)
  17105. {
  17106. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn);
  17107. }
  17108. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens val)
  17109. {
  17110. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17111. return 0;
  17112. return 1;
  17113. }
  17114. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val)
  17115. {
  17116. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn, sizeof(**val));
  17117. }
  17118. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens val)
  17119. {
  17120. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17121. return 0;
  17122. return 1;
  17123. }
  17124. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val)
  17125. {
  17126. if (val) {
  17127. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_cryptoTokens_ElmFn);
  17128. }
  17129. }
  17130. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens_ElmFn(PBandwidthRequest_cryptoTokens val)
  17131. {
  17132. if (val) {
  17133. ASN1Free_CryptoH323Token(&val->value);
  17134. }
  17135. }
  17136. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val)
  17137. {
  17138. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_cryptoTokens_ElmFn);
  17139. }
  17140. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_cryptoTokens val)
  17141. {
  17142. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17143. return 0;
  17144. return 1;
  17145. }
  17146. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val)
  17147. {
  17148. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_cryptoTokens_ElmFn, sizeof(**val));
  17149. }
  17150. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_cryptoTokens val)
  17151. {
  17152. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17153. return 0;
  17154. return 1;
  17155. }
  17156. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val)
  17157. {
  17158. if (val) {
  17159. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_cryptoTokens_ElmFn);
  17160. }
  17161. }
  17162. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens_ElmFn(PAdmissionReject_cryptoTokens val)
  17163. {
  17164. if (val) {
  17165. ASN1Free_CryptoH323Token(&val->value);
  17166. }
  17167. }
  17168. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val)
  17169. {
  17170. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn);
  17171. }
  17172. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens val)
  17173. {
  17174. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17175. return 0;
  17176. return 1;
  17177. }
  17178. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val)
  17179. {
  17180. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17181. }
  17182. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens val)
  17183. {
  17184. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17185. return 0;
  17186. return 1;
  17187. }
  17188. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val)
  17189. {
  17190. if (val) {
  17191. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn);
  17192. }
  17193. }
  17194. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn(PAdmissionConfirm_cryptoTokens val)
  17195. {
  17196. if (val) {
  17197. ASN1Free_CryptoH323Token(&val->value);
  17198. }
  17199. }
  17200. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val)
  17201. {
  17202. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn);
  17203. }
  17204. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens val)
  17205. {
  17206. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17207. return 0;
  17208. return 1;
  17209. }
  17210. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val)
  17211. {
  17212. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn, sizeof(**val));
  17213. }
  17214. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens val)
  17215. {
  17216. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17217. return 0;
  17218. return 1;
  17219. }
  17220. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val)
  17221. {
  17222. if (val) {
  17223. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_cryptoTokens_ElmFn);
  17224. }
  17225. }
  17226. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens_ElmFn(PAdmissionRequest_cryptoTokens val)
  17227. {
  17228. if (val) {
  17229. ASN1Free_CryptoH323Token(&val->value);
  17230. }
  17231. }
  17232. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val)
  17233. {
  17234. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn);
  17235. }
  17236. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens val)
  17237. {
  17238. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17239. return 0;
  17240. return 1;
  17241. }
  17242. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val)
  17243. {
  17244. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17245. }
  17246. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens val)
  17247. {
  17248. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17249. return 0;
  17250. return 1;
  17251. }
  17252. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val)
  17253. {
  17254. if (val) {
  17255. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_cryptoTokens_ElmFn);
  17256. }
  17257. }
  17258. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens_ElmFn(PUnregistrationReject_cryptoTokens val)
  17259. {
  17260. if (val) {
  17261. ASN1Free_CryptoH323Token(&val->value);
  17262. }
  17263. }
  17264. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val)
  17265. {
  17266. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn);
  17267. }
  17268. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens val)
  17269. {
  17270. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17271. return 0;
  17272. return 1;
  17273. }
  17274. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val)
  17275. {
  17276. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17277. }
  17278. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens val)
  17279. {
  17280. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17281. return 0;
  17282. return 1;
  17283. }
  17284. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val)
  17285. {
  17286. if (val) {
  17287. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn);
  17288. }
  17289. }
  17290. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn(PUnregistrationConfirm_cryptoTokens val)
  17291. {
  17292. if (val) {
  17293. ASN1Free_CryptoH323Token(&val->value);
  17294. }
  17295. }
  17296. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val)
  17297. {
  17298. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn);
  17299. }
  17300. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens val)
  17301. {
  17302. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17303. return 0;
  17304. return 1;
  17305. }
  17306. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val)
  17307. {
  17308. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17309. }
  17310. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens val)
  17311. {
  17312. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17313. return 0;
  17314. return 1;
  17315. }
  17316. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val)
  17317. {
  17318. if (val) {
  17319. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn);
  17320. }
  17321. }
  17322. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn(PUnregistrationRequest_cryptoTokens val)
  17323. {
  17324. if (val) {
  17325. ASN1Free_CryptoH323Token(&val->value);
  17326. }
  17327. }
  17328. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val)
  17329. {
  17330. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_cryptoTokens_ElmFn);
  17331. }
  17332. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_cryptoTokens val)
  17333. {
  17334. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17335. return 0;
  17336. return 1;
  17337. }
  17338. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val)
  17339. {
  17340. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17341. }
  17342. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_cryptoTokens val)
  17343. {
  17344. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17345. return 0;
  17346. return 1;
  17347. }
  17348. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val)
  17349. {
  17350. if (val) {
  17351. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_cryptoTokens_ElmFn);
  17352. }
  17353. }
  17354. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens_ElmFn(PRegistrationReject_cryptoTokens val)
  17355. {
  17356. if (val) {
  17357. ASN1Free_CryptoH323Token(&val->value);
  17358. }
  17359. }
  17360. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val)
  17361. {
  17362. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn);
  17363. }
  17364. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens val)
  17365. {
  17366. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17367. return 0;
  17368. return 1;
  17369. }
  17370. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val)
  17371. {
  17372. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17373. }
  17374. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens val)
  17375. {
  17376. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17377. return 0;
  17378. return 1;
  17379. }
  17380. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val)
  17381. {
  17382. if (val) {
  17383. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn);
  17384. }
  17385. }
  17386. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn(PRegistrationConfirm_cryptoTokens val)
  17387. {
  17388. if (val) {
  17389. ASN1Free_CryptoH323Token(&val->value);
  17390. }
  17391. }
  17392. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val)
  17393. {
  17394. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn);
  17395. }
  17396. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens val)
  17397. {
  17398. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17399. return 0;
  17400. return 1;
  17401. }
  17402. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val)
  17403. {
  17404. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17405. }
  17406. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens val)
  17407. {
  17408. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17409. return 0;
  17410. return 1;
  17411. }
  17412. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val)
  17413. {
  17414. if (val) {
  17415. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_cryptoTokens_ElmFn);
  17416. }
  17417. }
  17418. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens_ElmFn(PRegistrationRequest_cryptoTokens val)
  17419. {
  17420. if (val) {
  17421. ASN1Free_CryptoH323Token(&val->value);
  17422. }
  17423. }
  17424. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val)
  17425. {
  17426. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn);
  17427. }
  17428. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens val)
  17429. {
  17430. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17431. return 0;
  17432. return 1;
  17433. }
  17434. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val)
  17435. {
  17436. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn, sizeof(**val));
  17437. }
  17438. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens val)
  17439. {
  17440. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17441. return 0;
  17442. return 1;
  17443. }
  17444. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val)
  17445. {
  17446. if (val) {
  17447. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_cryptoTokens_ElmFn);
  17448. }
  17449. }
  17450. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens_ElmFn(PGatekeeperReject_cryptoTokens val)
  17451. {
  17452. if (val) {
  17453. ASN1Free_CryptoH323Token(&val->value);
  17454. }
  17455. }
  17456. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val)
  17457. {
  17458. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn);
  17459. }
  17460. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens val)
  17461. {
  17462. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17463. return 0;
  17464. return 1;
  17465. }
  17466. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val)
  17467. {
  17468. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17469. }
  17470. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens val)
  17471. {
  17472. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17473. return 0;
  17474. return 1;
  17475. }
  17476. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val)
  17477. {
  17478. if (val) {
  17479. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn);
  17480. }
  17481. }
  17482. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn(PGatekeeperConfirm_cryptoTokens val)
  17483. {
  17484. if (val) {
  17485. ASN1Free_CryptoH323Token(&val->value);
  17486. }
  17487. }
  17488. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val)
  17489. {
  17490. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn);
  17491. }
  17492. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens val)
  17493. {
  17494. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17495. return 0;
  17496. return 1;
  17497. }
  17498. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val)
  17499. {
  17500. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn, sizeof(**val));
  17501. }
  17502. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens val)
  17503. {
  17504. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17505. return 0;
  17506. return 1;
  17507. }
  17508. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val)
  17509. {
  17510. if (val) {
  17511. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn);
  17512. }
  17513. }
  17514. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn(PGatekeeperRequest_cryptoTokens val)
  17515. {
  17516. if (val) {
  17517. ASN1Free_CryptoH323Token(&val->value);
  17518. }
  17519. }
  17520. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val)
  17521. {
  17522. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_cryptoTokens_ElmFn);
  17523. }
  17524. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens_ElmFn(ASN1encoding_t enc, PEndpoint_cryptoTokens val)
  17525. {
  17526. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17527. return 0;
  17528. return 1;
  17529. }
  17530. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val)
  17531. {
  17532. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_cryptoTokens_ElmFn, sizeof(**val));
  17533. }
  17534. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens_ElmFn(ASN1decoding_t dec, PEndpoint_cryptoTokens val)
  17535. {
  17536. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17537. return 0;
  17538. return 1;
  17539. }
  17540. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val)
  17541. {
  17542. if (val) {
  17543. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_cryptoTokens_ElmFn);
  17544. }
  17545. }
  17546. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens_ElmFn(PEndpoint_cryptoTokens val)
  17547. {
  17548. if (val) {
  17549. ASN1Free_CryptoH323Token(&val->value);
  17550. }
  17551. }
  17552. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val)
  17553. {
  17554. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn);
  17555. }
  17556. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens val)
  17557. {
  17558. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17559. return 0;
  17560. return 1;
  17561. }
  17562. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val)
  17563. {
  17564. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17565. }
  17566. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens val)
  17567. {
  17568. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17569. return 0;
  17570. return 1;
  17571. }
  17572. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val)
  17573. {
  17574. if (val) {
  17575. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_cryptoTokens_ElmFn);
  17576. }
  17577. }
  17578. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens_ElmFn(PProgress_UUIE_cryptoTokens val)
  17579. {
  17580. if (val) {
  17581. ASN1Free_CryptoH323Token(&val->value);
  17582. }
  17583. }
  17584. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val)
  17585. {
  17586. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_conferences_ElmFn);
  17587. }
  17588. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences_ElmFn(ASN1encoding_t enc, PFacility_UUIE_conferences val)
  17589. {
  17590. if (!ASN1Enc_ConferenceList(enc, &val->value))
  17591. return 0;
  17592. return 1;
  17593. }
  17594. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val)
  17595. {
  17596. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_conferences_ElmFn, sizeof(**val));
  17597. }
  17598. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences_ElmFn(ASN1decoding_t dec, PFacility_UUIE_conferences val)
  17599. {
  17600. if (!ASN1Dec_ConferenceList(dec, &val->value))
  17601. return 0;
  17602. return 1;
  17603. }
  17604. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val)
  17605. {
  17606. if (val) {
  17607. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_conferences_ElmFn);
  17608. }
  17609. }
  17610. static void ASN1CALL ASN1Free_Facility_UUIE_conferences_ElmFn(PFacility_UUIE_conferences val)
  17611. {
  17612. if (val) {
  17613. ASN1Free_ConferenceList(&val->value);
  17614. }
  17615. }
  17616. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val)
  17617. {
  17618. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn);
  17619. }
  17620. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens val)
  17621. {
  17622. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17623. return 0;
  17624. return 1;
  17625. }
  17626. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val)
  17627. {
  17628. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17629. }
  17630. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens val)
  17631. {
  17632. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17633. return 0;
  17634. return 1;
  17635. }
  17636. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val)
  17637. {
  17638. if (val) {
  17639. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_cryptoTokens_ElmFn);
  17640. }
  17641. }
  17642. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens_ElmFn(PFacility_UUIE_cryptoTokens val)
  17643. {
  17644. if (val) {
  17645. ASN1Free_CryptoH323Token(&val->value);
  17646. }
  17647. }
  17648. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val)
  17649. {
  17650. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn);
  17651. }
  17652. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens val)
  17653. {
  17654. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17655. return 0;
  17656. return 1;
  17657. }
  17658. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val)
  17659. {
  17660. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17661. }
  17662. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens val)
  17663. {
  17664. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17665. return 0;
  17666. return 1;
  17667. }
  17668. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val)
  17669. {
  17670. if (val) {
  17671. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_cryptoTokens_ElmFn);
  17672. }
  17673. }
  17674. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens_ElmFn(PSetup_UUIE_cryptoTokens val)
  17675. {
  17676. if (val) {
  17677. ASN1Free_CryptoH323Token(&val->value);
  17678. }
  17679. }
  17680. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val)
  17681. {
  17682. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn);
  17683. }
  17684. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens val)
  17685. {
  17686. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17687. return 0;
  17688. return 1;
  17689. }
  17690. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val)
  17691. {
  17692. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17693. }
  17694. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens val)
  17695. {
  17696. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17697. return 0;
  17698. return 1;
  17699. }
  17700. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val)
  17701. {
  17702. if (val) {
  17703. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_cryptoTokens_ElmFn);
  17704. }
  17705. }
  17706. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens_ElmFn(PConnect_UUIE_cryptoTokens val)
  17707. {
  17708. if (val) {
  17709. ASN1Free_CryptoH323Token(&val->value);
  17710. }
  17711. }
  17712. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val)
  17713. {
  17714. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17715. }
  17716. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens val)
  17717. {
  17718. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17719. return 0;
  17720. return 1;
  17721. }
  17722. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val)
  17723. {
  17724. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17725. }
  17726. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens val)
  17727. {
  17728. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17729. return 0;
  17730. return 1;
  17731. }
  17732. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val)
  17733. {
  17734. if (val) {
  17735. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17736. }
  17737. }
  17738. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn(PCallProceeding_UUIE_cryptoTokens val)
  17739. {
  17740. if (val) {
  17741. ASN1Free_CryptoH323Token(&val->value);
  17742. }
  17743. }
  17744. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val)
  17745. {
  17746. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn);
  17747. }
  17748. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens val)
  17749. {
  17750. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17751. return 0;
  17752. return 1;
  17753. }
  17754. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val)
  17755. {
  17756. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17757. }
  17758. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens val)
  17759. {
  17760. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17761. return 0;
  17762. return 1;
  17763. }
  17764. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val)
  17765. {
  17766. if (val) {
  17767. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn);
  17768. }
  17769. }
  17770. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn(PAlerting_UUIE_cryptoTokens val)
  17771. {
  17772. if (val) {
  17773. ASN1Free_CryptoH323Token(&val->value);
  17774. }
  17775. }
  17776. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val)
  17777. {
  17778. ASN1encoding_t ee;
  17779. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 7))
  17780. return 0;
  17781. switch ((val)->choice) {
  17782. case 1:
  17783. if (!ASN1Enc_Setup_UUIE(enc, &(val)->u.setup))
  17784. return 0;
  17785. break;
  17786. case 2:
  17787. if (!ASN1Enc_CallProceeding_UUIE(enc, &(val)->u.callProceeding))
  17788. return 0;
  17789. break;
  17790. case 3:
  17791. if (!ASN1Enc_Connect_UUIE(enc, &(val)->u.connect))
  17792. return 0;
  17793. break;
  17794. case 4:
  17795. if (!ASN1Enc_Alerting_UUIE(enc, &(val)->u.alerting))
  17796. return 0;
  17797. break;
  17798. case 5:
  17799. if (!ASN1Enc_Information_UUIE(enc, &(val)->u.information))
  17800. return 0;
  17801. break;
  17802. case 6:
  17803. if (!ASN1Enc_ReleaseComplete_UUIE(enc, &(val)->u.releaseComplete))
  17804. return 0;
  17805. break;
  17806. case 7:
  17807. if (!ASN1Enc_Facility_UUIE(enc, &(val)->u.facility))
  17808. return 0;
  17809. break;
  17810. case 8:
  17811. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17812. return 0;
  17813. if (!ASN1Enc_Progress_UUIE(ee, &(val)->u.progress))
  17814. return 0;
  17815. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17816. return 0;
  17817. ASN1_CloseEncoder2(ee);
  17818. break;
  17819. case 9:
  17820. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17821. return 0;
  17822. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17823. return 0;
  17824. ASN1_CloseEncoder2(ee);
  17825. break;
  17826. default:
  17827. /* impossible */
  17828. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  17829. return 0;
  17830. }
  17831. return 1;
  17832. }
  17833. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val)
  17834. {
  17835. ASN1decoding_t dd;
  17836. ASN1octet_t *db;
  17837. ASN1uint32_t ds;
  17838. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 7))
  17839. return 0;
  17840. switch ((val)->choice) {
  17841. case 1:
  17842. if (!ASN1Dec_Setup_UUIE(dec, &(val)->u.setup))
  17843. return 0;
  17844. break;
  17845. case 2:
  17846. if (!ASN1Dec_CallProceeding_UUIE(dec, &(val)->u.callProceeding))
  17847. return 0;
  17848. break;
  17849. case 3:
  17850. if (!ASN1Dec_Connect_UUIE(dec, &(val)->u.connect))
  17851. return 0;
  17852. break;
  17853. case 4:
  17854. if (!ASN1Dec_Alerting_UUIE(dec, &(val)->u.alerting))
  17855. return 0;
  17856. break;
  17857. case 5:
  17858. if (!ASN1Dec_Information_UUIE(dec, &(val)->u.information))
  17859. return 0;
  17860. break;
  17861. case 6:
  17862. if (!ASN1Dec_ReleaseComplete_UUIE(dec, &(val)->u.releaseComplete))
  17863. return 0;
  17864. break;
  17865. case 7:
  17866. if (!ASN1Dec_Facility_UUIE(dec, &(val)->u.facility))
  17867. return 0;
  17868. break;
  17869. case 8:
  17870. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17871. return 0;
  17872. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17873. return 0;
  17874. if (!ASN1Dec_Progress_UUIE(dd, &(val)->u.progress))
  17875. return 0;
  17876. ASN1_CloseDecoder(dd);
  17877. ASN1Free(db);
  17878. break;
  17879. case 9:
  17880. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17881. return 0;
  17882. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17883. return 0;
  17884. ASN1_CloseDecoder(dd);
  17885. ASN1Free(db);
  17886. break;
  17887. case 0:
  17888. /* extension case */
  17889. if (!ASN1PERDecSkipFragmented(dec, 8))
  17890. return 0;
  17891. break;
  17892. default:
  17893. /* impossible */
  17894. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  17895. return 0;
  17896. }
  17897. return 1;
  17898. }
  17899. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val)
  17900. {
  17901. if (val) {
  17902. switch ((val)->choice) {
  17903. case 1:
  17904. ASN1Free_Setup_UUIE(&(val)->u.setup);
  17905. break;
  17906. case 2:
  17907. ASN1Free_CallProceeding_UUIE(&(val)->u.callProceeding);
  17908. break;
  17909. case 3:
  17910. ASN1Free_Connect_UUIE(&(val)->u.connect);
  17911. break;
  17912. case 4:
  17913. ASN1Free_Alerting_UUIE(&(val)->u.alerting);
  17914. break;
  17915. case 5:
  17916. ASN1Free_Information_UUIE(&(val)->u.information);
  17917. break;
  17918. case 6:
  17919. ASN1Free_ReleaseComplete_UUIE(&(val)->u.releaseComplete);
  17920. break;
  17921. case 7:
  17922. ASN1Free_Facility_UUIE(&(val)->u.facility);
  17923. break;
  17924. case 8:
  17925. ASN1Free_Progress_UUIE(&(val)->u.progress);
  17926. break;
  17927. }
  17928. }
  17929. }
  17930. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val)
  17931. {
  17932. ASN1octet_t o[2];
  17933. ASN1uint32_t y;
  17934. ASN1encoding_t ee;
  17935. CopyMemory(o, (val)->o, 2);
  17936. o[1] |= 0x40;
  17937. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  17938. if (!ASN1PEREncBitVal(enc, 1, y))
  17939. return 0;
  17940. if (!ASN1PEREncBits(enc, 1, o))
  17941. return 0;
  17942. if (!ASN1Enc_H323_UU_PDU_h323_message_body(enc, &(val)->h323_message_body))
  17943. return 0;
  17944. if (o[0] & 0x80) {
  17945. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  17946. return 0;
  17947. }
  17948. if (y) {
  17949. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  17950. return 0;
  17951. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17952. return 0;
  17953. if (o[1] & 0x80) {
  17954. if (!ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ee, &(val)->h4501SupplementaryService))
  17955. return 0;
  17956. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17957. return 0;
  17958. }
  17959. if (o[1] & 0x40) {
  17960. if (!ASN1PEREncBoolean(ee, (val)->h245Tunneling))
  17961. return 0;
  17962. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17963. return 0;
  17964. }
  17965. if (o[1] & 0x20) {
  17966. if (!ASN1Enc_H323_UU_PDU_h245Control(ee, &(val)->h245Control))
  17967. return 0;
  17968. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17969. return 0;
  17970. }
  17971. if (o[1] & 0x10) {
  17972. if (!ASN1Enc_H323_UU_PDU_nonStandardControl(ee, &(val)->nonStandardControl))
  17973. return 0;
  17974. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17975. return 0;
  17976. }
  17977. ASN1_CloseEncoder2(ee);
  17978. }
  17979. return 1;
  17980. }
  17981. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val)
  17982. {
  17983. ASN1uint32_t y;
  17984. ASN1decoding_t dd;
  17985. ASN1octet_t *db;
  17986. ASN1uint32_t ds;
  17987. ASN1uint32_t i;
  17988. ASN1uint32_t e;
  17989. if (!ASN1PERDecExtensionBit(dec, &y))
  17990. return 0;
  17991. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  17992. return 0;
  17993. if (!ASN1Dec_H323_UU_PDU_h323_message_body(dec, &(val)->h323_message_body))
  17994. return 0;
  17995. if ((val)->o[0] & 0x80) {
  17996. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  17997. return 0;
  17998. }
  17999. if (!y) {
  18000. ZeroMemory((val)->o + 1, 1);
  18001. } else {
  18002. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  18003. return 0;
  18004. if ((val)->o[1] & 0x80) {
  18005. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18006. return 0;
  18007. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18008. return 0;
  18009. if (!ASN1Dec_H323_UU_PDU_h4501SupplementaryService(dd, &(val)->h4501SupplementaryService))
  18010. return 0;
  18011. ASN1_CloseDecoder(dd);
  18012. ASN1Free(db);
  18013. }
  18014. if ((val)->o[1] & 0x40) {
  18015. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18016. return 0;
  18017. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18018. return 0;
  18019. if (!ASN1PERDecBoolean(dd, &(val)->h245Tunneling))
  18020. return 0;
  18021. ASN1_CloseDecoder(dd);
  18022. ASN1Free(db);
  18023. }
  18024. if ((val)->o[1] & 0x20) {
  18025. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18026. return 0;
  18027. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18028. return 0;
  18029. if (!ASN1Dec_H323_UU_PDU_h245Control(dd, &(val)->h245Control))
  18030. return 0;
  18031. ASN1_CloseDecoder(dd);
  18032. ASN1Free(db);
  18033. }
  18034. if ((val)->o[1] & 0x10) {
  18035. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18036. return 0;
  18037. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18038. return 0;
  18039. if (!ASN1Dec_H323_UU_PDU_nonStandardControl(dd, &(val)->nonStandardControl))
  18040. return 0;
  18041. ASN1_CloseDecoder(dd);
  18042. ASN1Free(db);
  18043. }
  18044. for (i = 0; i < e; i++) {
  18045. if (!ASN1PERDecSkipFragmented(dec, 8))
  18046. return 0;
  18047. }
  18048. }
  18049. return 1;
  18050. }
  18051. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val)
  18052. {
  18053. if (val) {
  18054. ASN1Free_H323_UU_PDU_h323_message_body(&(val)->h323_message_body);
  18055. if ((val)->o[0] & 0x80) {
  18056. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  18057. }
  18058. if ((val)->o[1] & 0x80) {
  18059. ASN1Free_H323_UU_PDU_h4501SupplementaryService(&(val)->h4501SupplementaryService);
  18060. }
  18061. if ((val)->o[1] & 0x20) {
  18062. ASN1Free_H323_UU_PDU_h245Control(&(val)->h245Control);
  18063. }
  18064. if ((val)->o[1] & 0x10) {
  18065. ASN1Free_H323_UU_PDU_nonStandardControl(&(val)->nonStandardControl);
  18066. }
  18067. }
  18068. }
  18069. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18070. {
  18071. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323pdu))
  18072. return 0;
  18073. if (!ASN1PEREncBoolean(enc, (val)->sent))
  18074. return 0;
  18075. return 1;
  18076. }
  18077. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18078. {
  18079. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323pdu))
  18080. return 0;
  18081. if (!ASN1PERDecBoolean(dec, &(val)->sent))
  18082. return 0;
  18083. return 1;
  18084. }
  18085. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18086. {
  18087. if (val) {
  18088. ASN1Free_H323_UU_PDU(&(val)->h323pdu);
  18089. }
  18090. }
  18091. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18092. {
  18093. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18094. }
  18095. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18096. {
  18097. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(enc, &val->value))
  18098. return 0;
  18099. return 1;
  18100. }
  18101. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18102. {
  18103. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn, sizeof(**val));
  18104. }
  18105. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18106. {
  18107. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(dec, &val->value))
  18108. return 0;
  18109. return 1;
  18110. }
  18111. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18112. {
  18113. if (val) {
  18114. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18115. }
  18116. }
  18117. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18118. {
  18119. if (val) {
  18120. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(&val->value);
  18121. }
  18122. }
  18123. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val)
  18124. {
  18125. if (!ASN1PEREncExtensionBitClear(enc))
  18126. return 0;
  18127. if (!ASN1PEREncBits(enc, 1, (val)->o))
  18128. return 0;
  18129. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323_uu_pdu))
  18130. return 0;
  18131. if ((val)->o[0] & 0x80) {
  18132. if (!ASN1Enc_H323_UserInformation_user_data(enc, &(val)->user_data))
  18133. return 0;
  18134. }
  18135. return 1;
  18136. }
  18137. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val)
  18138. {
  18139. ASN1uint32_t y;
  18140. if (!ASN1PERDecExtensionBit(dec, &y))
  18141. return 0;
  18142. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  18143. return 0;
  18144. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323_uu_pdu))
  18145. return 0;
  18146. if ((val)->o[0] & 0x80) {
  18147. if (!ASN1Dec_H323_UserInformation_user_data(dec, &(val)->user_data))
  18148. return 0;
  18149. }
  18150. if (y) {
  18151. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  18152. return 0;
  18153. }
  18154. return 1;
  18155. }
  18156. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val)
  18157. {
  18158. if (val) {
  18159. ASN1Free_H323_UU_PDU(&(val)->h323_uu_pdu);
  18160. if ((val)->o[0] & 0x80) {
  18161. ASN1Free_H323_UserInformation_user_data(&(val)->user_data);
  18162. }
  18163. }
  18164. }