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

19605 lines
652 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. // SECURITY BUG: 782696
  4261. if ( l >= sizeof( (val)->publicNumberDigits ) )
  4262. {
  4263. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  4264. return 0;
  4265. }
  4266. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->publicNumberDigits, 4, &PublicPartyNumber_publicNumberDigits_StringTable))
  4267. return 0;
  4268. return 1;
  4269. }
  4270. static void ASN1CALL ASN1Free_PublicPartyNumber(PublicPartyNumber *val)
  4271. {
  4272. if (val) {
  4273. }
  4274. }
  4275. static ASN1stringtableentry_t PrivatePartyNumber_privateNumberDigits_StringTableEntries[] = {
  4276. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  4277. { 48, 57, 3 },
  4278. };
  4279. static ASN1stringtable_t PrivatePartyNumber_privateNumberDigits_StringTable = {
  4280. 4, PrivatePartyNumber_privateNumberDigits_StringTableEntries
  4281. };
  4282. static int ASN1CALL ASN1Enc_PrivatePartyNumber(ASN1encoding_t enc, PrivatePartyNumber *val)
  4283. {
  4284. ASN1uint32_t t;
  4285. if (!ASN1Enc_PrivateTypeOfNumber(enc, &(val)->privateTypeOfNumber))
  4286. return 0;
  4287. t = lstrlenA((val)->privateNumberDigits);
  4288. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  4289. return 0;
  4290. ASN1PEREncAlignment(enc);
  4291. if (!ASN1PEREncTableCharString(enc, t, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4292. return 0;
  4293. return 1;
  4294. }
  4295. static int ASN1CALL ASN1Dec_PrivatePartyNumber(ASN1decoding_t dec, PrivatePartyNumber *val)
  4296. {
  4297. ASN1uint32_t l;
  4298. if (!ASN1Dec_PrivateTypeOfNumber(dec, &(val)->privateTypeOfNumber))
  4299. return 0;
  4300. if (!ASN1PERDecU32Val(dec, 7, &l))
  4301. return 0;
  4302. l += 1;
  4303. ASN1PERDecAlignment(dec);
  4304. // SECURITY BUG: 782696
  4305. if ( l >= sizeof( (val)->privateNumberDigits ) )
  4306. {
  4307. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  4308. return 0;
  4309. }
  4310. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->privateNumberDigits, 4, &PrivatePartyNumber_privateNumberDigits_StringTable))
  4311. return 0;
  4312. return 1;
  4313. }
  4314. static void ASN1CALL ASN1Free_PrivatePartyNumber(PrivatePartyNumber *val)
  4315. {
  4316. if (val) {
  4317. }
  4318. }
  4319. static int ASN1CALL ASN1Enc_SecurityServiceMode(ASN1encoding_t enc, SecurityServiceMode *val)
  4320. {
  4321. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4322. return 0;
  4323. switch ((val)->choice) {
  4324. case 1:
  4325. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4326. return 0;
  4327. break;
  4328. case 2:
  4329. break;
  4330. case 3:
  4331. break;
  4332. default:
  4333. /* impossible */
  4334. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4335. return 0;
  4336. }
  4337. return 1;
  4338. }
  4339. static int ASN1CALL ASN1Dec_SecurityServiceMode(ASN1decoding_t dec, SecurityServiceMode *val)
  4340. {
  4341. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4342. return 0;
  4343. switch ((val)->choice) {
  4344. case 1:
  4345. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4346. return 0;
  4347. break;
  4348. case 2:
  4349. break;
  4350. case 3:
  4351. break;
  4352. case 0:
  4353. /* extension case */
  4354. if (!ASN1PERDecSkipFragmented(dec, 8))
  4355. return 0;
  4356. break;
  4357. default:
  4358. /* impossible */
  4359. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4360. return 0;
  4361. }
  4362. return 1;
  4363. }
  4364. static void ASN1CALL ASN1Free_SecurityServiceMode(SecurityServiceMode *val)
  4365. {
  4366. if (val) {
  4367. switch ((val)->choice) {
  4368. case 1:
  4369. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4370. break;
  4371. }
  4372. }
  4373. }
  4374. static int ASN1CALL ASN1Enc_SecurityCapabilities(ASN1encoding_t enc, SecurityCapabilities *val)
  4375. {
  4376. if (!ASN1PEREncExtensionBitClear(enc))
  4377. return 0;
  4378. if (!ASN1PEREncBits(enc, 1, (val)->o))
  4379. return 0;
  4380. if ((val)->o[0] & 0x80) {
  4381. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandard))
  4382. return 0;
  4383. }
  4384. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->encryption))
  4385. return 0;
  4386. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->authenticaton))
  4387. return 0;
  4388. if (!ASN1Enc_SecurityServiceMode(enc, &(val)->integrity))
  4389. return 0;
  4390. return 1;
  4391. }
  4392. static int ASN1CALL ASN1Dec_SecurityCapabilities(ASN1decoding_t dec, SecurityCapabilities *val)
  4393. {
  4394. ASN1uint32_t y;
  4395. if (!ASN1PERDecExtensionBit(dec, &y))
  4396. return 0;
  4397. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  4398. return 0;
  4399. if ((val)->o[0] & 0x80) {
  4400. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandard))
  4401. return 0;
  4402. }
  4403. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->encryption))
  4404. return 0;
  4405. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->authenticaton))
  4406. return 0;
  4407. if (!ASN1Dec_SecurityServiceMode(dec, &(val)->integrity))
  4408. return 0;
  4409. if (y) {
  4410. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4411. return 0;
  4412. }
  4413. return 1;
  4414. }
  4415. static void ASN1CALL ASN1Free_SecurityCapabilities(SecurityCapabilities *val)
  4416. {
  4417. if (val) {
  4418. if ((val)->o[0] & 0x80) {
  4419. ASN1Free_H225NonStandardParameter(&(val)->nonStandard);
  4420. }
  4421. ASN1Free_SecurityServiceMode(&(val)->encryption);
  4422. ASN1Free_SecurityServiceMode(&(val)->authenticaton);
  4423. ASN1Free_SecurityServiceMode(&(val)->integrity);
  4424. }
  4425. }
  4426. static int ASN1CALL ASN1Enc_H245Security(ASN1encoding_t enc, H245Security *val)
  4427. {
  4428. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4429. return 0;
  4430. switch ((val)->choice) {
  4431. case 1:
  4432. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4433. return 0;
  4434. break;
  4435. case 2:
  4436. break;
  4437. case 3:
  4438. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.tls))
  4439. return 0;
  4440. break;
  4441. case 4:
  4442. if (!ASN1Enc_SecurityCapabilities(enc, &(val)->u.ipsec))
  4443. return 0;
  4444. break;
  4445. default:
  4446. /* impossible */
  4447. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4448. return 0;
  4449. }
  4450. return 1;
  4451. }
  4452. static int ASN1CALL ASN1Dec_H245Security(ASN1decoding_t dec, H245Security *val)
  4453. {
  4454. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4455. return 0;
  4456. switch ((val)->choice) {
  4457. case 1:
  4458. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4459. return 0;
  4460. break;
  4461. case 2:
  4462. break;
  4463. case 3:
  4464. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.tls))
  4465. return 0;
  4466. break;
  4467. case 4:
  4468. if (!ASN1Dec_SecurityCapabilities(dec, &(val)->u.ipsec))
  4469. return 0;
  4470. break;
  4471. case 0:
  4472. /* extension case */
  4473. if (!ASN1PERDecSkipFragmented(dec, 8))
  4474. return 0;
  4475. break;
  4476. default:
  4477. /* impossible */
  4478. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4479. return 0;
  4480. }
  4481. return 1;
  4482. }
  4483. static void ASN1CALL ASN1Free_H245Security(H245Security *val)
  4484. {
  4485. if (val) {
  4486. switch ((val)->choice) {
  4487. case 1:
  4488. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4489. break;
  4490. case 3:
  4491. ASN1Free_SecurityCapabilities(&(val)->u.tls);
  4492. break;
  4493. case 4:
  4494. ASN1Free_SecurityCapabilities(&(val)->u.ipsec);
  4495. break;
  4496. }
  4497. }
  4498. }
  4499. static int ASN1CALL ASN1Enc_QseriesOptions(ASN1encoding_t enc, QseriesOptions *val)
  4500. {
  4501. if (!ASN1PEREncExtensionBitClear(enc))
  4502. return 0;
  4503. if (!ASN1PEREncBoolean(enc, (val)->q932Full))
  4504. return 0;
  4505. if (!ASN1PEREncBoolean(enc, (val)->q951Full))
  4506. return 0;
  4507. if (!ASN1PEREncBoolean(enc, (val)->q952Full))
  4508. return 0;
  4509. if (!ASN1PEREncBoolean(enc, (val)->q953Full))
  4510. return 0;
  4511. if (!ASN1PEREncBoolean(enc, (val)->q955Full))
  4512. return 0;
  4513. if (!ASN1PEREncBoolean(enc, (val)->q956Full))
  4514. return 0;
  4515. if (!ASN1PEREncBoolean(enc, (val)->q957Full))
  4516. return 0;
  4517. if (!ASN1Enc_Q954Details(enc, &(val)->q954Info))
  4518. return 0;
  4519. return 1;
  4520. }
  4521. static int ASN1CALL ASN1Dec_QseriesOptions(ASN1decoding_t dec, QseriesOptions *val)
  4522. {
  4523. ASN1uint32_t y;
  4524. if (!ASN1PERDecExtensionBit(dec, &y))
  4525. return 0;
  4526. if (!ASN1PERDecBoolean(dec, &(val)->q932Full))
  4527. return 0;
  4528. if (!ASN1PERDecBoolean(dec, &(val)->q951Full))
  4529. return 0;
  4530. if (!ASN1PERDecBoolean(dec, &(val)->q952Full))
  4531. return 0;
  4532. if (!ASN1PERDecBoolean(dec, &(val)->q953Full))
  4533. return 0;
  4534. if (!ASN1PERDecBoolean(dec, &(val)->q955Full))
  4535. return 0;
  4536. if (!ASN1PERDecBoolean(dec, &(val)->q956Full))
  4537. return 0;
  4538. if (!ASN1PERDecBoolean(dec, &(val)->q957Full))
  4539. return 0;
  4540. if (!ASN1Dec_Q954Details(dec, &(val)->q954Info))
  4541. return 0;
  4542. if (y) {
  4543. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4544. return 0;
  4545. }
  4546. return 1;
  4547. }
  4548. static int ASN1CALL ASN1Enc_EncryptIntAlg(ASN1encoding_t enc, EncryptIntAlg *val)
  4549. {
  4550. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 1))
  4551. return 0;
  4552. switch ((val)->choice) {
  4553. case 1:
  4554. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4555. return 0;
  4556. break;
  4557. case 2:
  4558. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.isoAlgorithm))
  4559. return 0;
  4560. break;
  4561. default:
  4562. /* impossible */
  4563. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4564. return 0;
  4565. }
  4566. return 1;
  4567. }
  4568. static int ASN1CALL ASN1Dec_EncryptIntAlg(ASN1decoding_t dec, EncryptIntAlg *val)
  4569. {
  4570. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 1))
  4571. return 0;
  4572. switch ((val)->choice) {
  4573. case 1:
  4574. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4575. return 0;
  4576. break;
  4577. case 2:
  4578. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.isoAlgorithm))
  4579. return 0;
  4580. break;
  4581. case 0:
  4582. /* extension case */
  4583. if (!ASN1PERDecSkipFragmented(dec, 8))
  4584. return 0;
  4585. break;
  4586. default:
  4587. /* impossible */
  4588. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4589. return 0;
  4590. }
  4591. return 1;
  4592. }
  4593. static void ASN1CALL ASN1Free_EncryptIntAlg(EncryptIntAlg *val)
  4594. {
  4595. if (val) {
  4596. switch ((val)->choice) {
  4597. case 1:
  4598. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4599. break;
  4600. case 2:
  4601. ASN1objectidentifier_free(&(val)->u.isoAlgorithm);
  4602. break;
  4603. }
  4604. }
  4605. }
  4606. static int ASN1CALL ASN1Enc_NonIsoIntegrityMechanism(ASN1encoding_t enc, NonIsoIntegrityMechanism *val)
  4607. {
  4608. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4609. return 0;
  4610. switch ((val)->choice) {
  4611. case 1:
  4612. break;
  4613. case 2:
  4614. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_s))
  4615. return 0;
  4616. break;
  4617. case 3:
  4618. if (!ASN1Enc_EncryptIntAlg(enc, &(val)->u.hMAC_iso10118_2_l))
  4619. return 0;
  4620. break;
  4621. case 4:
  4622. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.hMAC_iso10118_3))
  4623. return 0;
  4624. break;
  4625. default:
  4626. /* impossible */
  4627. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4628. return 0;
  4629. }
  4630. return 1;
  4631. }
  4632. static int ASN1CALL ASN1Dec_NonIsoIntegrityMechanism(ASN1decoding_t dec, NonIsoIntegrityMechanism *val)
  4633. {
  4634. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4635. return 0;
  4636. switch ((val)->choice) {
  4637. case 1:
  4638. break;
  4639. case 2:
  4640. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_s))
  4641. return 0;
  4642. break;
  4643. case 3:
  4644. if (!ASN1Dec_EncryptIntAlg(dec, &(val)->u.hMAC_iso10118_2_l))
  4645. return 0;
  4646. break;
  4647. case 4:
  4648. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.hMAC_iso10118_3))
  4649. return 0;
  4650. break;
  4651. case 0:
  4652. /* extension case */
  4653. if (!ASN1PERDecSkipFragmented(dec, 8))
  4654. return 0;
  4655. break;
  4656. default:
  4657. /* impossible */
  4658. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4659. return 0;
  4660. }
  4661. return 1;
  4662. }
  4663. static void ASN1CALL ASN1Free_NonIsoIntegrityMechanism(NonIsoIntegrityMechanism *val)
  4664. {
  4665. if (val) {
  4666. switch ((val)->choice) {
  4667. case 2:
  4668. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_s);
  4669. break;
  4670. case 3:
  4671. ASN1Free_EncryptIntAlg(&(val)->u.hMAC_iso10118_2_l);
  4672. break;
  4673. case 4:
  4674. ASN1objectidentifier_free(&(val)->u.hMAC_iso10118_3);
  4675. break;
  4676. }
  4677. }
  4678. }
  4679. static int ASN1CALL ASN1Enc_IntegrityMechanism(ASN1encoding_t enc, IntegrityMechanism *val)
  4680. {
  4681. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  4682. return 0;
  4683. switch ((val)->choice) {
  4684. case 1:
  4685. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandard))
  4686. return 0;
  4687. break;
  4688. case 2:
  4689. break;
  4690. case 3:
  4691. if (!ASN1PEREncObjectIdentifier(enc, &(val)->u.iso9797))
  4692. return 0;
  4693. break;
  4694. case 4:
  4695. if (!ASN1Enc_NonIsoIntegrityMechanism(enc, &(val)->u.nonIsoIM))
  4696. return 0;
  4697. break;
  4698. default:
  4699. /* impossible */
  4700. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  4701. return 0;
  4702. }
  4703. return 1;
  4704. }
  4705. static int ASN1CALL ASN1Dec_IntegrityMechanism(ASN1decoding_t dec, IntegrityMechanism *val)
  4706. {
  4707. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  4708. return 0;
  4709. switch ((val)->choice) {
  4710. case 1:
  4711. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandard))
  4712. return 0;
  4713. break;
  4714. case 2:
  4715. break;
  4716. case 3:
  4717. if (!ASN1PERDecObjectIdentifier(dec, &(val)->u.iso9797))
  4718. return 0;
  4719. break;
  4720. case 4:
  4721. if (!ASN1Dec_NonIsoIntegrityMechanism(dec, &(val)->u.nonIsoIM))
  4722. return 0;
  4723. break;
  4724. case 0:
  4725. /* extension case */
  4726. if (!ASN1PERDecSkipFragmented(dec, 8))
  4727. return 0;
  4728. break;
  4729. default:
  4730. /* impossible */
  4731. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  4732. return 0;
  4733. }
  4734. return 1;
  4735. }
  4736. static void ASN1CALL ASN1Free_IntegrityMechanism(IntegrityMechanism *val)
  4737. {
  4738. if (val) {
  4739. switch ((val)->choice) {
  4740. case 1:
  4741. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandard);
  4742. break;
  4743. case 3:
  4744. ASN1objectidentifier_free(&(val)->u.iso9797);
  4745. break;
  4746. case 4:
  4747. ASN1Free_NonIsoIntegrityMechanism(&(val)->u.nonIsoIM);
  4748. break;
  4749. }
  4750. }
  4751. }
  4752. static int ASN1CALL ASN1Enc_EncodedFastStartToken(ASN1encoding_t enc, EncodedFastStartToken *val)
  4753. {
  4754. if (!ASN1PEREncObjectIdentifier(enc, &(val)->id))
  4755. return 0;
  4756. if (!ASN1Enc_FastStartToken(enc, &(val)->type))
  4757. return 0;
  4758. return 1;
  4759. }
  4760. static int ASN1CALL ASN1Dec_EncodedFastStartToken(ASN1decoding_t dec, EncodedFastStartToken *val)
  4761. {
  4762. if (!ASN1PERDecObjectIdentifier(dec, &(val)->id))
  4763. return 0;
  4764. if (!ASN1Dec_FastStartToken(dec, &(val)->type))
  4765. return 0;
  4766. return 1;
  4767. }
  4768. static void ASN1CALL ASN1Free_EncodedFastStartToken(EncodedFastStartToken *val)
  4769. {
  4770. if (val) {
  4771. ASN1objectidentifier_free(&(val)->id);
  4772. ASN1Free_FastStartToken(&(val)->type);
  4773. }
  4774. }
  4775. static int ASN1CALL ASN1Enc_DataRate(ASN1encoding_t enc, DataRate *val)
  4776. {
  4777. ASN1uint32_t l;
  4778. if (!ASN1PEREncExtensionBitClear(enc))
  4779. return 0;
  4780. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4781. return 0;
  4782. if ((val)->o[0] & 0x80) {
  4783. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4784. return 0;
  4785. }
  4786. l = ASN1uint32_uoctets((val)->channelRate);
  4787. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  4788. return 0;
  4789. ASN1PEREncAlignment(enc);
  4790. if (!ASN1PEREncBitVal(enc, l * 8, (val)->channelRate))
  4791. return 0;
  4792. if ((val)->o[0] & 0x40) {
  4793. ASN1PEREncAlignment(enc);
  4794. if (!ASN1PEREncBitVal(enc, 8, (val)->channelMultiplier - 1))
  4795. return 0;
  4796. }
  4797. return 1;
  4798. }
  4799. static int ASN1CALL ASN1Dec_DataRate(ASN1decoding_t dec, DataRate *val)
  4800. {
  4801. ASN1uint32_t y;
  4802. ASN1uint32_t l;
  4803. if (!ASN1PERDecExtensionBit(dec, &y))
  4804. return 0;
  4805. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4806. return 0;
  4807. if ((val)->o[0] & 0x80) {
  4808. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4809. return 0;
  4810. }
  4811. if (!ASN1PERDecU32Val(dec, 2, &l))
  4812. return 0;
  4813. l += 1;
  4814. ASN1PERDecAlignment(dec);
  4815. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->channelRate))
  4816. return 0;
  4817. if ((val)->o[0] & 0x40) {
  4818. ASN1PERDecAlignment(dec);
  4819. if (!ASN1PERDecU16Val(dec, 8, &(val)->channelMultiplier))
  4820. return 0;
  4821. (val)->channelMultiplier += 1;
  4822. }
  4823. if (y) {
  4824. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  4825. return 0;
  4826. }
  4827. return 1;
  4828. }
  4829. static void ASN1CALL ASN1Free_DataRate(DataRate *val)
  4830. {
  4831. if (val) {
  4832. if ((val)->o[0] & 0x80) {
  4833. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4834. }
  4835. }
  4836. }
  4837. static int ASN1CALL ASN1Enc_GatekeeperReject(ASN1encoding_t enc, GatekeeperReject *val)
  4838. {
  4839. ASN1uint32_t y;
  4840. ASN1encoding_t ee;
  4841. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  4842. if (!ASN1PEREncBitVal(enc, 1, y))
  4843. return 0;
  4844. if (!ASN1PEREncBits(enc, 2, (val)->o))
  4845. return 0;
  4846. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  4847. return 0;
  4848. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  4849. return 0;
  4850. if ((val)->o[0] & 0x80) {
  4851. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  4852. return 0;
  4853. }
  4854. if ((val)->o[0] & 0x40) {
  4855. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  4856. return 0;
  4857. ASN1PEREncAlignment(enc);
  4858. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  4859. return 0;
  4860. }
  4861. if (!ASN1Enc_GatekeeperRejectReason(enc, &(val)->rejectReason))
  4862. return 0;
  4863. if (y) {
  4864. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  4865. return 0;
  4866. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  4867. return 0;
  4868. if ((val)->o[1] & 0x80) {
  4869. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  4870. return 0;
  4871. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4872. return 0;
  4873. }
  4874. if ((val)->o[1] & 0x40) {
  4875. if (!ASN1Enc_GatekeeperReject_tokens(ee, &(val)->tokens))
  4876. return 0;
  4877. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4878. return 0;
  4879. }
  4880. if ((val)->o[1] & 0x20) {
  4881. if (!ASN1Enc_GatekeeperReject_cryptoTokens(ee, &(val)->cryptoTokens))
  4882. return 0;
  4883. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4884. return 0;
  4885. }
  4886. if ((val)->o[1] & 0x10) {
  4887. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  4888. return 0;
  4889. if (!ASN1PEREncFlushFragmentedToParent(ee))
  4890. return 0;
  4891. }
  4892. ASN1_CloseEncoder2(ee);
  4893. }
  4894. return 1;
  4895. }
  4896. static int ASN1CALL ASN1Dec_GatekeeperReject(ASN1decoding_t dec, GatekeeperReject *val)
  4897. {
  4898. ASN1uint32_t y;
  4899. ASN1decoding_t dd;
  4900. ASN1octet_t *db;
  4901. ASN1uint32_t ds;
  4902. ASN1uint32_t i;
  4903. ASN1uint32_t e;
  4904. if (!ASN1PERDecExtensionBit(dec, &y))
  4905. return 0;
  4906. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  4907. return 0;
  4908. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  4909. return 0;
  4910. (val)->requestSeqNum += 1;
  4911. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  4912. return 0;
  4913. if ((val)->o[0] & 0x80) {
  4914. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  4915. return 0;
  4916. }
  4917. if ((val)->o[0] & 0x40) {
  4918. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  4919. return 0;
  4920. ((val)->gatekeeperIdentifier).length += 1;
  4921. ASN1PERDecAlignment(dec);
  4922. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  4923. return 0;
  4924. }
  4925. if (!ASN1Dec_GatekeeperRejectReason(dec, &(val)->rejectReason))
  4926. return 0;
  4927. if (!y) {
  4928. ZeroMemory((val)->o + 1, 1);
  4929. } else {
  4930. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  4931. return 0;
  4932. if ((val)->o[1] & 0x80) {
  4933. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4934. return 0;
  4935. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4936. return 0;
  4937. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  4938. return 0;
  4939. ASN1_CloseDecoder(dd);
  4940. ASN1Free(db);
  4941. }
  4942. if ((val)->o[1] & 0x40) {
  4943. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4944. return 0;
  4945. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4946. return 0;
  4947. if (!ASN1Dec_GatekeeperReject_tokens(dd, &(val)->tokens))
  4948. return 0;
  4949. ASN1_CloseDecoder(dd);
  4950. ASN1Free(db);
  4951. }
  4952. if ((val)->o[1] & 0x20) {
  4953. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4954. return 0;
  4955. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4956. return 0;
  4957. if (!ASN1Dec_GatekeeperReject_cryptoTokens(dd, &(val)->cryptoTokens))
  4958. return 0;
  4959. ASN1_CloseDecoder(dd);
  4960. ASN1Free(db);
  4961. }
  4962. if ((val)->o[1] & 0x10) {
  4963. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  4964. return 0;
  4965. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  4966. return 0;
  4967. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  4968. return 0;
  4969. ASN1_CloseDecoder(dd);
  4970. ASN1Free(db);
  4971. }
  4972. for (i = 0; i < e; i++) {
  4973. if (!ASN1PERDecSkipFragmented(dec, 8))
  4974. return 0;
  4975. }
  4976. }
  4977. return 1;
  4978. }
  4979. static void ASN1CALL ASN1Free_GatekeeperReject(GatekeeperReject *val)
  4980. {
  4981. if (val) {
  4982. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  4983. if ((val)->o[0] & 0x80) {
  4984. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  4985. }
  4986. if ((val)->o[0] & 0x40) {
  4987. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  4988. }
  4989. if ((val)->o[1] & 0x80) {
  4990. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  4991. }
  4992. if ((val)->o[1] & 0x40) {
  4993. ASN1Free_GatekeeperReject_tokens(&(val)->tokens);
  4994. }
  4995. if ((val)->o[1] & 0x20) {
  4996. ASN1Free_GatekeeperReject_cryptoTokens(&(val)->cryptoTokens);
  4997. }
  4998. if ((val)->o[1] & 0x10) {
  4999. ASN1Free_ICV(&(val)->integrityCheckValue);
  5000. }
  5001. }
  5002. }
  5003. static int ASN1CALL ASN1Enc_RegistrationConfirm(ASN1encoding_t enc, RegistrationConfirm *val)
  5004. {
  5005. ASN1octet_t o[2];
  5006. ASN1uint32_t y;
  5007. ASN1encoding_t ee;
  5008. ASN1uint32_t l;
  5009. CopyMemory(o, (val)->o, 2);
  5010. o[1] |= 0x4;
  5011. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  5012. if (!ASN1PEREncBitVal(enc, 1, y))
  5013. return 0;
  5014. if (!ASN1PEREncBits(enc, 3, o))
  5015. return 0;
  5016. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5017. return 0;
  5018. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5019. return 0;
  5020. if (o[0] & 0x80) {
  5021. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5022. return 0;
  5023. }
  5024. if (!ASN1Enc_RegistrationConfirm_callSignalAddress(enc, &(val)->callSignalAddress))
  5025. return 0;
  5026. if (o[0] & 0x40) {
  5027. if (!ASN1Enc_RegistrationConfirm_terminalAlias(enc, &(val)->terminalAlias))
  5028. return 0;
  5029. }
  5030. if (o[0] & 0x20) {
  5031. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5032. return 0;
  5033. ASN1PEREncAlignment(enc);
  5034. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5035. return 0;
  5036. }
  5037. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5038. return 0;
  5039. ASN1PEREncAlignment(enc);
  5040. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5041. return 0;
  5042. if (y) {
  5043. if (!ASN1PEREncNormallySmallBits(enc, 7, o + 1))
  5044. return 0;
  5045. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5046. return 0;
  5047. if (o[1] & 0x80) {
  5048. if (!ASN1Enc_RegistrationConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  5049. return 0;
  5050. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5051. return 0;
  5052. }
  5053. if (o[1] & 0x40) {
  5054. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  5055. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  5056. return 0;
  5057. ASN1PEREncAlignment(ee);
  5058. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  5059. return 0;
  5060. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5061. return 0;
  5062. }
  5063. if (o[1] & 0x20) {
  5064. if (!ASN1Enc_RegistrationConfirm_tokens(ee, &(val)->tokens))
  5065. return 0;
  5066. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5067. return 0;
  5068. }
  5069. if (o[1] & 0x10) {
  5070. if (!ASN1Enc_RegistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5071. return 0;
  5072. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5073. return 0;
  5074. }
  5075. if (o[1] & 0x8) {
  5076. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5077. return 0;
  5078. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5079. return 0;
  5080. }
  5081. if (o[1] & 0x4) {
  5082. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  5083. return 0;
  5084. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5085. return 0;
  5086. }
  5087. if (o[1] & 0x2) {
  5088. if (!ASN1Enc_RegistrationConfirm_preGrantedARQ(ee, &(val)->preGrantedARQ))
  5089. return 0;
  5090. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5091. return 0;
  5092. }
  5093. ASN1_CloseEncoder2(ee);
  5094. }
  5095. return 1;
  5096. }
  5097. static int ASN1CALL ASN1Dec_RegistrationConfirm(ASN1decoding_t dec, RegistrationConfirm *val)
  5098. {
  5099. ASN1uint32_t y;
  5100. ASN1decoding_t dd;
  5101. ASN1octet_t *db;
  5102. ASN1uint32_t ds;
  5103. ASN1uint32_t l;
  5104. ASN1uint32_t i;
  5105. ASN1uint32_t e;
  5106. if (!ASN1PERDecExtensionBit(dec, &y))
  5107. return 0;
  5108. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5109. return 0;
  5110. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5111. return 0;
  5112. (val)->requestSeqNum += 1;
  5113. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5114. return 0;
  5115. if ((val)->o[0] & 0x80) {
  5116. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5117. return 0;
  5118. }
  5119. if (!ASN1Dec_RegistrationConfirm_callSignalAddress(dec, &(val)->callSignalAddress))
  5120. return 0;
  5121. if ((val)->o[0] & 0x40) {
  5122. if (!ASN1Dec_RegistrationConfirm_terminalAlias(dec, &(val)->terminalAlias))
  5123. return 0;
  5124. }
  5125. if ((val)->o[0] & 0x20) {
  5126. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5127. return 0;
  5128. ((val)->gatekeeperIdentifier).length += 1;
  5129. ASN1PERDecAlignment(dec);
  5130. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5131. return 0;
  5132. }
  5133. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5134. return 0;
  5135. ((val)->endpointIdentifier).length += 1;
  5136. ASN1PERDecAlignment(dec);
  5137. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5138. return 0;
  5139. if (!y) {
  5140. ZeroMemory((val)->o + 1, 1);
  5141. } else {
  5142. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  5143. return 0;
  5144. if ((val)->o[1] & 0x80) {
  5145. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5146. return 0;
  5147. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5148. return 0;
  5149. if (!ASN1Dec_RegistrationConfirm_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  5150. return 0;
  5151. ASN1_CloseDecoder(dd);
  5152. ASN1Free(db);
  5153. }
  5154. if ((val)->o[1] & 0x40) {
  5155. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5156. return 0;
  5157. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5158. return 0;
  5159. if (!ASN1PERDecU32Val(dd, 2, &l))
  5160. return 0;
  5161. l += 1;
  5162. ASN1PERDecAlignment(dd);
  5163. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  5164. return 0;
  5165. (val)->timeToLive += 1;
  5166. ASN1_CloseDecoder(dd);
  5167. ASN1Free(db);
  5168. }
  5169. if ((val)->o[1] & 0x20) {
  5170. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5171. return 0;
  5172. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5173. return 0;
  5174. if (!ASN1Dec_RegistrationConfirm_tokens(dd, &(val)->tokens))
  5175. return 0;
  5176. ASN1_CloseDecoder(dd);
  5177. ASN1Free(db);
  5178. }
  5179. if ((val)->o[1] & 0x10) {
  5180. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5181. return 0;
  5182. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5183. return 0;
  5184. if (!ASN1Dec_RegistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5185. return 0;
  5186. ASN1_CloseDecoder(dd);
  5187. ASN1Free(db);
  5188. }
  5189. if ((val)->o[1] & 0x8) {
  5190. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5191. return 0;
  5192. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5193. return 0;
  5194. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5195. return 0;
  5196. ASN1_CloseDecoder(dd);
  5197. ASN1Free(db);
  5198. }
  5199. if ((val)->o[1] & 0x4) {
  5200. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5201. return 0;
  5202. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5203. return 0;
  5204. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  5205. return 0;
  5206. ASN1_CloseDecoder(dd);
  5207. ASN1Free(db);
  5208. }
  5209. if ((val)->o[1] & 0x2) {
  5210. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5211. return 0;
  5212. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5213. return 0;
  5214. if (!ASN1Dec_RegistrationConfirm_preGrantedARQ(dd, &(val)->preGrantedARQ))
  5215. return 0;
  5216. ASN1_CloseDecoder(dd);
  5217. ASN1Free(db);
  5218. }
  5219. for (i = 0; i < e; i++) {
  5220. if (!ASN1PERDecSkipFragmented(dec, 8))
  5221. return 0;
  5222. }
  5223. }
  5224. return 1;
  5225. }
  5226. static void ASN1CALL ASN1Free_RegistrationConfirm(RegistrationConfirm *val)
  5227. {
  5228. if (val) {
  5229. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5230. if ((val)->o[0] & 0x80) {
  5231. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5232. }
  5233. ASN1Free_RegistrationConfirm_callSignalAddress(&(val)->callSignalAddress);
  5234. if ((val)->o[0] & 0x40) {
  5235. ASN1Free_RegistrationConfirm_terminalAlias(&(val)->terminalAlias);
  5236. }
  5237. if ((val)->o[0] & 0x20) {
  5238. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5239. }
  5240. ASN1char16string_free(&(val)->endpointIdentifier);
  5241. if ((val)->o[1] & 0x80) {
  5242. ASN1Free_RegistrationConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  5243. }
  5244. if ((val)->o[1] & 0x20) {
  5245. ASN1Free_RegistrationConfirm_tokens(&(val)->tokens);
  5246. }
  5247. if ((val)->o[1] & 0x10) {
  5248. ASN1Free_RegistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5249. }
  5250. if ((val)->o[1] & 0x8) {
  5251. ASN1Free_ICV(&(val)->integrityCheckValue);
  5252. }
  5253. }
  5254. }
  5255. static int ASN1CALL ASN1Enc_RegistrationReject(ASN1encoding_t enc, RegistrationReject *val)
  5256. {
  5257. ASN1uint32_t y;
  5258. ASN1encoding_t ee;
  5259. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5260. if (!ASN1PEREncBitVal(enc, 1, y))
  5261. return 0;
  5262. if (!ASN1PEREncBits(enc, 2, (val)->o))
  5263. return 0;
  5264. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5265. return 0;
  5266. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  5267. return 0;
  5268. if ((val)->o[0] & 0x80) {
  5269. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5270. return 0;
  5271. }
  5272. if (!ASN1Enc_RegistrationRejectReason(enc, &(val)->rejectReason))
  5273. return 0;
  5274. if ((val)->o[0] & 0x40) {
  5275. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  5276. return 0;
  5277. ASN1PEREncAlignment(enc);
  5278. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5279. return 0;
  5280. }
  5281. if (y) {
  5282. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5283. return 0;
  5284. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5285. return 0;
  5286. if ((val)->o[1] & 0x80) {
  5287. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5288. return 0;
  5289. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5290. return 0;
  5291. }
  5292. if ((val)->o[1] & 0x40) {
  5293. if (!ASN1Enc_RegistrationReject_tokens(ee, &(val)->tokens))
  5294. return 0;
  5295. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5296. return 0;
  5297. }
  5298. if ((val)->o[1] & 0x20) {
  5299. if (!ASN1Enc_RegistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5300. return 0;
  5301. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5302. return 0;
  5303. }
  5304. if ((val)->o[1] & 0x10) {
  5305. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5306. return 0;
  5307. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5308. return 0;
  5309. }
  5310. ASN1_CloseEncoder2(ee);
  5311. }
  5312. return 1;
  5313. }
  5314. static int ASN1CALL ASN1Dec_RegistrationReject(ASN1decoding_t dec, RegistrationReject *val)
  5315. {
  5316. ASN1uint32_t y;
  5317. ASN1decoding_t dd;
  5318. ASN1octet_t *db;
  5319. ASN1uint32_t ds;
  5320. ASN1uint32_t i;
  5321. ASN1uint32_t e;
  5322. if (!ASN1PERDecExtensionBit(dec, &y))
  5323. return 0;
  5324. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  5325. return 0;
  5326. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5327. return 0;
  5328. (val)->requestSeqNum += 1;
  5329. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  5330. return 0;
  5331. if ((val)->o[0] & 0x80) {
  5332. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5333. return 0;
  5334. }
  5335. if (!ASN1Dec_RegistrationRejectReason(dec, &(val)->rejectReason))
  5336. return 0;
  5337. if ((val)->o[0] & 0x40) {
  5338. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  5339. return 0;
  5340. ((val)->gatekeeperIdentifier).length += 1;
  5341. ASN1PERDecAlignment(dec);
  5342. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5343. return 0;
  5344. }
  5345. if (!y) {
  5346. ZeroMemory((val)->o + 1, 1);
  5347. } else {
  5348. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5349. return 0;
  5350. if ((val)->o[1] & 0x80) {
  5351. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5352. return 0;
  5353. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5354. return 0;
  5355. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5356. return 0;
  5357. ASN1_CloseDecoder(dd);
  5358. ASN1Free(db);
  5359. }
  5360. if ((val)->o[1] & 0x40) {
  5361. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5362. return 0;
  5363. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5364. return 0;
  5365. if (!ASN1Dec_RegistrationReject_tokens(dd, &(val)->tokens))
  5366. return 0;
  5367. ASN1_CloseDecoder(dd);
  5368. ASN1Free(db);
  5369. }
  5370. if ((val)->o[1] & 0x20) {
  5371. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5372. return 0;
  5373. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5374. return 0;
  5375. if (!ASN1Dec_RegistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5376. return 0;
  5377. ASN1_CloseDecoder(dd);
  5378. ASN1Free(db);
  5379. }
  5380. if ((val)->o[1] & 0x10) {
  5381. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5382. return 0;
  5383. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5384. return 0;
  5385. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5386. return 0;
  5387. ASN1_CloseDecoder(dd);
  5388. ASN1Free(db);
  5389. }
  5390. for (i = 0; i < e; i++) {
  5391. if (!ASN1PERDecSkipFragmented(dec, 8))
  5392. return 0;
  5393. }
  5394. }
  5395. return 1;
  5396. }
  5397. static void ASN1CALL ASN1Free_RegistrationReject(RegistrationReject *val)
  5398. {
  5399. if (val) {
  5400. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  5401. if ((val)->o[0] & 0x80) {
  5402. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5403. }
  5404. ASN1Free_RegistrationRejectReason(&(val)->rejectReason);
  5405. if ((val)->o[0] & 0x40) {
  5406. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5407. }
  5408. if ((val)->o[1] & 0x80) {
  5409. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5410. }
  5411. if ((val)->o[1] & 0x40) {
  5412. ASN1Free_RegistrationReject_tokens(&(val)->tokens);
  5413. }
  5414. if ((val)->o[1] & 0x20) {
  5415. ASN1Free_RegistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5416. }
  5417. if ((val)->o[1] & 0x10) {
  5418. ASN1Free_ICV(&(val)->integrityCheckValue);
  5419. }
  5420. }
  5421. }
  5422. static int ASN1CALL ASN1Enc_UnregistrationRequest(ASN1encoding_t enc, UnregistrationRequest *val)
  5423. {
  5424. ASN1uint32_t y;
  5425. ASN1encoding_t ee;
  5426. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  5427. if (!ASN1PEREncBitVal(enc, 1, y))
  5428. return 0;
  5429. if (!ASN1PEREncBits(enc, 3, (val)->o))
  5430. return 0;
  5431. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5432. return 0;
  5433. if (!ASN1Enc_UnregistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  5434. return 0;
  5435. if ((val)->o[0] & 0x80) {
  5436. if (!ASN1Enc_UnregistrationRequest_endpointAlias(enc, &(val)->endpointAlias))
  5437. return 0;
  5438. }
  5439. if ((val)->o[0] & 0x40) {
  5440. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5441. return 0;
  5442. }
  5443. if ((val)->o[0] & 0x20) {
  5444. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  5445. return 0;
  5446. ASN1PEREncAlignment(enc);
  5447. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  5448. return 0;
  5449. }
  5450. if (y) {
  5451. if (!ASN1PEREncNormallySmallBits(enc, 6, (val)->o + 1))
  5452. return 0;
  5453. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5454. return 0;
  5455. if ((val)->o[1] & 0x80) {
  5456. if (!ASN1Enc_UnregistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  5457. return 0;
  5458. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5459. return 0;
  5460. }
  5461. if ((val)->o[1] & 0x40) {
  5462. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  5463. return 0;
  5464. ASN1PEREncAlignment(ee);
  5465. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  5466. return 0;
  5467. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5468. return 0;
  5469. }
  5470. if ((val)->o[1] & 0x20) {
  5471. if (!ASN1Enc_UnregistrationRequest_tokens(ee, &(val)->tokens))
  5472. return 0;
  5473. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5474. return 0;
  5475. }
  5476. if ((val)->o[1] & 0x10) {
  5477. if (!ASN1Enc_UnregistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  5478. return 0;
  5479. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5480. return 0;
  5481. }
  5482. if ((val)->o[1] & 0x8) {
  5483. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5484. return 0;
  5485. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5486. return 0;
  5487. }
  5488. if ((val)->o[1] & 0x4) {
  5489. if (!ASN1Enc_UnregRequestReason(ee, &(val)->reason))
  5490. return 0;
  5491. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5492. return 0;
  5493. }
  5494. ASN1_CloseEncoder2(ee);
  5495. }
  5496. return 1;
  5497. }
  5498. static int ASN1CALL ASN1Dec_UnregistrationRequest(ASN1decoding_t dec, UnregistrationRequest *val)
  5499. {
  5500. ASN1uint32_t y;
  5501. ASN1decoding_t dd;
  5502. ASN1octet_t *db;
  5503. ASN1uint32_t ds;
  5504. ASN1uint32_t i;
  5505. ASN1uint32_t e;
  5506. if (!ASN1PERDecExtensionBit(dec, &y))
  5507. return 0;
  5508. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  5509. return 0;
  5510. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5511. return 0;
  5512. (val)->requestSeqNum += 1;
  5513. if (!ASN1Dec_UnregistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  5514. return 0;
  5515. if ((val)->o[0] & 0x80) {
  5516. if (!ASN1Dec_UnregistrationRequest_endpointAlias(dec, &(val)->endpointAlias))
  5517. return 0;
  5518. }
  5519. if ((val)->o[0] & 0x40) {
  5520. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5521. return 0;
  5522. }
  5523. if ((val)->o[0] & 0x20) {
  5524. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  5525. return 0;
  5526. ((val)->endpointIdentifier).length += 1;
  5527. ASN1PERDecAlignment(dec);
  5528. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  5529. return 0;
  5530. }
  5531. if (!y) {
  5532. ZeroMemory((val)->o + 1, 1);
  5533. } else {
  5534. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  5535. return 0;
  5536. if ((val)->o[1] & 0x80) {
  5537. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5538. return 0;
  5539. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5540. return 0;
  5541. if (!ASN1Dec_UnregistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  5542. return 0;
  5543. ASN1_CloseDecoder(dd);
  5544. ASN1Free(db);
  5545. }
  5546. if ((val)->o[1] & 0x40) {
  5547. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5548. return 0;
  5549. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5550. return 0;
  5551. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  5552. return 0;
  5553. ((val)->gatekeeperIdentifier).length += 1;
  5554. ASN1PERDecAlignment(dd);
  5555. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  5556. return 0;
  5557. ASN1_CloseDecoder(dd);
  5558. ASN1Free(db);
  5559. }
  5560. if ((val)->o[1] & 0x20) {
  5561. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5562. return 0;
  5563. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5564. return 0;
  5565. if (!ASN1Dec_UnregistrationRequest_tokens(dd, &(val)->tokens))
  5566. return 0;
  5567. ASN1_CloseDecoder(dd);
  5568. ASN1Free(db);
  5569. }
  5570. if ((val)->o[1] & 0x10) {
  5571. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5572. return 0;
  5573. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5574. return 0;
  5575. if (!ASN1Dec_UnregistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  5576. return 0;
  5577. ASN1_CloseDecoder(dd);
  5578. ASN1Free(db);
  5579. }
  5580. if ((val)->o[1] & 0x8) {
  5581. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5582. return 0;
  5583. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5584. return 0;
  5585. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5586. return 0;
  5587. ASN1_CloseDecoder(dd);
  5588. ASN1Free(db);
  5589. }
  5590. if ((val)->o[1] & 0x4) {
  5591. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5592. return 0;
  5593. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5594. return 0;
  5595. if (!ASN1Dec_UnregRequestReason(dd, &(val)->reason))
  5596. return 0;
  5597. ASN1_CloseDecoder(dd);
  5598. ASN1Free(db);
  5599. }
  5600. for (i = 0; i < e; i++) {
  5601. if (!ASN1PERDecSkipFragmented(dec, 8))
  5602. return 0;
  5603. }
  5604. }
  5605. return 1;
  5606. }
  5607. static void ASN1CALL ASN1Free_UnregistrationRequest(UnregistrationRequest *val)
  5608. {
  5609. if (val) {
  5610. ASN1Free_UnregistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  5611. if ((val)->o[0] & 0x80) {
  5612. ASN1Free_UnregistrationRequest_endpointAlias(&(val)->endpointAlias);
  5613. }
  5614. if ((val)->o[0] & 0x40) {
  5615. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5616. }
  5617. if ((val)->o[0] & 0x20) {
  5618. ASN1char16string_free(&(val)->endpointIdentifier);
  5619. }
  5620. if ((val)->o[1] & 0x80) {
  5621. ASN1Free_UnregistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  5622. }
  5623. if ((val)->o[1] & 0x40) {
  5624. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  5625. }
  5626. if ((val)->o[1] & 0x20) {
  5627. ASN1Free_UnregistrationRequest_tokens(&(val)->tokens);
  5628. }
  5629. if ((val)->o[1] & 0x10) {
  5630. ASN1Free_UnregistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  5631. }
  5632. if ((val)->o[1] & 0x8) {
  5633. ASN1Free_ICV(&(val)->integrityCheckValue);
  5634. }
  5635. }
  5636. }
  5637. static int ASN1CALL ASN1Enc_UnregistrationConfirm(ASN1encoding_t enc, UnregistrationConfirm *val)
  5638. {
  5639. ASN1uint32_t y;
  5640. ASN1encoding_t ee;
  5641. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  5642. if (!ASN1PEREncBitVal(enc, 1, y))
  5643. return 0;
  5644. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5645. return 0;
  5646. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5647. return 0;
  5648. if ((val)->o[0] & 0x80) {
  5649. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5650. return 0;
  5651. }
  5652. if (y) {
  5653. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  5654. return 0;
  5655. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5656. return 0;
  5657. if ((val)->o[1] & 0x80) {
  5658. if (!ASN1Enc_UnregistrationConfirm_tokens(ee, &(val)->tokens))
  5659. return 0;
  5660. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5661. return 0;
  5662. }
  5663. if ((val)->o[1] & 0x40) {
  5664. if (!ASN1Enc_UnregistrationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  5665. return 0;
  5666. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5667. return 0;
  5668. }
  5669. if ((val)->o[1] & 0x20) {
  5670. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5671. return 0;
  5672. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5673. return 0;
  5674. }
  5675. ASN1_CloseEncoder2(ee);
  5676. }
  5677. return 1;
  5678. }
  5679. static int ASN1CALL ASN1Dec_UnregistrationConfirm(ASN1decoding_t dec, UnregistrationConfirm *val)
  5680. {
  5681. ASN1uint32_t y;
  5682. ASN1decoding_t dd;
  5683. ASN1octet_t *db;
  5684. ASN1uint32_t ds;
  5685. ASN1uint32_t i;
  5686. ASN1uint32_t e;
  5687. if (!ASN1PERDecExtensionBit(dec, &y))
  5688. return 0;
  5689. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5690. return 0;
  5691. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5692. return 0;
  5693. (val)->requestSeqNum += 1;
  5694. if ((val)->o[0] & 0x80) {
  5695. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5696. return 0;
  5697. }
  5698. if (!y) {
  5699. ZeroMemory((val)->o + 1, 1);
  5700. } else {
  5701. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  5702. return 0;
  5703. if ((val)->o[1] & 0x80) {
  5704. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5705. return 0;
  5706. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5707. return 0;
  5708. if (!ASN1Dec_UnregistrationConfirm_tokens(dd, &(val)->tokens))
  5709. return 0;
  5710. ASN1_CloseDecoder(dd);
  5711. ASN1Free(db);
  5712. }
  5713. if ((val)->o[1] & 0x40) {
  5714. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5715. return 0;
  5716. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5717. return 0;
  5718. if (!ASN1Dec_UnregistrationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  5719. return 0;
  5720. ASN1_CloseDecoder(dd);
  5721. ASN1Free(db);
  5722. }
  5723. if ((val)->o[1] & 0x20) {
  5724. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5725. return 0;
  5726. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5727. return 0;
  5728. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5729. return 0;
  5730. ASN1_CloseDecoder(dd);
  5731. ASN1Free(db);
  5732. }
  5733. for (i = 0; i < e; i++) {
  5734. if (!ASN1PERDecSkipFragmented(dec, 8))
  5735. return 0;
  5736. }
  5737. }
  5738. return 1;
  5739. }
  5740. static void ASN1CALL ASN1Free_UnregistrationConfirm(UnregistrationConfirm *val)
  5741. {
  5742. if (val) {
  5743. if ((val)->o[0] & 0x80) {
  5744. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5745. }
  5746. if ((val)->o[1] & 0x80) {
  5747. ASN1Free_UnregistrationConfirm_tokens(&(val)->tokens);
  5748. }
  5749. if ((val)->o[1] & 0x40) {
  5750. ASN1Free_UnregistrationConfirm_cryptoTokens(&(val)->cryptoTokens);
  5751. }
  5752. if ((val)->o[1] & 0x20) {
  5753. ASN1Free_ICV(&(val)->integrityCheckValue);
  5754. }
  5755. }
  5756. }
  5757. static int ASN1CALL ASN1Enc_UnregistrationReject(ASN1encoding_t enc, UnregistrationReject *val)
  5758. {
  5759. ASN1uint32_t y;
  5760. ASN1encoding_t ee;
  5761. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  5762. if (!ASN1PEREncBitVal(enc, 1, y))
  5763. return 0;
  5764. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5765. return 0;
  5766. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5767. return 0;
  5768. if (!ASN1Enc_UnregRejectReason(enc, &(val)->rejectReason))
  5769. return 0;
  5770. if ((val)->o[0] & 0x80) {
  5771. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5772. return 0;
  5773. }
  5774. if (y) {
  5775. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  5776. return 0;
  5777. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5778. return 0;
  5779. if ((val)->o[1] & 0x80) {
  5780. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5781. return 0;
  5782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5783. return 0;
  5784. }
  5785. if ((val)->o[1] & 0x40) {
  5786. if (!ASN1Enc_UnregistrationReject_tokens(ee, &(val)->tokens))
  5787. return 0;
  5788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5789. return 0;
  5790. }
  5791. if ((val)->o[1] & 0x20) {
  5792. if (!ASN1Enc_UnregistrationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5793. return 0;
  5794. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5795. return 0;
  5796. }
  5797. if ((val)->o[1] & 0x10) {
  5798. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5799. return 0;
  5800. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5801. return 0;
  5802. }
  5803. ASN1_CloseEncoder2(ee);
  5804. }
  5805. return 1;
  5806. }
  5807. static int ASN1CALL ASN1Dec_UnregistrationReject(ASN1decoding_t dec, UnregistrationReject *val)
  5808. {
  5809. ASN1uint32_t y;
  5810. ASN1decoding_t dd;
  5811. ASN1octet_t *db;
  5812. ASN1uint32_t ds;
  5813. ASN1uint32_t i;
  5814. ASN1uint32_t e;
  5815. if (!ASN1PERDecExtensionBit(dec, &y))
  5816. return 0;
  5817. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5818. return 0;
  5819. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5820. return 0;
  5821. (val)->requestSeqNum += 1;
  5822. if (!ASN1Dec_UnregRejectReason(dec, &(val)->rejectReason))
  5823. return 0;
  5824. if ((val)->o[0] & 0x80) {
  5825. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5826. return 0;
  5827. }
  5828. if (!y) {
  5829. ZeroMemory((val)->o + 1, 1);
  5830. } else {
  5831. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  5832. return 0;
  5833. if ((val)->o[1] & 0x80) {
  5834. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5835. return 0;
  5836. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5837. return 0;
  5838. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5839. return 0;
  5840. ASN1_CloseDecoder(dd);
  5841. ASN1Free(db);
  5842. }
  5843. if ((val)->o[1] & 0x40) {
  5844. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5845. return 0;
  5846. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5847. return 0;
  5848. if (!ASN1Dec_UnregistrationReject_tokens(dd, &(val)->tokens))
  5849. return 0;
  5850. ASN1_CloseDecoder(dd);
  5851. ASN1Free(db);
  5852. }
  5853. if ((val)->o[1] & 0x20) {
  5854. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5855. return 0;
  5856. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5857. return 0;
  5858. if (!ASN1Dec_UnregistrationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  5859. return 0;
  5860. ASN1_CloseDecoder(dd);
  5861. ASN1Free(db);
  5862. }
  5863. if ((val)->o[1] & 0x10) {
  5864. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5865. return 0;
  5866. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5867. return 0;
  5868. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  5869. return 0;
  5870. ASN1_CloseDecoder(dd);
  5871. ASN1Free(db);
  5872. }
  5873. for (i = 0; i < e; i++) {
  5874. if (!ASN1PERDecSkipFragmented(dec, 8))
  5875. return 0;
  5876. }
  5877. }
  5878. return 1;
  5879. }
  5880. static void ASN1CALL ASN1Free_UnregistrationReject(UnregistrationReject *val)
  5881. {
  5882. if (val) {
  5883. if ((val)->o[0] & 0x80) {
  5884. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  5885. }
  5886. if ((val)->o[1] & 0x80) {
  5887. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  5888. }
  5889. if ((val)->o[1] & 0x40) {
  5890. ASN1Free_UnregistrationReject_tokens(&(val)->tokens);
  5891. }
  5892. if ((val)->o[1] & 0x20) {
  5893. ASN1Free_UnregistrationReject_cryptoTokens(&(val)->cryptoTokens);
  5894. }
  5895. if ((val)->o[1] & 0x10) {
  5896. ASN1Free_ICV(&(val)->integrityCheckValue);
  5897. }
  5898. }
  5899. }
  5900. static int ASN1CALL ASN1Enc_AdmissionReject(ASN1encoding_t enc, AdmissionReject *val)
  5901. {
  5902. ASN1uint32_t y;
  5903. ASN1encoding_t ee;
  5904. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  5905. if (!ASN1PEREncBitVal(enc, 1, y))
  5906. return 0;
  5907. if (!ASN1PEREncBits(enc, 1, (val)->o))
  5908. return 0;
  5909. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  5910. return 0;
  5911. if (!ASN1Enc_AdmissionRejectReason(enc, &(val)->rejectReason))
  5912. return 0;
  5913. if ((val)->o[0] & 0x80) {
  5914. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  5915. return 0;
  5916. }
  5917. if (y) {
  5918. if (!ASN1PEREncNormallySmallBits(enc, 5, (val)->o + 1))
  5919. return 0;
  5920. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  5921. return 0;
  5922. if ((val)->o[1] & 0x80) {
  5923. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  5924. return 0;
  5925. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5926. return 0;
  5927. }
  5928. if ((val)->o[1] & 0x40) {
  5929. if (!ASN1Enc_AdmissionReject_tokens(ee, &(val)->tokens))
  5930. return 0;
  5931. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5932. return 0;
  5933. }
  5934. if ((val)->o[1] & 0x20) {
  5935. if (!ASN1Enc_AdmissionReject_cryptoTokens(ee, &(val)->cryptoTokens))
  5936. return 0;
  5937. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5938. return 0;
  5939. }
  5940. if ((val)->o[1] & 0x10) {
  5941. if (!ASN1Enc_AdmissionReject_callSignalAddress(ee, &(val)->callSignalAddress))
  5942. return 0;
  5943. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5944. return 0;
  5945. }
  5946. if ((val)->o[1] & 0x8) {
  5947. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  5948. return 0;
  5949. if (!ASN1PEREncFlushFragmentedToParent(ee))
  5950. return 0;
  5951. }
  5952. ASN1_CloseEncoder2(ee);
  5953. }
  5954. return 1;
  5955. }
  5956. static int ASN1CALL ASN1Dec_AdmissionReject(ASN1decoding_t dec, AdmissionReject *val)
  5957. {
  5958. ASN1uint32_t y;
  5959. ASN1decoding_t dd;
  5960. ASN1octet_t *db;
  5961. ASN1uint32_t ds;
  5962. ASN1uint32_t i;
  5963. ASN1uint32_t e;
  5964. if (!ASN1PERDecExtensionBit(dec, &y))
  5965. return 0;
  5966. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  5967. return 0;
  5968. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  5969. return 0;
  5970. (val)->requestSeqNum += 1;
  5971. if (!ASN1Dec_AdmissionRejectReason(dec, &(val)->rejectReason))
  5972. return 0;
  5973. if ((val)->o[0] & 0x80) {
  5974. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  5975. return 0;
  5976. }
  5977. if (!y) {
  5978. ZeroMemory((val)->o + 1, 1);
  5979. } else {
  5980. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  5981. return 0;
  5982. if ((val)->o[1] & 0x80) {
  5983. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5984. return 0;
  5985. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5986. return 0;
  5987. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  5988. return 0;
  5989. ASN1_CloseDecoder(dd);
  5990. ASN1Free(db);
  5991. }
  5992. if ((val)->o[1] & 0x40) {
  5993. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  5994. return 0;
  5995. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  5996. return 0;
  5997. if (!ASN1Dec_AdmissionReject_tokens(dd, &(val)->tokens))
  5998. return 0;
  5999. ASN1_CloseDecoder(dd);
  6000. ASN1Free(db);
  6001. }
  6002. if ((val)->o[1] & 0x20) {
  6003. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6004. return 0;
  6005. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6006. return 0;
  6007. if (!ASN1Dec_AdmissionReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6008. return 0;
  6009. ASN1_CloseDecoder(dd);
  6010. ASN1Free(db);
  6011. }
  6012. if ((val)->o[1] & 0x10) {
  6013. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6014. return 0;
  6015. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6016. return 0;
  6017. if (!ASN1Dec_AdmissionReject_callSignalAddress(dd, &(val)->callSignalAddress))
  6018. return 0;
  6019. ASN1_CloseDecoder(dd);
  6020. ASN1Free(db);
  6021. }
  6022. if ((val)->o[1] & 0x8) {
  6023. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6024. return 0;
  6025. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6026. return 0;
  6027. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6028. return 0;
  6029. ASN1_CloseDecoder(dd);
  6030. ASN1Free(db);
  6031. }
  6032. for (i = 0; i < e; i++) {
  6033. if (!ASN1PERDecSkipFragmented(dec, 8))
  6034. return 0;
  6035. }
  6036. }
  6037. return 1;
  6038. }
  6039. static void ASN1CALL ASN1Free_AdmissionReject(AdmissionReject *val)
  6040. {
  6041. if (val) {
  6042. if ((val)->o[0] & 0x80) {
  6043. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6044. }
  6045. if ((val)->o[1] & 0x80) {
  6046. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6047. }
  6048. if ((val)->o[1] & 0x40) {
  6049. ASN1Free_AdmissionReject_tokens(&(val)->tokens);
  6050. }
  6051. if ((val)->o[1] & 0x20) {
  6052. ASN1Free_AdmissionReject_cryptoTokens(&(val)->cryptoTokens);
  6053. }
  6054. if ((val)->o[1] & 0x10) {
  6055. ASN1Free_AdmissionReject_callSignalAddress(&(val)->callSignalAddress);
  6056. }
  6057. if ((val)->o[1] & 0x8) {
  6058. ASN1Free_ICV(&(val)->integrityCheckValue);
  6059. }
  6060. }
  6061. }
  6062. static int ASN1CALL ASN1Enc_BandwidthRequest(ASN1encoding_t enc, BandwidthRequest *val)
  6063. {
  6064. ASN1octet_t o[2];
  6065. ASN1uint32_t y;
  6066. ASN1uint32_t l;
  6067. ASN1encoding_t ee;
  6068. CopyMemory(o, (val)->o, 2);
  6069. o[1] |= 0x80;
  6070. o[1] |= 0x4;
  6071. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6072. if (!ASN1PEREncBitVal(enc, 1, y))
  6073. return 0;
  6074. if (!ASN1PEREncBits(enc, 2, o))
  6075. return 0;
  6076. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6077. return 0;
  6078. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6079. return 0;
  6080. ASN1PEREncAlignment(enc);
  6081. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6082. return 0;
  6083. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6084. return 0;
  6085. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6086. return 0;
  6087. if (o[0] & 0x80) {
  6088. if (!ASN1Enc_CallType(enc, &(val)->callType))
  6089. return 0;
  6090. }
  6091. l = ASN1uint32_uoctets((val)->bandWidth);
  6092. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6093. return 0;
  6094. ASN1PEREncAlignment(enc);
  6095. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6096. return 0;
  6097. if (o[0] & 0x40) {
  6098. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6099. return 0;
  6100. }
  6101. if (y) {
  6102. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6103. return 0;
  6104. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6105. return 0;
  6106. if (o[1] & 0x80) {
  6107. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6108. return 0;
  6109. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6110. return 0;
  6111. }
  6112. if (o[1] & 0x40) {
  6113. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6114. return 0;
  6115. ASN1PEREncAlignment(ee);
  6116. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6117. return 0;
  6118. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6119. return 0;
  6120. }
  6121. if (o[1] & 0x20) {
  6122. if (!ASN1Enc_BandwidthRequest_tokens(ee, &(val)->tokens))
  6123. return 0;
  6124. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6125. return 0;
  6126. }
  6127. if (o[1] & 0x10) {
  6128. if (!ASN1Enc_BandwidthRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6129. return 0;
  6130. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6131. return 0;
  6132. }
  6133. if (o[1] & 0x8) {
  6134. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6135. return 0;
  6136. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6137. return 0;
  6138. }
  6139. if (o[1] & 0x4) {
  6140. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6141. return 0;
  6142. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6143. return 0;
  6144. }
  6145. ASN1_CloseEncoder2(ee);
  6146. }
  6147. return 1;
  6148. }
  6149. static int ASN1CALL ASN1Dec_BandwidthRequest(ASN1decoding_t dec, BandwidthRequest *val)
  6150. {
  6151. ASN1uint32_t y;
  6152. ASN1uint32_t l;
  6153. ASN1decoding_t dd;
  6154. ASN1octet_t *db;
  6155. ASN1uint32_t ds;
  6156. ASN1uint32_t i;
  6157. ASN1uint32_t e;
  6158. if (!ASN1PERDecExtensionBit(dec, &y))
  6159. return 0;
  6160. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  6161. return 0;
  6162. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6163. return 0;
  6164. (val)->requestSeqNum += 1;
  6165. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6166. return 0;
  6167. ((val)->endpointIdentifier).length += 1;
  6168. ASN1PERDecAlignment(dec);
  6169. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6170. return 0;
  6171. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6172. return 0;
  6173. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6174. return 0;
  6175. if ((val)->o[0] & 0x80) {
  6176. if (!ASN1Dec_CallType(dec, &(val)->callType))
  6177. return 0;
  6178. }
  6179. if (!ASN1PERDecU32Val(dec, 2, &l))
  6180. return 0;
  6181. l += 1;
  6182. ASN1PERDecAlignment(dec);
  6183. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6184. return 0;
  6185. if ((val)->o[0] & 0x40) {
  6186. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6187. return 0;
  6188. }
  6189. if (!y) {
  6190. ZeroMemory((val)->o + 1, 1);
  6191. } else {
  6192. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6193. return 0;
  6194. if ((val)->o[1] & 0x80) {
  6195. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6196. return 0;
  6197. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6198. return 0;
  6199. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6200. return 0;
  6201. ASN1_CloseDecoder(dd);
  6202. ASN1Free(db);
  6203. }
  6204. if ((val)->o[1] & 0x40) {
  6205. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6206. return 0;
  6207. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6208. return 0;
  6209. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6210. return 0;
  6211. ((val)->gatekeeperIdentifier).length += 1;
  6212. ASN1PERDecAlignment(dd);
  6213. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6214. return 0;
  6215. ASN1_CloseDecoder(dd);
  6216. ASN1Free(db);
  6217. }
  6218. if ((val)->o[1] & 0x20) {
  6219. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6220. return 0;
  6221. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6222. return 0;
  6223. if (!ASN1Dec_BandwidthRequest_tokens(dd, &(val)->tokens))
  6224. return 0;
  6225. ASN1_CloseDecoder(dd);
  6226. ASN1Free(db);
  6227. }
  6228. if ((val)->o[1] & 0x10) {
  6229. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6230. return 0;
  6231. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6232. return 0;
  6233. if (!ASN1Dec_BandwidthRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6234. return 0;
  6235. ASN1_CloseDecoder(dd);
  6236. ASN1Free(db);
  6237. }
  6238. if ((val)->o[1] & 0x8) {
  6239. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6240. return 0;
  6241. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6242. return 0;
  6243. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6244. return 0;
  6245. ASN1_CloseDecoder(dd);
  6246. ASN1Free(db);
  6247. }
  6248. if ((val)->o[1] & 0x4) {
  6249. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6250. return 0;
  6251. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6252. return 0;
  6253. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6254. return 0;
  6255. ASN1_CloseDecoder(dd);
  6256. ASN1Free(db);
  6257. }
  6258. for (i = 0; i < e; i++) {
  6259. if (!ASN1PERDecSkipFragmented(dec, 8))
  6260. return 0;
  6261. }
  6262. }
  6263. return 1;
  6264. }
  6265. static void ASN1CALL ASN1Free_BandwidthRequest(BandwidthRequest *val)
  6266. {
  6267. if (val) {
  6268. ASN1char16string_free(&(val)->endpointIdentifier);
  6269. if ((val)->o[0] & 0x40) {
  6270. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6271. }
  6272. if ((val)->o[1] & 0x80) {
  6273. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6274. }
  6275. if ((val)->o[1] & 0x40) {
  6276. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6277. }
  6278. if ((val)->o[1] & 0x20) {
  6279. ASN1Free_BandwidthRequest_tokens(&(val)->tokens);
  6280. }
  6281. if ((val)->o[1] & 0x10) {
  6282. ASN1Free_BandwidthRequest_cryptoTokens(&(val)->cryptoTokens);
  6283. }
  6284. if ((val)->o[1] & 0x8) {
  6285. ASN1Free_ICV(&(val)->integrityCheckValue);
  6286. }
  6287. }
  6288. }
  6289. static int ASN1CALL ASN1Enc_BandwidthConfirm(ASN1encoding_t enc, BandwidthConfirm *val)
  6290. {
  6291. ASN1uint32_t y;
  6292. ASN1uint32_t l;
  6293. ASN1encoding_t ee;
  6294. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6295. if (!ASN1PEREncBitVal(enc, 1, y))
  6296. return 0;
  6297. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6298. return 0;
  6299. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6300. return 0;
  6301. l = ASN1uint32_uoctets((val)->bandWidth);
  6302. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6303. return 0;
  6304. ASN1PEREncAlignment(enc);
  6305. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  6306. return 0;
  6307. if ((val)->o[0] & 0x80) {
  6308. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6309. return 0;
  6310. }
  6311. if (y) {
  6312. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6313. return 0;
  6314. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6315. return 0;
  6316. if ((val)->o[1] & 0x80) {
  6317. if (!ASN1Enc_BandwidthConfirm_tokens(ee, &(val)->tokens))
  6318. return 0;
  6319. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6320. return 0;
  6321. }
  6322. if ((val)->o[1] & 0x40) {
  6323. if (!ASN1Enc_BandwidthConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6324. return 0;
  6325. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6326. return 0;
  6327. }
  6328. if ((val)->o[1] & 0x20) {
  6329. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6330. return 0;
  6331. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6332. return 0;
  6333. }
  6334. ASN1_CloseEncoder2(ee);
  6335. }
  6336. return 1;
  6337. }
  6338. static int ASN1CALL ASN1Dec_BandwidthConfirm(ASN1decoding_t dec, BandwidthConfirm *val)
  6339. {
  6340. ASN1uint32_t y;
  6341. ASN1uint32_t l;
  6342. ASN1decoding_t dd;
  6343. ASN1octet_t *db;
  6344. ASN1uint32_t ds;
  6345. ASN1uint32_t i;
  6346. ASN1uint32_t e;
  6347. if (!ASN1PERDecExtensionBit(dec, &y))
  6348. return 0;
  6349. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6350. return 0;
  6351. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6352. return 0;
  6353. (val)->requestSeqNum += 1;
  6354. if (!ASN1PERDecU32Val(dec, 2, &l))
  6355. return 0;
  6356. l += 1;
  6357. ASN1PERDecAlignment(dec);
  6358. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  6359. return 0;
  6360. if ((val)->o[0] & 0x80) {
  6361. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6362. return 0;
  6363. }
  6364. if (!y) {
  6365. ZeroMemory((val)->o + 1, 1);
  6366. } else {
  6367. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6368. return 0;
  6369. if ((val)->o[1] & 0x80) {
  6370. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6371. return 0;
  6372. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6373. return 0;
  6374. if (!ASN1Dec_BandwidthConfirm_tokens(dd, &(val)->tokens))
  6375. return 0;
  6376. ASN1_CloseDecoder(dd);
  6377. ASN1Free(db);
  6378. }
  6379. if ((val)->o[1] & 0x40) {
  6380. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6381. return 0;
  6382. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6383. return 0;
  6384. if (!ASN1Dec_BandwidthConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  6385. return 0;
  6386. ASN1_CloseDecoder(dd);
  6387. ASN1Free(db);
  6388. }
  6389. if ((val)->o[1] & 0x20) {
  6390. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6391. return 0;
  6392. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6393. return 0;
  6394. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6395. return 0;
  6396. ASN1_CloseDecoder(dd);
  6397. ASN1Free(db);
  6398. }
  6399. for (i = 0; i < e; i++) {
  6400. if (!ASN1PERDecSkipFragmented(dec, 8))
  6401. return 0;
  6402. }
  6403. }
  6404. return 1;
  6405. }
  6406. static void ASN1CALL ASN1Free_BandwidthConfirm(BandwidthConfirm *val)
  6407. {
  6408. if (val) {
  6409. if ((val)->o[0] & 0x80) {
  6410. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6411. }
  6412. if ((val)->o[1] & 0x80) {
  6413. ASN1Free_BandwidthConfirm_tokens(&(val)->tokens);
  6414. }
  6415. if ((val)->o[1] & 0x40) {
  6416. ASN1Free_BandwidthConfirm_cryptoTokens(&(val)->cryptoTokens);
  6417. }
  6418. if ((val)->o[1] & 0x20) {
  6419. ASN1Free_ICV(&(val)->integrityCheckValue);
  6420. }
  6421. }
  6422. }
  6423. static int ASN1CALL ASN1Enc_BandwidthReject(ASN1encoding_t enc, BandwidthReject *val)
  6424. {
  6425. ASN1uint32_t y;
  6426. ASN1uint32_t l;
  6427. ASN1encoding_t ee;
  6428. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6429. if (!ASN1PEREncBitVal(enc, 1, y))
  6430. return 0;
  6431. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6432. return 0;
  6433. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6434. return 0;
  6435. if (!ASN1Enc_BandRejectReason(enc, &(val)->rejectReason))
  6436. return 0;
  6437. l = ASN1uint32_uoctets((val)->allowedBandWidth);
  6438. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  6439. return 0;
  6440. ASN1PEREncAlignment(enc);
  6441. if (!ASN1PEREncBitVal(enc, l * 8, (val)->allowedBandWidth))
  6442. return 0;
  6443. if ((val)->o[0] & 0x80) {
  6444. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6445. return 0;
  6446. }
  6447. if (y) {
  6448. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6449. return 0;
  6450. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6451. return 0;
  6452. if ((val)->o[1] & 0x80) {
  6453. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6454. return 0;
  6455. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6456. return 0;
  6457. }
  6458. if ((val)->o[1] & 0x40) {
  6459. if (!ASN1Enc_BandwidthReject_tokens(ee, &(val)->tokens))
  6460. return 0;
  6461. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6462. return 0;
  6463. }
  6464. if ((val)->o[1] & 0x20) {
  6465. if (!ASN1Enc_BandwidthReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6466. return 0;
  6467. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6468. return 0;
  6469. }
  6470. if ((val)->o[1] & 0x10) {
  6471. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6472. return 0;
  6473. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6474. return 0;
  6475. }
  6476. ASN1_CloseEncoder2(ee);
  6477. }
  6478. return 1;
  6479. }
  6480. static int ASN1CALL ASN1Dec_BandwidthReject(ASN1decoding_t dec, BandwidthReject *val)
  6481. {
  6482. ASN1uint32_t y;
  6483. ASN1uint32_t l;
  6484. ASN1decoding_t dd;
  6485. ASN1octet_t *db;
  6486. ASN1uint32_t ds;
  6487. ASN1uint32_t i;
  6488. ASN1uint32_t e;
  6489. if (!ASN1PERDecExtensionBit(dec, &y))
  6490. return 0;
  6491. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6492. return 0;
  6493. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6494. return 0;
  6495. (val)->requestSeqNum += 1;
  6496. if (!ASN1Dec_BandRejectReason(dec, &(val)->rejectReason))
  6497. return 0;
  6498. if (!ASN1PERDecU32Val(dec, 2, &l))
  6499. return 0;
  6500. l += 1;
  6501. ASN1PERDecAlignment(dec);
  6502. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->allowedBandWidth))
  6503. return 0;
  6504. if ((val)->o[0] & 0x80) {
  6505. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6506. return 0;
  6507. }
  6508. if (!y) {
  6509. ZeroMemory((val)->o + 1, 1);
  6510. } else {
  6511. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6512. return 0;
  6513. if ((val)->o[1] & 0x80) {
  6514. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6515. return 0;
  6516. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6517. return 0;
  6518. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6519. return 0;
  6520. ASN1_CloseDecoder(dd);
  6521. ASN1Free(db);
  6522. }
  6523. if ((val)->o[1] & 0x40) {
  6524. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6525. return 0;
  6526. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6527. return 0;
  6528. if (!ASN1Dec_BandwidthReject_tokens(dd, &(val)->tokens))
  6529. return 0;
  6530. ASN1_CloseDecoder(dd);
  6531. ASN1Free(db);
  6532. }
  6533. if ((val)->o[1] & 0x20) {
  6534. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6535. return 0;
  6536. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6537. return 0;
  6538. if (!ASN1Dec_BandwidthReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6539. return 0;
  6540. ASN1_CloseDecoder(dd);
  6541. ASN1Free(db);
  6542. }
  6543. if ((val)->o[1] & 0x10) {
  6544. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6545. return 0;
  6546. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6547. return 0;
  6548. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6549. return 0;
  6550. ASN1_CloseDecoder(dd);
  6551. ASN1Free(db);
  6552. }
  6553. for (i = 0; i < e; i++) {
  6554. if (!ASN1PERDecSkipFragmented(dec, 8))
  6555. return 0;
  6556. }
  6557. }
  6558. return 1;
  6559. }
  6560. static void ASN1CALL ASN1Free_BandwidthReject(BandwidthReject *val)
  6561. {
  6562. if (val) {
  6563. if ((val)->o[0] & 0x80) {
  6564. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6565. }
  6566. if ((val)->o[1] & 0x80) {
  6567. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6568. }
  6569. if ((val)->o[1] & 0x40) {
  6570. ASN1Free_BandwidthReject_tokens(&(val)->tokens);
  6571. }
  6572. if ((val)->o[1] & 0x20) {
  6573. ASN1Free_BandwidthReject_cryptoTokens(&(val)->cryptoTokens);
  6574. }
  6575. if ((val)->o[1] & 0x10) {
  6576. ASN1Free_ICV(&(val)->integrityCheckValue);
  6577. }
  6578. }
  6579. }
  6580. static int ASN1CALL ASN1Enc_LocationReject(ASN1encoding_t enc, LocationReject *val)
  6581. {
  6582. ASN1uint32_t y;
  6583. ASN1encoding_t ee;
  6584. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  6585. if (!ASN1PEREncBitVal(enc, 1, y))
  6586. return 0;
  6587. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6588. return 0;
  6589. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6590. return 0;
  6591. if (!ASN1Enc_LocationRejectReason(enc, &(val)->rejectReason))
  6592. return 0;
  6593. if ((val)->o[0] & 0x80) {
  6594. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6595. return 0;
  6596. }
  6597. if (y) {
  6598. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  6599. return 0;
  6600. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6601. return 0;
  6602. if ((val)->o[1] & 0x80) {
  6603. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  6604. return 0;
  6605. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6606. return 0;
  6607. }
  6608. if ((val)->o[1] & 0x40) {
  6609. if (!ASN1Enc_LocationReject_tokens(ee, &(val)->tokens))
  6610. return 0;
  6611. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6612. return 0;
  6613. }
  6614. if ((val)->o[1] & 0x20) {
  6615. if (!ASN1Enc_LocationReject_cryptoTokens(ee, &(val)->cryptoTokens))
  6616. return 0;
  6617. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6618. return 0;
  6619. }
  6620. if ((val)->o[1] & 0x10) {
  6621. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6622. return 0;
  6623. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6624. return 0;
  6625. }
  6626. ASN1_CloseEncoder2(ee);
  6627. }
  6628. return 1;
  6629. }
  6630. static int ASN1CALL ASN1Dec_LocationReject(ASN1decoding_t dec, LocationReject *val)
  6631. {
  6632. ASN1uint32_t y;
  6633. ASN1decoding_t dd;
  6634. ASN1octet_t *db;
  6635. ASN1uint32_t ds;
  6636. ASN1uint32_t i;
  6637. ASN1uint32_t e;
  6638. if (!ASN1PERDecExtensionBit(dec, &y))
  6639. return 0;
  6640. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6641. return 0;
  6642. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6643. return 0;
  6644. (val)->requestSeqNum += 1;
  6645. if (!ASN1Dec_LocationRejectReason(dec, &(val)->rejectReason))
  6646. return 0;
  6647. if ((val)->o[0] & 0x80) {
  6648. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6649. return 0;
  6650. }
  6651. if (!y) {
  6652. ZeroMemory((val)->o + 1, 1);
  6653. } else {
  6654. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  6655. return 0;
  6656. if ((val)->o[1] & 0x80) {
  6657. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6658. return 0;
  6659. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6660. return 0;
  6661. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  6662. return 0;
  6663. ASN1_CloseDecoder(dd);
  6664. ASN1Free(db);
  6665. }
  6666. if ((val)->o[1] & 0x40) {
  6667. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6668. return 0;
  6669. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6670. return 0;
  6671. if (!ASN1Dec_LocationReject_tokens(dd, &(val)->tokens))
  6672. return 0;
  6673. ASN1_CloseDecoder(dd);
  6674. ASN1Free(db);
  6675. }
  6676. if ((val)->o[1] & 0x20) {
  6677. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6678. return 0;
  6679. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6680. return 0;
  6681. if (!ASN1Dec_LocationReject_cryptoTokens(dd, &(val)->cryptoTokens))
  6682. return 0;
  6683. ASN1_CloseDecoder(dd);
  6684. ASN1Free(db);
  6685. }
  6686. if ((val)->o[1] & 0x10) {
  6687. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6688. return 0;
  6689. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6690. return 0;
  6691. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6692. return 0;
  6693. ASN1_CloseDecoder(dd);
  6694. ASN1Free(db);
  6695. }
  6696. for (i = 0; i < e; i++) {
  6697. if (!ASN1PERDecSkipFragmented(dec, 8))
  6698. return 0;
  6699. }
  6700. }
  6701. return 1;
  6702. }
  6703. static void ASN1CALL ASN1Free_LocationReject(LocationReject *val)
  6704. {
  6705. if (val) {
  6706. if ((val)->o[0] & 0x80) {
  6707. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6708. }
  6709. if ((val)->o[1] & 0x80) {
  6710. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  6711. }
  6712. if ((val)->o[1] & 0x40) {
  6713. ASN1Free_LocationReject_tokens(&(val)->tokens);
  6714. }
  6715. if ((val)->o[1] & 0x20) {
  6716. ASN1Free_LocationReject_cryptoTokens(&(val)->cryptoTokens);
  6717. }
  6718. if ((val)->o[1] & 0x10) {
  6719. ASN1Free_ICV(&(val)->integrityCheckValue);
  6720. }
  6721. }
  6722. }
  6723. static int ASN1CALL ASN1Enc_DisengageRequest(ASN1encoding_t enc, DisengageRequest *val)
  6724. {
  6725. ASN1octet_t o[2];
  6726. ASN1uint32_t y;
  6727. ASN1encoding_t ee;
  6728. CopyMemory(o, (val)->o, 2);
  6729. o[1] |= 0x80;
  6730. o[1] |= 0x4;
  6731. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  6732. if (!ASN1PEREncBitVal(enc, 1, y))
  6733. return 0;
  6734. if (!ASN1PEREncBits(enc, 1, o))
  6735. return 0;
  6736. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6737. return 0;
  6738. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  6739. return 0;
  6740. ASN1PEREncAlignment(enc);
  6741. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  6742. return 0;
  6743. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6744. return 0;
  6745. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  6746. return 0;
  6747. if (!ASN1Enc_DisengageReason(enc, &(val)->disengageReason))
  6748. return 0;
  6749. if (o[0] & 0x80) {
  6750. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6751. return 0;
  6752. }
  6753. if (y) {
  6754. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  6755. return 0;
  6756. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6757. return 0;
  6758. if (o[1] & 0x80) {
  6759. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  6760. return 0;
  6761. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6762. return 0;
  6763. }
  6764. if (o[1] & 0x40) {
  6765. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  6766. return 0;
  6767. ASN1PEREncAlignment(ee);
  6768. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  6769. return 0;
  6770. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6771. return 0;
  6772. }
  6773. if (o[1] & 0x20) {
  6774. if (!ASN1Enc_DisengageRequest_tokens(ee, &(val)->tokens))
  6775. return 0;
  6776. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6777. return 0;
  6778. }
  6779. if (o[1] & 0x10) {
  6780. if (!ASN1Enc_DisengageRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  6781. return 0;
  6782. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6783. return 0;
  6784. }
  6785. if (o[1] & 0x8) {
  6786. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6787. return 0;
  6788. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6789. return 0;
  6790. }
  6791. if (o[1] & 0x4) {
  6792. if (!ASN1PEREncBoolean(ee, (val)->answeredCall))
  6793. return 0;
  6794. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6795. return 0;
  6796. }
  6797. ASN1_CloseEncoder2(ee);
  6798. }
  6799. return 1;
  6800. }
  6801. static int ASN1CALL ASN1Dec_DisengageRequest(ASN1decoding_t dec, DisengageRequest *val)
  6802. {
  6803. ASN1uint32_t y;
  6804. ASN1decoding_t dd;
  6805. ASN1octet_t *db;
  6806. ASN1uint32_t ds;
  6807. ASN1uint32_t i;
  6808. ASN1uint32_t e;
  6809. if (!ASN1PERDecExtensionBit(dec, &y))
  6810. return 0;
  6811. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6812. return 0;
  6813. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6814. return 0;
  6815. (val)->requestSeqNum += 1;
  6816. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  6817. return 0;
  6818. ((val)->endpointIdentifier).length += 1;
  6819. ASN1PERDecAlignment(dec);
  6820. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  6821. return 0;
  6822. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  6823. return 0;
  6824. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  6825. return 0;
  6826. if (!ASN1Dec_DisengageReason(dec, &(val)->disengageReason))
  6827. return 0;
  6828. if ((val)->o[0] & 0x80) {
  6829. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6830. return 0;
  6831. }
  6832. if (!y) {
  6833. ZeroMemory((val)->o + 1, 1);
  6834. } else {
  6835. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  6836. return 0;
  6837. if ((val)->o[1] & 0x80) {
  6838. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6839. return 0;
  6840. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6841. return 0;
  6842. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  6843. return 0;
  6844. ASN1_CloseDecoder(dd);
  6845. ASN1Free(db);
  6846. }
  6847. if ((val)->o[1] & 0x40) {
  6848. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6849. return 0;
  6850. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6851. return 0;
  6852. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  6853. return 0;
  6854. ((val)->gatekeeperIdentifier).length += 1;
  6855. ASN1PERDecAlignment(dd);
  6856. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  6857. return 0;
  6858. ASN1_CloseDecoder(dd);
  6859. ASN1Free(db);
  6860. }
  6861. if ((val)->o[1] & 0x20) {
  6862. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6863. return 0;
  6864. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6865. return 0;
  6866. if (!ASN1Dec_DisengageRequest_tokens(dd, &(val)->tokens))
  6867. return 0;
  6868. ASN1_CloseDecoder(dd);
  6869. ASN1Free(db);
  6870. }
  6871. if ((val)->o[1] & 0x10) {
  6872. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6873. return 0;
  6874. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6875. return 0;
  6876. if (!ASN1Dec_DisengageRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  6877. return 0;
  6878. ASN1_CloseDecoder(dd);
  6879. ASN1Free(db);
  6880. }
  6881. if ((val)->o[1] & 0x8) {
  6882. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6883. return 0;
  6884. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6885. return 0;
  6886. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  6887. return 0;
  6888. ASN1_CloseDecoder(dd);
  6889. ASN1Free(db);
  6890. }
  6891. if ((val)->o[1] & 0x4) {
  6892. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  6893. return 0;
  6894. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  6895. return 0;
  6896. if (!ASN1PERDecBoolean(dd, &(val)->answeredCall))
  6897. return 0;
  6898. ASN1_CloseDecoder(dd);
  6899. ASN1Free(db);
  6900. }
  6901. for (i = 0; i < e; i++) {
  6902. if (!ASN1PERDecSkipFragmented(dec, 8))
  6903. return 0;
  6904. }
  6905. }
  6906. return 1;
  6907. }
  6908. static void ASN1CALL ASN1Free_DisengageRequest(DisengageRequest *val)
  6909. {
  6910. if (val) {
  6911. ASN1char16string_free(&(val)->endpointIdentifier);
  6912. if ((val)->o[0] & 0x80) {
  6913. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  6914. }
  6915. if ((val)->o[1] & 0x80) {
  6916. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  6917. }
  6918. if ((val)->o[1] & 0x40) {
  6919. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  6920. }
  6921. if ((val)->o[1] & 0x20) {
  6922. ASN1Free_DisengageRequest_tokens(&(val)->tokens);
  6923. }
  6924. if ((val)->o[1] & 0x10) {
  6925. ASN1Free_DisengageRequest_cryptoTokens(&(val)->cryptoTokens);
  6926. }
  6927. if ((val)->o[1] & 0x8) {
  6928. ASN1Free_ICV(&(val)->integrityCheckValue);
  6929. }
  6930. }
  6931. }
  6932. static int ASN1CALL ASN1Enc_DisengageConfirm(ASN1encoding_t enc, DisengageConfirm *val)
  6933. {
  6934. ASN1uint32_t y;
  6935. ASN1encoding_t ee;
  6936. y = ASN1PEREncCheckExtensions(3, (val)->o + 1);
  6937. if (!ASN1PEREncBitVal(enc, 1, y))
  6938. return 0;
  6939. if (!ASN1PEREncBits(enc, 1, (val)->o))
  6940. return 0;
  6941. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  6942. return 0;
  6943. if ((val)->o[0] & 0x80) {
  6944. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  6945. return 0;
  6946. }
  6947. if (y) {
  6948. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 1))
  6949. return 0;
  6950. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  6951. return 0;
  6952. if ((val)->o[1] & 0x80) {
  6953. if (!ASN1Enc_DisengageConfirm_tokens(ee, &(val)->tokens))
  6954. return 0;
  6955. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6956. return 0;
  6957. }
  6958. if ((val)->o[1] & 0x40) {
  6959. if (!ASN1Enc_DisengageConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  6960. return 0;
  6961. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6962. return 0;
  6963. }
  6964. if ((val)->o[1] & 0x20) {
  6965. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  6966. return 0;
  6967. if (!ASN1PEREncFlushFragmentedToParent(ee))
  6968. return 0;
  6969. }
  6970. ASN1_CloseEncoder2(ee);
  6971. }
  6972. return 1;
  6973. }
  6974. static int ASN1CALL ASN1Dec_DisengageConfirm(ASN1decoding_t dec, DisengageConfirm *val)
  6975. {
  6976. ASN1uint32_t y;
  6977. ASN1decoding_t dd;
  6978. ASN1octet_t *db;
  6979. ASN1uint32_t ds;
  6980. ASN1uint32_t i;
  6981. ASN1uint32_t e;
  6982. if (!ASN1PERDecExtensionBit(dec, &y))
  6983. return 0;
  6984. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  6985. return 0;
  6986. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  6987. return 0;
  6988. (val)->requestSeqNum += 1;
  6989. if ((val)->o[0] & 0x80) {
  6990. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  6991. return 0;
  6992. }
  6993. if (!y) {
  6994. ZeroMemory((val)->o + 1, 1);
  6995. } else {
  6996. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 1))
  6997. return 0;
  6998. if ((val)->o[1] & 0x80) {
  6999. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7000. return 0;
  7001. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7002. return 0;
  7003. if (!ASN1Dec_DisengageConfirm_tokens(dd, &(val)->tokens))
  7004. return 0;
  7005. ASN1_CloseDecoder(dd);
  7006. ASN1Free(db);
  7007. }
  7008. if ((val)->o[1] & 0x40) {
  7009. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7010. return 0;
  7011. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7012. return 0;
  7013. if (!ASN1Dec_DisengageConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  7014. return 0;
  7015. ASN1_CloseDecoder(dd);
  7016. ASN1Free(db);
  7017. }
  7018. if ((val)->o[1] & 0x20) {
  7019. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7020. return 0;
  7021. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7022. return 0;
  7023. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7024. return 0;
  7025. ASN1_CloseDecoder(dd);
  7026. ASN1Free(db);
  7027. }
  7028. for (i = 0; i < e; i++) {
  7029. if (!ASN1PERDecSkipFragmented(dec, 8))
  7030. return 0;
  7031. }
  7032. }
  7033. return 1;
  7034. }
  7035. static void ASN1CALL ASN1Free_DisengageConfirm(DisengageConfirm *val)
  7036. {
  7037. if (val) {
  7038. if ((val)->o[0] & 0x80) {
  7039. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7040. }
  7041. if ((val)->o[1] & 0x80) {
  7042. ASN1Free_DisengageConfirm_tokens(&(val)->tokens);
  7043. }
  7044. if ((val)->o[1] & 0x40) {
  7045. ASN1Free_DisengageConfirm_cryptoTokens(&(val)->cryptoTokens);
  7046. }
  7047. if ((val)->o[1] & 0x20) {
  7048. ASN1Free_ICV(&(val)->integrityCheckValue);
  7049. }
  7050. }
  7051. }
  7052. static int ASN1CALL ASN1Enc_DisengageReject(ASN1encoding_t enc, DisengageReject *val)
  7053. {
  7054. ASN1uint32_t y;
  7055. ASN1encoding_t ee;
  7056. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  7057. if (!ASN1PEREncBitVal(enc, 1, y))
  7058. return 0;
  7059. if (!ASN1PEREncBits(enc, 1, (val)->o))
  7060. return 0;
  7061. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7062. return 0;
  7063. if (!ASN1Enc_DisengageRejectReason(enc, &(val)->rejectReason))
  7064. return 0;
  7065. if ((val)->o[0] & 0x80) {
  7066. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7067. return 0;
  7068. }
  7069. if (y) {
  7070. if (!ASN1PEREncNormallySmallBits(enc, 4, (val)->o + 1))
  7071. return 0;
  7072. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7073. return 0;
  7074. if ((val)->o[1] & 0x80) {
  7075. if (!ASN1Enc_AltGKInfo(ee, &(val)->altGKInfo))
  7076. return 0;
  7077. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7078. return 0;
  7079. }
  7080. if ((val)->o[1] & 0x40) {
  7081. if (!ASN1Enc_DisengageReject_tokens(ee, &(val)->tokens))
  7082. return 0;
  7083. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7084. return 0;
  7085. }
  7086. if ((val)->o[1] & 0x20) {
  7087. if (!ASN1Enc_DisengageReject_cryptoTokens(ee, &(val)->cryptoTokens))
  7088. return 0;
  7089. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7090. return 0;
  7091. }
  7092. if ((val)->o[1] & 0x10) {
  7093. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7094. return 0;
  7095. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7096. return 0;
  7097. }
  7098. ASN1_CloseEncoder2(ee);
  7099. }
  7100. return 1;
  7101. }
  7102. static int ASN1CALL ASN1Dec_DisengageReject(ASN1decoding_t dec, DisengageReject *val)
  7103. {
  7104. ASN1uint32_t y;
  7105. ASN1decoding_t dd;
  7106. ASN1octet_t *db;
  7107. ASN1uint32_t ds;
  7108. ASN1uint32_t i;
  7109. ASN1uint32_t e;
  7110. if (!ASN1PERDecExtensionBit(dec, &y))
  7111. return 0;
  7112. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  7113. return 0;
  7114. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7115. return 0;
  7116. (val)->requestSeqNum += 1;
  7117. if (!ASN1Dec_DisengageRejectReason(dec, &(val)->rejectReason))
  7118. return 0;
  7119. if ((val)->o[0] & 0x80) {
  7120. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7121. return 0;
  7122. }
  7123. if (!y) {
  7124. ZeroMemory((val)->o + 1, 1);
  7125. } else {
  7126. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  7127. return 0;
  7128. if ((val)->o[1] & 0x80) {
  7129. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7130. return 0;
  7131. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7132. return 0;
  7133. if (!ASN1Dec_AltGKInfo(dd, &(val)->altGKInfo))
  7134. return 0;
  7135. ASN1_CloseDecoder(dd);
  7136. ASN1Free(db);
  7137. }
  7138. if ((val)->o[1] & 0x40) {
  7139. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7140. return 0;
  7141. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7142. return 0;
  7143. if (!ASN1Dec_DisengageReject_tokens(dd, &(val)->tokens))
  7144. return 0;
  7145. ASN1_CloseDecoder(dd);
  7146. ASN1Free(db);
  7147. }
  7148. if ((val)->o[1] & 0x20) {
  7149. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7150. return 0;
  7151. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7152. return 0;
  7153. if (!ASN1Dec_DisengageReject_cryptoTokens(dd, &(val)->cryptoTokens))
  7154. return 0;
  7155. ASN1_CloseDecoder(dd);
  7156. ASN1Free(db);
  7157. }
  7158. if ((val)->o[1] & 0x10) {
  7159. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7160. return 0;
  7161. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7162. return 0;
  7163. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7164. return 0;
  7165. ASN1_CloseDecoder(dd);
  7166. ASN1Free(db);
  7167. }
  7168. for (i = 0; i < e; i++) {
  7169. if (!ASN1PERDecSkipFragmented(dec, 8))
  7170. return 0;
  7171. }
  7172. }
  7173. return 1;
  7174. }
  7175. static void ASN1CALL ASN1Free_DisengageReject(DisengageReject *val)
  7176. {
  7177. if (val) {
  7178. if ((val)->o[0] & 0x80) {
  7179. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7180. }
  7181. if ((val)->o[1] & 0x80) {
  7182. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7183. }
  7184. if ((val)->o[1] & 0x40) {
  7185. ASN1Free_DisengageReject_tokens(&(val)->tokens);
  7186. }
  7187. if ((val)->o[1] & 0x20) {
  7188. ASN1Free_DisengageReject_cryptoTokens(&(val)->cryptoTokens);
  7189. }
  7190. if ((val)->o[1] & 0x10) {
  7191. ASN1Free_ICV(&(val)->integrityCheckValue);
  7192. }
  7193. }
  7194. }
  7195. static int ASN1CALL ASN1Enc_InfoRequestAck(ASN1encoding_t enc, InfoRequestAck *val)
  7196. {
  7197. if (!ASN1PEREncExtensionBitClear(enc))
  7198. return 0;
  7199. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7200. return 0;
  7201. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7202. return 0;
  7203. if ((val)->o[0] & 0x80) {
  7204. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7205. return 0;
  7206. }
  7207. if ((val)->o[0] & 0x40) {
  7208. if (!ASN1Enc_InfoRequestAck_tokens(enc, &(val)->tokens))
  7209. return 0;
  7210. }
  7211. if ((val)->o[0] & 0x20) {
  7212. if (!ASN1Enc_InfoRequestAck_cryptoTokens(enc, &(val)->cryptoTokens))
  7213. return 0;
  7214. }
  7215. if ((val)->o[0] & 0x10) {
  7216. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7217. return 0;
  7218. }
  7219. return 1;
  7220. }
  7221. static int ASN1CALL ASN1Dec_InfoRequestAck(ASN1decoding_t dec, InfoRequestAck *val)
  7222. {
  7223. ASN1uint32_t y;
  7224. if (!ASN1PERDecExtensionBit(dec, &y))
  7225. return 0;
  7226. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7227. return 0;
  7228. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7229. return 0;
  7230. (val)->requestSeqNum += 1;
  7231. if ((val)->o[0] & 0x80) {
  7232. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7233. return 0;
  7234. }
  7235. if ((val)->o[0] & 0x40) {
  7236. if (!ASN1Dec_InfoRequestAck_tokens(dec, &(val)->tokens))
  7237. return 0;
  7238. }
  7239. if ((val)->o[0] & 0x20) {
  7240. if (!ASN1Dec_InfoRequestAck_cryptoTokens(dec, &(val)->cryptoTokens))
  7241. return 0;
  7242. }
  7243. if ((val)->o[0] & 0x10) {
  7244. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7245. return 0;
  7246. }
  7247. if (y) {
  7248. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7249. return 0;
  7250. }
  7251. return 1;
  7252. }
  7253. static void ASN1CALL ASN1Free_InfoRequestAck(InfoRequestAck *val)
  7254. {
  7255. if (val) {
  7256. if ((val)->o[0] & 0x80) {
  7257. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7258. }
  7259. if ((val)->o[0] & 0x40) {
  7260. ASN1Free_InfoRequestAck_tokens(&(val)->tokens);
  7261. }
  7262. if ((val)->o[0] & 0x20) {
  7263. ASN1Free_InfoRequestAck_cryptoTokens(&(val)->cryptoTokens);
  7264. }
  7265. if ((val)->o[0] & 0x10) {
  7266. ASN1Free_ICV(&(val)->integrityCheckValue);
  7267. }
  7268. }
  7269. }
  7270. static int ASN1CALL ASN1Enc_InfoRequestNak(ASN1encoding_t enc, InfoRequestNak *val)
  7271. {
  7272. if (!ASN1PEREncExtensionBitClear(enc))
  7273. return 0;
  7274. if (!ASN1PEREncBits(enc, 5, (val)->o))
  7275. return 0;
  7276. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7277. return 0;
  7278. if ((val)->o[0] & 0x80) {
  7279. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7280. return 0;
  7281. }
  7282. if (!ASN1Enc_InfoRequestNakReason(enc, &(val)->nakReason))
  7283. return 0;
  7284. if ((val)->o[0] & 0x40) {
  7285. if (!ASN1Enc_AltGKInfo(enc, &(val)->altGKInfo))
  7286. return 0;
  7287. }
  7288. if ((val)->o[0] & 0x20) {
  7289. if (!ASN1Enc_InfoRequestNak_tokens(enc, &(val)->tokens))
  7290. return 0;
  7291. }
  7292. if ((val)->o[0] & 0x10) {
  7293. if (!ASN1Enc_InfoRequestNak_cryptoTokens(enc, &(val)->cryptoTokens))
  7294. return 0;
  7295. }
  7296. if ((val)->o[0] & 0x8) {
  7297. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7298. return 0;
  7299. }
  7300. return 1;
  7301. }
  7302. static int ASN1CALL ASN1Dec_InfoRequestNak(ASN1decoding_t dec, InfoRequestNak *val)
  7303. {
  7304. ASN1uint32_t y;
  7305. if (!ASN1PERDecExtensionBit(dec, &y))
  7306. return 0;
  7307. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  7308. return 0;
  7309. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7310. return 0;
  7311. (val)->requestSeqNum += 1;
  7312. if ((val)->o[0] & 0x80) {
  7313. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7314. return 0;
  7315. }
  7316. if (!ASN1Dec_InfoRequestNakReason(dec, &(val)->nakReason))
  7317. return 0;
  7318. if ((val)->o[0] & 0x40) {
  7319. if (!ASN1Dec_AltGKInfo(dec, &(val)->altGKInfo))
  7320. return 0;
  7321. }
  7322. if ((val)->o[0] & 0x20) {
  7323. if (!ASN1Dec_InfoRequestNak_tokens(dec, &(val)->tokens))
  7324. return 0;
  7325. }
  7326. if ((val)->o[0] & 0x10) {
  7327. if (!ASN1Dec_InfoRequestNak_cryptoTokens(dec, &(val)->cryptoTokens))
  7328. return 0;
  7329. }
  7330. if ((val)->o[0] & 0x8) {
  7331. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7332. return 0;
  7333. }
  7334. if (y) {
  7335. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7336. return 0;
  7337. }
  7338. return 1;
  7339. }
  7340. static void ASN1CALL ASN1Free_InfoRequestNak(InfoRequestNak *val)
  7341. {
  7342. if (val) {
  7343. if ((val)->o[0] & 0x80) {
  7344. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7345. }
  7346. if ((val)->o[0] & 0x40) {
  7347. ASN1Free_AltGKInfo(&(val)->altGKInfo);
  7348. }
  7349. if ((val)->o[0] & 0x20) {
  7350. ASN1Free_InfoRequestNak_tokens(&(val)->tokens);
  7351. }
  7352. if ((val)->o[0] & 0x10) {
  7353. ASN1Free_InfoRequestNak_cryptoTokens(&(val)->cryptoTokens);
  7354. }
  7355. if ((val)->o[0] & 0x8) {
  7356. ASN1Free_ICV(&(val)->integrityCheckValue);
  7357. }
  7358. }
  7359. }
  7360. static int ASN1CALL ASN1Enc_H225NonStandardMessage(ASN1encoding_t enc, H225NonStandardMessage *val)
  7361. {
  7362. ASN1uint32_t y;
  7363. ASN1encoding_t ee;
  7364. y = ASN1PEREncCheckExtensions(3, (val)->o + 0);
  7365. if (!ASN1PEREncBitVal(enc, 1, y))
  7366. return 0;
  7367. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7368. return 0;
  7369. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7370. return 0;
  7371. if (y) {
  7372. if (!ASN1PEREncNormallySmallBits(enc, 3, (val)->o + 0))
  7373. return 0;
  7374. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  7375. return 0;
  7376. if ((val)->o[0] & 0x80) {
  7377. if (!ASN1Enc_H225NonStandardMessage_tokens(ee, &(val)->tokens))
  7378. return 0;
  7379. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7380. return 0;
  7381. }
  7382. if ((val)->o[0] & 0x40) {
  7383. if (!ASN1Enc_H225NonStandardMessage_cryptoTokens(ee, &(val)->cryptoTokens))
  7384. return 0;
  7385. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7386. return 0;
  7387. }
  7388. if ((val)->o[0] & 0x20) {
  7389. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  7390. return 0;
  7391. if (!ASN1PEREncFlushFragmentedToParent(ee))
  7392. return 0;
  7393. }
  7394. ASN1_CloseEncoder2(ee);
  7395. }
  7396. return 1;
  7397. }
  7398. static int ASN1CALL ASN1Dec_H225NonStandardMessage(ASN1decoding_t dec, H225NonStandardMessage *val)
  7399. {
  7400. ASN1uint32_t y;
  7401. ASN1decoding_t dd;
  7402. ASN1octet_t *db;
  7403. ASN1uint32_t ds;
  7404. ASN1uint32_t i;
  7405. ASN1uint32_t e;
  7406. if (!ASN1PERDecExtensionBit(dec, &y))
  7407. return 0;
  7408. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7409. return 0;
  7410. (val)->requestSeqNum += 1;
  7411. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7412. return 0;
  7413. if (!y) {
  7414. ZeroMemory((val)->o + 0, 1);
  7415. } else {
  7416. if (!ASN1PERDecNormallySmallExtension(dec, &e, 3, (val)->o + 0))
  7417. return 0;
  7418. if ((val)->o[0] & 0x80) {
  7419. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7420. return 0;
  7421. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7422. return 0;
  7423. if (!ASN1Dec_H225NonStandardMessage_tokens(dd, &(val)->tokens))
  7424. return 0;
  7425. ASN1_CloseDecoder(dd);
  7426. ASN1Free(db);
  7427. }
  7428. if ((val)->o[0] & 0x40) {
  7429. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7430. return 0;
  7431. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7432. return 0;
  7433. if (!ASN1Dec_H225NonStandardMessage_cryptoTokens(dd, &(val)->cryptoTokens))
  7434. return 0;
  7435. ASN1_CloseDecoder(dd);
  7436. ASN1Free(db);
  7437. }
  7438. if ((val)->o[0] & 0x20) {
  7439. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  7440. return 0;
  7441. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  7442. return 0;
  7443. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  7444. return 0;
  7445. ASN1_CloseDecoder(dd);
  7446. ASN1Free(db);
  7447. }
  7448. for (i = 0; i < e; i++) {
  7449. if (!ASN1PERDecSkipFragmented(dec, 8))
  7450. return 0;
  7451. }
  7452. }
  7453. return 1;
  7454. }
  7455. static void ASN1CALL ASN1Free_H225NonStandardMessage(H225NonStandardMessage *val)
  7456. {
  7457. if (val) {
  7458. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7459. if ((val)->o[0] & 0x80) {
  7460. ASN1Free_H225NonStandardMessage_tokens(&(val)->tokens);
  7461. }
  7462. if ((val)->o[0] & 0x40) {
  7463. ASN1Free_H225NonStandardMessage_cryptoTokens(&(val)->cryptoTokens);
  7464. }
  7465. if ((val)->o[0] & 0x20) {
  7466. ASN1Free_ICV(&(val)->integrityCheckValue);
  7467. }
  7468. }
  7469. }
  7470. static int ASN1CALL ASN1Enc_RequestInProgress(ASN1encoding_t enc, RequestInProgress *val)
  7471. {
  7472. if (!ASN1PEREncExtensionBitClear(enc))
  7473. return 0;
  7474. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7475. return 0;
  7476. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7477. return 0;
  7478. if ((val)->o[0] & 0x80) {
  7479. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7480. return 0;
  7481. }
  7482. if ((val)->o[0] & 0x40) {
  7483. if (!ASN1Enc_RequestInProgress_tokens(enc, &(val)->tokens))
  7484. return 0;
  7485. }
  7486. if ((val)->o[0] & 0x20) {
  7487. if (!ASN1Enc_RequestInProgress_cryptoTokens(enc, &(val)->cryptoTokens))
  7488. return 0;
  7489. }
  7490. if ((val)->o[0] & 0x10) {
  7491. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7492. return 0;
  7493. }
  7494. if (!ASN1PEREncUnsignedShort(enc, (val)->delay - 1))
  7495. return 0;
  7496. return 1;
  7497. }
  7498. static int ASN1CALL ASN1Dec_RequestInProgress(ASN1decoding_t dec, RequestInProgress *val)
  7499. {
  7500. ASN1uint32_t y;
  7501. if (!ASN1PERDecExtensionBit(dec, &y))
  7502. return 0;
  7503. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7504. return 0;
  7505. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7506. return 0;
  7507. (val)->requestSeqNum += 1;
  7508. if ((val)->o[0] & 0x80) {
  7509. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7510. return 0;
  7511. }
  7512. if ((val)->o[0] & 0x40) {
  7513. if (!ASN1Dec_RequestInProgress_tokens(dec, &(val)->tokens))
  7514. return 0;
  7515. }
  7516. if ((val)->o[0] & 0x20) {
  7517. if (!ASN1Dec_RequestInProgress_cryptoTokens(dec, &(val)->cryptoTokens))
  7518. return 0;
  7519. }
  7520. if ((val)->o[0] & 0x10) {
  7521. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7522. return 0;
  7523. }
  7524. if (!ASN1PERDecUnsignedShort(dec, &(val)->delay))
  7525. return 0;
  7526. (val)->delay += 1;
  7527. if (y) {
  7528. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7529. return 0;
  7530. }
  7531. return 1;
  7532. }
  7533. static void ASN1CALL ASN1Free_RequestInProgress(RequestInProgress *val)
  7534. {
  7535. if (val) {
  7536. if ((val)->o[0] & 0x80) {
  7537. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7538. }
  7539. if ((val)->o[0] & 0x40) {
  7540. ASN1Free_RequestInProgress_tokens(&(val)->tokens);
  7541. }
  7542. if ((val)->o[0] & 0x20) {
  7543. ASN1Free_RequestInProgress_cryptoTokens(&(val)->cryptoTokens);
  7544. }
  7545. if ((val)->o[0] & 0x10) {
  7546. ASN1Free_ICV(&(val)->integrityCheckValue);
  7547. }
  7548. }
  7549. }
  7550. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate(ASN1encoding_t enc, ResourcesAvailableIndicate *val)
  7551. {
  7552. if (!ASN1PEREncExtensionBitClear(enc))
  7553. return 0;
  7554. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7555. return 0;
  7556. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7557. return 0;
  7558. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7559. return 0;
  7560. if ((val)->o[0] & 0x80) {
  7561. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7562. return 0;
  7563. }
  7564. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  7565. return 0;
  7566. ASN1PEREncAlignment(enc);
  7567. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  7568. return 0;
  7569. if (!ASN1Enc_ResourcesAvailableIndicate_protocols(enc, &(val)->protocols))
  7570. return 0;
  7571. if (!ASN1PEREncBoolean(enc, (val)->almostOutOfResources))
  7572. return 0;
  7573. if ((val)->o[0] & 0x40) {
  7574. if (!ASN1Enc_ResourcesAvailableIndicate_tokens(enc, &(val)->tokens))
  7575. return 0;
  7576. }
  7577. if ((val)->o[0] & 0x20) {
  7578. if (!ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(enc, &(val)->cryptoTokens))
  7579. return 0;
  7580. }
  7581. if ((val)->o[0] & 0x10) {
  7582. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7583. return 0;
  7584. }
  7585. return 1;
  7586. }
  7587. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate(ASN1decoding_t dec, ResourcesAvailableIndicate *val)
  7588. {
  7589. ASN1uint32_t y;
  7590. if (!ASN1PERDecExtensionBit(dec, &y))
  7591. return 0;
  7592. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7593. return 0;
  7594. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7595. return 0;
  7596. (val)->requestSeqNum += 1;
  7597. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7598. return 0;
  7599. if ((val)->o[0] & 0x80) {
  7600. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7601. return 0;
  7602. }
  7603. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  7604. return 0;
  7605. ((val)->endpointIdentifier).length += 1;
  7606. ASN1PERDecAlignment(dec);
  7607. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  7608. return 0;
  7609. if (!ASN1Dec_ResourcesAvailableIndicate_protocols(dec, &(val)->protocols))
  7610. return 0;
  7611. if (!ASN1PERDecBoolean(dec, &(val)->almostOutOfResources))
  7612. return 0;
  7613. if ((val)->o[0] & 0x40) {
  7614. if (!ASN1Dec_ResourcesAvailableIndicate_tokens(dec, &(val)->tokens))
  7615. return 0;
  7616. }
  7617. if ((val)->o[0] & 0x20) {
  7618. if (!ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(dec, &(val)->cryptoTokens))
  7619. return 0;
  7620. }
  7621. if ((val)->o[0] & 0x10) {
  7622. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7623. return 0;
  7624. }
  7625. if (y) {
  7626. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7627. return 0;
  7628. }
  7629. return 1;
  7630. }
  7631. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate(ResourcesAvailableIndicate *val)
  7632. {
  7633. if (val) {
  7634. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7635. if ((val)->o[0] & 0x80) {
  7636. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7637. }
  7638. ASN1char16string_free(&(val)->endpointIdentifier);
  7639. ASN1Free_ResourcesAvailableIndicate_protocols(&(val)->protocols);
  7640. if ((val)->o[0] & 0x40) {
  7641. ASN1Free_ResourcesAvailableIndicate_tokens(&(val)->tokens);
  7642. }
  7643. if ((val)->o[0] & 0x20) {
  7644. ASN1Free_ResourcesAvailableIndicate_cryptoTokens(&(val)->cryptoTokens);
  7645. }
  7646. if ((val)->o[0] & 0x10) {
  7647. ASN1Free_ICV(&(val)->integrityCheckValue);
  7648. }
  7649. }
  7650. }
  7651. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm(ASN1encoding_t enc, ResourcesAvailableConfirm *val)
  7652. {
  7653. if (!ASN1PEREncExtensionBitClear(enc))
  7654. return 0;
  7655. if (!ASN1PEREncBits(enc, 4, (val)->o))
  7656. return 0;
  7657. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  7658. return 0;
  7659. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  7660. return 0;
  7661. if ((val)->o[0] & 0x80) {
  7662. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  7663. return 0;
  7664. }
  7665. if ((val)->o[0] & 0x40) {
  7666. if (!ASN1Enc_ResourcesAvailableConfirm_tokens(enc, &(val)->tokens))
  7667. return 0;
  7668. }
  7669. if ((val)->o[0] & 0x20) {
  7670. if (!ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(enc, &(val)->cryptoTokens))
  7671. return 0;
  7672. }
  7673. if ((val)->o[0] & 0x10) {
  7674. if (!ASN1Enc_ICV(enc, &(val)->integrityCheckValue))
  7675. return 0;
  7676. }
  7677. return 1;
  7678. }
  7679. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm(ASN1decoding_t dec, ResourcesAvailableConfirm *val)
  7680. {
  7681. ASN1uint32_t y;
  7682. if (!ASN1PERDecExtensionBit(dec, &y))
  7683. return 0;
  7684. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  7685. return 0;
  7686. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  7687. return 0;
  7688. (val)->requestSeqNum += 1;
  7689. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  7690. return 0;
  7691. if ((val)->o[0] & 0x80) {
  7692. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  7693. return 0;
  7694. }
  7695. if ((val)->o[0] & 0x40) {
  7696. if (!ASN1Dec_ResourcesAvailableConfirm_tokens(dec, &(val)->tokens))
  7697. return 0;
  7698. }
  7699. if ((val)->o[0] & 0x20) {
  7700. if (!ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(dec, &(val)->cryptoTokens))
  7701. return 0;
  7702. }
  7703. if ((val)->o[0] & 0x10) {
  7704. if (!ASN1Dec_ICV(dec, &(val)->integrityCheckValue))
  7705. return 0;
  7706. }
  7707. if (y) {
  7708. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  7709. return 0;
  7710. }
  7711. return 1;
  7712. }
  7713. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm(ResourcesAvailableConfirm *val)
  7714. {
  7715. if (val) {
  7716. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  7717. if ((val)->o[0] & 0x80) {
  7718. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  7719. }
  7720. if ((val)->o[0] & 0x40) {
  7721. ASN1Free_ResourcesAvailableConfirm_tokens(&(val)->tokens);
  7722. }
  7723. if ((val)->o[0] & 0x20) {
  7724. ASN1Free_ResourcesAvailableConfirm_cryptoTokens(&(val)->cryptoTokens);
  7725. }
  7726. if ((val)->o[0] & 0x10) {
  7727. ASN1Free_ICV(&(val)->integrityCheckValue);
  7728. }
  7729. }
  7730. }
  7731. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity(ASN1encoding_t enc, PGatekeeperConfirm_integrity *val)
  7732. {
  7733. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_integrity_ElmFn);
  7734. }
  7735. static int ASN1CALL ASN1Enc_GatekeeperConfirm_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_integrity val)
  7736. {
  7737. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7738. return 0;
  7739. return 1;
  7740. }
  7741. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity(ASN1decoding_t dec, PGatekeeperConfirm_integrity *val)
  7742. {
  7743. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_integrity_ElmFn, sizeof(**val));
  7744. }
  7745. static int ASN1CALL ASN1Dec_GatekeeperConfirm_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_integrity val)
  7746. {
  7747. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7748. return 0;
  7749. return 1;
  7750. }
  7751. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity(PGatekeeperConfirm_integrity *val)
  7752. {
  7753. if (val) {
  7754. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_integrity_ElmFn);
  7755. }
  7756. }
  7757. static void ASN1CALL ASN1Free_GatekeeperConfirm_integrity_ElmFn(PGatekeeperConfirm_integrity val)
  7758. {
  7759. if (val) {
  7760. ASN1Free_IntegrityMechanism(&val->value);
  7761. }
  7762. }
  7763. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity(ASN1encoding_t enc, PGatekeeperRequest_integrity *val)
  7764. {
  7765. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_integrity_ElmFn);
  7766. }
  7767. static int ASN1CALL ASN1Enc_GatekeeperRequest_integrity_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_integrity val)
  7768. {
  7769. if (!ASN1Enc_IntegrityMechanism(enc, &val->value))
  7770. return 0;
  7771. return 1;
  7772. }
  7773. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity(ASN1decoding_t dec, PGatekeeperRequest_integrity *val)
  7774. {
  7775. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_integrity_ElmFn, sizeof(**val));
  7776. }
  7777. static int ASN1CALL ASN1Dec_GatekeeperRequest_integrity_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_integrity val)
  7778. {
  7779. if (!ASN1Dec_IntegrityMechanism(dec, &val->value))
  7780. return 0;
  7781. return 1;
  7782. }
  7783. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity(PGatekeeperRequest_integrity *val)
  7784. {
  7785. if (val) {
  7786. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_integrity_ElmFn);
  7787. }
  7788. }
  7789. static void ASN1CALL ASN1Free_GatekeeperRequest_integrity_ElmFn(PGatekeeperRequest_integrity val)
  7790. {
  7791. if (val) {
  7792. ASN1Free_IntegrityMechanism(&val->value);
  7793. }
  7794. }
  7795. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoGKPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoGKPwdHash *val)
  7796. {
  7797. ASN1uint32_t l;
  7798. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperId).length - 1))
  7799. return 0;
  7800. ASN1PEREncAlignment(enc);
  7801. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperId).length, ((val)->gatekeeperId).value, 16))
  7802. return 0;
  7803. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  7804. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  7805. return 0;
  7806. ASN1PEREncAlignment(enc);
  7807. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  7808. return 0;
  7809. if (!ASN1Enc_HASHED(enc, &(val)->token))
  7810. return 0;
  7811. return 1;
  7812. }
  7813. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoGKPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoGKPwdHash *val)
  7814. {
  7815. ASN1uint32_t l;
  7816. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperId).length))
  7817. return 0;
  7818. ((val)->gatekeeperId).length += 1;
  7819. ASN1PERDecAlignment(dec);
  7820. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperId).length, &((val)->gatekeeperId).value, 16))
  7821. return 0;
  7822. if (!ASN1PERDecU32Val(dec, 2, &l))
  7823. return 0;
  7824. l += 1;
  7825. ASN1PERDecAlignment(dec);
  7826. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  7827. return 0;
  7828. (val)->timeStamp += 1;
  7829. if (!ASN1Dec_HASHED(dec, &(val)->token))
  7830. return 0;
  7831. return 1;
  7832. }
  7833. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoGKPwdHash(CryptoH323Token_cryptoGKPwdHash *val)
  7834. {
  7835. if (val) {
  7836. ASN1char16string_free(&(val)->gatekeeperId);
  7837. ASN1Free_HASHED(&(val)->token);
  7838. }
  7839. }
  7840. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported *val)
  7841. {
  7842. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn);
  7843. }
  7844. static int ASN1CALL ASN1Enc_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_dataRatesSupported val)
  7845. {
  7846. if (!ASN1Enc_DataRate(enc, &val->value))
  7847. return 0;
  7848. return 1;
  7849. }
  7850. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported *val)
  7851. {
  7852. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn, sizeof(**val));
  7853. }
  7854. static int ASN1CALL ASN1Dec_NonStandardProtocol_dataRatesSupported_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_dataRatesSupported val)
  7855. {
  7856. if (!ASN1Dec_DataRate(dec, &val->value))
  7857. return 0;
  7858. return 1;
  7859. }
  7860. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported(PNonStandardProtocol_dataRatesSupported *val)
  7861. {
  7862. if (val) {
  7863. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn);
  7864. }
  7865. }
  7866. static void ASN1CALL ASN1Free_NonStandardProtocol_dataRatesSupported_ElmFn(PNonStandardProtocol_dataRatesSupported val)
  7867. {
  7868. if (val) {
  7869. ASN1Free_DataRate(&val->value);
  7870. }
  7871. }
  7872. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported *val)
  7873. {
  7874. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn);
  7875. }
  7876. static int ASN1CALL ASN1Enc_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_dataRatesSupported val)
  7877. {
  7878. if (!ASN1Enc_DataRate(enc, &val->value))
  7879. return 0;
  7880. return 1;
  7881. }
  7882. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported *val)
  7883. {
  7884. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7885. }
  7886. static int ASN1CALL ASN1Dec_T120OnlyCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_dataRatesSupported val)
  7887. {
  7888. if (!ASN1Dec_DataRate(dec, &val->value))
  7889. return 0;
  7890. return 1;
  7891. }
  7892. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported(PT120OnlyCaps_dataRatesSupported *val)
  7893. {
  7894. if (val) {
  7895. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn);
  7896. }
  7897. }
  7898. static void ASN1CALL ASN1Free_T120OnlyCaps_dataRatesSupported_ElmFn(PT120OnlyCaps_dataRatesSupported val)
  7899. {
  7900. if (val) {
  7901. ASN1Free_DataRate(&val->value);
  7902. }
  7903. }
  7904. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported *val)
  7905. {
  7906. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn);
  7907. }
  7908. static int ASN1CALL ASN1Enc_VoiceCaps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PVoiceCaps_dataRatesSupported val)
  7909. {
  7910. if (!ASN1Enc_DataRate(enc, &val->value))
  7911. return 0;
  7912. return 1;
  7913. }
  7914. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported *val)
  7915. {
  7916. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn, sizeof(**val));
  7917. }
  7918. static int ASN1CALL ASN1Dec_VoiceCaps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PVoiceCaps_dataRatesSupported val)
  7919. {
  7920. if (!ASN1Dec_DataRate(dec, &val->value))
  7921. return 0;
  7922. return 1;
  7923. }
  7924. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported(PVoiceCaps_dataRatesSupported *val)
  7925. {
  7926. if (val) {
  7927. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_dataRatesSupported_ElmFn);
  7928. }
  7929. }
  7930. static void ASN1CALL ASN1Free_VoiceCaps_dataRatesSupported_ElmFn(PVoiceCaps_dataRatesSupported val)
  7931. {
  7932. if (val) {
  7933. ASN1Free_DataRate(&val->value);
  7934. }
  7935. }
  7936. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported(ASN1encoding_t enc, PH324Caps_dataRatesSupported *val)
  7937. {
  7938. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_dataRatesSupported_ElmFn);
  7939. }
  7940. static int ASN1CALL ASN1Enc_H324Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH324Caps_dataRatesSupported val)
  7941. {
  7942. if (!ASN1Enc_DataRate(enc, &val->value))
  7943. return 0;
  7944. return 1;
  7945. }
  7946. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported(ASN1decoding_t dec, PH324Caps_dataRatesSupported *val)
  7947. {
  7948. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7949. }
  7950. static int ASN1CALL ASN1Dec_H324Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH324Caps_dataRatesSupported val)
  7951. {
  7952. if (!ASN1Dec_DataRate(dec, &val->value))
  7953. return 0;
  7954. return 1;
  7955. }
  7956. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported(PH324Caps_dataRatesSupported *val)
  7957. {
  7958. if (val) {
  7959. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_dataRatesSupported_ElmFn);
  7960. }
  7961. }
  7962. static void ASN1CALL ASN1Free_H324Caps_dataRatesSupported_ElmFn(PH324Caps_dataRatesSupported val)
  7963. {
  7964. if (val) {
  7965. ASN1Free_DataRate(&val->value);
  7966. }
  7967. }
  7968. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported(ASN1encoding_t enc, PH323Caps_dataRatesSupported *val)
  7969. {
  7970. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_dataRatesSupported_ElmFn);
  7971. }
  7972. static int ASN1CALL ASN1Enc_H323Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH323Caps_dataRatesSupported val)
  7973. {
  7974. if (!ASN1Enc_DataRate(enc, &val->value))
  7975. return 0;
  7976. return 1;
  7977. }
  7978. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported(ASN1decoding_t dec, PH323Caps_dataRatesSupported *val)
  7979. {
  7980. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_dataRatesSupported_ElmFn, sizeof(**val));
  7981. }
  7982. static int ASN1CALL ASN1Dec_H323Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH323Caps_dataRatesSupported val)
  7983. {
  7984. if (!ASN1Dec_DataRate(dec, &val->value))
  7985. return 0;
  7986. return 1;
  7987. }
  7988. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported(PH323Caps_dataRatesSupported *val)
  7989. {
  7990. if (val) {
  7991. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_dataRatesSupported_ElmFn);
  7992. }
  7993. }
  7994. static void ASN1CALL ASN1Free_H323Caps_dataRatesSupported_ElmFn(PH323Caps_dataRatesSupported val)
  7995. {
  7996. if (val) {
  7997. ASN1Free_DataRate(&val->value);
  7998. }
  7999. }
  8000. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported(ASN1encoding_t enc, PH322Caps_dataRatesSupported *val)
  8001. {
  8002. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_dataRatesSupported_ElmFn);
  8003. }
  8004. static int ASN1CALL ASN1Enc_H322Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH322Caps_dataRatesSupported val)
  8005. {
  8006. if (!ASN1Enc_DataRate(enc, &val->value))
  8007. return 0;
  8008. return 1;
  8009. }
  8010. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported(ASN1decoding_t dec, PH322Caps_dataRatesSupported *val)
  8011. {
  8012. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8013. }
  8014. static int ASN1CALL ASN1Dec_H322Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH322Caps_dataRatesSupported val)
  8015. {
  8016. if (!ASN1Dec_DataRate(dec, &val->value))
  8017. return 0;
  8018. return 1;
  8019. }
  8020. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported(PH322Caps_dataRatesSupported *val)
  8021. {
  8022. if (val) {
  8023. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_dataRatesSupported_ElmFn);
  8024. }
  8025. }
  8026. static void ASN1CALL ASN1Free_H322Caps_dataRatesSupported_ElmFn(PH322Caps_dataRatesSupported val)
  8027. {
  8028. if (val) {
  8029. ASN1Free_DataRate(&val->value);
  8030. }
  8031. }
  8032. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported(ASN1encoding_t enc, PH321Caps_dataRatesSupported *val)
  8033. {
  8034. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_dataRatesSupported_ElmFn);
  8035. }
  8036. static int ASN1CALL ASN1Enc_H321Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH321Caps_dataRatesSupported val)
  8037. {
  8038. if (!ASN1Enc_DataRate(enc, &val->value))
  8039. return 0;
  8040. return 1;
  8041. }
  8042. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported(ASN1decoding_t dec, PH321Caps_dataRatesSupported *val)
  8043. {
  8044. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8045. }
  8046. static int ASN1CALL ASN1Dec_H321Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH321Caps_dataRatesSupported val)
  8047. {
  8048. if (!ASN1Dec_DataRate(dec, &val->value))
  8049. return 0;
  8050. return 1;
  8051. }
  8052. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported(PH321Caps_dataRatesSupported *val)
  8053. {
  8054. if (val) {
  8055. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_dataRatesSupported_ElmFn);
  8056. }
  8057. }
  8058. static void ASN1CALL ASN1Free_H321Caps_dataRatesSupported_ElmFn(PH321Caps_dataRatesSupported val)
  8059. {
  8060. if (val) {
  8061. ASN1Free_DataRate(&val->value);
  8062. }
  8063. }
  8064. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported(ASN1encoding_t enc, PH320Caps_dataRatesSupported *val)
  8065. {
  8066. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_dataRatesSupported_ElmFn);
  8067. }
  8068. static int ASN1CALL ASN1Enc_H320Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH320Caps_dataRatesSupported val)
  8069. {
  8070. if (!ASN1Enc_DataRate(enc, &val->value))
  8071. return 0;
  8072. return 1;
  8073. }
  8074. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported(ASN1decoding_t dec, PH320Caps_dataRatesSupported *val)
  8075. {
  8076. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8077. }
  8078. static int ASN1CALL ASN1Dec_H320Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH320Caps_dataRatesSupported val)
  8079. {
  8080. if (!ASN1Dec_DataRate(dec, &val->value))
  8081. return 0;
  8082. return 1;
  8083. }
  8084. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported(PH320Caps_dataRatesSupported *val)
  8085. {
  8086. if (val) {
  8087. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_dataRatesSupported_ElmFn);
  8088. }
  8089. }
  8090. static void ASN1CALL ASN1Free_H320Caps_dataRatesSupported_ElmFn(PH320Caps_dataRatesSupported val)
  8091. {
  8092. if (val) {
  8093. ASN1Free_DataRate(&val->value);
  8094. }
  8095. }
  8096. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported(ASN1encoding_t enc, PH310Caps_dataRatesSupported *val)
  8097. {
  8098. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_dataRatesSupported_ElmFn);
  8099. }
  8100. static int ASN1CALL ASN1Enc_H310Caps_dataRatesSupported_ElmFn(ASN1encoding_t enc, PH310Caps_dataRatesSupported val)
  8101. {
  8102. if (!ASN1Enc_DataRate(enc, &val->value))
  8103. return 0;
  8104. return 1;
  8105. }
  8106. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported(ASN1decoding_t dec, PH310Caps_dataRatesSupported *val)
  8107. {
  8108. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_dataRatesSupported_ElmFn, sizeof(**val));
  8109. }
  8110. static int ASN1CALL ASN1Dec_H310Caps_dataRatesSupported_ElmFn(ASN1decoding_t dec, PH310Caps_dataRatesSupported val)
  8111. {
  8112. if (!ASN1Dec_DataRate(dec, &val->value))
  8113. return 0;
  8114. return 1;
  8115. }
  8116. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported(PH310Caps_dataRatesSupported *val)
  8117. {
  8118. if (val) {
  8119. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_dataRatesSupported_ElmFn);
  8120. }
  8121. }
  8122. static void ASN1CALL ASN1Free_H310Caps_dataRatesSupported_ElmFn(PH310Caps_dataRatesSupported val)
  8123. {
  8124. if (val) {
  8125. ASN1Free_DataRate(&val->value);
  8126. }
  8127. }
  8128. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability *val)
  8129. {
  8130. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn);
  8131. }
  8132. static int ASN1CALL ASN1Enc_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1encoding_t enc, PSetup_UUIE_h245SecurityCapability val)
  8133. {
  8134. if (!ASN1Enc_H245Security(enc, &val->value))
  8135. return 0;
  8136. return 1;
  8137. }
  8138. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability *val)
  8139. {
  8140. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn, sizeof(**val));
  8141. }
  8142. static int ASN1CALL ASN1Dec_Setup_UUIE_h245SecurityCapability_ElmFn(ASN1decoding_t dec, PSetup_UUIE_h245SecurityCapability val)
  8143. {
  8144. if (!ASN1Dec_H245Security(dec, &val->value))
  8145. return 0;
  8146. return 1;
  8147. }
  8148. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability(PSetup_UUIE_h245SecurityCapability *val)
  8149. {
  8150. if (val) {
  8151. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn);
  8152. }
  8153. }
  8154. static void ASN1CALL ASN1Free_Setup_UUIE_h245SecurityCapability_ElmFn(PSetup_UUIE_h245SecurityCapability val)
  8155. {
  8156. if (val) {
  8157. ASN1Free_H245Security(&val->value);
  8158. }
  8159. }
  8160. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl *val)
  8161. {
  8162. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn);
  8163. }
  8164. static int ASN1CALL ASN1Enc_H323_UU_PDU_nonStandardControl_ElmFn(ASN1encoding_t enc, PH323_UU_PDU_nonStandardControl val)
  8165. {
  8166. if (!ASN1Enc_H225NonStandardParameter(enc, &val->value))
  8167. return 0;
  8168. return 1;
  8169. }
  8170. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl *val)
  8171. {
  8172. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn, sizeof(**val));
  8173. }
  8174. static int ASN1CALL ASN1Dec_H323_UU_PDU_nonStandardControl_ElmFn(ASN1decoding_t dec, PH323_UU_PDU_nonStandardControl val)
  8175. {
  8176. if (!ASN1Dec_H225NonStandardParameter(dec, &val->value))
  8177. return 0;
  8178. return 1;
  8179. }
  8180. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl(PH323_UU_PDU_nonStandardControl *val)
  8181. {
  8182. if (val) {
  8183. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn);
  8184. }
  8185. }
  8186. static void ASN1CALL ASN1Free_H323_UU_PDU_nonStandardControl_ElmFn(PH323_UU_PDU_nonStandardControl val)
  8187. {
  8188. if (val) {
  8189. ASN1Free_H225NonStandardParameter(&val->value);
  8190. }
  8191. }
  8192. static int ASN1CALL ASN1Enc_CryptoToken_cryptoHashedToken(ASN1encoding_t enc, CryptoToken_cryptoHashedToken *val)
  8193. {
  8194. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8195. return 0;
  8196. if (!ASN1Enc_ClearToken(enc, &(val)->hashedVals))
  8197. return 0;
  8198. if (!ASN1Enc_HASHED(enc, &(val)->token))
  8199. return 0;
  8200. return 1;
  8201. }
  8202. static int ASN1CALL ASN1Dec_CryptoToken_cryptoHashedToken(ASN1decoding_t dec, CryptoToken_cryptoHashedToken *val)
  8203. {
  8204. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8205. return 0;
  8206. if (!ASN1Dec_ClearToken(dec, &(val)->hashedVals))
  8207. return 0;
  8208. if (!ASN1Dec_HASHED(dec, &(val)->token))
  8209. return 0;
  8210. return 1;
  8211. }
  8212. static void ASN1CALL ASN1Free_CryptoToken_cryptoHashedToken(CryptoToken_cryptoHashedToken *val)
  8213. {
  8214. if (val) {
  8215. ASN1objectidentifier_free(&(val)->tokenOID);
  8216. ASN1Free_ClearToken(&(val)->hashedVals);
  8217. ASN1Free_HASHED(&(val)->token);
  8218. }
  8219. }
  8220. static int ASN1CALL ASN1Enc_CryptoToken_cryptoSignedToken(ASN1encoding_t enc, CryptoToken_cryptoSignedToken *val)
  8221. {
  8222. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8223. return 0;
  8224. if (!ASN1Enc_SIGNED_EncodedGeneralToken(enc, &(val)->token))
  8225. return 0;
  8226. return 1;
  8227. }
  8228. static int ASN1CALL ASN1Dec_CryptoToken_cryptoSignedToken(ASN1decoding_t dec, CryptoToken_cryptoSignedToken *val)
  8229. {
  8230. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8231. return 0;
  8232. if (!ASN1Dec_SIGNED_EncodedGeneralToken(dec, &(val)->token))
  8233. return 0;
  8234. return 1;
  8235. }
  8236. static void ASN1CALL ASN1Free_CryptoToken_cryptoSignedToken(CryptoToken_cryptoSignedToken *val)
  8237. {
  8238. if (val) {
  8239. ASN1objectidentifier_free(&(val)->tokenOID);
  8240. ASN1Free_SIGNED_EncodedGeneralToken(&(val)->token);
  8241. }
  8242. }
  8243. static int ASN1CALL ASN1Enc_CryptoToken_cryptoEncryptedToken(ASN1encoding_t enc, CryptoToken_cryptoEncryptedToken *val)
  8244. {
  8245. if (!ASN1PEREncObjectIdentifier(enc, &(val)->tokenOID))
  8246. return 0;
  8247. if (!ASN1Enc_ENCRYPTED(enc, &(val)->token))
  8248. return 0;
  8249. return 1;
  8250. }
  8251. static int ASN1CALL ASN1Dec_CryptoToken_cryptoEncryptedToken(ASN1decoding_t dec, CryptoToken_cryptoEncryptedToken *val)
  8252. {
  8253. if (!ASN1PERDecObjectIdentifier(dec, &(val)->tokenOID))
  8254. return 0;
  8255. if (!ASN1Dec_ENCRYPTED(dec, &(val)->token))
  8256. return 0;
  8257. return 1;
  8258. }
  8259. static void ASN1CALL ASN1Free_CryptoToken_cryptoEncryptedToken(CryptoToken_cryptoEncryptedToken *val)
  8260. {
  8261. if (val) {
  8262. ASN1objectidentifier_free(&(val)->tokenOID);
  8263. ASN1Free_ENCRYPTED(&(val)->token);
  8264. }
  8265. }
  8266. static int ASN1CALL ASN1Enc_CryptoToken(ASN1encoding_t enc, CryptoToken *val)
  8267. {
  8268. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 2))
  8269. return 0;
  8270. switch ((val)->choice) {
  8271. case 1:
  8272. if (!ASN1Enc_CryptoToken_cryptoEncryptedToken(enc, &(val)->u.cryptoEncryptedToken))
  8273. return 0;
  8274. break;
  8275. case 2:
  8276. if (!ASN1Enc_CryptoToken_cryptoSignedToken(enc, &(val)->u.cryptoSignedToken))
  8277. return 0;
  8278. break;
  8279. case 3:
  8280. if (!ASN1Enc_CryptoToken_cryptoHashedToken(enc, &(val)->u.cryptoHashedToken))
  8281. return 0;
  8282. break;
  8283. case 4:
  8284. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoPwdEncr))
  8285. return 0;
  8286. break;
  8287. default:
  8288. /* impossible */
  8289. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8290. return 0;
  8291. }
  8292. return 1;
  8293. }
  8294. static int ASN1CALL ASN1Dec_CryptoToken(ASN1decoding_t dec, CryptoToken *val)
  8295. {
  8296. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 2))
  8297. return 0;
  8298. switch ((val)->choice) {
  8299. case 1:
  8300. if (!ASN1Dec_CryptoToken_cryptoEncryptedToken(dec, &(val)->u.cryptoEncryptedToken))
  8301. return 0;
  8302. break;
  8303. case 2:
  8304. if (!ASN1Dec_CryptoToken_cryptoSignedToken(dec, &(val)->u.cryptoSignedToken))
  8305. return 0;
  8306. break;
  8307. case 3:
  8308. if (!ASN1Dec_CryptoToken_cryptoHashedToken(dec, &(val)->u.cryptoHashedToken))
  8309. return 0;
  8310. break;
  8311. case 4:
  8312. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoPwdEncr))
  8313. return 0;
  8314. break;
  8315. case 0:
  8316. /* extension case */
  8317. if (!ASN1PERDecSkipFragmented(dec, 8))
  8318. return 0;
  8319. break;
  8320. default:
  8321. /* impossible */
  8322. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8323. return 0;
  8324. }
  8325. return 1;
  8326. }
  8327. static void ASN1CALL ASN1Free_CryptoToken(CryptoToken *val)
  8328. {
  8329. if (val) {
  8330. switch ((val)->choice) {
  8331. case 1:
  8332. ASN1Free_CryptoToken_cryptoEncryptedToken(&(val)->u.cryptoEncryptedToken);
  8333. break;
  8334. case 2:
  8335. ASN1Free_CryptoToken_cryptoSignedToken(&(val)->u.cryptoSignedToken);
  8336. break;
  8337. case 3:
  8338. ASN1Free_CryptoToken_cryptoHashedToken(&(val)->u.cryptoHashedToken);
  8339. break;
  8340. case 4:
  8341. ASN1Free_ENCRYPTED(&(val)->u.cryptoPwdEncr);
  8342. break;
  8343. }
  8344. }
  8345. }
  8346. static int ASN1CALL ASN1Enc_SIGNED_EncodedFastStartToken(ASN1encoding_t enc, SIGNED_EncodedFastStartToken *val)
  8347. {
  8348. if (!ASN1Enc_EncodedFastStartToken(enc, &(val)->toBeSigned))
  8349. return 0;
  8350. if (!ASN1PEREncObjectIdentifier(enc, &(val)->algorithmOID))
  8351. return 0;
  8352. if (!ASN1Enc_Params(enc, &(val)->paramS))
  8353. return 0;
  8354. if (!ASN1PEREncFragmented(enc, ((val)->signature).length, ((val)->signature).value, 1))
  8355. return 0;
  8356. return 1;
  8357. }
  8358. static int ASN1CALL ASN1Dec_SIGNED_EncodedFastStartToken(ASN1decoding_t dec, SIGNED_EncodedFastStartToken *val)
  8359. {
  8360. if (!ASN1Dec_EncodedFastStartToken(dec, &(val)->toBeSigned))
  8361. return 0;
  8362. if (!ASN1PERDecObjectIdentifier(dec, &(val)->algorithmOID))
  8363. return 0;
  8364. if (!ASN1Dec_Params(dec, &(val)->paramS))
  8365. return 0;
  8366. if (!ASN1PERDecFragmented(dec, &((val)->signature).length, &((val)->signature).value, 1))
  8367. return 0;
  8368. return 1;
  8369. }
  8370. static void ASN1CALL ASN1Free_SIGNED_EncodedFastStartToken(SIGNED_EncodedFastStartToken *val)
  8371. {
  8372. if (val) {
  8373. ASN1Free_EncodedFastStartToken(&(val)->toBeSigned);
  8374. ASN1objectidentifier_free(&(val)->algorithmOID);
  8375. ASN1Free_Params(&(val)->paramS);
  8376. ASN1bitstring_free(&(val)->signature);
  8377. }
  8378. }
  8379. static int ASN1CALL ASN1Enc_TransportAddress(ASN1encoding_t enc, TransportAddress *val)
  8380. {
  8381. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  8382. return 0;
  8383. switch ((val)->choice) {
  8384. case 1:
  8385. if (!ASN1Enc_TransportAddress_ipAddress(enc, &(val)->u.ipAddress))
  8386. return 0;
  8387. break;
  8388. case 2:
  8389. if (!ASN1Enc_TransportAddress_ipSourceRoute(enc, &(val)->u.ipSourceRoute))
  8390. return 0;
  8391. break;
  8392. case 3:
  8393. if (!ASN1Enc_TransportAddress_ipxAddress(enc, &(val)->u.ipxAddress))
  8394. return 0;
  8395. break;
  8396. case 4:
  8397. if (!ASN1Enc_TransportAddress_ip6Address(enc, &(val)->u.ip6Address))
  8398. return 0;
  8399. break;
  8400. case 5:
  8401. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8402. return 0;
  8403. break;
  8404. case 6:
  8405. if (!ASN1PEREncOctetString_VarSize(enc, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8406. return 0;
  8407. break;
  8408. case 7:
  8409. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardAddress))
  8410. return 0;
  8411. break;
  8412. default:
  8413. /* impossible */
  8414. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  8415. return 0;
  8416. }
  8417. return 1;
  8418. }
  8419. static int ASN1CALL ASN1Dec_TransportAddress(ASN1decoding_t dec, TransportAddress *val)
  8420. {
  8421. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  8422. return 0;
  8423. switch ((val)->choice) {
  8424. case 1:
  8425. if (!ASN1Dec_TransportAddress_ipAddress(dec, &(val)->u.ipAddress))
  8426. return 0;
  8427. break;
  8428. case 2:
  8429. if (!ASN1Dec_TransportAddress_ipSourceRoute(dec, &(val)->u.ipSourceRoute))
  8430. return 0;
  8431. break;
  8432. case 3:
  8433. if (!ASN1Dec_TransportAddress_ipxAddress(dec, &(val)->u.ipxAddress))
  8434. return 0;
  8435. break;
  8436. case 4:
  8437. if (!ASN1Dec_TransportAddress_ip6Address(dec, &(val)->u.ip6Address))
  8438. return 0;
  8439. break;
  8440. case 5:
  8441. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->u.netBios, 16))
  8442. return 0;
  8443. break;
  8444. case 6:
  8445. if (!ASN1PERDecOctetString_VarSize(dec, (ASN1octetstring2_t *) &(val)->u.nsap, 1, 20, 5))
  8446. return 0;
  8447. break;
  8448. case 7:
  8449. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardAddress))
  8450. return 0;
  8451. break;
  8452. case 0:
  8453. /* extension case */
  8454. if (!ASN1PERDecSkipFragmented(dec, 8))
  8455. return 0;
  8456. break;
  8457. default:
  8458. /* impossible */
  8459. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  8460. return 0;
  8461. }
  8462. return 1;
  8463. }
  8464. static void ASN1CALL ASN1Free_TransportAddress(TransportAddress *val)
  8465. {
  8466. if (val) {
  8467. switch ((val)->choice) {
  8468. case 1:
  8469. ASN1Free_TransportAddress_ipAddress(&(val)->u.ipAddress);
  8470. break;
  8471. case 2:
  8472. ASN1Free_TransportAddress_ipSourceRoute(&(val)->u.ipSourceRoute);
  8473. break;
  8474. case 3:
  8475. ASN1Free_TransportAddress_ipxAddress(&(val)->u.ipxAddress);
  8476. break;
  8477. case 4:
  8478. ASN1Free_TransportAddress_ip6Address(&(val)->u.ip6Address);
  8479. break;
  8480. case 5:
  8481. break;
  8482. case 6:
  8483. break;
  8484. case 7:
  8485. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardAddress);
  8486. break;
  8487. }
  8488. }
  8489. }
  8490. static int ASN1CALL ASN1Enc_GatewayInfo(ASN1encoding_t enc, GatewayInfo *val)
  8491. {
  8492. if (!ASN1PEREncExtensionBitClear(enc))
  8493. return 0;
  8494. if (!ASN1PEREncBits(enc, 2, (val)->o))
  8495. return 0;
  8496. if ((val)->o[0] & 0x80) {
  8497. if (!ASN1Enc_GatewayInfo_protocol(enc, &(val)->protocol))
  8498. return 0;
  8499. }
  8500. if ((val)->o[0] & 0x40) {
  8501. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8502. return 0;
  8503. }
  8504. return 1;
  8505. }
  8506. static int ASN1CALL ASN1Dec_GatewayInfo(ASN1decoding_t dec, GatewayInfo *val)
  8507. {
  8508. ASN1uint32_t y;
  8509. if (!ASN1PERDecExtensionBit(dec, &y))
  8510. return 0;
  8511. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  8512. return 0;
  8513. if ((val)->o[0] & 0x80) {
  8514. if (!ASN1Dec_GatewayInfo_protocol(dec, &(val)->protocol))
  8515. return 0;
  8516. }
  8517. if ((val)->o[0] & 0x40) {
  8518. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8519. return 0;
  8520. }
  8521. if (y) {
  8522. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  8523. return 0;
  8524. }
  8525. return 1;
  8526. }
  8527. static void ASN1CALL ASN1Free_GatewayInfo(GatewayInfo *val)
  8528. {
  8529. if (val) {
  8530. if ((val)->o[0] & 0x80) {
  8531. ASN1Free_GatewayInfo_protocol(&(val)->protocol);
  8532. }
  8533. if ((val)->o[0] & 0x40) {
  8534. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8535. }
  8536. }
  8537. }
  8538. static int ASN1CALL ASN1Enc_H310Caps(ASN1encoding_t enc, H310Caps *val)
  8539. {
  8540. ASN1octet_t o[2];
  8541. ASN1uint32_t y;
  8542. ASN1encoding_t ee;
  8543. CopyMemory(o, (val)->o, 2);
  8544. o[1] |= 0x40;
  8545. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8546. if (!ASN1PEREncBitVal(enc, 1, y))
  8547. return 0;
  8548. if (!ASN1PEREncBits(enc, 1, o))
  8549. return 0;
  8550. if (o[0] & 0x80) {
  8551. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8552. return 0;
  8553. }
  8554. if (y) {
  8555. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8556. return 0;
  8557. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8558. return 0;
  8559. if (o[1] & 0x80) {
  8560. if (!ASN1Enc_H310Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8561. return 0;
  8562. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8563. return 0;
  8564. }
  8565. if (o[1] & 0x40) {
  8566. if (!ASN1Enc_H310Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8567. return 0;
  8568. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8569. return 0;
  8570. }
  8571. ASN1_CloseEncoder2(ee);
  8572. }
  8573. return 1;
  8574. }
  8575. static int ASN1CALL ASN1Dec_H310Caps(ASN1decoding_t dec, H310Caps *val)
  8576. {
  8577. ASN1uint32_t y;
  8578. ASN1decoding_t dd;
  8579. ASN1octet_t *db;
  8580. ASN1uint32_t ds;
  8581. ASN1uint32_t i;
  8582. ASN1uint32_t e;
  8583. if (!ASN1PERDecExtensionBit(dec, &y))
  8584. return 0;
  8585. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8586. return 0;
  8587. if ((val)->o[0] & 0x80) {
  8588. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8589. return 0;
  8590. }
  8591. if (!y) {
  8592. ZeroMemory((val)->o + 1, 1);
  8593. } else {
  8594. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8595. return 0;
  8596. if ((val)->o[1] & 0x80) {
  8597. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8598. return 0;
  8599. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8600. return 0;
  8601. if (!ASN1Dec_H310Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8602. return 0;
  8603. ASN1_CloseDecoder(dd);
  8604. ASN1Free(db);
  8605. }
  8606. if ((val)->o[1] & 0x40) {
  8607. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8608. return 0;
  8609. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8610. return 0;
  8611. if (!ASN1Dec_H310Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8612. return 0;
  8613. ASN1_CloseDecoder(dd);
  8614. ASN1Free(db);
  8615. }
  8616. for (i = 0; i < e; i++) {
  8617. if (!ASN1PERDecSkipFragmented(dec, 8))
  8618. return 0;
  8619. }
  8620. }
  8621. return 1;
  8622. }
  8623. static void ASN1CALL ASN1Free_H310Caps(H310Caps *val)
  8624. {
  8625. if (val) {
  8626. if ((val)->o[0] & 0x80) {
  8627. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8628. }
  8629. if ((val)->o[1] & 0x80) {
  8630. ASN1Free_H310Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8631. }
  8632. if ((val)->o[1] & 0x40) {
  8633. ASN1Free_H310Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8634. }
  8635. }
  8636. }
  8637. static int ASN1CALL ASN1Enc_H320Caps(ASN1encoding_t enc, H320Caps *val)
  8638. {
  8639. ASN1octet_t o[2];
  8640. ASN1uint32_t y;
  8641. ASN1encoding_t ee;
  8642. CopyMemory(o, (val)->o, 2);
  8643. o[1] |= 0x40;
  8644. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8645. if (!ASN1PEREncBitVal(enc, 1, y))
  8646. return 0;
  8647. if (!ASN1PEREncBits(enc, 1, o))
  8648. return 0;
  8649. if (o[0] & 0x80) {
  8650. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8651. return 0;
  8652. }
  8653. if (y) {
  8654. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8655. return 0;
  8656. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8657. return 0;
  8658. if (o[1] & 0x80) {
  8659. if (!ASN1Enc_H320Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8660. return 0;
  8661. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8662. return 0;
  8663. }
  8664. if (o[1] & 0x40) {
  8665. if (!ASN1Enc_H320Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8666. return 0;
  8667. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8668. return 0;
  8669. }
  8670. ASN1_CloseEncoder2(ee);
  8671. }
  8672. return 1;
  8673. }
  8674. static int ASN1CALL ASN1Dec_H320Caps(ASN1decoding_t dec, H320Caps *val)
  8675. {
  8676. ASN1uint32_t y;
  8677. ASN1decoding_t dd;
  8678. ASN1octet_t *db;
  8679. ASN1uint32_t ds;
  8680. ASN1uint32_t i;
  8681. ASN1uint32_t e;
  8682. if (!ASN1PERDecExtensionBit(dec, &y))
  8683. return 0;
  8684. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8685. return 0;
  8686. if ((val)->o[0] & 0x80) {
  8687. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8688. return 0;
  8689. }
  8690. if (!y) {
  8691. ZeroMemory((val)->o + 1, 1);
  8692. } else {
  8693. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8694. return 0;
  8695. if ((val)->o[1] & 0x80) {
  8696. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8697. return 0;
  8698. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8699. return 0;
  8700. if (!ASN1Dec_H320Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8701. return 0;
  8702. ASN1_CloseDecoder(dd);
  8703. ASN1Free(db);
  8704. }
  8705. if ((val)->o[1] & 0x40) {
  8706. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8707. return 0;
  8708. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8709. return 0;
  8710. if (!ASN1Dec_H320Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8711. return 0;
  8712. ASN1_CloseDecoder(dd);
  8713. ASN1Free(db);
  8714. }
  8715. for (i = 0; i < e; i++) {
  8716. if (!ASN1PERDecSkipFragmented(dec, 8))
  8717. return 0;
  8718. }
  8719. }
  8720. return 1;
  8721. }
  8722. static void ASN1CALL ASN1Free_H320Caps(H320Caps *val)
  8723. {
  8724. if (val) {
  8725. if ((val)->o[0] & 0x80) {
  8726. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8727. }
  8728. if ((val)->o[1] & 0x80) {
  8729. ASN1Free_H320Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8730. }
  8731. if ((val)->o[1] & 0x40) {
  8732. ASN1Free_H320Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8733. }
  8734. }
  8735. }
  8736. static int ASN1CALL ASN1Enc_H321Caps(ASN1encoding_t enc, H321Caps *val)
  8737. {
  8738. ASN1octet_t o[2];
  8739. ASN1uint32_t y;
  8740. ASN1encoding_t ee;
  8741. CopyMemory(o, (val)->o, 2);
  8742. o[1] |= 0x40;
  8743. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8744. if (!ASN1PEREncBitVal(enc, 1, y))
  8745. return 0;
  8746. if (!ASN1PEREncBits(enc, 1, o))
  8747. return 0;
  8748. if (o[0] & 0x80) {
  8749. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8750. return 0;
  8751. }
  8752. if (y) {
  8753. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8754. return 0;
  8755. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8756. return 0;
  8757. if (o[1] & 0x80) {
  8758. if (!ASN1Enc_H321Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8759. return 0;
  8760. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8761. return 0;
  8762. }
  8763. if (o[1] & 0x40) {
  8764. if (!ASN1Enc_H321Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8765. return 0;
  8766. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8767. return 0;
  8768. }
  8769. ASN1_CloseEncoder2(ee);
  8770. }
  8771. return 1;
  8772. }
  8773. static int ASN1CALL ASN1Dec_H321Caps(ASN1decoding_t dec, H321Caps *val)
  8774. {
  8775. ASN1uint32_t y;
  8776. ASN1decoding_t dd;
  8777. ASN1octet_t *db;
  8778. ASN1uint32_t ds;
  8779. ASN1uint32_t i;
  8780. ASN1uint32_t e;
  8781. if (!ASN1PERDecExtensionBit(dec, &y))
  8782. return 0;
  8783. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8784. return 0;
  8785. if ((val)->o[0] & 0x80) {
  8786. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8787. return 0;
  8788. }
  8789. if (!y) {
  8790. ZeroMemory((val)->o + 1, 1);
  8791. } else {
  8792. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8793. return 0;
  8794. if ((val)->o[1] & 0x80) {
  8795. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8796. return 0;
  8797. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8798. return 0;
  8799. if (!ASN1Dec_H321Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8800. return 0;
  8801. ASN1_CloseDecoder(dd);
  8802. ASN1Free(db);
  8803. }
  8804. if ((val)->o[1] & 0x40) {
  8805. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8806. return 0;
  8807. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8808. return 0;
  8809. if (!ASN1Dec_H321Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8810. return 0;
  8811. ASN1_CloseDecoder(dd);
  8812. ASN1Free(db);
  8813. }
  8814. for (i = 0; i < e; i++) {
  8815. if (!ASN1PERDecSkipFragmented(dec, 8))
  8816. return 0;
  8817. }
  8818. }
  8819. return 1;
  8820. }
  8821. static void ASN1CALL ASN1Free_H321Caps(H321Caps *val)
  8822. {
  8823. if (val) {
  8824. if ((val)->o[0] & 0x80) {
  8825. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8826. }
  8827. if ((val)->o[1] & 0x80) {
  8828. ASN1Free_H321Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8829. }
  8830. if ((val)->o[1] & 0x40) {
  8831. ASN1Free_H321Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8832. }
  8833. }
  8834. }
  8835. static int ASN1CALL ASN1Enc_H322Caps(ASN1encoding_t enc, H322Caps *val)
  8836. {
  8837. ASN1octet_t o[2];
  8838. ASN1uint32_t y;
  8839. ASN1encoding_t ee;
  8840. CopyMemory(o, (val)->o, 2);
  8841. o[1] |= 0x40;
  8842. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8843. if (!ASN1PEREncBitVal(enc, 1, y))
  8844. return 0;
  8845. if (!ASN1PEREncBits(enc, 1, o))
  8846. return 0;
  8847. if (o[0] & 0x80) {
  8848. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8849. return 0;
  8850. }
  8851. if (y) {
  8852. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8853. return 0;
  8854. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8855. return 0;
  8856. if (o[1] & 0x80) {
  8857. if (!ASN1Enc_H322Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8858. return 0;
  8859. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8860. return 0;
  8861. }
  8862. if (o[1] & 0x40) {
  8863. if (!ASN1Enc_H322Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8864. return 0;
  8865. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8866. return 0;
  8867. }
  8868. ASN1_CloseEncoder2(ee);
  8869. }
  8870. return 1;
  8871. }
  8872. static int ASN1CALL ASN1Dec_H322Caps(ASN1decoding_t dec, H322Caps *val)
  8873. {
  8874. ASN1uint32_t y;
  8875. ASN1decoding_t dd;
  8876. ASN1octet_t *db;
  8877. ASN1uint32_t ds;
  8878. ASN1uint32_t i;
  8879. ASN1uint32_t e;
  8880. if (!ASN1PERDecExtensionBit(dec, &y))
  8881. return 0;
  8882. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8883. return 0;
  8884. if ((val)->o[0] & 0x80) {
  8885. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8886. return 0;
  8887. }
  8888. if (!y) {
  8889. ZeroMemory((val)->o + 1, 1);
  8890. } else {
  8891. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8892. return 0;
  8893. if ((val)->o[1] & 0x80) {
  8894. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8895. return 0;
  8896. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8897. return 0;
  8898. if (!ASN1Dec_H322Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8899. return 0;
  8900. ASN1_CloseDecoder(dd);
  8901. ASN1Free(db);
  8902. }
  8903. if ((val)->o[1] & 0x40) {
  8904. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8905. return 0;
  8906. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8907. return 0;
  8908. if (!ASN1Dec_H322Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  8909. return 0;
  8910. ASN1_CloseDecoder(dd);
  8911. ASN1Free(db);
  8912. }
  8913. for (i = 0; i < e; i++) {
  8914. if (!ASN1PERDecSkipFragmented(dec, 8))
  8915. return 0;
  8916. }
  8917. }
  8918. return 1;
  8919. }
  8920. static void ASN1CALL ASN1Free_H322Caps(H322Caps *val)
  8921. {
  8922. if (val) {
  8923. if ((val)->o[0] & 0x80) {
  8924. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  8925. }
  8926. if ((val)->o[1] & 0x80) {
  8927. ASN1Free_H322Caps_dataRatesSupported(&(val)->dataRatesSupported);
  8928. }
  8929. if ((val)->o[1] & 0x40) {
  8930. ASN1Free_H322Caps_supportedPrefixes(&(val)->supportedPrefixes);
  8931. }
  8932. }
  8933. }
  8934. static int ASN1CALL ASN1Enc_H323Caps(ASN1encoding_t enc, H323Caps *val)
  8935. {
  8936. ASN1octet_t o[2];
  8937. ASN1uint32_t y;
  8938. ASN1encoding_t ee;
  8939. CopyMemory(o, (val)->o, 2);
  8940. o[1] |= 0x40;
  8941. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  8942. if (!ASN1PEREncBitVal(enc, 1, y))
  8943. return 0;
  8944. if (!ASN1PEREncBits(enc, 1, o))
  8945. return 0;
  8946. if (o[0] & 0x80) {
  8947. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  8948. return 0;
  8949. }
  8950. if (y) {
  8951. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  8952. return 0;
  8953. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  8954. return 0;
  8955. if (o[1] & 0x80) {
  8956. if (!ASN1Enc_H323Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  8957. return 0;
  8958. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8959. return 0;
  8960. }
  8961. if (o[1] & 0x40) {
  8962. if (!ASN1Enc_H323Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  8963. return 0;
  8964. if (!ASN1PEREncFlushFragmentedToParent(ee))
  8965. return 0;
  8966. }
  8967. ASN1_CloseEncoder2(ee);
  8968. }
  8969. return 1;
  8970. }
  8971. static int ASN1CALL ASN1Dec_H323Caps(ASN1decoding_t dec, H323Caps *val)
  8972. {
  8973. ASN1uint32_t y;
  8974. ASN1decoding_t dd;
  8975. ASN1octet_t *db;
  8976. ASN1uint32_t ds;
  8977. ASN1uint32_t i;
  8978. ASN1uint32_t e;
  8979. if (!ASN1PERDecExtensionBit(dec, &y))
  8980. return 0;
  8981. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  8982. return 0;
  8983. if ((val)->o[0] & 0x80) {
  8984. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  8985. return 0;
  8986. }
  8987. if (!y) {
  8988. ZeroMemory((val)->o + 1, 1);
  8989. } else {
  8990. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  8991. return 0;
  8992. if ((val)->o[1] & 0x80) {
  8993. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  8994. return 0;
  8995. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  8996. return 0;
  8997. if (!ASN1Dec_H323Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  8998. return 0;
  8999. ASN1_CloseDecoder(dd);
  9000. ASN1Free(db);
  9001. }
  9002. if ((val)->o[1] & 0x40) {
  9003. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9004. return 0;
  9005. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9006. return 0;
  9007. if (!ASN1Dec_H323Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9008. return 0;
  9009. ASN1_CloseDecoder(dd);
  9010. ASN1Free(db);
  9011. }
  9012. for (i = 0; i < e; i++) {
  9013. if (!ASN1PERDecSkipFragmented(dec, 8))
  9014. return 0;
  9015. }
  9016. }
  9017. return 1;
  9018. }
  9019. static void ASN1CALL ASN1Free_H323Caps(H323Caps *val)
  9020. {
  9021. if (val) {
  9022. if ((val)->o[0] & 0x80) {
  9023. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9024. }
  9025. if ((val)->o[1] & 0x80) {
  9026. ASN1Free_H323Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9027. }
  9028. if ((val)->o[1] & 0x40) {
  9029. ASN1Free_H323Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9030. }
  9031. }
  9032. }
  9033. static int ASN1CALL ASN1Enc_H324Caps(ASN1encoding_t enc, H324Caps *val)
  9034. {
  9035. ASN1octet_t o[2];
  9036. ASN1uint32_t y;
  9037. ASN1encoding_t ee;
  9038. CopyMemory(o, (val)->o, 2);
  9039. o[1] |= 0x40;
  9040. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9041. if (!ASN1PEREncBitVal(enc, 1, y))
  9042. return 0;
  9043. if (!ASN1PEREncBits(enc, 1, o))
  9044. return 0;
  9045. if (o[0] & 0x80) {
  9046. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9047. return 0;
  9048. }
  9049. if (y) {
  9050. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9051. return 0;
  9052. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9053. return 0;
  9054. if (o[1] & 0x80) {
  9055. if (!ASN1Enc_H324Caps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9056. return 0;
  9057. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9058. return 0;
  9059. }
  9060. if (o[1] & 0x40) {
  9061. if (!ASN1Enc_H324Caps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9062. return 0;
  9063. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9064. return 0;
  9065. }
  9066. ASN1_CloseEncoder2(ee);
  9067. }
  9068. return 1;
  9069. }
  9070. static int ASN1CALL ASN1Dec_H324Caps(ASN1decoding_t dec, H324Caps *val)
  9071. {
  9072. ASN1uint32_t y;
  9073. ASN1decoding_t dd;
  9074. ASN1octet_t *db;
  9075. ASN1uint32_t ds;
  9076. ASN1uint32_t i;
  9077. ASN1uint32_t e;
  9078. if (!ASN1PERDecExtensionBit(dec, &y))
  9079. return 0;
  9080. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9081. return 0;
  9082. if ((val)->o[0] & 0x80) {
  9083. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9084. return 0;
  9085. }
  9086. if (!y) {
  9087. ZeroMemory((val)->o + 1, 1);
  9088. } else {
  9089. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9090. return 0;
  9091. if ((val)->o[1] & 0x80) {
  9092. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9093. return 0;
  9094. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9095. return 0;
  9096. if (!ASN1Dec_H324Caps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9097. return 0;
  9098. ASN1_CloseDecoder(dd);
  9099. ASN1Free(db);
  9100. }
  9101. if ((val)->o[1] & 0x40) {
  9102. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9103. return 0;
  9104. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9105. return 0;
  9106. if (!ASN1Dec_H324Caps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9107. return 0;
  9108. ASN1_CloseDecoder(dd);
  9109. ASN1Free(db);
  9110. }
  9111. for (i = 0; i < e; i++) {
  9112. if (!ASN1PERDecSkipFragmented(dec, 8))
  9113. return 0;
  9114. }
  9115. }
  9116. return 1;
  9117. }
  9118. static void ASN1CALL ASN1Free_H324Caps(H324Caps *val)
  9119. {
  9120. if (val) {
  9121. if ((val)->o[0] & 0x80) {
  9122. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9123. }
  9124. if ((val)->o[1] & 0x80) {
  9125. ASN1Free_H324Caps_dataRatesSupported(&(val)->dataRatesSupported);
  9126. }
  9127. if ((val)->o[1] & 0x40) {
  9128. ASN1Free_H324Caps_supportedPrefixes(&(val)->supportedPrefixes);
  9129. }
  9130. }
  9131. }
  9132. static int ASN1CALL ASN1Enc_VoiceCaps(ASN1encoding_t enc, VoiceCaps *val)
  9133. {
  9134. ASN1octet_t o[2];
  9135. ASN1uint32_t y;
  9136. ASN1encoding_t ee;
  9137. CopyMemory(o, (val)->o, 2);
  9138. o[1] |= 0x40;
  9139. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9140. if (!ASN1PEREncBitVal(enc, 1, y))
  9141. return 0;
  9142. if (!ASN1PEREncBits(enc, 1, o))
  9143. return 0;
  9144. if (o[0] & 0x80) {
  9145. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9146. return 0;
  9147. }
  9148. if (y) {
  9149. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9150. return 0;
  9151. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9152. return 0;
  9153. if (o[1] & 0x80) {
  9154. if (!ASN1Enc_VoiceCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9155. return 0;
  9156. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9157. return 0;
  9158. }
  9159. if (o[1] & 0x40) {
  9160. if (!ASN1Enc_VoiceCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9161. return 0;
  9162. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9163. return 0;
  9164. }
  9165. ASN1_CloseEncoder2(ee);
  9166. }
  9167. return 1;
  9168. }
  9169. static int ASN1CALL ASN1Dec_VoiceCaps(ASN1decoding_t dec, VoiceCaps *val)
  9170. {
  9171. ASN1uint32_t y;
  9172. ASN1decoding_t dd;
  9173. ASN1octet_t *db;
  9174. ASN1uint32_t ds;
  9175. ASN1uint32_t i;
  9176. ASN1uint32_t e;
  9177. if (!ASN1PERDecExtensionBit(dec, &y))
  9178. return 0;
  9179. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9180. return 0;
  9181. if ((val)->o[0] & 0x80) {
  9182. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9183. return 0;
  9184. }
  9185. if (!y) {
  9186. ZeroMemory((val)->o + 1, 1);
  9187. } else {
  9188. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9189. return 0;
  9190. if ((val)->o[1] & 0x80) {
  9191. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9192. return 0;
  9193. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9194. return 0;
  9195. if (!ASN1Dec_VoiceCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9196. return 0;
  9197. ASN1_CloseDecoder(dd);
  9198. ASN1Free(db);
  9199. }
  9200. if ((val)->o[1] & 0x40) {
  9201. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9202. return 0;
  9203. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9204. return 0;
  9205. if (!ASN1Dec_VoiceCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9206. return 0;
  9207. ASN1_CloseDecoder(dd);
  9208. ASN1Free(db);
  9209. }
  9210. for (i = 0; i < e; i++) {
  9211. if (!ASN1PERDecSkipFragmented(dec, 8))
  9212. return 0;
  9213. }
  9214. }
  9215. return 1;
  9216. }
  9217. static void ASN1CALL ASN1Free_VoiceCaps(VoiceCaps *val)
  9218. {
  9219. if (val) {
  9220. if ((val)->o[0] & 0x80) {
  9221. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9222. }
  9223. if ((val)->o[1] & 0x80) {
  9224. ASN1Free_VoiceCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9225. }
  9226. if ((val)->o[1] & 0x40) {
  9227. ASN1Free_VoiceCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9228. }
  9229. }
  9230. }
  9231. static int ASN1CALL ASN1Enc_T120OnlyCaps(ASN1encoding_t enc, T120OnlyCaps *val)
  9232. {
  9233. ASN1octet_t o[2];
  9234. ASN1uint32_t y;
  9235. ASN1encoding_t ee;
  9236. CopyMemory(o, (val)->o, 2);
  9237. o[1] |= 0x40;
  9238. y = ASN1PEREncCheckExtensions(2, (val)->o + 1);
  9239. if (!ASN1PEREncBitVal(enc, 1, y))
  9240. return 0;
  9241. if (!ASN1PEREncBits(enc, 1, o))
  9242. return 0;
  9243. if (o[0] & 0x80) {
  9244. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9245. return 0;
  9246. }
  9247. if (y) {
  9248. if (!ASN1PEREncNormallySmallBits(enc, 2, o + 1))
  9249. return 0;
  9250. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9251. return 0;
  9252. if (o[1] & 0x80) {
  9253. if (!ASN1Enc_T120OnlyCaps_dataRatesSupported(ee, &(val)->dataRatesSupported))
  9254. return 0;
  9255. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9256. return 0;
  9257. }
  9258. if (o[1] & 0x40) {
  9259. if (!ASN1Enc_T120OnlyCaps_supportedPrefixes(ee, &(val)->supportedPrefixes))
  9260. return 0;
  9261. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9262. return 0;
  9263. }
  9264. ASN1_CloseEncoder2(ee);
  9265. }
  9266. return 1;
  9267. }
  9268. static int ASN1CALL ASN1Dec_T120OnlyCaps(ASN1decoding_t dec, T120OnlyCaps *val)
  9269. {
  9270. ASN1uint32_t y;
  9271. ASN1decoding_t dd;
  9272. ASN1octet_t *db;
  9273. ASN1uint32_t ds;
  9274. ASN1uint32_t i;
  9275. ASN1uint32_t e;
  9276. if (!ASN1PERDecExtensionBit(dec, &y))
  9277. return 0;
  9278. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9279. return 0;
  9280. if ((val)->o[0] & 0x80) {
  9281. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9282. return 0;
  9283. }
  9284. if (!y) {
  9285. ZeroMemory((val)->o + 1, 1);
  9286. } else {
  9287. if (!ASN1PERDecNormallySmallExtension(dec, &e, 2, (val)->o + 1))
  9288. return 0;
  9289. if ((val)->o[1] & 0x80) {
  9290. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9291. return 0;
  9292. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9293. return 0;
  9294. if (!ASN1Dec_T120OnlyCaps_dataRatesSupported(dd, &(val)->dataRatesSupported))
  9295. return 0;
  9296. ASN1_CloseDecoder(dd);
  9297. ASN1Free(db);
  9298. }
  9299. if ((val)->o[1] & 0x40) {
  9300. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9301. return 0;
  9302. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9303. return 0;
  9304. if (!ASN1Dec_T120OnlyCaps_supportedPrefixes(dd, &(val)->supportedPrefixes))
  9305. return 0;
  9306. ASN1_CloseDecoder(dd);
  9307. ASN1Free(db);
  9308. }
  9309. for (i = 0; i < e; i++) {
  9310. if (!ASN1PERDecSkipFragmented(dec, 8))
  9311. return 0;
  9312. }
  9313. }
  9314. return 1;
  9315. }
  9316. static void ASN1CALL ASN1Free_T120OnlyCaps(T120OnlyCaps *val)
  9317. {
  9318. if (val) {
  9319. if ((val)->o[0] & 0x80) {
  9320. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9321. }
  9322. if ((val)->o[1] & 0x80) {
  9323. ASN1Free_T120OnlyCaps_dataRatesSupported(&(val)->dataRatesSupported);
  9324. }
  9325. if ((val)->o[1] & 0x40) {
  9326. ASN1Free_T120OnlyCaps_supportedPrefixes(&(val)->supportedPrefixes);
  9327. }
  9328. }
  9329. }
  9330. static int ASN1CALL ASN1Enc_NonStandardProtocol(ASN1encoding_t enc, NonStandardProtocol *val)
  9331. {
  9332. if (!ASN1PEREncExtensionBitClear(enc))
  9333. return 0;
  9334. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9335. return 0;
  9336. if ((val)->o[0] & 0x80) {
  9337. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9338. return 0;
  9339. }
  9340. if ((val)->o[0] & 0x40) {
  9341. if (!ASN1Enc_NonStandardProtocol_dataRatesSupported(enc, &(val)->dataRatesSupported))
  9342. return 0;
  9343. }
  9344. if (!ASN1Enc_NonStandardProtocol_supportedPrefixes(enc, &(val)->supportedPrefixes))
  9345. return 0;
  9346. return 1;
  9347. }
  9348. static int ASN1CALL ASN1Dec_NonStandardProtocol(ASN1decoding_t dec, NonStandardProtocol *val)
  9349. {
  9350. ASN1uint32_t y;
  9351. if (!ASN1PERDecExtensionBit(dec, &y))
  9352. return 0;
  9353. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9354. return 0;
  9355. if ((val)->o[0] & 0x80) {
  9356. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9357. return 0;
  9358. }
  9359. if ((val)->o[0] & 0x40) {
  9360. if (!ASN1Dec_NonStandardProtocol_dataRatesSupported(dec, &(val)->dataRatesSupported))
  9361. return 0;
  9362. }
  9363. if (!ASN1Dec_NonStandardProtocol_supportedPrefixes(dec, &(val)->supportedPrefixes))
  9364. return 0;
  9365. if (y) {
  9366. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9367. return 0;
  9368. }
  9369. return 1;
  9370. }
  9371. static void ASN1CALL ASN1Free_NonStandardProtocol(NonStandardProtocol *val)
  9372. {
  9373. if (val) {
  9374. if ((val)->o[0] & 0x80) {
  9375. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9376. }
  9377. if ((val)->o[0] & 0x40) {
  9378. ASN1Free_NonStandardProtocol_dataRatesSupported(&(val)->dataRatesSupported);
  9379. }
  9380. ASN1Free_NonStandardProtocol_supportedPrefixes(&(val)->supportedPrefixes);
  9381. }
  9382. }
  9383. static int ASN1CALL ASN1Enc_McuInfo(ASN1encoding_t enc, McuInfo *val)
  9384. {
  9385. if (!ASN1PEREncExtensionBitClear(enc))
  9386. return 0;
  9387. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9388. return 0;
  9389. if ((val)->o[0] & 0x80) {
  9390. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9391. return 0;
  9392. }
  9393. return 1;
  9394. }
  9395. static int ASN1CALL ASN1Dec_McuInfo(ASN1decoding_t dec, McuInfo *val)
  9396. {
  9397. ASN1uint32_t y;
  9398. if (!ASN1PERDecExtensionBit(dec, &y))
  9399. return 0;
  9400. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9401. return 0;
  9402. if ((val)->o[0] & 0x80) {
  9403. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9404. return 0;
  9405. }
  9406. if (y) {
  9407. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9408. return 0;
  9409. }
  9410. return 1;
  9411. }
  9412. static void ASN1CALL ASN1Free_McuInfo(McuInfo *val)
  9413. {
  9414. if (val) {
  9415. if ((val)->o[0] & 0x80) {
  9416. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9417. }
  9418. }
  9419. }
  9420. static int ASN1CALL ASN1Enc_TerminalInfo(ASN1encoding_t enc, TerminalInfo *val)
  9421. {
  9422. if (!ASN1PEREncExtensionBitClear(enc))
  9423. return 0;
  9424. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9425. return 0;
  9426. if ((val)->o[0] & 0x80) {
  9427. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9428. return 0;
  9429. }
  9430. return 1;
  9431. }
  9432. static int ASN1CALL ASN1Dec_TerminalInfo(ASN1decoding_t dec, TerminalInfo *val)
  9433. {
  9434. ASN1uint32_t y;
  9435. if (!ASN1PERDecExtensionBit(dec, &y))
  9436. return 0;
  9437. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9438. return 0;
  9439. if ((val)->o[0] & 0x80) {
  9440. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9441. return 0;
  9442. }
  9443. if (y) {
  9444. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9445. return 0;
  9446. }
  9447. return 1;
  9448. }
  9449. static void ASN1CALL ASN1Free_TerminalInfo(TerminalInfo *val)
  9450. {
  9451. if (val) {
  9452. if ((val)->o[0] & 0x80) {
  9453. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9454. }
  9455. }
  9456. }
  9457. static int ASN1CALL ASN1Enc_GatekeeperInfo(ASN1encoding_t enc, GatekeeperInfo *val)
  9458. {
  9459. if (!ASN1PEREncExtensionBitClear(enc))
  9460. return 0;
  9461. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9462. return 0;
  9463. if ((val)->o[0] & 0x80) {
  9464. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9465. return 0;
  9466. }
  9467. return 1;
  9468. }
  9469. static int ASN1CALL ASN1Dec_GatekeeperInfo(ASN1decoding_t dec, GatekeeperInfo *val)
  9470. {
  9471. ASN1uint32_t y;
  9472. if (!ASN1PERDecExtensionBit(dec, &y))
  9473. return 0;
  9474. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9475. return 0;
  9476. if ((val)->o[0] & 0x80) {
  9477. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9478. return 0;
  9479. }
  9480. if (y) {
  9481. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9482. return 0;
  9483. }
  9484. return 1;
  9485. }
  9486. static void ASN1CALL ASN1Free_GatekeeperInfo(GatekeeperInfo *val)
  9487. {
  9488. if (val) {
  9489. if ((val)->o[0] & 0x80) {
  9490. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9491. }
  9492. }
  9493. }
  9494. static ASN1stringtableentry_t PartyNumber_dataPartyNumber_StringTableEntries[] = {
  9495. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9496. { 48, 57, 3 },
  9497. };
  9498. static ASN1stringtable_t PartyNumber_dataPartyNumber_StringTable = {
  9499. 4, PartyNumber_dataPartyNumber_StringTableEntries
  9500. };
  9501. static ASN1stringtableentry_t PartyNumber_telexPartyNumber_StringTableEntries[] = {
  9502. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9503. { 48, 57, 3 },
  9504. };
  9505. static ASN1stringtable_t PartyNumber_telexPartyNumber_StringTable = {
  9506. 4, PartyNumber_telexPartyNumber_StringTableEntries
  9507. };
  9508. static ASN1stringtableentry_t PartyNumber_nationalStandardPartyNumber_StringTableEntries[] = {
  9509. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  9510. { 48, 57, 3 },
  9511. };
  9512. static ASN1stringtable_t PartyNumber_nationalStandardPartyNumber_StringTable = {
  9513. 4, PartyNumber_nationalStandardPartyNumber_StringTableEntries
  9514. };
  9515. static int ASN1CALL ASN1Enc_PartyNumber(ASN1encoding_t enc, PartyNumber *val)
  9516. {
  9517. ASN1uint32_t t;
  9518. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  9519. return 0;
  9520. switch ((val)->choice) {
  9521. case 1:
  9522. if (!ASN1Enc_PublicPartyNumber(enc, &(val)->u.publicNumber))
  9523. return 0;
  9524. break;
  9525. case 2:
  9526. t = lstrlenA((val)->u.dataPartyNumber);
  9527. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9528. return 0;
  9529. ASN1PEREncAlignment(enc);
  9530. if (!ASN1PEREncTableCharString(enc, t, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9531. return 0;
  9532. break;
  9533. case 3:
  9534. t = lstrlenA((val)->u.telexPartyNumber);
  9535. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9536. return 0;
  9537. ASN1PEREncAlignment(enc);
  9538. if (!ASN1PEREncTableCharString(enc, t, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9539. return 0;
  9540. break;
  9541. case 4:
  9542. if (!ASN1Enc_PrivatePartyNumber(enc, &(val)->u.privateNumber))
  9543. return 0;
  9544. break;
  9545. case 5:
  9546. t = lstrlenA((val)->u.nationalStandardPartyNumber);
  9547. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  9548. return 0;
  9549. ASN1PEREncAlignment(enc);
  9550. if (!ASN1PEREncTableCharString(enc, t, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9551. return 0;
  9552. break;
  9553. default:
  9554. /* impossible */
  9555. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  9556. return 0;
  9557. }
  9558. return 1;
  9559. }
  9560. static int ASN1CALL ASN1Dec_PartyNumber(ASN1decoding_t dec, PartyNumber *val)
  9561. {
  9562. ASN1uint32_t l;
  9563. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  9564. return 0;
  9565. switch ((val)->choice) {
  9566. case 1:
  9567. if (!ASN1Dec_PublicPartyNumber(dec, &(val)->u.publicNumber))
  9568. return 0;
  9569. break;
  9570. case 2:
  9571. if (!ASN1PERDecU32Val(dec, 7, &l))
  9572. return 0;
  9573. l += 1;
  9574. ASN1PERDecAlignment(dec);
  9575. // SECURITY BUG: 782696
  9576. if ( l >= sizeof( (val)->u.dataPartyNumber ) )
  9577. {
  9578. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9579. return 0;
  9580. }
  9581. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.dataPartyNumber, 4, &PartyNumber_dataPartyNumber_StringTable))
  9582. return 0;
  9583. break;
  9584. case 3:
  9585. if (!ASN1PERDecU32Val(dec, 7, &l))
  9586. return 0;
  9587. l += 1;
  9588. ASN1PERDecAlignment(dec);
  9589. // SECURITY BUG: 782696
  9590. if ( l >= sizeof( (val)->u.telexPartyNumber ) )
  9591. {
  9592. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9593. return 0;
  9594. }
  9595. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.telexPartyNumber, 4, &PartyNumber_telexPartyNumber_StringTable))
  9596. return 0;
  9597. break;
  9598. case 4:
  9599. if (!ASN1Dec_PrivatePartyNumber(dec, &(val)->u.privateNumber))
  9600. return 0;
  9601. break;
  9602. case 5:
  9603. if (!ASN1PERDecU32Val(dec, 7, &l))
  9604. return 0;
  9605. l += 1;
  9606. ASN1PERDecAlignment(dec);
  9607. // SECURITY BUG: 782696
  9608. if ( l >= sizeof( (val)->u.nationalStandardPartyNumber ) )
  9609. {
  9610. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  9611. return 0;
  9612. }
  9613. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.nationalStandardPartyNumber, 4, &PartyNumber_nationalStandardPartyNumber_StringTable))
  9614. return 0;
  9615. break;
  9616. case 0:
  9617. /* extension case */
  9618. if (!ASN1PERDecSkipFragmented(dec, 8))
  9619. return 0;
  9620. break;
  9621. default:
  9622. /* impossible */
  9623. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  9624. return 0;
  9625. }
  9626. return 1;
  9627. }
  9628. static void ASN1CALL ASN1Free_PartyNumber(PartyNumber *val)
  9629. {
  9630. if (val) {
  9631. switch ((val)->choice) {
  9632. case 1:
  9633. ASN1Free_PublicPartyNumber(&(val)->u.publicNumber);
  9634. break;
  9635. case 2:
  9636. break;
  9637. case 3:
  9638. break;
  9639. case 4:
  9640. ASN1Free_PrivatePartyNumber(&(val)->u.privateNumber);
  9641. break;
  9642. case 5:
  9643. break;
  9644. }
  9645. }
  9646. }
  9647. static int ASN1CALL ASN1Enc_AlternateGK(ASN1encoding_t enc, AlternateGK *val)
  9648. {
  9649. if (!ASN1PEREncExtensionBitClear(enc))
  9650. return 0;
  9651. if (!ASN1PEREncBits(enc, 1, (val)->o))
  9652. return 0;
  9653. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9654. return 0;
  9655. if ((val)->o[0] & 0x80) {
  9656. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9657. return 0;
  9658. ASN1PEREncAlignment(enc);
  9659. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9660. return 0;
  9661. }
  9662. if (!ASN1PEREncBoolean(enc, (val)->needToRegister))
  9663. return 0;
  9664. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  9665. return 0;
  9666. return 1;
  9667. }
  9668. static int ASN1CALL ASN1Dec_AlternateGK(ASN1decoding_t dec, AlternateGK *val)
  9669. {
  9670. ASN1uint32_t y;
  9671. if (!ASN1PERDecExtensionBit(dec, &y))
  9672. return 0;
  9673. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  9674. return 0;
  9675. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9676. return 0;
  9677. if ((val)->o[0] & 0x80) {
  9678. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9679. return 0;
  9680. ((val)->gatekeeperIdentifier).length += 1;
  9681. ASN1PERDecAlignment(dec);
  9682. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9683. return 0;
  9684. }
  9685. if (!ASN1PERDecBoolean(dec, &(val)->needToRegister))
  9686. return 0;
  9687. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  9688. return 0;
  9689. if (y) {
  9690. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  9691. return 0;
  9692. }
  9693. return 1;
  9694. }
  9695. static void ASN1CALL ASN1Free_AlternateGK(AlternateGK *val)
  9696. {
  9697. if (val) {
  9698. ASN1Free_TransportAddress(&(val)->rasAddress);
  9699. if ((val)->o[0] & 0x80) {
  9700. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9701. }
  9702. }
  9703. }
  9704. static int ASN1CALL ASN1Enc_GatekeeperConfirm(ASN1encoding_t enc, GatekeeperConfirm *val)
  9705. {
  9706. ASN1uint32_t y;
  9707. ASN1encoding_t ee;
  9708. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  9709. if (!ASN1PEREncBitVal(enc, 1, y))
  9710. return 0;
  9711. if (!ASN1PEREncBits(enc, 2, (val)->o))
  9712. return 0;
  9713. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9714. return 0;
  9715. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  9716. return 0;
  9717. if ((val)->o[0] & 0x80) {
  9718. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9719. return 0;
  9720. }
  9721. if ((val)->o[0] & 0x40) {
  9722. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  9723. return 0;
  9724. ASN1PEREncAlignment(enc);
  9725. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  9726. return 0;
  9727. }
  9728. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  9729. return 0;
  9730. if (y) {
  9731. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  9732. return 0;
  9733. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  9734. return 0;
  9735. if ((val)->o[1] & 0x80) {
  9736. if (!ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ee, &(val)->alternateGatekeeper))
  9737. return 0;
  9738. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9739. return 0;
  9740. }
  9741. if ((val)->o[1] & 0x40) {
  9742. if (!ASN1Enc_AuthenticationMechanism(ee, &(val)->authenticationMode))
  9743. return 0;
  9744. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9745. return 0;
  9746. }
  9747. if ((val)->o[1] & 0x20) {
  9748. if (!ASN1Enc_GatekeeperConfirm_tokens(ee, &(val)->tokens))
  9749. return 0;
  9750. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9751. return 0;
  9752. }
  9753. if ((val)->o[1] & 0x10) {
  9754. if (!ASN1Enc_GatekeeperConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  9755. return 0;
  9756. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9757. return 0;
  9758. }
  9759. if ((val)->o[1] & 0x8) {
  9760. if (!ASN1PEREncObjectIdentifier(ee, &(val)->algorithmOID))
  9761. return 0;
  9762. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9763. return 0;
  9764. }
  9765. if ((val)->o[1] & 0x4) {
  9766. if (!ASN1Enc_GatekeeperConfirm_integrity(ee, &(val)->integrity))
  9767. return 0;
  9768. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9769. return 0;
  9770. }
  9771. if ((val)->o[1] & 0x2) {
  9772. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  9773. return 0;
  9774. if (!ASN1PEREncFlushFragmentedToParent(ee))
  9775. return 0;
  9776. }
  9777. ASN1_CloseEncoder2(ee);
  9778. }
  9779. return 1;
  9780. }
  9781. static int ASN1CALL ASN1Dec_GatekeeperConfirm(ASN1decoding_t dec, GatekeeperConfirm *val)
  9782. {
  9783. ASN1uint32_t y;
  9784. ASN1decoding_t dd;
  9785. ASN1octet_t *db;
  9786. ASN1uint32_t ds;
  9787. ASN1uint32_t i;
  9788. ASN1uint32_t e;
  9789. if (!ASN1PERDecExtensionBit(dec, &y))
  9790. return 0;
  9791. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  9792. return 0;
  9793. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  9794. return 0;
  9795. (val)->requestSeqNum += 1;
  9796. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  9797. return 0;
  9798. if ((val)->o[0] & 0x80) {
  9799. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  9800. return 0;
  9801. }
  9802. if ((val)->o[0] & 0x40) {
  9803. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  9804. return 0;
  9805. ((val)->gatekeeperIdentifier).length += 1;
  9806. ASN1PERDecAlignment(dec);
  9807. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  9808. return 0;
  9809. }
  9810. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  9811. return 0;
  9812. if (!y) {
  9813. ZeroMemory((val)->o + 1, 1);
  9814. } else {
  9815. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  9816. return 0;
  9817. if ((val)->o[1] & 0x80) {
  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_alternateGatekeeper(dd, &(val)->alternateGatekeeper))
  9823. return 0;
  9824. ASN1_CloseDecoder(dd);
  9825. ASN1Free(db);
  9826. }
  9827. if ((val)->o[1] & 0x40) {
  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 (!ASN1Dec_AuthenticationMechanism(dd, &(val)->authenticationMode))
  9833. return 0;
  9834. ASN1_CloseDecoder(dd);
  9835. ASN1Free(db);
  9836. }
  9837. if ((val)->o[1] & 0x20) {
  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_tokens(dd, &(val)->tokens))
  9843. return 0;
  9844. ASN1_CloseDecoder(dd);
  9845. ASN1Free(db);
  9846. }
  9847. if ((val)->o[1] & 0x10) {
  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_GatekeeperConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  9853. return 0;
  9854. ASN1_CloseDecoder(dd);
  9855. ASN1Free(db);
  9856. }
  9857. if ((val)->o[1] & 0x8) {
  9858. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9859. return 0;
  9860. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9861. return 0;
  9862. if (!ASN1PERDecObjectIdentifier(dd, &(val)->algorithmOID))
  9863. return 0;
  9864. ASN1_CloseDecoder(dd);
  9865. ASN1Free(db);
  9866. }
  9867. if ((val)->o[1] & 0x4) {
  9868. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9869. return 0;
  9870. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9871. return 0;
  9872. if (!ASN1Dec_GatekeeperConfirm_integrity(dd, &(val)->integrity))
  9873. return 0;
  9874. ASN1_CloseDecoder(dd);
  9875. ASN1Free(db);
  9876. }
  9877. if ((val)->o[1] & 0x2) {
  9878. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  9879. return 0;
  9880. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  9881. return 0;
  9882. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  9883. return 0;
  9884. ASN1_CloseDecoder(dd);
  9885. ASN1Free(db);
  9886. }
  9887. for (i = 0; i < e; i++) {
  9888. if (!ASN1PERDecSkipFragmented(dec, 8))
  9889. return 0;
  9890. }
  9891. }
  9892. return 1;
  9893. }
  9894. static void ASN1CALL ASN1Free_GatekeeperConfirm(GatekeeperConfirm *val)
  9895. {
  9896. if (val) {
  9897. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  9898. if ((val)->o[0] & 0x80) {
  9899. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  9900. }
  9901. if ((val)->o[0] & 0x40) {
  9902. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  9903. }
  9904. ASN1Free_TransportAddress(&(val)->rasAddress);
  9905. if ((val)->o[1] & 0x80) {
  9906. ASN1Free_GatekeeperConfirm_alternateGatekeeper(&(val)->alternateGatekeeper);
  9907. }
  9908. if ((val)->o[1] & 0x40) {
  9909. ASN1Free_AuthenticationMechanism(&(val)->authenticationMode);
  9910. }
  9911. if ((val)->o[1] & 0x20) {
  9912. ASN1Free_GatekeeperConfirm_tokens(&(val)->tokens);
  9913. }
  9914. if ((val)->o[1] & 0x10) {
  9915. ASN1Free_GatekeeperConfirm_cryptoTokens(&(val)->cryptoTokens);
  9916. }
  9917. if ((val)->o[1] & 0x8) {
  9918. ASN1objectidentifier_free(&(val)->algorithmOID);
  9919. }
  9920. if ((val)->o[1] & 0x4) {
  9921. ASN1Free_GatekeeperConfirm_integrity(&(val)->integrity);
  9922. }
  9923. if ((val)->o[1] & 0x2) {
  9924. ASN1Free_ICV(&(val)->integrityCheckValue);
  9925. }
  9926. }
  9927. }
  9928. static int ASN1CALL ASN1Enc_AdmissionRequest(ASN1encoding_t enc, AdmissionRequest *val)
  9929. {
  9930. ASN1octet_t o[3];
  9931. ASN1uint32_t y;
  9932. ASN1uint32_t l;
  9933. ASN1encoding_t ee;
  9934. CopyMemory(o, (val)->o, 3);
  9935. o[1] |= 0x80;
  9936. o[1] |= 0x40;
  9937. o[2] |= 0x40;
  9938. y = ASN1PEREncCheckExtensions(10, (val)->o + 1);
  9939. if (!ASN1PEREncBitVal(enc, 1, y))
  9940. return 0;
  9941. if (!ASN1PEREncBits(enc, 7, o))
  9942. return 0;
  9943. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  9944. return 0;
  9945. if (!ASN1Enc_CallType(enc, &(val)->callType))
  9946. return 0;
  9947. if (o[0] & 0x80) {
  9948. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  9949. return 0;
  9950. }
  9951. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  9952. return 0;
  9953. ASN1PEREncAlignment(enc);
  9954. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  9955. return 0;
  9956. if (o[0] & 0x40) {
  9957. if (!ASN1Enc_AdmissionRequest_destinationInfo(enc, &(val)->destinationInfo))
  9958. return 0;
  9959. }
  9960. if (o[0] & 0x20) {
  9961. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  9962. return 0;
  9963. }
  9964. if (o[0] & 0x10) {
  9965. if (!ASN1Enc_AdmissionRequest_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  9966. return 0;
  9967. }
  9968. if (!ASN1Enc_AdmissionRequest_srcInfo(enc, &(val)->srcInfo))
  9969. return 0;
  9970. if (o[0] & 0x8) {
  9971. if (!ASN1Enc_TransportAddress(enc, &(val)->srcCallSignalAddress))
  9972. return 0;
  9973. }
  9974. l = ASN1uint32_uoctets((val)->bandWidth);
  9975. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  9976. return 0;
  9977. ASN1PEREncAlignment(enc);
  9978. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  9979. return 0;
  9980. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  9981. return 0;
  9982. if (o[0] & 0x4) {
  9983. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  9984. return 0;
  9985. }
  9986. if (o[0] & 0x2) {
  9987. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  9988. return 0;
  9989. }
  9990. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  9991. return 0;
  9992. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  9993. return 0;
  9994. if (!ASN1PEREncBoolean(enc, (val)->answerCall))
  9995. return 0;
  9996. if (y) {
  9997. if (!ASN1PEREncNormallySmallBits(enc, 10, o + 1))
  9998. return 0;
  9999. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10000. return 0;
  10001. if (o[1] & 0x80) {
  10002. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10003. return 0;
  10004. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10005. return 0;
  10006. }
  10007. if (o[1] & 0x40) {
  10008. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10009. return 0;
  10010. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10011. return 0;
  10012. }
  10013. if (o[1] & 0x20) {
  10014. if (!ASN1Enc_AdmissionRequest_srcAlternatives(ee, &(val)->srcAlternatives))
  10015. return 0;
  10016. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10017. return 0;
  10018. }
  10019. if (o[1] & 0x10) {
  10020. if (!ASN1Enc_AdmissionRequest_destAlternatives(ee, &(val)->destAlternatives))
  10021. return 0;
  10022. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10023. return 0;
  10024. }
  10025. if (o[1] & 0x8) {
  10026. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10027. return 0;
  10028. ASN1PEREncAlignment(ee);
  10029. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10030. return 0;
  10031. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10032. return 0;
  10033. }
  10034. if (o[1] & 0x4) {
  10035. if (!ASN1Enc_AdmissionRequest_tokens(ee, &(val)->tokens))
  10036. return 0;
  10037. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10038. return 0;
  10039. }
  10040. if (o[1] & 0x2) {
  10041. if (!ASN1Enc_AdmissionRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10042. return 0;
  10043. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10044. return 0;
  10045. }
  10046. if (o[1] & 0x1) {
  10047. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10048. return 0;
  10049. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10050. return 0;
  10051. }
  10052. if (o[2] & 0x80) {
  10053. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  10054. return 0;
  10055. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10056. return 0;
  10057. }
  10058. if (o[2] & 0x40) {
  10059. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  10060. return 0;
  10061. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10062. return 0;
  10063. }
  10064. ASN1_CloseEncoder2(ee);
  10065. }
  10066. return 1;
  10067. }
  10068. static int ASN1CALL ASN1Dec_AdmissionRequest(ASN1decoding_t dec, AdmissionRequest *val)
  10069. {
  10070. ASN1uint32_t y;
  10071. ASN1uint32_t l;
  10072. ASN1decoding_t dd;
  10073. ASN1octet_t *db;
  10074. ASN1uint32_t ds;
  10075. ASN1uint32_t i;
  10076. ASN1uint32_t e;
  10077. if (!ASN1PERDecExtensionBit(dec, &y))
  10078. return 0;
  10079. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  10080. return 0;
  10081. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10082. return 0;
  10083. (val)->requestSeqNum += 1;
  10084. if (!ASN1Dec_CallType(dec, &(val)->callType))
  10085. return 0;
  10086. if ((val)->o[0] & 0x80) {
  10087. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  10088. return 0;
  10089. }
  10090. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10091. return 0;
  10092. ((val)->endpointIdentifier).length += 1;
  10093. ASN1PERDecAlignment(dec);
  10094. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10095. return 0;
  10096. if ((val)->o[0] & 0x40) {
  10097. if (!ASN1Dec_AdmissionRequest_destinationInfo(dec, &(val)->destinationInfo))
  10098. return 0;
  10099. }
  10100. if ((val)->o[0] & 0x20) {
  10101. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  10102. return 0;
  10103. }
  10104. if ((val)->o[0] & 0x10) {
  10105. if (!ASN1Dec_AdmissionRequest_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  10106. return 0;
  10107. }
  10108. if (!ASN1Dec_AdmissionRequest_srcInfo(dec, &(val)->srcInfo))
  10109. return 0;
  10110. if ((val)->o[0] & 0x8) {
  10111. if (!ASN1Dec_TransportAddress(dec, &(val)->srcCallSignalAddress))
  10112. return 0;
  10113. }
  10114. if (!ASN1PERDecU32Val(dec, 2, &l))
  10115. return 0;
  10116. l += 1;
  10117. ASN1PERDecAlignment(dec);
  10118. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  10119. return 0;
  10120. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10121. return 0;
  10122. if ((val)->o[0] & 0x4) {
  10123. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10124. return 0;
  10125. }
  10126. if ((val)->o[0] & 0x2) {
  10127. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  10128. return 0;
  10129. }
  10130. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10131. return 0;
  10132. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  10133. return 0;
  10134. if (!ASN1PERDecBoolean(dec, &(val)->answerCall))
  10135. return 0;
  10136. if (!y) {
  10137. ZeroMemory((val)->o + 1, 2);
  10138. } else {
  10139. if (!ASN1PERDecNormallySmallExtension(dec, &e, 10, (val)->o + 1))
  10140. return 0;
  10141. if ((val)->o[1] & 0x80) {
  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 (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10147. return 0;
  10148. ASN1_CloseDecoder(dd);
  10149. ASN1Free(db);
  10150. }
  10151. if ((val)->o[1] & 0x40) {
  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 (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  10157. return 0;
  10158. ASN1_CloseDecoder(dd);
  10159. ASN1Free(db);
  10160. }
  10161. if ((val)->o[1] & 0x20) {
  10162. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10163. return 0;
  10164. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10165. return 0;
  10166. if (!ASN1Dec_AdmissionRequest_srcAlternatives(dd, &(val)->srcAlternatives))
  10167. return 0;
  10168. ASN1_CloseDecoder(dd);
  10169. ASN1Free(db);
  10170. }
  10171. if ((val)->o[1] & 0x10) {
  10172. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10173. return 0;
  10174. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10175. return 0;
  10176. if (!ASN1Dec_AdmissionRequest_destAlternatives(dd, &(val)->destAlternatives))
  10177. return 0;
  10178. ASN1_CloseDecoder(dd);
  10179. ASN1Free(db);
  10180. }
  10181. if ((val)->o[1] & 0x8) {
  10182. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10183. return 0;
  10184. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10185. return 0;
  10186. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10187. return 0;
  10188. ((val)->gatekeeperIdentifier).length += 1;
  10189. ASN1PERDecAlignment(dd);
  10190. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10191. return 0;
  10192. ASN1_CloseDecoder(dd);
  10193. ASN1Free(db);
  10194. }
  10195. if ((val)->o[1] & 0x4) {
  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_AdmissionRequest_tokens(dd, &(val)->tokens))
  10201. return 0;
  10202. ASN1_CloseDecoder(dd);
  10203. ASN1Free(db);
  10204. }
  10205. if ((val)->o[1] & 0x2) {
  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 (!ASN1Dec_AdmissionRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10211. return 0;
  10212. ASN1_CloseDecoder(dd);
  10213. ASN1Free(db);
  10214. }
  10215. if ((val)->o[1] & 0x1) {
  10216. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10217. return 0;
  10218. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10219. return 0;
  10220. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10221. return 0;
  10222. ASN1_CloseDecoder(dd);
  10223. ASN1Free(db);
  10224. }
  10225. if ((val)->o[2] & 0x80) {
  10226. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10227. return 0;
  10228. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10229. return 0;
  10230. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  10231. return 0;
  10232. ASN1_CloseDecoder(dd);
  10233. ASN1Free(db);
  10234. }
  10235. if ((val)->o[2] & 0x40) {
  10236. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10237. return 0;
  10238. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10239. return 0;
  10240. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  10241. return 0;
  10242. ASN1_CloseDecoder(dd);
  10243. ASN1Free(db);
  10244. }
  10245. for (i = 0; i < e; i++) {
  10246. if (!ASN1PERDecSkipFragmented(dec, 8))
  10247. return 0;
  10248. }
  10249. }
  10250. return 1;
  10251. }
  10252. static void ASN1CALL ASN1Free_AdmissionRequest(AdmissionRequest *val)
  10253. {
  10254. if (val) {
  10255. ASN1char16string_free(&(val)->endpointIdentifier);
  10256. if ((val)->o[0] & 0x40) {
  10257. ASN1Free_AdmissionRequest_destinationInfo(&(val)->destinationInfo);
  10258. }
  10259. if ((val)->o[0] & 0x20) {
  10260. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  10261. }
  10262. if ((val)->o[0] & 0x10) {
  10263. ASN1Free_AdmissionRequest_destExtraCallInfo(&(val)->destExtraCallInfo);
  10264. }
  10265. ASN1Free_AdmissionRequest_srcInfo(&(val)->srcInfo);
  10266. if ((val)->o[0] & 0x8) {
  10267. ASN1Free_TransportAddress(&(val)->srcCallSignalAddress);
  10268. }
  10269. if ((val)->o[0] & 0x4) {
  10270. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10271. }
  10272. if ((val)->o[1] & 0x40) {
  10273. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10274. }
  10275. if ((val)->o[1] & 0x20) {
  10276. ASN1Free_AdmissionRequest_srcAlternatives(&(val)->srcAlternatives);
  10277. }
  10278. if ((val)->o[1] & 0x10) {
  10279. ASN1Free_AdmissionRequest_destAlternatives(&(val)->destAlternatives);
  10280. }
  10281. if ((val)->o[1] & 0x8) {
  10282. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10283. }
  10284. if ((val)->o[1] & 0x4) {
  10285. ASN1Free_AdmissionRequest_tokens(&(val)->tokens);
  10286. }
  10287. if ((val)->o[1] & 0x2) {
  10288. ASN1Free_AdmissionRequest_cryptoTokens(&(val)->cryptoTokens);
  10289. }
  10290. if ((val)->o[1] & 0x1) {
  10291. ASN1Free_ICV(&(val)->integrityCheckValue);
  10292. }
  10293. }
  10294. }
  10295. static int ASN1CALL ASN1Enc_LocationRequest(ASN1encoding_t enc, LocationRequest *val)
  10296. {
  10297. ASN1octet_t o[2];
  10298. ASN1uint32_t y;
  10299. ASN1encoding_t ee;
  10300. CopyMemory(o, (val)->o, 2);
  10301. o[1] |= 0x40;
  10302. y = ASN1PEREncCheckExtensions(6, (val)->o + 1);
  10303. if (!ASN1PEREncBitVal(enc, 1, y))
  10304. return 0;
  10305. if (!ASN1PEREncBits(enc, 2, o))
  10306. return 0;
  10307. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10308. return 0;
  10309. if (o[0] & 0x80) {
  10310. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  10311. return 0;
  10312. ASN1PEREncAlignment(enc);
  10313. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  10314. return 0;
  10315. }
  10316. if (!ASN1Enc_LocationRequest_destinationInfo(enc, &(val)->destinationInfo))
  10317. return 0;
  10318. if (o[0] & 0x40) {
  10319. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10320. return 0;
  10321. }
  10322. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10323. return 0;
  10324. if (y) {
  10325. if (!ASN1PEREncNormallySmallBits(enc, 6, o + 1))
  10326. return 0;
  10327. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10328. return 0;
  10329. if (o[1] & 0x80) {
  10330. if (!ASN1Enc_LocationRequest_sourceInfo(ee, &(val)->sourceInfo))
  10331. return 0;
  10332. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10333. return 0;
  10334. }
  10335. if (o[1] & 0x40) {
  10336. if (!ASN1PEREncBoolean(ee, (val)->canMapAlias))
  10337. return 0;
  10338. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10339. return 0;
  10340. }
  10341. if (o[1] & 0x20) {
  10342. if (!ASN1PEREncBitVal(ee, 7, ((val)->gatekeeperIdentifier).length - 1))
  10343. return 0;
  10344. ASN1PEREncAlignment(ee);
  10345. if (!ASN1PEREncChar16String(ee, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  10346. return 0;
  10347. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10348. return 0;
  10349. }
  10350. if (o[1] & 0x10) {
  10351. if (!ASN1Enc_LocationRequest_tokens(ee, &(val)->tokens))
  10352. return 0;
  10353. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10354. return 0;
  10355. }
  10356. if (o[1] & 0x8) {
  10357. if (!ASN1Enc_LocationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10358. return 0;
  10359. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10360. return 0;
  10361. }
  10362. if (o[1] & 0x4) {
  10363. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10364. return 0;
  10365. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10366. return 0;
  10367. }
  10368. ASN1_CloseEncoder2(ee);
  10369. }
  10370. return 1;
  10371. }
  10372. static int ASN1CALL ASN1Dec_LocationRequest(ASN1decoding_t dec, LocationRequest *val)
  10373. {
  10374. ASN1uint32_t y;
  10375. ASN1decoding_t dd;
  10376. ASN1octet_t *db;
  10377. ASN1uint32_t ds;
  10378. ASN1uint32_t i;
  10379. ASN1uint32_t e;
  10380. if (!ASN1PERDecExtensionBit(dec, &y))
  10381. return 0;
  10382. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10383. return 0;
  10384. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10385. return 0;
  10386. (val)->requestSeqNum += 1;
  10387. if ((val)->o[0] & 0x80) {
  10388. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  10389. return 0;
  10390. ((val)->endpointIdentifier).length += 1;
  10391. ASN1PERDecAlignment(dec);
  10392. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  10393. return 0;
  10394. }
  10395. if (!ASN1Dec_LocationRequest_destinationInfo(dec, &(val)->destinationInfo))
  10396. return 0;
  10397. if ((val)->o[0] & 0x40) {
  10398. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10399. return 0;
  10400. }
  10401. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10402. return 0;
  10403. if (!y) {
  10404. ZeroMemory((val)->o + 1, 1);
  10405. } else {
  10406. if (!ASN1PERDecNormallySmallExtension(dec, &e, 6, (val)->o + 1))
  10407. return 0;
  10408. if ((val)->o[1] & 0x80) {
  10409. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10410. return 0;
  10411. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10412. return 0;
  10413. if (!ASN1Dec_LocationRequest_sourceInfo(dd, &(val)->sourceInfo))
  10414. return 0;
  10415. ASN1_CloseDecoder(dd);
  10416. ASN1Free(db);
  10417. }
  10418. if ((val)->o[1] & 0x40) {
  10419. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10420. return 0;
  10421. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10422. return 0;
  10423. if (!ASN1PERDecBoolean(dd, &(val)->canMapAlias))
  10424. return 0;
  10425. ASN1_CloseDecoder(dd);
  10426. ASN1Free(db);
  10427. }
  10428. if ((val)->o[1] & 0x20) {
  10429. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10430. return 0;
  10431. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10432. return 0;
  10433. if (!ASN1PERDecU32Val(dd, 7, &((val)->gatekeeperIdentifier).length))
  10434. return 0;
  10435. ((val)->gatekeeperIdentifier).length += 1;
  10436. ASN1PERDecAlignment(dd);
  10437. if (!ASN1PERDecChar16String(dd, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  10438. return 0;
  10439. ASN1_CloseDecoder(dd);
  10440. ASN1Free(db);
  10441. }
  10442. if ((val)->o[1] & 0x10) {
  10443. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10444. return 0;
  10445. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10446. return 0;
  10447. if (!ASN1Dec_LocationRequest_tokens(dd, &(val)->tokens))
  10448. return 0;
  10449. ASN1_CloseDecoder(dd);
  10450. ASN1Free(db);
  10451. }
  10452. if ((val)->o[1] & 0x8) {
  10453. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10454. return 0;
  10455. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10456. return 0;
  10457. if (!ASN1Dec_LocationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10458. return 0;
  10459. ASN1_CloseDecoder(dd);
  10460. ASN1Free(db);
  10461. }
  10462. if ((val)->o[1] & 0x4) {
  10463. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10464. return 0;
  10465. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10466. return 0;
  10467. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10468. return 0;
  10469. ASN1_CloseDecoder(dd);
  10470. ASN1Free(db);
  10471. }
  10472. for (i = 0; i < e; i++) {
  10473. if (!ASN1PERDecSkipFragmented(dec, 8))
  10474. return 0;
  10475. }
  10476. }
  10477. return 1;
  10478. }
  10479. static void ASN1CALL ASN1Free_LocationRequest(LocationRequest *val)
  10480. {
  10481. if (val) {
  10482. if ((val)->o[0] & 0x80) {
  10483. ASN1char16string_free(&(val)->endpointIdentifier);
  10484. }
  10485. ASN1Free_LocationRequest_destinationInfo(&(val)->destinationInfo);
  10486. if ((val)->o[0] & 0x40) {
  10487. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10488. }
  10489. ASN1Free_TransportAddress(&(val)->replyAddress);
  10490. if ((val)->o[1] & 0x80) {
  10491. ASN1Free_LocationRequest_sourceInfo(&(val)->sourceInfo);
  10492. }
  10493. if ((val)->o[1] & 0x20) {
  10494. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  10495. }
  10496. if ((val)->o[1] & 0x10) {
  10497. ASN1Free_LocationRequest_tokens(&(val)->tokens);
  10498. }
  10499. if ((val)->o[1] & 0x8) {
  10500. ASN1Free_LocationRequest_cryptoTokens(&(val)->cryptoTokens);
  10501. }
  10502. if ((val)->o[1] & 0x4) {
  10503. ASN1Free_ICV(&(val)->integrityCheckValue);
  10504. }
  10505. }
  10506. }
  10507. static int ASN1CALL ASN1Enc_InfoRequest(ASN1encoding_t enc, InfoRequest *val)
  10508. {
  10509. ASN1octet_t o[2];
  10510. ASN1uint32_t y;
  10511. ASN1encoding_t ee;
  10512. CopyMemory(o, (val)->o, 2);
  10513. o[1] |= 0x80;
  10514. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10515. if (!ASN1PEREncBitVal(enc, 1, y))
  10516. return 0;
  10517. if (!ASN1PEREncBits(enc, 2, o))
  10518. return 0;
  10519. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  10520. return 0;
  10521. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10522. return 0;
  10523. if (o[0] & 0x80) {
  10524. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10525. return 0;
  10526. }
  10527. if (o[0] & 0x40) {
  10528. if (!ASN1Enc_TransportAddress(enc, &(val)->replyAddress))
  10529. return 0;
  10530. }
  10531. if (y) {
  10532. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10533. return 0;
  10534. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10535. return 0;
  10536. if (o[1] & 0x80) {
  10537. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10538. return 0;
  10539. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10540. return 0;
  10541. }
  10542. if (o[1] & 0x40) {
  10543. if (!ASN1Enc_InfoRequest_tokens(ee, &(val)->tokens))
  10544. return 0;
  10545. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10546. return 0;
  10547. }
  10548. if (o[1] & 0x20) {
  10549. if (!ASN1Enc_InfoRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  10550. return 0;
  10551. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10552. return 0;
  10553. }
  10554. if (o[1] & 0x10) {
  10555. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  10556. return 0;
  10557. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10558. return 0;
  10559. }
  10560. if (o[1] & 0x8) {
  10561. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  10562. return 0;
  10563. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10564. return 0;
  10565. }
  10566. ASN1_CloseEncoder2(ee);
  10567. }
  10568. return 1;
  10569. }
  10570. static int ASN1CALL ASN1Dec_InfoRequest(ASN1decoding_t dec, InfoRequest *val)
  10571. {
  10572. ASN1uint32_t y;
  10573. ASN1decoding_t dd;
  10574. ASN1octet_t *db;
  10575. ASN1uint32_t ds;
  10576. ASN1uint32_t i;
  10577. ASN1uint32_t e;
  10578. if (!ASN1PERDecExtensionBit(dec, &y))
  10579. return 0;
  10580. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10581. return 0;
  10582. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  10583. return 0;
  10584. (val)->requestSeqNum += 1;
  10585. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10586. return 0;
  10587. if ((val)->o[0] & 0x80) {
  10588. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10589. return 0;
  10590. }
  10591. if ((val)->o[0] & 0x40) {
  10592. if (!ASN1Dec_TransportAddress(dec, &(val)->replyAddress))
  10593. return 0;
  10594. }
  10595. if (!y) {
  10596. ZeroMemory((val)->o + 1, 1);
  10597. } else {
  10598. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  10599. return 0;
  10600. if ((val)->o[1] & 0x80) {
  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_CallIdentifier(dd, &(val)->callIdentifier))
  10606. return 0;
  10607. ASN1_CloseDecoder(dd);
  10608. ASN1Free(db);
  10609. }
  10610. if ((val)->o[1] & 0x40) {
  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_InfoRequest_tokens(dd, &(val)->tokens))
  10616. return 0;
  10617. ASN1_CloseDecoder(dd);
  10618. ASN1Free(db);
  10619. }
  10620. if ((val)->o[1] & 0x20) {
  10621. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10622. return 0;
  10623. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10624. return 0;
  10625. if (!ASN1Dec_InfoRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  10626. return 0;
  10627. ASN1_CloseDecoder(dd);
  10628. ASN1Free(db);
  10629. }
  10630. if ((val)->o[1] & 0x10) {
  10631. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10632. return 0;
  10633. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10634. return 0;
  10635. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  10636. return 0;
  10637. ASN1_CloseDecoder(dd);
  10638. ASN1Free(db);
  10639. }
  10640. if ((val)->o[1] & 0x8) {
  10641. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  10642. return 0;
  10643. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  10644. return 0;
  10645. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  10646. return 0;
  10647. ASN1_CloseDecoder(dd);
  10648. ASN1Free(db);
  10649. }
  10650. for (i = 0; i < e; i++) {
  10651. if (!ASN1PERDecSkipFragmented(dec, 8))
  10652. return 0;
  10653. }
  10654. }
  10655. return 1;
  10656. }
  10657. static void ASN1CALL ASN1Free_InfoRequest(InfoRequest *val)
  10658. {
  10659. if (val) {
  10660. if ((val)->o[0] & 0x80) {
  10661. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  10662. }
  10663. if ((val)->o[0] & 0x40) {
  10664. ASN1Free_TransportAddress(&(val)->replyAddress);
  10665. }
  10666. if ((val)->o[1] & 0x80) {
  10667. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  10668. }
  10669. if ((val)->o[1] & 0x40) {
  10670. ASN1Free_InfoRequest_tokens(&(val)->tokens);
  10671. }
  10672. if ((val)->o[1] & 0x20) {
  10673. ASN1Free_InfoRequest_cryptoTokens(&(val)->cryptoTokens);
  10674. }
  10675. if ((val)->o[1] & 0x10) {
  10676. ASN1Free_ICV(&(val)->integrityCheckValue);
  10677. }
  10678. }
  10679. }
  10680. static int ASN1CALL ASN1Enc_TransportChannelInfo(ASN1encoding_t enc, TransportChannelInfo *val)
  10681. {
  10682. if (!ASN1PEREncExtensionBitClear(enc))
  10683. return 0;
  10684. if (!ASN1PEREncBits(enc, 2, (val)->o))
  10685. return 0;
  10686. if ((val)->o[0] & 0x80) {
  10687. if (!ASN1Enc_TransportAddress(enc, &(val)->sendAddress))
  10688. return 0;
  10689. }
  10690. if ((val)->o[0] & 0x40) {
  10691. if (!ASN1Enc_TransportAddress(enc, &(val)->recvAddress))
  10692. return 0;
  10693. }
  10694. return 1;
  10695. }
  10696. static int ASN1CALL ASN1Dec_TransportChannelInfo(ASN1decoding_t dec, TransportChannelInfo *val)
  10697. {
  10698. ASN1uint32_t y;
  10699. if (!ASN1PERDecExtensionBit(dec, &y))
  10700. return 0;
  10701. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  10702. return 0;
  10703. if ((val)->o[0] & 0x80) {
  10704. if (!ASN1Dec_TransportAddress(dec, &(val)->sendAddress))
  10705. return 0;
  10706. }
  10707. if ((val)->o[0] & 0x40) {
  10708. if (!ASN1Dec_TransportAddress(dec, &(val)->recvAddress))
  10709. return 0;
  10710. }
  10711. if (y) {
  10712. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10713. return 0;
  10714. }
  10715. return 1;
  10716. }
  10717. static void ASN1CALL ASN1Free_TransportChannelInfo(TransportChannelInfo *val)
  10718. {
  10719. if (val) {
  10720. if ((val)->o[0] & 0x80) {
  10721. ASN1Free_TransportAddress(&(val)->sendAddress);
  10722. }
  10723. if ((val)->o[0] & 0x40) {
  10724. ASN1Free_TransportAddress(&(val)->recvAddress);
  10725. }
  10726. }
  10727. }
  10728. static int ASN1CALL ASN1Enc_RTPSession(ASN1encoding_t enc, RTPSession *val)
  10729. {
  10730. ASN1uint32_t t;
  10731. ASN1uint32_t l;
  10732. if (!ASN1PEREncExtensionBitClear(enc))
  10733. return 0;
  10734. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtpAddress))
  10735. return 0;
  10736. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->rtcpAddress))
  10737. return 0;
  10738. t = lstrlenA((val)->cname);
  10739. if (!ASN1PEREncFragmentedCharString(enc, t, (val)->cname, 8))
  10740. return 0;
  10741. l = ASN1uint32_uoctets((val)->ssrc - 1);
  10742. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10743. return 0;
  10744. ASN1PEREncAlignment(enc);
  10745. if (!ASN1PEREncBitVal(enc, l * 8, (val)->ssrc - 1))
  10746. return 0;
  10747. if (!ASN1PEREncBitVal(enc, 8, (val)->sessionId - 1))
  10748. return 0;
  10749. if (!ASN1Enc_RTPSession_associatedSessionIds(enc, &(val)->associatedSessionIds))
  10750. return 0;
  10751. return 1;
  10752. }
  10753. static int ASN1CALL ASN1Dec_RTPSession(ASN1decoding_t dec, RTPSession *val)
  10754. {
  10755. ASN1uint32_t y;
  10756. ASN1uint32_t l;
  10757. if (!ASN1PERDecExtensionBit(dec, &y))
  10758. return 0;
  10759. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtpAddress))
  10760. return 0;
  10761. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->rtcpAddress))
  10762. return 0;
  10763. if (!ASN1PERDecFragmentedZeroCharString(dec, &(val)->cname, 8))
  10764. return 0;
  10765. if (!ASN1PERDecU32Val(dec, 2, &l))
  10766. return 0;
  10767. l += 1;
  10768. ASN1PERDecAlignment(dec);
  10769. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->ssrc))
  10770. return 0;
  10771. (val)->ssrc += 1;
  10772. if (!ASN1PERDecU16Val(dec, 8, &(val)->sessionId))
  10773. return 0;
  10774. (val)->sessionId += 1;
  10775. if (!ASN1Dec_RTPSession_associatedSessionIds(dec, &(val)->associatedSessionIds))
  10776. return 0;
  10777. if (y) {
  10778. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  10779. return 0;
  10780. }
  10781. return 1;
  10782. }
  10783. static void ASN1CALL ASN1Free_RTPSession(RTPSession *val)
  10784. {
  10785. if (val) {
  10786. ASN1Free_TransportChannelInfo(&(val)->rtpAddress);
  10787. ASN1Free_TransportChannelInfo(&(val)->rtcpAddress);
  10788. ASN1ztcharstring_free((val)->cname);
  10789. ASN1Free_RTPSession_associatedSessionIds(&(val)->associatedSessionIds);
  10790. }
  10791. }
  10792. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10793. {
  10794. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10795. }
  10796. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_data val)
  10797. {
  10798. if (!ASN1Enc_TransportChannelInfo(enc, &val->value))
  10799. return 0;
  10800. return 1;
  10801. }
  10802. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data *val)
  10803. {
  10804. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn, sizeof(**val));
  10805. }
  10806. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_data val)
  10807. {
  10808. if (!ASN1Dec_TransportChannelInfo(dec, &val->value))
  10809. return 0;
  10810. return 1;
  10811. }
  10812. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(PInfoRequestResponse_perCallInfo_Seq_data *val)
  10813. {
  10814. if (val) {
  10815. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn);
  10816. }
  10817. }
  10818. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_data_ElmFn(PInfoRequestResponse_perCallInfo_Seq_data val)
  10819. {
  10820. if (val) {
  10821. ASN1Free_TransportChannelInfo(&val->value);
  10822. }
  10823. }
  10824. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10825. {
  10826. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10827. }
  10828. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_video val)
  10829. {
  10830. if (!ASN1Enc_RTPSession(enc, &val->value))
  10831. return 0;
  10832. return 1;
  10833. }
  10834. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video *val)
  10835. {
  10836. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn, sizeof(**val));
  10837. }
  10838. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_video val)
  10839. {
  10840. if (!ASN1Dec_RTPSession(dec, &val->value))
  10841. return 0;
  10842. return 1;
  10843. }
  10844. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(PInfoRequestResponse_perCallInfo_Seq_video *val)
  10845. {
  10846. if (val) {
  10847. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn);
  10848. }
  10849. }
  10850. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_video_ElmFn(PInfoRequestResponse_perCallInfo_Seq_video val)
  10851. {
  10852. if (val) {
  10853. ASN1Free_RTPSession(&val->value);
  10854. }
  10855. }
  10856. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10857. {
  10858. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10859. }
  10860. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10861. {
  10862. if (!ASN1Enc_RTPSession(enc, &val->value))
  10863. return 0;
  10864. return 1;
  10865. }
  10866. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10867. {
  10868. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn, sizeof(**val));
  10869. }
  10870. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_audio val)
  10871. {
  10872. if (!ASN1Dec_RTPSession(dec, &val->value))
  10873. return 0;
  10874. return 1;
  10875. }
  10876. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(PInfoRequestResponse_perCallInfo_Seq_audio *val)
  10877. {
  10878. if (val) {
  10879. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn);
  10880. }
  10881. }
  10882. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio_ElmFn(PInfoRequestResponse_perCallInfo_Seq_audio val)
  10883. {
  10884. if (val) {
  10885. ASN1Free_RTPSession(&val->value);
  10886. }
  10887. }
  10888. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq *val)
  10889. {
  10890. ASN1octet_t o[2];
  10891. ASN1uint32_t y;
  10892. ASN1uint32_t l;
  10893. ASN1encoding_t ee;
  10894. CopyMemory(o, (val)->o, 2);
  10895. o[1] |= 0x80;
  10896. o[1] |= 0x10;
  10897. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  10898. if (!ASN1PEREncBitVal(enc, 1, y))
  10899. return 0;
  10900. if (!ASN1PEREncBits(enc, 5, o))
  10901. return 0;
  10902. if (o[0] & 0x80) {
  10903. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  10904. return 0;
  10905. }
  10906. if (!ASN1PEREncUnsignedShort(enc, (val)->callReferenceValue))
  10907. return 0;
  10908. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10909. return 0;
  10910. if (o[0] & 0x40) {
  10911. if (!ASN1PEREncBoolean(enc, (val)->originator))
  10912. return 0;
  10913. }
  10914. if (o[0] & 0x20) {
  10915. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_audio(enc, &(val)->audio))
  10916. return 0;
  10917. }
  10918. if (o[0] & 0x10) {
  10919. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_video(enc, &(val)->video))
  10920. return 0;
  10921. }
  10922. if (o[0] & 0x8) {
  10923. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_data(enc, &(val)->data))
  10924. return 0;
  10925. }
  10926. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->h245))
  10927. return 0;
  10928. if (!ASN1Enc_TransportChannelInfo(enc, &(val)->callSignaling))
  10929. return 0;
  10930. if (!ASN1Enc_CallType(enc, &(val)->callType))
  10931. return 0;
  10932. l = ASN1uint32_uoctets((val)->bandWidth);
  10933. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  10934. return 0;
  10935. ASN1PEREncAlignment(enc);
  10936. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  10937. return 0;
  10938. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  10939. return 0;
  10940. if (y) {
  10941. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  10942. return 0;
  10943. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  10944. return 0;
  10945. if (o[1] & 0x80) {
  10946. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  10947. return 0;
  10948. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10949. return 0;
  10950. }
  10951. if (o[1] & 0x40) {
  10952. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_tokens(ee, &(val)->tokens))
  10953. return 0;
  10954. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10955. return 0;
  10956. }
  10957. if (o[1] & 0x20) {
  10958. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ee, &(val)->cryptoTokens))
  10959. return 0;
  10960. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10961. return 0;
  10962. }
  10963. if (o[1] & 0x10) {
  10964. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(ee, &(val)->substituteConfIDs))
  10965. return 0;
  10966. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10967. return 0;
  10968. }
  10969. if (o[1] & 0x8) {
  10970. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ee, &(val)->pdu))
  10971. return 0;
  10972. if (!ASN1PEREncFlushFragmentedToParent(ee))
  10973. return 0;
  10974. }
  10975. ASN1_CloseEncoder2(ee);
  10976. }
  10977. return 1;
  10978. }
  10979. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq *val)
  10980. {
  10981. ASN1uint32_t y;
  10982. ASN1uint32_t l;
  10983. ASN1decoding_t dd;
  10984. ASN1octet_t *db;
  10985. ASN1uint32_t ds;
  10986. ASN1uint32_t i;
  10987. ASN1uint32_t e;
  10988. if (!ASN1PERDecExtensionBit(dec, &y))
  10989. return 0;
  10990. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  10991. return 0;
  10992. if ((val)->o[0] & 0x80) {
  10993. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  10994. return 0;
  10995. }
  10996. if (!ASN1PERDecUnsignedShort(dec, &(val)->callReferenceValue))
  10997. return 0;
  10998. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  10999. return 0;
  11000. if ((val)->o[0] & 0x40) {
  11001. if (!ASN1PERDecBoolean(dec, &(val)->originator))
  11002. return 0;
  11003. }
  11004. if ((val)->o[0] & 0x20) {
  11005. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_audio(dec, &(val)->audio))
  11006. return 0;
  11007. }
  11008. if ((val)->o[0] & 0x10) {
  11009. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_video(dec, &(val)->video))
  11010. return 0;
  11011. }
  11012. if ((val)->o[0] & 0x8) {
  11013. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_data(dec, &(val)->data))
  11014. return 0;
  11015. }
  11016. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->h245))
  11017. return 0;
  11018. if (!ASN1Dec_TransportChannelInfo(dec, &(val)->callSignaling))
  11019. return 0;
  11020. if (!ASN1Dec_CallType(dec, &(val)->callType))
  11021. return 0;
  11022. if (!ASN1PERDecU32Val(dec, 2, &l))
  11023. return 0;
  11024. l += 1;
  11025. ASN1PERDecAlignment(dec);
  11026. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  11027. return 0;
  11028. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  11029. return 0;
  11030. if (!y) {
  11031. ZeroMemory((val)->o + 1, 1);
  11032. } else {
  11033. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  11034. return 0;
  11035. if ((val)->o[1] & 0x80) {
  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_CallIdentifier(dd, &(val)->callIdentifier))
  11041. return 0;
  11042. ASN1_CloseDecoder(dd);
  11043. ASN1Free(db);
  11044. }
  11045. if ((val)->o[1] & 0x40) {
  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_tokens(dd, &(val)->tokens))
  11051. return 0;
  11052. ASN1_CloseDecoder(dd);
  11053. ASN1Free(db);
  11054. }
  11055. if ((val)->o[1] & 0x20) {
  11056. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11057. return 0;
  11058. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11059. return 0;
  11060. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(dd, &(val)->cryptoTokens))
  11061. return 0;
  11062. ASN1_CloseDecoder(dd);
  11063. ASN1Free(db);
  11064. }
  11065. if ((val)->o[1] & 0x10) {
  11066. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11067. return 0;
  11068. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11069. return 0;
  11070. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(dd, &(val)->substituteConfIDs))
  11071. return 0;
  11072. ASN1_CloseDecoder(dd);
  11073. ASN1Free(db);
  11074. }
  11075. if ((val)->o[1] & 0x8) {
  11076. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11077. return 0;
  11078. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11079. return 0;
  11080. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(dd, &(val)->pdu))
  11081. return 0;
  11082. ASN1_CloseDecoder(dd);
  11083. ASN1Free(db);
  11084. }
  11085. for (i = 0; i < e; i++) {
  11086. if (!ASN1PERDecSkipFragmented(dec, 8))
  11087. return 0;
  11088. }
  11089. }
  11090. return 1;
  11091. }
  11092. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq(InfoRequestResponse_perCallInfo_Seq *val)
  11093. {
  11094. if (val) {
  11095. if ((val)->o[0] & 0x80) {
  11096. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11097. }
  11098. if ((val)->o[0] & 0x20) {
  11099. ASN1Free_InfoRequestResponse_perCallInfo_Seq_audio(&(val)->audio);
  11100. }
  11101. if ((val)->o[0] & 0x10) {
  11102. ASN1Free_InfoRequestResponse_perCallInfo_Seq_video(&(val)->video);
  11103. }
  11104. if ((val)->o[0] & 0x8) {
  11105. ASN1Free_InfoRequestResponse_perCallInfo_Seq_data(&(val)->data);
  11106. }
  11107. ASN1Free_TransportChannelInfo(&(val)->h245);
  11108. ASN1Free_TransportChannelInfo(&(val)->callSignaling);
  11109. if ((val)->o[1] & 0x80) {
  11110. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  11111. }
  11112. if ((val)->o[1] & 0x40) {
  11113. ASN1Free_InfoRequestResponse_perCallInfo_Seq_tokens(&(val)->tokens);
  11114. }
  11115. if ((val)->o[1] & 0x20) {
  11116. ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(&(val)->cryptoTokens);
  11117. }
  11118. if ((val)->o[1] & 0x10) {
  11119. ASN1Free_InfoRequestResponse_perCallInfo_Seq_substituteConfIDs(&(val)->substituteConfIDs);
  11120. }
  11121. if ((val)->o[1] & 0x8) {
  11122. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(&(val)->pdu);
  11123. }
  11124. }
  11125. }
  11126. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo *val)
  11127. {
  11128. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn);
  11129. }
  11130. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo val)
  11131. {
  11132. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq(enc, &val->value))
  11133. return 0;
  11134. return 1;
  11135. }
  11136. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo *val)
  11137. {
  11138. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn, sizeof(**val));
  11139. }
  11140. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo val)
  11141. {
  11142. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq(dec, &val->value))
  11143. return 0;
  11144. return 1;
  11145. }
  11146. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo(PInfoRequestResponse_perCallInfo *val)
  11147. {
  11148. if (val) {
  11149. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_ElmFn);
  11150. }
  11151. }
  11152. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_ElmFn(PInfoRequestResponse_perCallInfo val)
  11153. {
  11154. if (val) {
  11155. ASN1Free_InfoRequestResponse_perCallInfo_Seq(&val->value);
  11156. }
  11157. }
  11158. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress *val)
  11159. {
  11160. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn);
  11161. }
  11162. static int ASN1CALL ASN1Enc_InfoRequestResponse_callSignalAddress_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_callSignalAddress val)
  11163. {
  11164. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11165. return 0;
  11166. return 1;
  11167. }
  11168. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress *val)
  11169. {
  11170. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn, sizeof(**val));
  11171. }
  11172. static int ASN1CALL ASN1Dec_InfoRequestResponse_callSignalAddress_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_callSignalAddress val)
  11173. {
  11174. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11175. return 0;
  11176. return 1;
  11177. }
  11178. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress(PInfoRequestResponse_callSignalAddress *val)
  11179. {
  11180. if (val) {
  11181. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn);
  11182. }
  11183. }
  11184. static void ASN1CALL ASN1Free_InfoRequestResponse_callSignalAddress_ElmFn(PInfoRequestResponse_callSignalAddress val)
  11185. {
  11186. if (val) {
  11187. ASN1Free_TransportAddress(&val->value);
  11188. }
  11189. }
  11190. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress(ASN1encoding_t enc, PAdmissionReject_callSignalAddress *val)
  11191. {
  11192. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_callSignalAddress_ElmFn);
  11193. }
  11194. static int ASN1CALL ASN1Enc_AdmissionReject_callSignalAddress_ElmFn(ASN1encoding_t enc, PAdmissionReject_callSignalAddress val)
  11195. {
  11196. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11197. return 0;
  11198. return 1;
  11199. }
  11200. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress(ASN1decoding_t dec, PAdmissionReject_callSignalAddress *val)
  11201. {
  11202. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_callSignalAddress_ElmFn, sizeof(**val));
  11203. }
  11204. static int ASN1CALL ASN1Dec_AdmissionReject_callSignalAddress_ElmFn(ASN1decoding_t dec, PAdmissionReject_callSignalAddress val)
  11205. {
  11206. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11207. return 0;
  11208. return 1;
  11209. }
  11210. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress(PAdmissionReject_callSignalAddress *val)
  11211. {
  11212. if (val) {
  11213. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_callSignalAddress_ElmFn);
  11214. }
  11215. }
  11216. static void ASN1CALL ASN1Free_AdmissionReject_callSignalAddress_ElmFn(PAdmissionReject_callSignalAddress val)
  11217. {
  11218. if (val) {
  11219. ASN1Free_TransportAddress(&val->value);
  11220. }
  11221. }
  11222. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress *val)
  11223. {
  11224. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn);
  11225. }
  11226. static int ASN1CALL ASN1Enc_UnregistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_callSignalAddress val)
  11227. {
  11228. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11229. return 0;
  11230. return 1;
  11231. }
  11232. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress *val)
  11233. {
  11234. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11235. }
  11236. static int ASN1CALL ASN1Dec_UnregistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_callSignalAddress val)
  11237. {
  11238. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11239. return 0;
  11240. return 1;
  11241. }
  11242. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress(PUnregistrationRequest_callSignalAddress *val)
  11243. {
  11244. if (val) {
  11245. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn);
  11246. }
  11247. }
  11248. static void ASN1CALL ASN1Free_UnregistrationRequest_callSignalAddress_ElmFn(PUnregistrationRequest_callSignalAddress val)
  11249. {
  11250. if (val) {
  11251. ASN1Free_TransportAddress(&val->value);
  11252. }
  11253. }
  11254. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper *val)
  11255. {
  11256. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11257. }
  11258. static int ASN1CALL ASN1Enc_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_alternateGatekeeper val)
  11259. {
  11260. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11261. return 0;
  11262. return 1;
  11263. }
  11264. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper *val)
  11265. {
  11266. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11267. }
  11268. static int ASN1CALL ASN1Dec_RegistrationConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_alternateGatekeeper val)
  11269. {
  11270. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11271. return 0;
  11272. return 1;
  11273. }
  11274. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper(PRegistrationConfirm_alternateGatekeeper *val)
  11275. {
  11276. if (val) {
  11277. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn);
  11278. }
  11279. }
  11280. static void ASN1CALL ASN1Free_RegistrationConfirm_alternateGatekeeper_ElmFn(PRegistrationConfirm_alternateGatekeeper val)
  11281. {
  11282. if (val) {
  11283. ASN1Free_AlternateGK(&val->value);
  11284. }
  11285. }
  11286. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress *val)
  11287. {
  11288. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn);
  11289. }
  11290. static int ASN1CALL ASN1Enc_RegistrationConfirm_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_callSignalAddress val)
  11291. {
  11292. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11293. return 0;
  11294. return 1;
  11295. }
  11296. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress *val)
  11297. {
  11298. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn, sizeof(**val));
  11299. }
  11300. static int ASN1CALL ASN1Dec_RegistrationConfirm_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_callSignalAddress val)
  11301. {
  11302. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11303. return 0;
  11304. return 1;
  11305. }
  11306. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress(PRegistrationConfirm_callSignalAddress *val)
  11307. {
  11308. if (val) {
  11309. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn);
  11310. }
  11311. }
  11312. static void ASN1CALL ASN1Free_RegistrationConfirm_callSignalAddress_ElmFn(PRegistrationConfirm_callSignalAddress val)
  11313. {
  11314. if (val) {
  11315. ASN1Free_TransportAddress(&val->value);
  11316. }
  11317. }
  11318. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress(ASN1encoding_t enc, PRegistrationRequest_rasAddress *val)
  11319. {
  11320. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_rasAddress_ElmFn);
  11321. }
  11322. static int ASN1CALL ASN1Enc_RegistrationRequest_rasAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_rasAddress val)
  11323. {
  11324. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11325. return 0;
  11326. return 1;
  11327. }
  11328. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress(ASN1decoding_t dec, PRegistrationRequest_rasAddress *val)
  11329. {
  11330. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_rasAddress_ElmFn, sizeof(**val));
  11331. }
  11332. static int ASN1CALL ASN1Dec_RegistrationRequest_rasAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_rasAddress val)
  11333. {
  11334. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11335. return 0;
  11336. return 1;
  11337. }
  11338. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress(PRegistrationRequest_rasAddress *val)
  11339. {
  11340. if (val) {
  11341. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_rasAddress_ElmFn);
  11342. }
  11343. }
  11344. static void ASN1CALL ASN1Free_RegistrationRequest_rasAddress_ElmFn(PRegistrationRequest_rasAddress val)
  11345. {
  11346. if (val) {
  11347. ASN1Free_TransportAddress(&val->value);
  11348. }
  11349. }
  11350. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress *val)
  11351. {
  11352. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn);
  11353. }
  11354. static int ASN1CALL ASN1Enc_RegistrationRequest_callSignalAddress_ElmFn(ASN1encoding_t enc, PRegistrationRequest_callSignalAddress val)
  11355. {
  11356. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11357. return 0;
  11358. return 1;
  11359. }
  11360. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress *val)
  11361. {
  11362. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn, sizeof(**val));
  11363. }
  11364. static int ASN1CALL ASN1Dec_RegistrationRequest_callSignalAddress_ElmFn(ASN1decoding_t dec, PRegistrationRequest_callSignalAddress val)
  11365. {
  11366. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11367. return 0;
  11368. return 1;
  11369. }
  11370. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress(PRegistrationRequest_callSignalAddress *val)
  11371. {
  11372. if (val) {
  11373. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_callSignalAddress_ElmFn);
  11374. }
  11375. }
  11376. static void ASN1CALL ASN1Free_RegistrationRequest_callSignalAddress_ElmFn(PRegistrationRequest_callSignalAddress val)
  11377. {
  11378. if (val) {
  11379. ASN1Free_TransportAddress(&val->value);
  11380. }
  11381. }
  11382. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper *val)
  11383. {
  11384. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11385. }
  11386. static int ASN1CALL ASN1Enc_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_alternateGatekeeper val)
  11387. {
  11388. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11389. return 0;
  11390. return 1;
  11391. }
  11392. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper *val)
  11393. {
  11394. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn, sizeof(**val));
  11395. }
  11396. static int ASN1CALL ASN1Dec_GatekeeperConfirm_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_alternateGatekeeper val)
  11397. {
  11398. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11399. return 0;
  11400. return 1;
  11401. }
  11402. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper(PGatekeeperConfirm_alternateGatekeeper *val)
  11403. {
  11404. if (val) {
  11405. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn);
  11406. }
  11407. }
  11408. static void ASN1CALL ASN1Free_GatekeeperConfirm_alternateGatekeeper_ElmFn(PGatekeeperConfirm_alternateGatekeeper val)
  11409. {
  11410. if (val) {
  11411. ASN1Free_AlternateGK(&val->value);
  11412. }
  11413. }
  11414. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper *val)
  11415. {
  11416. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn);
  11417. }
  11418. static int ASN1CALL ASN1Enc_AltGKInfo_alternateGatekeeper_ElmFn(ASN1encoding_t enc, PAltGKInfo_alternateGatekeeper val)
  11419. {
  11420. if (!ASN1Enc_AlternateGK(enc, &val->value))
  11421. return 0;
  11422. return 1;
  11423. }
  11424. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper *val)
  11425. {
  11426. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn, sizeof(**val));
  11427. }
  11428. static int ASN1CALL ASN1Dec_AltGKInfo_alternateGatekeeper_ElmFn(ASN1decoding_t dec, PAltGKInfo_alternateGatekeeper val)
  11429. {
  11430. if (!ASN1Dec_AlternateGK(dec, &val->value))
  11431. return 0;
  11432. return 1;
  11433. }
  11434. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper(PAltGKInfo_alternateGatekeeper *val)
  11435. {
  11436. if (val) {
  11437. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn);
  11438. }
  11439. }
  11440. static void ASN1CALL ASN1Free_AltGKInfo_alternateGatekeeper_ElmFn(PAltGKInfo_alternateGatekeeper val)
  11441. {
  11442. if (val) {
  11443. ASN1Free_AlternateGK(&val->value);
  11444. }
  11445. }
  11446. static int ASN1CALL ASN1Enc_Endpoint_rasAddress(ASN1encoding_t enc, PEndpoint_rasAddress *val)
  11447. {
  11448. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_rasAddress_ElmFn);
  11449. }
  11450. static int ASN1CALL ASN1Enc_Endpoint_rasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_rasAddress val)
  11451. {
  11452. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11453. return 0;
  11454. return 1;
  11455. }
  11456. static int ASN1CALL ASN1Dec_Endpoint_rasAddress(ASN1decoding_t dec, PEndpoint_rasAddress *val)
  11457. {
  11458. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_rasAddress_ElmFn, sizeof(**val));
  11459. }
  11460. static int ASN1CALL ASN1Dec_Endpoint_rasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_rasAddress val)
  11461. {
  11462. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11463. return 0;
  11464. return 1;
  11465. }
  11466. static void ASN1CALL ASN1Free_Endpoint_rasAddress(PEndpoint_rasAddress *val)
  11467. {
  11468. if (val) {
  11469. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_rasAddress_ElmFn);
  11470. }
  11471. }
  11472. static void ASN1CALL ASN1Free_Endpoint_rasAddress_ElmFn(PEndpoint_rasAddress val)
  11473. {
  11474. if (val) {
  11475. ASN1Free_TransportAddress(&val->value);
  11476. }
  11477. }
  11478. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress(ASN1encoding_t enc, PEndpoint_callSignalAddress *val)
  11479. {
  11480. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_callSignalAddress_ElmFn);
  11481. }
  11482. static int ASN1CALL ASN1Enc_Endpoint_callSignalAddress_ElmFn(ASN1encoding_t enc, PEndpoint_callSignalAddress val)
  11483. {
  11484. if (!ASN1Enc_TransportAddress(enc, &val->value))
  11485. return 0;
  11486. return 1;
  11487. }
  11488. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress(ASN1decoding_t dec, PEndpoint_callSignalAddress *val)
  11489. {
  11490. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_callSignalAddress_ElmFn, sizeof(**val));
  11491. }
  11492. static int ASN1CALL ASN1Dec_Endpoint_callSignalAddress_ElmFn(ASN1decoding_t dec, PEndpoint_callSignalAddress val)
  11493. {
  11494. if (!ASN1Dec_TransportAddress(dec, &val->value))
  11495. return 0;
  11496. return 1;
  11497. }
  11498. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress(PEndpoint_callSignalAddress *val)
  11499. {
  11500. if (val) {
  11501. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_callSignalAddress_ElmFn);
  11502. }
  11503. }
  11504. static void ASN1CALL ASN1Free_Endpoint_callSignalAddress_ElmFn(PEndpoint_callSignalAddress val)
  11505. {
  11506. if (val) {
  11507. ASN1Free_TransportAddress(&val->value);
  11508. }
  11509. }
  11510. static int ASN1CALL ASN1Enc_EndpointType(ASN1encoding_t enc, EndpointType *val)
  11511. {
  11512. if (!ASN1PEREncExtensionBitClear(enc))
  11513. return 0;
  11514. if (!ASN1PEREncBits(enc, 6, (val)->o))
  11515. return 0;
  11516. if ((val)->o[0] & 0x80) {
  11517. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11518. return 0;
  11519. }
  11520. if ((val)->o[0] & 0x40) {
  11521. if (!ASN1Enc_VendorIdentifier(enc, &(val)->vendor))
  11522. return 0;
  11523. }
  11524. if ((val)->o[0] & 0x20) {
  11525. if (!ASN1Enc_GatekeeperInfo(enc, &(val)->gatekeeper))
  11526. return 0;
  11527. }
  11528. if ((val)->o[0] & 0x10) {
  11529. if (!ASN1Enc_GatewayInfo(enc, &(val)->gateway))
  11530. return 0;
  11531. }
  11532. if ((val)->o[0] & 0x8) {
  11533. if (!ASN1Enc_McuInfo(enc, &(val)->mcu))
  11534. return 0;
  11535. }
  11536. if ((val)->o[0] & 0x4) {
  11537. if (!ASN1Enc_TerminalInfo(enc, &(val)->terminal))
  11538. return 0;
  11539. }
  11540. if (!ASN1PEREncBoolean(enc, (val)->mc))
  11541. return 0;
  11542. if (!ASN1PEREncBoolean(enc, (val)->undefinedNode))
  11543. return 0;
  11544. return 1;
  11545. }
  11546. static int ASN1CALL ASN1Dec_EndpointType(ASN1decoding_t dec, EndpointType *val)
  11547. {
  11548. ASN1uint32_t y;
  11549. if (!ASN1PERDecExtensionBit(dec, &y))
  11550. return 0;
  11551. if (!ASN1PERDecExtension(dec, 6, (val)->o))
  11552. return 0;
  11553. if ((val)->o[0] & 0x80) {
  11554. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  11555. return 0;
  11556. }
  11557. if ((val)->o[0] & 0x40) {
  11558. if (!ASN1Dec_VendorIdentifier(dec, &(val)->vendor))
  11559. return 0;
  11560. }
  11561. if ((val)->o[0] & 0x20) {
  11562. if (!ASN1Dec_GatekeeperInfo(dec, &(val)->gatekeeper))
  11563. return 0;
  11564. }
  11565. if ((val)->o[0] & 0x10) {
  11566. if (!ASN1Dec_GatewayInfo(dec, &(val)->gateway))
  11567. return 0;
  11568. }
  11569. if ((val)->o[0] & 0x8) {
  11570. if (!ASN1Dec_McuInfo(dec, &(val)->mcu))
  11571. return 0;
  11572. }
  11573. if ((val)->o[0] & 0x4) {
  11574. if (!ASN1Dec_TerminalInfo(dec, &(val)->terminal))
  11575. return 0;
  11576. }
  11577. if (!ASN1PERDecBoolean(dec, &(val)->mc))
  11578. return 0;
  11579. if (!ASN1PERDecBoolean(dec, &(val)->undefinedNode))
  11580. return 0;
  11581. if (y) {
  11582. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  11583. return 0;
  11584. }
  11585. return 1;
  11586. }
  11587. static void ASN1CALL ASN1Free_EndpointType(EndpointType *val)
  11588. {
  11589. if (val) {
  11590. if ((val)->o[0] & 0x80) {
  11591. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  11592. }
  11593. if ((val)->o[0] & 0x40) {
  11594. ASN1Free_VendorIdentifier(&(val)->vendor);
  11595. }
  11596. if ((val)->o[0] & 0x20) {
  11597. ASN1Free_GatekeeperInfo(&(val)->gatekeeper);
  11598. }
  11599. if ((val)->o[0] & 0x10) {
  11600. ASN1Free_GatewayInfo(&(val)->gateway);
  11601. }
  11602. if ((val)->o[0] & 0x8) {
  11603. ASN1Free_McuInfo(&(val)->mcu);
  11604. }
  11605. if ((val)->o[0] & 0x4) {
  11606. ASN1Free_TerminalInfo(&(val)->terminal);
  11607. }
  11608. }
  11609. }
  11610. static int ASN1CALL ASN1Enc_SupportedProtocols(ASN1encoding_t enc, SupportedProtocols *val)
  11611. {
  11612. ASN1encoding_t ee;
  11613. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 4, 9))
  11614. return 0;
  11615. switch ((val)->choice) {
  11616. case 1:
  11617. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->u.nonStandardData))
  11618. return 0;
  11619. break;
  11620. case 2:
  11621. if (!ASN1Enc_H310Caps(enc, &(val)->u.h310))
  11622. return 0;
  11623. break;
  11624. case 3:
  11625. if (!ASN1Enc_H320Caps(enc, &(val)->u.h320))
  11626. return 0;
  11627. break;
  11628. case 4:
  11629. if (!ASN1Enc_H321Caps(enc, &(val)->u.h321))
  11630. return 0;
  11631. break;
  11632. case 5:
  11633. if (!ASN1Enc_H322Caps(enc, &(val)->u.h322))
  11634. return 0;
  11635. break;
  11636. case 6:
  11637. if (!ASN1Enc_H323Caps(enc, &(val)->u.h323))
  11638. return 0;
  11639. break;
  11640. case 7:
  11641. if (!ASN1Enc_H324Caps(enc, &(val)->u.h324))
  11642. return 0;
  11643. break;
  11644. case 8:
  11645. if (!ASN1Enc_VoiceCaps(enc, &(val)->u.voice))
  11646. return 0;
  11647. break;
  11648. case 9:
  11649. if (!ASN1Enc_T120OnlyCaps(enc, &(val)->u.t120_only))
  11650. return 0;
  11651. break;
  11652. case 10:
  11653. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11654. return 0;
  11655. if (!ASN1Enc_NonStandardProtocol(ee, &(val)->u.nonStandardProtocol))
  11656. return 0;
  11657. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11658. return 0;
  11659. ASN1_CloseEncoder2(ee);
  11660. break;
  11661. default:
  11662. /* impossible */
  11663. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11664. return 0;
  11665. }
  11666. return 1;
  11667. }
  11668. static int ASN1CALL ASN1Dec_SupportedProtocols(ASN1decoding_t dec, SupportedProtocols *val)
  11669. {
  11670. ASN1decoding_t dd;
  11671. ASN1octet_t *db;
  11672. ASN1uint32_t ds;
  11673. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 4, 9))
  11674. return 0;
  11675. switch ((val)->choice) {
  11676. case 1:
  11677. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->u.nonStandardData))
  11678. return 0;
  11679. break;
  11680. case 2:
  11681. if (!ASN1Dec_H310Caps(dec, &(val)->u.h310))
  11682. return 0;
  11683. break;
  11684. case 3:
  11685. if (!ASN1Dec_H320Caps(dec, &(val)->u.h320))
  11686. return 0;
  11687. break;
  11688. case 4:
  11689. if (!ASN1Dec_H321Caps(dec, &(val)->u.h321))
  11690. return 0;
  11691. break;
  11692. case 5:
  11693. if (!ASN1Dec_H322Caps(dec, &(val)->u.h322))
  11694. return 0;
  11695. break;
  11696. case 6:
  11697. if (!ASN1Dec_H323Caps(dec, &(val)->u.h323))
  11698. return 0;
  11699. break;
  11700. case 7:
  11701. if (!ASN1Dec_H324Caps(dec, &(val)->u.h324))
  11702. return 0;
  11703. break;
  11704. case 8:
  11705. if (!ASN1Dec_VoiceCaps(dec, &(val)->u.voice))
  11706. return 0;
  11707. break;
  11708. case 9:
  11709. if (!ASN1Dec_T120OnlyCaps(dec, &(val)->u.t120_only))
  11710. return 0;
  11711. break;
  11712. case 10:
  11713. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11714. return 0;
  11715. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11716. return 0;
  11717. if (!ASN1Dec_NonStandardProtocol(dd, &(val)->u.nonStandardProtocol))
  11718. return 0;
  11719. ASN1_CloseDecoder(dd);
  11720. ASN1Free(db);
  11721. break;
  11722. case 0:
  11723. /* extension case */
  11724. if (!ASN1PERDecSkipFragmented(dec, 8))
  11725. return 0;
  11726. break;
  11727. default:
  11728. /* impossible */
  11729. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11730. return 0;
  11731. }
  11732. return 1;
  11733. }
  11734. static void ASN1CALL ASN1Free_SupportedProtocols(SupportedProtocols *val)
  11735. {
  11736. if (val) {
  11737. switch ((val)->choice) {
  11738. case 1:
  11739. ASN1Free_H225NonStandardParameter(&(val)->u.nonStandardData);
  11740. break;
  11741. case 2:
  11742. ASN1Free_H310Caps(&(val)->u.h310);
  11743. break;
  11744. case 3:
  11745. ASN1Free_H320Caps(&(val)->u.h320);
  11746. break;
  11747. case 4:
  11748. ASN1Free_H321Caps(&(val)->u.h321);
  11749. break;
  11750. case 5:
  11751. ASN1Free_H322Caps(&(val)->u.h322);
  11752. break;
  11753. case 6:
  11754. ASN1Free_H323Caps(&(val)->u.h323);
  11755. break;
  11756. case 7:
  11757. ASN1Free_H324Caps(&(val)->u.h324);
  11758. break;
  11759. case 8:
  11760. ASN1Free_VoiceCaps(&(val)->u.voice);
  11761. break;
  11762. case 9:
  11763. ASN1Free_T120OnlyCaps(&(val)->u.t120_only);
  11764. break;
  11765. case 10:
  11766. ASN1Free_NonStandardProtocol(&(val)->u.nonStandardProtocol);
  11767. break;
  11768. }
  11769. }
  11770. }
  11771. static ASN1stringtableentry_t AliasAddress_e164_StringTableEntries[] = {
  11772. { 35, 35, 0 }, { 42, 42, 1 }, { 44, 44, 2 },
  11773. { 48, 57, 3 },
  11774. };
  11775. static ASN1stringtable_t AliasAddress_e164_StringTable = {
  11776. 4, AliasAddress_e164_StringTableEntries
  11777. };
  11778. static int ASN1CALL ASN1Enc_AliasAddress(ASN1encoding_t enc, AliasAddress *val)
  11779. {
  11780. ASN1uint32_t t;
  11781. ASN1encoding_t ee;
  11782. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 1, 2))
  11783. return 0;
  11784. switch ((val)->choice) {
  11785. case 1:
  11786. t = lstrlenA((val)->u.e164);
  11787. if (!ASN1PEREncBitVal(enc, 7, t - 1))
  11788. return 0;
  11789. ASN1PEREncAlignment(enc);
  11790. if (!ASN1PEREncTableCharString(enc, t, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11791. return 0;
  11792. break;
  11793. case 2:
  11794. ASN1PEREncAlignment(enc);
  11795. if (!ASN1PEREncBitVal(enc, 8, ((val)->u.h323_ID).length - 1))
  11796. return 0;
  11797. if (!ASN1PEREncChar16String(enc, ((val)->u.h323_ID).length, ((val)->u.h323_ID).value, 16))
  11798. return 0;
  11799. break;
  11800. case 3:
  11801. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11802. return 0;
  11803. t = lstrlenA((val)->u.url_ID);
  11804. ASN1PEREncAlignment(ee);
  11805. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11806. return 0;
  11807. if (!ASN1PEREncCharString(ee, t, (val)->u.url_ID, 8))
  11808. return 0;
  11809. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11810. return 0;
  11811. ASN1_CloseEncoder2(ee);
  11812. break;
  11813. case 4:
  11814. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11815. return 0;
  11816. if (!ASN1Enc_TransportAddress(ee, &(val)->u.transportID))
  11817. return 0;
  11818. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11819. return 0;
  11820. ASN1_CloseEncoder2(ee);
  11821. break;
  11822. case 5:
  11823. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11824. return 0;
  11825. t = lstrlenA((val)->u.email_ID);
  11826. ASN1PEREncAlignment(ee);
  11827. if (!ASN1PEREncBitVal(ee, 16, t - 1))
  11828. return 0;
  11829. if (!ASN1PEREncCharString(ee, t, (val)->u.email_ID, 8))
  11830. return 0;
  11831. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11832. return 0;
  11833. ASN1_CloseEncoder2(ee);
  11834. break;
  11835. case 6:
  11836. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  11837. return 0;
  11838. if (!ASN1Enc_PartyNumber(ee, &(val)->u.partyNumber))
  11839. return 0;
  11840. if (!ASN1PEREncFlushFragmentedToParent(ee))
  11841. return 0;
  11842. ASN1_CloseEncoder2(ee);
  11843. break;
  11844. default:
  11845. /* impossible */
  11846. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  11847. return 0;
  11848. }
  11849. return 1;
  11850. }
  11851. static int ASN1CALL ASN1Dec_AliasAddress(ASN1decoding_t dec, AliasAddress *val)
  11852. {
  11853. ASN1uint32_t l;
  11854. ASN1decoding_t dd;
  11855. ASN1octet_t *db;
  11856. ASN1uint32_t ds;
  11857. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 1, 2))
  11858. return 0;
  11859. switch ((val)->choice) {
  11860. case 1:
  11861. if (!ASN1PERDecU32Val(dec, 7, &l))
  11862. return 0;
  11863. l += 1;
  11864. ASN1PERDecAlignment(dec);
  11865. // SECURITY BUG: 782696
  11866. if ( l >= sizeof( (val)->u.e164 ) )
  11867. {
  11868. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  11869. return 0;
  11870. }
  11871. if (!ASN1PERDecZeroTableCharStringNoAlloc(dec, l, (val)->u.e164, 4, &AliasAddress_e164_StringTable))
  11872. return 0;
  11873. break;
  11874. case 2:
  11875. ASN1PERDecAlignment(dec);
  11876. if (!ASN1PERDecU32Val(dec, 8, &((val)->u.h323_ID).length))
  11877. return 0;
  11878. ((val)->u.h323_ID).length += 1;
  11879. if (!ASN1PERDecChar16String(dec, ((val)->u.h323_ID).length, &((val)->u.h323_ID).value, 16))
  11880. return 0;
  11881. break;
  11882. case 3:
  11883. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11884. return 0;
  11885. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11886. return 0;
  11887. ASN1PERDecAlignment(dd);
  11888. if (!ASN1PERDecU32Val(dd, 16, &l))
  11889. return 0;
  11890. l += 1;
  11891. // SECURITY BUG: 782696
  11892. if ( l >= sizeof( (val)->u.url_ID ) )
  11893. {
  11894. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  11895. return 0;
  11896. }
  11897. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.url_ID, 8))
  11898. return 0;
  11899. ASN1_CloseDecoder(dd);
  11900. ASN1Free(db);
  11901. break;
  11902. case 4:
  11903. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11904. return 0;
  11905. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11906. return 0;
  11907. if (!ASN1Dec_TransportAddress(dd, &(val)->u.transportID))
  11908. return 0;
  11909. ASN1_CloseDecoder(dd);
  11910. ASN1Free(db);
  11911. break;
  11912. case 5:
  11913. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11914. return 0;
  11915. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11916. return 0;
  11917. ASN1PERDecAlignment(dd);
  11918. if (!ASN1PERDecU32Val(dd, 16, &l))
  11919. return 0;
  11920. l += 1;
  11921. // SECURITY BUG: 782696
  11922. if ( l >= sizeof( (val)->u.email_ID ) )
  11923. {
  11924. ASN1DecSetError(dec, ASN1_ERR_LARGE);
  11925. return 0;
  11926. }
  11927. if (!ASN1PERDecZeroCharStringNoAlloc(dd, l, (val)->u.email_ID, 8))
  11928. return 0;
  11929. ASN1_CloseDecoder(dd);
  11930. ASN1Free(db);
  11931. break;
  11932. case 6:
  11933. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  11934. return 0;
  11935. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  11936. return 0;
  11937. if (!ASN1Dec_PartyNumber(dd, &(val)->u.partyNumber))
  11938. return 0;
  11939. ASN1_CloseDecoder(dd);
  11940. ASN1Free(db);
  11941. break;
  11942. case 0:
  11943. /* extension case */
  11944. if (!ASN1PERDecSkipFragmented(dec, 8))
  11945. return 0;
  11946. break;
  11947. default:
  11948. /* impossible */
  11949. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  11950. return 0;
  11951. }
  11952. return 1;
  11953. }
  11954. static void ASN1CALL ASN1Free_AliasAddress(AliasAddress *val)
  11955. {
  11956. if (val) {
  11957. switch ((val)->choice) {
  11958. case 1:
  11959. break;
  11960. case 2:
  11961. ASN1char16string_free(&(val)->u.h323_ID);
  11962. break;
  11963. case 3:
  11964. break;
  11965. case 4:
  11966. ASN1Free_TransportAddress(&(val)->u.transportID);
  11967. break;
  11968. case 5:
  11969. break;
  11970. case 6:
  11971. ASN1Free_PartyNumber(&(val)->u.partyNumber);
  11972. break;
  11973. }
  11974. }
  11975. }
  11976. static int ASN1CALL ASN1Enc_Endpoint(ASN1encoding_t enc, Endpoint *val)
  11977. {
  11978. if (!ASN1PEREncExtensionBitClear(enc))
  11979. return 0;
  11980. if (!ASN1PEREncBits(enc, 10, (val)->o))
  11981. return 0;
  11982. if ((val)->o[0] & 0x80) {
  11983. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  11984. return 0;
  11985. }
  11986. if ((val)->o[0] & 0x40) {
  11987. if (!ASN1Enc_Endpoint_aliasAddress(enc, &(val)->aliasAddress))
  11988. return 0;
  11989. }
  11990. if ((val)->o[0] & 0x20) {
  11991. if (!ASN1Enc_Endpoint_callSignalAddress(enc, &(val)->callSignalAddress))
  11992. return 0;
  11993. }
  11994. if ((val)->o[0] & 0x10) {
  11995. if (!ASN1Enc_Endpoint_rasAddress(enc, &(val)->rasAddress))
  11996. return 0;
  11997. }
  11998. if ((val)->o[0] & 0x8) {
  11999. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12000. return 0;
  12001. }
  12002. if ((val)->o[0] & 0x4) {
  12003. if (!ASN1Enc_Endpoint_tokens(enc, &(val)->tokens))
  12004. return 0;
  12005. }
  12006. if ((val)->o[0] & 0x2) {
  12007. if (!ASN1Enc_Endpoint_cryptoTokens(enc, &(val)->cryptoTokens))
  12008. return 0;
  12009. }
  12010. if ((val)->o[0] & 0x1) {
  12011. if (!ASN1PEREncBitVal(enc, 7, (val)->priority))
  12012. return 0;
  12013. }
  12014. if ((val)->o[1] & 0x80) {
  12015. if (!ASN1Enc_Endpoint_remoteExtensionAddress(enc, &(val)->remoteExtensionAddress))
  12016. return 0;
  12017. }
  12018. if ((val)->o[1] & 0x40) {
  12019. if (!ASN1Enc_Endpoint_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  12020. return 0;
  12021. }
  12022. return 1;
  12023. }
  12024. static int ASN1CALL ASN1Dec_Endpoint(ASN1decoding_t dec, Endpoint *val)
  12025. {
  12026. ASN1uint32_t y;
  12027. if (!ASN1PERDecExtensionBit(dec, &y))
  12028. return 0;
  12029. if (!ASN1PERDecExtension(dec, 10, (val)->o))
  12030. return 0;
  12031. if ((val)->o[0] & 0x80) {
  12032. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12033. return 0;
  12034. }
  12035. if ((val)->o[0] & 0x40) {
  12036. if (!ASN1Dec_Endpoint_aliasAddress(dec, &(val)->aliasAddress))
  12037. return 0;
  12038. }
  12039. if ((val)->o[0] & 0x20) {
  12040. if (!ASN1Dec_Endpoint_callSignalAddress(dec, &(val)->callSignalAddress))
  12041. return 0;
  12042. }
  12043. if ((val)->o[0] & 0x10) {
  12044. if (!ASN1Dec_Endpoint_rasAddress(dec, &(val)->rasAddress))
  12045. return 0;
  12046. }
  12047. if ((val)->o[0] & 0x8) {
  12048. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12049. return 0;
  12050. }
  12051. if ((val)->o[0] & 0x4) {
  12052. if (!ASN1Dec_Endpoint_tokens(dec, &(val)->tokens))
  12053. return 0;
  12054. }
  12055. if ((val)->o[0] & 0x2) {
  12056. if (!ASN1Dec_Endpoint_cryptoTokens(dec, &(val)->cryptoTokens))
  12057. return 0;
  12058. }
  12059. if ((val)->o[0] & 0x1) {
  12060. if (!ASN1PERDecU16Val(dec, 7, &(val)->priority))
  12061. return 0;
  12062. }
  12063. if ((val)->o[1] & 0x80) {
  12064. if (!ASN1Dec_Endpoint_remoteExtensionAddress(dec, &(val)->remoteExtensionAddress))
  12065. return 0;
  12066. }
  12067. if ((val)->o[1] & 0x40) {
  12068. if (!ASN1Dec_Endpoint_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  12069. return 0;
  12070. }
  12071. if (y) {
  12072. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12073. return 0;
  12074. }
  12075. return 1;
  12076. }
  12077. static void ASN1CALL ASN1Free_Endpoint(Endpoint *val)
  12078. {
  12079. if (val) {
  12080. if ((val)->o[0] & 0x80) {
  12081. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12082. }
  12083. if ((val)->o[0] & 0x40) {
  12084. ASN1Free_Endpoint_aliasAddress(&(val)->aliasAddress);
  12085. }
  12086. if ((val)->o[0] & 0x20) {
  12087. ASN1Free_Endpoint_callSignalAddress(&(val)->callSignalAddress);
  12088. }
  12089. if ((val)->o[0] & 0x10) {
  12090. ASN1Free_Endpoint_rasAddress(&(val)->rasAddress);
  12091. }
  12092. if ((val)->o[0] & 0x8) {
  12093. ASN1Free_EndpointType(&(val)->endpointType);
  12094. }
  12095. if ((val)->o[0] & 0x4) {
  12096. ASN1Free_Endpoint_tokens(&(val)->tokens);
  12097. }
  12098. if ((val)->o[0] & 0x2) {
  12099. ASN1Free_Endpoint_cryptoTokens(&(val)->cryptoTokens);
  12100. }
  12101. if ((val)->o[1] & 0x80) {
  12102. ASN1Free_Endpoint_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12103. }
  12104. if ((val)->o[1] & 0x40) {
  12105. ASN1Free_Endpoint_destExtraCallInfo(&(val)->destExtraCallInfo);
  12106. }
  12107. }
  12108. }
  12109. static int ASN1CALL ASN1Enc_SupportedPrefix(ASN1encoding_t enc, SupportedPrefix *val)
  12110. {
  12111. if (!ASN1PEREncExtensionBitClear(enc))
  12112. return 0;
  12113. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12114. return 0;
  12115. if ((val)->o[0] & 0x80) {
  12116. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12117. return 0;
  12118. }
  12119. if (!ASN1Enc_AliasAddress(enc, &(val)->prefix))
  12120. return 0;
  12121. return 1;
  12122. }
  12123. static int ASN1CALL ASN1Dec_SupportedPrefix(ASN1decoding_t dec, SupportedPrefix *val)
  12124. {
  12125. ASN1uint32_t y;
  12126. if (!ASN1PERDecExtensionBit(dec, &y))
  12127. return 0;
  12128. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  12129. return 0;
  12130. if ((val)->o[0] & 0x80) {
  12131. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12132. return 0;
  12133. }
  12134. if (!ASN1Dec_AliasAddress(dec, &(val)->prefix))
  12135. return 0;
  12136. if (y) {
  12137. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  12138. return 0;
  12139. }
  12140. return 1;
  12141. }
  12142. static void ASN1CALL ASN1Free_SupportedPrefix(SupportedPrefix *val)
  12143. {
  12144. if (val) {
  12145. if ((val)->o[0] & 0x80) {
  12146. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12147. }
  12148. ASN1Free_AliasAddress(&(val)->prefix);
  12149. }
  12150. }
  12151. static int ASN1CALL ASN1Enc_GatekeeperRequest(ASN1encoding_t enc, GatekeeperRequest *val)
  12152. {
  12153. ASN1uint32_t y;
  12154. ASN1encoding_t ee;
  12155. y = ASN1PEREncCheckExtensions(7, (val)->o + 1);
  12156. if (!ASN1PEREncBitVal(enc, 1, y))
  12157. return 0;
  12158. if (!ASN1PEREncBits(enc, 4, (val)->o))
  12159. return 0;
  12160. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12161. return 0;
  12162. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12163. return 0;
  12164. if ((val)->o[0] & 0x80) {
  12165. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12166. return 0;
  12167. }
  12168. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12169. return 0;
  12170. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  12171. return 0;
  12172. if ((val)->o[0] & 0x40) {
  12173. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12174. return 0;
  12175. ASN1PEREncAlignment(enc);
  12176. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12177. return 0;
  12178. }
  12179. if ((val)->o[0] & 0x20) {
  12180. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  12181. return 0;
  12182. }
  12183. if ((val)->o[0] & 0x10) {
  12184. if (!ASN1Enc_GatekeeperRequest_endpointAlias(enc, &(val)->endpointAlias))
  12185. return 0;
  12186. }
  12187. if (y) {
  12188. if (!ASN1PEREncNormallySmallBits(enc, 7, (val)->o + 1))
  12189. return 0;
  12190. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12191. return 0;
  12192. if ((val)->o[1] & 0x80) {
  12193. if (!ASN1Enc_GatekeeperRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12194. return 0;
  12195. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12196. return 0;
  12197. }
  12198. if ((val)->o[1] & 0x40) {
  12199. if (!ASN1Enc_GatekeeperRequest_tokens(ee, &(val)->tokens))
  12200. return 0;
  12201. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12202. return 0;
  12203. }
  12204. if ((val)->o[1] & 0x20) {
  12205. if (!ASN1Enc_GatekeeperRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12206. return 0;
  12207. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12208. return 0;
  12209. }
  12210. if ((val)->o[1] & 0x10) {
  12211. if (!ASN1Enc_GatekeeperRequest_authenticationCapability(ee, &(val)->authenticationCapability))
  12212. return 0;
  12213. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12214. return 0;
  12215. }
  12216. if ((val)->o[1] & 0x8) {
  12217. if (!ASN1Enc_GatekeeperRequest_algorithmOIDs(ee, &(val)->algorithmOIDs))
  12218. return 0;
  12219. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12220. return 0;
  12221. }
  12222. if ((val)->o[1] & 0x4) {
  12223. if (!ASN1Enc_GatekeeperRequest_integrity(ee, &(val)->integrity))
  12224. return 0;
  12225. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12226. return 0;
  12227. }
  12228. if ((val)->o[1] & 0x2) {
  12229. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12230. return 0;
  12231. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12232. return 0;
  12233. }
  12234. ASN1_CloseEncoder2(ee);
  12235. }
  12236. return 1;
  12237. }
  12238. static int ASN1CALL ASN1Dec_GatekeeperRequest(ASN1decoding_t dec, GatekeeperRequest *val)
  12239. {
  12240. ASN1uint32_t y;
  12241. ASN1decoding_t dd;
  12242. ASN1octet_t *db;
  12243. ASN1uint32_t ds;
  12244. ASN1uint32_t i;
  12245. ASN1uint32_t e;
  12246. if (!ASN1PERDecExtensionBit(dec, &y))
  12247. return 0;
  12248. if (!ASN1PERDecExtension(dec, 4, (val)->o))
  12249. return 0;
  12250. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12251. return 0;
  12252. (val)->requestSeqNum += 1;
  12253. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12254. return 0;
  12255. if ((val)->o[0] & 0x80) {
  12256. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12257. return 0;
  12258. }
  12259. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  12260. return 0;
  12261. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  12262. return 0;
  12263. if ((val)->o[0] & 0x40) {
  12264. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12265. return 0;
  12266. ((val)->gatekeeperIdentifier).length += 1;
  12267. ASN1PERDecAlignment(dec);
  12268. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12269. return 0;
  12270. }
  12271. if ((val)->o[0] & 0x20) {
  12272. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  12273. return 0;
  12274. }
  12275. if ((val)->o[0] & 0x10) {
  12276. if (!ASN1Dec_GatekeeperRequest_endpointAlias(dec, &(val)->endpointAlias))
  12277. return 0;
  12278. }
  12279. if (!y) {
  12280. ZeroMemory((val)->o + 1, 1);
  12281. } else {
  12282. if (!ASN1PERDecNormallySmallExtension(dec, &e, 7, (val)->o + 1))
  12283. return 0;
  12284. if ((val)->o[1] & 0x80) {
  12285. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12286. return 0;
  12287. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12288. return 0;
  12289. if (!ASN1Dec_GatekeeperRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12290. return 0;
  12291. ASN1_CloseDecoder(dd);
  12292. ASN1Free(db);
  12293. }
  12294. if ((val)->o[1] & 0x40) {
  12295. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12296. return 0;
  12297. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12298. return 0;
  12299. if (!ASN1Dec_GatekeeperRequest_tokens(dd, &(val)->tokens))
  12300. return 0;
  12301. ASN1_CloseDecoder(dd);
  12302. ASN1Free(db);
  12303. }
  12304. if ((val)->o[1] & 0x20) {
  12305. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12306. return 0;
  12307. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12308. return 0;
  12309. if (!ASN1Dec_GatekeeperRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12310. return 0;
  12311. ASN1_CloseDecoder(dd);
  12312. ASN1Free(db);
  12313. }
  12314. if ((val)->o[1] & 0x10) {
  12315. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12316. return 0;
  12317. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12318. return 0;
  12319. if (!ASN1Dec_GatekeeperRequest_authenticationCapability(dd, &(val)->authenticationCapability))
  12320. return 0;
  12321. ASN1_CloseDecoder(dd);
  12322. ASN1Free(db);
  12323. }
  12324. if ((val)->o[1] & 0x8) {
  12325. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12326. return 0;
  12327. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12328. return 0;
  12329. if (!ASN1Dec_GatekeeperRequest_algorithmOIDs(dd, &(val)->algorithmOIDs))
  12330. return 0;
  12331. ASN1_CloseDecoder(dd);
  12332. ASN1Free(db);
  12333. }
  12334. if ((val)->o[1] & 0x4) {
  12335. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12336. return 0;
  12337. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12338. return 0;
  12339. if (!ASN1Dec_GatekeeperRequest_integrity(dd, &(val)->integrity))
  12340. return 0;
  12341. ASN1_CloseDecoder(dd);
  12342. ASN1Free(db);
  12343. }
  12344. if ((val)->o[1] & 0x2) {
  12345. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12346. return 0;
  12347. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12348. return 0;
  12349. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12350. return 0;
  12351. ASN1_CloseDecoder(dd);
  12352. ASN1Free(db);
  12353. }
  12354. for (i = 0; i < e; i++) {
  12355. if (!ASN1PERDecSkipFragmented(dec, 8))
  12356. return 0;
  12357. }
  12358. }
  12359. return 1;
  12360. }
  12361. static void ASN1CALL ASN1Free_GatekeeperRequest(GatekeeperRequest *val)
  12362. {
  12363. if (val) {
  12364. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12365. if ((val)->o[0] & 0x80) {
  12366. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12367. }
  12368. ASN1Free_TransportAddress(&(val)->rasAddress);
  12369. ASN1Free_EndpointType(&(val)->endpointType);
  12370. if ((val)->o[0] & 0x40) {
  12371. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12372. }
  12373. if ((val)->o[0] & 0x10) {
  12374. ASN1Free_GatekeeperRequest_endpointAlias(&(val)->endpointAlias);
  12375. }
  12376. if ((val)->o[1] & 0x80) {
  12377. ASN1Free_GatekeeperRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12378. }
  12379. if ((val)->o[1] & 0x40) {
  12380. ASN1Free_GatekeeperRequest_tokens(&(val)->tokens);
  12381. }
  12382. if ((val)->o[1] & 0x20) {
  12383. ASN1Free_GatekeeperRequest_cryptoTokens(&(val)->cryptoTokens);
  12384. }
  12385. if ((val)->o[1] & 0x10) {
  12386. ASN1Free_GatekeeperRequest_authenticationCapability(&(val)->authenticationCapability);
  12387. }
  12388. if ((val)->o[1] & 0x8) {
  12389. ASN1Free_GatekeeperRequest_algorithmOIDs(&(val)->algorithmOIDs);
  12390. }
  12391. if ((val)->o[1] & 0x4) {
  12392. ASN1Free_GatekeeperRequest_integrity(&(val)->integrity);
  12393. }
  12394. if ((val)->o[1] & 0x2) {
  12395. ASN1Free_ICV(&(val)->integrityCheckValue);
  12396. }
  12397. }
  12398. }
  12399. static int ASN1CALL ASN1Enc_RegistrationRequest(ASN1encoding_t enc, RegistrationRequest *val)
  12400. {
  12401. ASN1octet_t o[2];
  12402. ASN1uint32_t y;
  12403. ASN1encoding_t ee;
  12404. ASN1uint32_t l;
  12405. CopyMemory(o, (val)->o, 2);
  12406. o[1] |= 0x4;
  12407. o[1] |= 0x1;
  12408. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12409. if (!ASN1PEREncBitVal(enc, 1, y))
  12410. return 0;
  12411. if (!ASN1PEREncBits(enc, 3, o))
  12412. return 0;
  12413. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12414. return 0;
  12415. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  12416. return 0;
  12417. if (o[0] & 0x80) {
  12418. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12419. return 0;
  12420. }
  12421. if (!ASN1PEREncBoolean(enc, (val)->discoveryComplete))
  12422. return 0;
  12423. if (!ASN1Enc_RegistrationRequest_callSignalAddress(enc, &(val)->callSignalAddress))
  12424. return 0;
  12425. if (!ASN1Enc_RegistrationRequest_rasAddress(enc, &(val)->rasAddress))
  12426. return 0;
  12427. if (!ASN1Enc_EndpointType(enc, &(val)->terminalType))
  12428. return 0;
  12429. if (o[0] & 0x40) {
  12430. if (!ASN1Enc_RegistrationRequest_terminalAlias(enc, &(val)->terminalAlias))
  12431. return 0;
  12432. }
  12433. if (o[0] & 0x20) {
  12434. if (!ASN1PEREncBitVal(enc, 7, ((val)->gatekeeperIdentifier).length - 1))
  12435. return 0;
  12436. ASN1PEREncAlignment(enc);
  12437. if (!ASN1PEREncChar16String(enc, ((val)->gatekeeperIdentifier).length, ((val)->gatekeeperIdentifier).value, 16))
  12438. return 0;
  12439. }
  12440. if (!ASN1Enc_VendorIdentifier(enc, &(val)->endpointVendor))
  12441. return 0;
  12442. if (y) {
  12443. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  12444. return 0;
  12445. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12446. return 0;
  12447. if (o[1] & 0x80) {
  12448. if (!ASN1Enc_RegistrationRequest_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12449. return 0;
  12450. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12451. return 0;
  12452. }
  12453. if (o[1] & 0x40) {
  12454. l = ASN1uint32_uoctets((val)->timeToLive - 1);
  12455. if (!ASN1PEREncBitVal(ee, 2, l - 1))
  12456. return 0;
  12457. ASN1PEREncAlignment(ee);
  12458. if (!ASN1PEREncBitVal(ee, l * 8, (val)->timeToLive - 1))
  12459. return 0;
  12460. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12461. return 0;
  12462. }
  12463. if (o[1] & 0x20) {
  12464. if (!ASN1Enc_RegistrationRequest_tokens(ee, &(val)->tokens))
  12465. return 0;
  12466. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12467. return 0;
  12468. }
  12469. if (o[1] & 0x10) {
  12470. if (!ASN1Enc_RegistrationRequest_cryptoTokens(ee, &(val)->cryptoTokens))
  12471. return 0;
  12472. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12473. return 0;
  12474. }
  12475. if (o[1] & 0x8) {
  12476. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12477. return 0;
  12478. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12479. return 0;
  12480. }
  12481. if (o[1] & 0x4) {
  12482. if (!ASN1PEREncBoolean(ee, (val)->keepAlive))
  12483. return 0;
  12484. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12485. return 0;
  12486. }
  12487. if (o[1] & 0x2) {
  12488. if (!ASN1PEREncBitVal(ee, 7, ((val)->endpointIdentifier).length - 1))
  12489. return 0;
  12490. ASN1PEREncAlignment(ee);
  12491. if (!ASN1PEREncChar16String(ee, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  12492. return 0;
  12493. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12494. return 0;
  12495. }
  12496. if (o[1] & 0x1) {
  12497. if (!ASN1PEREncBoolean(ee, (val)->willSupplyUUIEs))
  12498. return 0;
  12499. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12500. return 0;
  12501. }
  12502. ASN1_CloseEncoder2(ee);
  12503. }
  12504. return 1;
  12505. }
  12506. static int ASN1CALL ASN1Dec_RegistrationRequest(ASN1decoding_t dec, RegistrationRequest *val)
  12507. {
  12508. ASN1uint32_t y;
  12509. ASN1decoding_t dd;
  12510. ASN1octet_t *db;
  12511. ASN1uint32_t ds;
  12512. ASN1uint32_t l;
  12513. ASN1uint32_t i;
  12514. ASN1uint32_t e;
  12515. if (!ASN1PERDecExtensionBit(dec, &y))
  12516. return 0;
  12517. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  12518. return 0;
  12519. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12520. return 0;
  12521. (val)->requestSeqNum += 1;
  12522. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  12523. return 0;
  12524. if ((val)->o[0] & 0x80) {
  12525. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12526. return 0;
  12527. }
  12528. if (!ASN1PERDecBoolean(dec, &(val)->discoveryComplete))
  12529. return 0;
  12530. if (!ASN1Dec_RegistrationRequest_callSignalAddress(dec, &(val)->callSignalAddress))
  12531. return 0;
  12532. if (!ASN1Dec_RegistrationRequest_rasAddress(dec, &(val)->rasAddress))
  12533. return 0;
  12534. if (!ASN1Dec_EndpointType(dec, &(val)->terminalType))
  12535. return 0;
  12536. if ((val)->o[0] & 0x40) {
  12537. if (!ASN1Dec_RegistrationRequest_terminalAlias(dec, &(val)->terminalAlias))
  12538. return 0;
  12539. }
  12540. if ((val)->o[0] & 0x20) {
  12541. if (!ASN1PERDecU32Val(dec, 7, &((val)->gatekeeperIdentifier).length))
  12542. return 0;
  12543. ((val)->gatekeeperIdentifier).length += 1;
  12544. ASN1PERDecAlignment(dec);
  12545. if (!ASN1PERDecChar16String(dec, ((val)->gatekeeperIdentifier).length, &((val)->gatekeeperIdentifier).value, 16))
  12546. return 0;
  12547. }
  12548. if (!ASN1Dec_VendorIdentifier(dec, &(val)->endpointVendor))
  12549. return 0;
  12550. if (!y) {
  12551. ZeroMemory((val)->o + 1, 1);
  12552. } else {
  12553. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  12554. return 0;
  12555. if ((val)->o[1] & 0x80) {
  12556. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12557. return 0;
  12558. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12559. return 0;
  12560. if (!ASN1Dec_RegistrationRequest_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12561. return 0;
  12562. ASN1_CloseDecoder(dd);
  12563. ASN1Free(db);
  12564. }
  12565. if ((val)->o[1] & 0x40) {
  12566. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12567. return 0;
  12568. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12569. return 0;
  12570. if (!ASN1PERDecU32Val(dd, 2, &l))
  12571. return 0;
  12572. l += 1;
  12573. ASN1PERDecAlignment(dd);
  12574. if (!ASN1PERDecU32Val(dd, l * 8, &(val)->timeToLive))
  12575. return 0;
  12576. (val)->timeToLive += 1;
  12577. ASN1_CloseDecoder(dd);
  12578. ASN1Free(db);
  12579. }
  12580. if ((val)->o[1] & 0x20) {
  12581. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12582. return 0;
  12583. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12584. return 0;
  12585. if (!ASN1Dec_RegistrationRequest_tokens(dd, &(val)->tokens))
  12586. return 0;
  12587. ASN1_CloseDecoder(dd);
  12588. ASN1Free(db);
  12589. }
  12590. if ((val)->o[1] & 0x10) {
  12591. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12592. return 0;
  12593. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12594. return 0;
  12595. if (!ASN1Dec_RegistrationRequest_cryptoTokens(dd, &(val)->cryptoTokens))
  12596. return 0;
  12597. ASN1_CloseDecoder(dd);
  12598. ASN1Free(db);
  12599. }
  12600. if ((val)->o[1] & 0x8) {
  12601. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12602. return 0;
  12603. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12604. return 0;
  12605. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12606. return 0;
  12607. ASN1_CloseDecoder(dd);
  12608. ASN1Free(db);
  12609. }
  12610. if ((val)->o[1] & 0x4) {
  12611. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12612. return 0;
  12613. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12614. return 0;
  12615. if (!ASN1PERDecBoolean(dd, &(val)->keepAlive))
  12616. return 0;
  12617. ASN1_CloseDecoder(dd);
  12618. ASN1Free(db);
  12619. }
  12620. if ((val)->o[1] & 0x2) {
  12621. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12622. return 0;
  12623. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12624. return 0;
  12625. if (!ASN1PERDecU32Val(dd, 7, &((val)->endpointIdentifier).length))
  12626. return 0;
  12627. ((val)->endpointIdentifier).length += 1;
  12628. ASN1PERDecAlignment(dd);
  12629. if (!ASN1PERDecChar16String(dd, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  12630. return 0;
  12631. ASN1_CloseDecoder(dd);
  12632. ASN1Free(db);
  12633. }
  12634. if ((val)->o[1] & 0x1) {
  12635. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12636. return 0;
  12637. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12638. return 0;
  12639. if (!ASN1PERDecBoolean(dd, &(val)->willSupplyUUIEs))
  12640. return 0;
  12641. ASN1_CloseDecoder(dd);
  12642. ASN1Free(db);
  12643. }
  12644. for (i = 0; i < e; i++) {
  12645. if (!ASN1PERDecSkipFragmented(dec, 8))
  12646. return 0;
  12647. }
  12648. }
  12649. return 1;
  12650. }
  12651. static void ASN1CALL ASN1Free_RegistrationRequest(RegistrationRequest *val)
  12652. {
  12653. if (val) {
  12654. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  12655. if ((val)->o[0] & 0x80) {
  12656. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12657. }
  12658. ASN1Free_RegistrationRequest_callSignalAddress(&(val)->callSignalAddress);
  12659. ASN1Free_RegistrationRequest_rasAddress(&(val)->rasAddress);
  12660. ASN1Free_EndpointType(&(val)->terminalType);
  12661. if ((val)->o[0] & 0x40) {
  12662. ASN1Free_RegistrationRequest_terminalAlias(&(val)->terminalAlias);
  12663. }
  12664. if ((val)->o[0] & 0x20) {
  12665. ASN1char16string_free(&(val)->gatekeeperIdentifier);
  12666. }
  12667. ASN1Free_VendorIdentifier(&(val)->endpointVendor);
  12668. if ((val)->o[1] & 0x80) {
  12669. ASN1Free_RegistrationRequest_alternateEndpoints(&(val)->alternateEndpoints);
  12670. }
  12671. if ((val)->o[1] & 0x20) {
  12672. ASN1Free_RegistrationRequest_tokens(&(val)->tokens);
  12673. }
  12674. if ((val)->o[1] & 0x10) {
  12675. ASN1Free_RegistrationRequest_cryptoTokens(&(val)->cryptoTokens);
  12676. }
  12677. if ((val)->o[1] & 0x8) {
  12678. ASN1Free_ICV(&(val)->integrityCheckValue);
  12679. }
  12680. if ((val)->o[1] & 0x2) {
  12681. ASN1char16string_free(&(val)->endpointIdentifier);
  12682. }
  12683. }
  12684. }
  12685. static int ASN1CALL ASN1Enc_AdmissionConfirm(ASN1encoding_t enc, AdmissionConfirm *val)
  12686. {
  12687. ASN1octet_t o[3];
  12688. ASN1uint32_t y;
  12689. ASN1uint32_t l;
  12690. ASN1encoding_t ee;
  12691. CopyMemory(o, (val)->o, 3);
  12692. o[2] |= 0x40;
  12693. o[2] |= 0x20;
  12694. y = ASN1PEREncCheckExtensions(11, (val)->o + 1);
  12695. if (!ASN1PEREncBitVal(enc, 1, y))
  12696. return 0;
  12697. if (!ASN1PEREncBits(enc, 2, o))
  12698. return 0;
  12699. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12700. return 0;
  12701. l = ASN1uint32_uoctets((val)->bandWidth);
  12702. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  12703. return 0;
  12704. ASN1PEREncAlignment(enc);
  12705. if (!ASN1PEREncBitVal(enc, l * 8, (val)->bandWidth))
  12706. return 0;
  12707. if (!ASN1Enc_CallModel(enc, &(val)->callModel))
  12708. return 0;
  12709. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  12710. return 0;
  12711. if (o[0] & 0x80) {
  12712. if (!ASN1PEREncUnsignedShort(enc, (val)->irrFrequency - 1))
  12713. return 0;
  12714. }
  12715. if (o[0] & 0x40) {
  12716. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  12717. return 0;
  12718. }
  12719. if (y) {
  12720. if (!ASN1PEREncNormallySmallBits(enc, 11, o + 1))
  12721. return 0;
  12722. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  12723. return 0;
  12724. if (o[1] & 0x80) {
  12725. if (!ASN1Enc_AdmissionConfirm_destinationInfo(ee, &(val)->destinationInfo))
  12726. return 0;
  12727. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12728. return 0;
  12729. }
  12730. if (o[1] & 0x40) {
  12731. if (!ASN1Enc_AdmissionConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  12732. return 0;
  12733. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12734. return 0;
  12735. }
  12736. if (o[1] & 0x20) {
  12737. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  12738. return 0;
  12739. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12740. return 0;
  12741. }
  12742. if (o[1] & 0x10) {
  12743. if (!ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  12744. return 0;
  12745. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12746. return 0;
  12747. }
  12748. if (o[1] & 0x8) {
  12749. if (!ASN1Enc_AdmissionConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  12750. return 0;
  12751. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12752. return 0;
  12753. }
  12754. if (o[1] & 0x4) {
  12755. if (!ASN1Enc_AdmissionConfirm_tokens(ee, &(val)->tokens))
  12756. return 0;
  12757. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12758. return 0;
  12759. }
  12760. if (o[1] & 0x2) {
  12761. if (!ASN1Enc_AdmissionConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  12762. return 0;
  12763. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12764. return 0;
  12765. }
  12766. if (o[1] & 0x1) {
  12767. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  12768. return 0;
  12769. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12770. return 0;
  12771. }
  12772. if (o[2] & 0x80) {
  12773. if (!ASN1Enc_TransportQOS(ee, &(val)->transportQOS))
  12774. return 0;
  12775. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12776. return 0;
  12777. }
  12778. if (o[2] & 0x40) {
  12779. if (!ASN1PEREncBoolean(ee, (val)->willRespondToIRR))
  12780. return 0;
  12781. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12782. return 0;
  12783. }
  12784. if (o[2] & 0x20) {
  12785. if (!ASN1Enc_UUIEsRequested(ee, &(val)->uuiesRequested))
  12786. return 0;
  12787. if (!ASN1PEREncFlushFragmentedToParent(ee))
  12788. return 0;
  12789. }
  12790. ASN1_CloseEncoder2(ee);
  12791. }
  12792. return 1;
  12793. }
  12794. static int ASN1CALL ASN1Dec_AdmissionConfirm(ASN1decoding_t dec, AdmissionConfirm *val)
  12795. {
  12796. ASN1uint32_t y;
  12797. ASN1uint32_t l;
  12798. ASN1decoding_t dd;
  12799. ASN1octet_t *db;
  12800. ASN1uint32_t ds;
  12801. ASN1uint32_t i;
  12802. ASN1uint32_t e;
  12803. if (!ASN1PERDecExtensionBit(dec, &y))
  12804. return 0;
  12805. if (!ASN1PERDecExtension(dec, 2, (val)->o))
  12806. return 0;
  12807. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  12808. return 0;
  12809. (val)->requestSeqNum += 1;
  12810. if (!ASN1PERDecU32Val(dec, 2, &l))
  12811. return 0;
  12812. l += 1;
  12813. ASN1PERDecAlignment(dec);
  12814. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->bandWidth))
  12815. return 0;
  12816. if (!ASN1Dec_CallModel(dec, &(val)->callModel))
  12817. return 0;
  12818. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  12819. return 0;
  12820. if ((val)->o[0] & 0x80) {
  12821. if (!ASN1PERDecUnsignedShort(dec, &(val)->irrFrequency))
  12822. return 0;
  12823. (val)->irrFrequency += 1;
  12824. }
  12825. if ((val)->o[0] & 0x40) {
  12826. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  12827. return 0;
  12828. }
  12829. if (!y) {
  12830. ZeroMemory((val)->o + 1, 2);
  12831. } else {
  12832. if (!ASN1PERDecNormallySmallExtension(dec, &e, 11, (val)->o + 1))
  12833. return 0;
  12834. if ((val)->o[1] & 0x80) {
  12835. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12836. return 0;
  12837. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12838. return 0;
  12839. if (!ASN1Dec_AdmissionConfirm_destinationInfo(dd, &(val)->destinationInfo))
  12840. return 0;
  12841. ASN1_CloseDecoder(dd);
  12842. ASN1Free(db);
  12843. }
  12844. if ((val)->o[1] & 0x40) {
  12845. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12846. return 0;
  12847. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12848. return 0;
  12849. if (!ASN1Dec_AdmissionConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  12850. return 0;
  12851. ASN1_CloseDecoder(dd);
  12852. ASN1Free(db);
  12853. }
  12854. if ((val)->o[1] & 0x20) {
  12855. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12856. return 0;
  12857. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12858. return 0;
  12859. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  12860. return 0;
  12861. ASN1_CloseDecoder(dd);
  12862. ASN1Free(db);
  12863. }
  12864. if ((val)->o[1] & 0x10) {
  12865. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12866. return 0;
  12867. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12868. return 0;
  12869. if (!ASN1Dec_AdmissionConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  12870. return 0;
  12871. ASN1_CloseDecoder(dd);
  12872. ASN1Free(db);
  12873. }
  12874. if ((val)->o[1] & 0x8) {
  12875. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12876. return 0;
  12877. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12878. return 0;
  12879. if (!ASN1Dec_AdmissionConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  12880. return 0;
  12881. ASN1_CloseDecoder(dd);
  12882. ASN1Free(db);
  12883. }
  12884. if ((val)->o[1] & 0x4) {
  12885. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12886. return 0;
  12887. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12888. return 0;
  12889. if (!ASN1Dec_AdmissionConfirm_tokens(dd, &(val)->tokens))
  12890. return 0;
  12891. ASN1_CloseDecoder(dd);
  12892. ASN1Free(db);
  12893. }
  12894. if ((val)->o[1] & 0x2) {
  12895. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12896. return 0;
  12897. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12898. return 0;
  12899. if (!ASN1Dec_AdmissionConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  12900. return 0;
  12901. ASN1_CloseDecoder(dd);
  12902. ASN1Free(db);
  12903. }
  12904. if ((val)->o[1] & 0x1) {
  12905. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12906. return 0;
  12907. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12908. return 0;
  12909. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  12910. return 0;
  12911. ASN1_CloseDecoder(dd);
  12912. ASN1Free(db);
  12913. }
  12914. if ((val)->o[2] & 0x80) {
  12915. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12916. return 0;
  12917. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12918. return 0;
  12919. if (!ASN1Dec_TransportQOS(dd, &(val)->transportQOS))
  12920. return 0;
  12921. ASN1_CloseDecoder(dd);
  12922. ASN1Free(db);
  12923. }
  12924. if ((val)->o[2] & 0x40) {
  12925. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12926. return 0;
  12927. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12928. return 0;
  12929. if (!ASN1PERDecBoolean(dd, &(val)->willRespondToIRR))
  12930. return 0;
  12931. ASN1_CloseDecoder(dd);
  12932. ASN1Free(db);
  12933. }
  12934. if ((val)->o[2] & 0x20) {
  12935. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  12936. return 0;
  12937. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  12938. return 0;
  12939. if (!ASN1Dec_UUIEsRequested(dd, &(val)->uuiesRequested))
  12940. return 0;
  12941. ASN1_CloseDecoder(dd);
  12942. ASN1Free(db);
  12943. }
  12944. for (i = 0; i < e; i++) {
  12945. if (!ASN1PERDecSkipFragmented(dec, 8))
  12946. return 0;
  12947. }
  12948. }
  12949. return 1;
  12950. }
  12951. static void ASN1CALL ASN1Free_AdmissionConfirm(AdmissionConfirm *val)
  12952. {
  12953. if (val) {
  12954. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  12955. if ((val)->o[0] & 0x40) {
  12956. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  12957. }
  12958. if ((val)->o[1] & 0x80) {
  12959. ASN1Free_AdmissionConfirm_destinationInfo(&(val)->destinationInfo);
  12960. }
  12961. if ((val)->o[1] & 0x40) {
  12962. ASN1Free_AdmissionConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  12963. }
  12964. if ((val)->o[1] & 0x20) {
  12965. ASN1Free_EndpointType(&(val)->destinationType);
  12966. }
  12967. if ((val)->o[1] & 0x10) {
  12968. ASN1Free_AdmissionConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  12969. }
  12970. if ((val)->o[1] & 0x8) {
  12971. ASN1Free_AdmissionConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  12972. }
  12973. if ((val)->o[1] & 0x4) {
  12974. ASN1Free_AdmissionConfirm_tokens(&(val)->tokens);
  12975. }
  12976. if ((val)->o[1] & 0x2) {
  12977. ASN1Free_AdmissionConfirm_cryptoTokens(&(val)->cryptoTokens);
  12978. }
  12979. if ((val)->o[1] & 0x1) {
  12980. ASN1Free_ICV(&(val)->integrityCheckValue);
  12981. }
  12982. }
  12983. }
  12984. static int ASN1CALL ASN1Enc_LocationConfirm(ASN1encoding_t enc, LocationConfirm *val)
  12985. {
  12986. ASN1uint32_t y;
  12987. ASN1encoding_t ee;
  12988. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  12989. if (!ASN1PEREncBitVal(enc, 1, y))
  12990. return 0;
  12991. if (!ASN1PEREncBits(enc, 1, (val)->o))
  12992. return 0;
  12993. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  12994. return 0;
  12995. if (!ASN1Enc_TransportAddress(enc, &(val)->callSignalAddress))
  12996. return 0;
  12997. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  12998. return 0;
  12999. if ((val)->o[0] & 0x80) {
  13000. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13001. return 0;
  13002. }
  13003. if (y) {
  13004. if (!ASN1PEREncNormallySmallBits(enc, 8, (val)->o + 1))
  13005. return 0;
  13006. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13007. return 0;
  13008. if ((val)->o[1] & 0x80) {
  13009. if (!ASN1Enc_LocationConfirm_destinationInfo(ee, &(val)->destinationInfo))
  13010. return 0;
  13011. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13012. return 0;
  13013. }
  13014. if ((val)->o[1] & 0x40) {
  13015. if (!ASN1Enc_LocationConfirm_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  13016. return 0;
  13017. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13018. return 0;
  13019. }
  13020. if ((val)->o[1] & 0x20) {
  13021. if (!ASN1Enc_EndpointType(ee, &(val)->destinationType))
  13022. return 0;
  13023. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13024. return 0;
  13025. }
  13026. if ((val)->o[1] & 0x10) {
  13027. if (!ASN1Enc_LocationConfirm_remoteExtensionAddress(ee, &(val)->remoteExtensionAddress))
  13028. return 0;
  13029. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13030. return 0;
  13031. }
  13032. if ((val)->o[1] & 0x8) {
  13033. if (!ASN1Enc_LocationConfirm_alternateEndpoints(ee, &(val)->alternateEndpoints))
  13034. return 0;
  13035. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13036. return 0;
  13037. }
  13038. if ((val)->o[1] & 0x4) {
  13039. if (!ASN1Enc_LocationConfirm_tokens(ee, &(val)->tokens))
  13040. return 0;
  13041. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13042. return 0;
  13043. }
  13044. if ((val)->o[1] & 0x2) {
  13045. if (!ASN1Enc_LocationConfirm_cryptoTokens(ee, &(val)->cryptoTokens))
  13046. return 0;
  13047. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13048. return 0;
  13049. }
  13050. if ((val)->o[1] & 0x1) {
  13051. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13052. return 0;
  13053. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13054. return 0;
  13055. }
  13056. ASN1_CloseEncoder2(ee);
  13057. }
  13058. return 1;
  13059. }
  13060. static int ASN1CALL ASN1Dec_LocationConfirm(ASN1decoding_t dec, LocationConfirm *val)
  13061. {
  13062. ASN1uint32_t y;
  13063. ASN1decoding_t dd;
  13064. ASN1octet_t *db;
  13065. ASN1uint32_t ds;
  13066. ASN1uint32_t i;
  13067. ASN1uint32_t e;
  13068. if (!ASN1PERDecExtensionBit(dec, &y))
  13069. return 0;
  13070. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  13071. return 0;
  13072. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13073. return 0;
  13074. (val)->requestSeqNum += 1;
  13075. if (!ASN1Dec_TransportAddress(dec, &(val)->callSignalAddress))
  13076. return 0;
  13077. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13078. return 0;
  13079. if ((val)->o[0] & 0x80) {
  13080. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13081. return 0;
  13082. }
  13083. if (!y) {
  13084. ZeroMemory((val)->o + 1, 1);
  13085. } else {
  13086. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  13087. return 0;
  13088. if ((val)->o[1] & 0x80) {
  13089. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13090. return 0;
  13091. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13092. return 0;
  13093. if (!ASN1Dec_LocationConfirm_destinationInfo(dd, &(val)->destinationInfo))
  13094. return 0;
  13095. ASN1_CloseDecoder(dd);
  13096. ASN1Free(db);
  13097. }
  13098. if ((val)->o[1] & 0x40) {
  13099. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13100. return 0;
  13101. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13102. return 0;
  13103. if (!ASN1Dec_LocationConfirm_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  13104. return 0;
  13105. ASN1_CloseDecoder(dd);
  13106. ASN1Free(db);
  13107. }
  13108. if ((val)->o[1] & 0x20) {
  13109. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13110. return 0;
  13111. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13112. return 0;
  13113. if (!ASN1Dec_EndpointType(dd, &(val)->destinationType))
  13114. return 0;
  13115. ASN1_CloseDecoder(dd);
  13116. ASN1Free(db);
  13117. }
  13118. if ((val)->o[1] & 0x10) {
  13119. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13120. return 0;
  13121. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13122. return 0;
  13123. if (!ASN1Dec_LocationConfirm_remoteExtensionAddress(dd, &(val)->remoteExtensionAddress))
  13124. return 0;
  13125. ASN1_CloseDecoder(dd);
  13126. ASN1Free(db);
  13127. }
  13128. if ((val)->o[1] & 0x8) {
  13129. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13130. return 0;
  13131. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13132. return 0;
  13133. if (!ASN1Dec_LocationConfirm_alternateEndpoints(dd, &(val)->alternateEndpoints))
  13134. return 0;
  13135. ASN1_CloseDecoder(dd);
  13136. ASN1Free(db);
  13137. }
  13138. if ((val)->o[1] & 0x4) {
  13139. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13140. return 0;
  13141. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13142. return 0;
  13143. if (!ASN1Dec_LocationConfirm_tokens(dd, &(val)->tokens))
  13144. return 0;
  13145. ASN1_CloseDecoder(dd);
  13146. ASN1Free(db);
  13147. }
  13148. if ((val)->o[1] & 0x2) {
  13149. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13150. return 0;
  13151. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13152. return 0;
  13153. if (!ASN1Dec_LocationConfirm_cryptoTokens(dd, &(val)->cryptoTokens))
  13154. return 0;
  13155. ASN1_CloseDecoder(dd);
  13156. ASN1Free(db);
  13157. }
  13158. if ((val)->o[1] & 0x1) {
  13159. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13160. return 0;
  13161. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13162. return 0;
  13163. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13164. return 0;
  13165. ASN1_CloseDecoder(dd);
  13166. ASN1Free(db);
  13167. }
  13168. for (i = 0; i < e; i++) {
  13169. if (!ASN1PERDecSkipFragmented(dec, 8))
  13170. return 0;
  13171. }
  13172. }
  13173. return 1;
  13174. }
  13175. static void ASN1CALL ASN1Free_LocationConfirm(LocationConfirm *val)
  13176. {
  13177. if (val) {
  13178. ASN1Free_TransportAddress(&(val)->callSignalAddress);
  13179. ASN1Free_TransportAddress(&(val)->rasAddress);
  13180. if ((val)->o[0] & 0x80) {
  13181. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13182. }
  13183. if ((val)->o[1] & 0x80) {
  13184. ASN1Free_LocationConfirm_destinationInfo(&(val)->destinationInfo);
  13185. }
  13186. if ((val)->o[1] & 0x40) {
  13187. ASN1Free_LocationConfirm_destExtraCallInfo(&(val)->destExtraCallInfo);
  13188. }
  13189. if ((val)->o[1] & 0x20) {
  13190. ASN1Free_EndpointType(&(val)->destinationType);
  13191. }
  13192. if ((val)->o[1] & 0x10) {
  13193. ASN1Free_LocationConfirm_remoteExtensionAddress(&(val)->remoteExtensionAddress);
  13194. }
  13195. if ((val)->o[1] & 0x8) {
  13196. ASN1Free_LocationConfirm_alternateEndpoints(&(val)->alternateEndpoints);
  13197. }
  13198. if ((val)->o[1] & 0x4) {
  13199. ASN1Free_LocationConfirm_tokens(&(val)->tokens);
  13200. }
  13201. if ((val)->o[1] & 0x2) {
  13202. ASN1Free_LocationConfirm_cryptoTokens(&(val)->cryptoTokens);
  13203. }
  13204. if ((val)->o[1] & 0x1) {
  13205. ASN1Free_ICV(&(val)->integrityCheckValue);
  13206. }
  13207. }
  13208. }
  13209. static int ASN1CALL ASN1Enc_InfoRequestResponse(ASN1encoding_t enc, InfoRequestResponse *val)
  13210. {
  13211. ASN1octet_t o[2];
  13212. ASN1uint32_t y;
  13213. ASN1encoding_t ee;
  13214. CopyMemory(o, (val)->o, 2);
  13215. o[1] |= 0x10;
  13216. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  13217. if (!ASN1PEREncBitVal(enc, 1, y))
  13218. return 0;
  13219. if (!ASN1PEREncBits(enc, 3, o))
  13220. return 0;
  13221. if (o[0] & 0x80) {
  13222. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  13223. return 0;
  13224. }
  13225. if (!ASN1PEREncUnsignedShort(enc, (val)->requestSeqNum - 1))
  13226. return 0;
  13227. if (!ASN1Enc_EndpointType(enc, &(val)->endpointType))
  13228. return 0;
  13229. if (!ASN1PEREncBitVal(enc, 7, ((val)->endpointIdentifier).length - 1))
  13230. return 0;
  13231. ASN1PEREncAlignment(enc);
  13232. if (!ASN1PEREncChar16String(enc, ((val)->endpointIdentifier).length, ((val)->endpointIdentifier).value, 16))
  13233. return 0;
  13234. if (!ASN1Enc_TransportAddress(enc, &(val)->rasAddress))
  13235. return 0;
  13236. if (!ASN1Enc_InfoRequestResponse_callSignalAddress(enc, &(val)->callSignalAddress))
  13237. return 0;
  13238. if (o[0] & 0x40) {
  13239. if (!ASN1Enc_InfoRequestResponse_endpointAlias(enc, &(val)->endpointAlias))
  13240. return 0;
  13241. }
  13242. if (o[0] & 0x20) {
  13243. if (!ASN1Enc_InfoRequestResponse_perCallInfo(enc, &(val)->perCallInfo))
  13244. return 0;
  13245. }
  13246. if (y) {
  13247. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  13248. return 0;
  13249. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  13250. return 0;
  13251. if (o[1] & 0x80) {
  13252. if (!ASN1Enc_InfoRequestResponse_tokens(ee, &(val)->tokens))
  13253. return 0;
  13254. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13255. return 0;
  13256. }
  13257. if (o[1] & 0x40) {
  13258. if (!ASN1Enc_InfoRequestResponse_cryptoTokens(ee, &(val)->cryptoTokens))
  13259. return 0;
  13260. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13261. return 0;
  13262. }
  13263. if (o[1] & 0x20) {
  13264. if (!ASN1Enc_ICV(ee, &(val)->integrityCheckValue))
  13265. return 0;
  13266. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13267. return 0;
  13268. }
  13269. if (o[1] & 0x10) {
  13270. if (!ASN1PEREncBoolean(ee, (val)->needResponse))
  13271. return 0;
  13272. if (!ASN1PEREncFlushFragmentedToParent(ee))
  13273. return 0;
  13274. }
  13275. ASN1_CloseEncoder2(ee);
  13276. }
  13277. return 1;
  13278. }
  13279. static int ASN1CALL ASN1Dec_InfoRequestResponse(ASN1decoding_t dec, InfoRequestResponse *val)
  13280. {
  13281. ASN1uint32_t y;
  13282. ASN1decoding_t dd;
  13283. ASN1octet_t *db;
  13284. ASN1uint32_t ds;
  13285. ASN1uint32_t i;
  13286. ASN1uint32_t e;
  13287. if (!ASN1PERDecExtensionBit(dec, &y))
  13288. return 0;
  13289. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  13290. return 0;
  13291. if ((val)->o[0] & 0x80) {
  13292. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  13293. return 0;
  13294. }
  13295. if (!ASN1PERDecUnsignedShort(dec, &(val)->requestSeqNum))
  13296. return 0;
  13297. (val)->requestSeqNum += 1;
  13298. if (!ASN1Dec_EndpointType(dec, &(val)->endpointType))
  13299. return 0;
  13300. if (!ASN1PERDecU32Val(dec, 7, &((val)->endpointIdentifier).length))
  13301. return 0;
  13302. ((val)->endpointIdentifier).length += 1;
  13303. ASN1PERDecAlignment(dec);
  13304. if (!ASN1PERDecChar16String(dec, ((val)->endpointIdentifier).length, &((val)->endpointIdentifier).value, 16))
  13305. return 0;
  13306. if (!ASN1Dec_TransportAddress(dec, &(val)->rasAddress))
  13307. return 0;
  13308. if (!ASN1Dec_InfoRequestResponse_callSignalAddress(dec, &(val)->callSignalAddress))
  13309. return 0;
  13310. if ((val)->o[0] & 0x40) {
  13311. if (!ASN1Dec_InfoRequestResponse_endpointAlias(dec, &(val)->endpointAlias))
  13312. return 0;
  13313. }
  13314. if ((val)->o[0] & 0x20) {
  13315. if (!ASN1Dec_InfoRequestResponse_perCallInfo(dec, &(val)->perCallInfo))
  13316. return 0;
  13317. }
  13318. if (!y) {
  13319. ZeroMemory((val)->o + 1, 1);
  13320. } else {
  13321. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  13322. return 0;
  13323. if ((val)->o[1] & 0x80) {
  13324. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13325. return 0;
  13326. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13327. return 0;
  13328. if (!ASN1Dec_InfoRequestResponse_tokens(dd, &(val)->tokens))
  13329. return 0;
  13330. ASN1_CloseDecoder(dd);
  13331. ASN1Free(db);
  13332. }
  13333. if ((val)->o[1] & 0x40) {
  13334. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13335. return 0;
  13336. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13337. return 0;
  13338. if (!ASN1Dec_InfoRequestResponse_cryptoTokens(dd, &(val)->cryptoTokens))
  13339. return 0;
  13340. ASN1_CloseDecoder(dd);
  13341. ASN1Free(db);
  13342. }
  13343. if ((val)->o[1] & 0x20) {
  13344. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13345. return 0;
  13346. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13347. return 0;
  13348. if (!ASN1Dec_ICV(dd, &(val)->integrityCheckValue))
  13349. return 0;
  13350. ASN1_CloseDecoder(dd);
  13351. ASN1Free(db);
  13352. }
  13353. if ((val)->o[1] & 0x10) {
  13354. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  13355. return 0;
  13356. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  13357. return 0;
  13358. if (!ASN1PERDecBoolean(dd, &(val)->needResponse))
  13359. return 0;
  13360. ASN1_CloseDecoder(dd);
  13361. ASN1Free(db);
  13362. }
  13363. for (i = 0; i < e; i++) {
  13364. if (!ASN1PERDecSkipFragmented(dec, 8))
  13365. return 0;
  13366. }
  13367. }
  13368. return 1;
  13369. }
  13370. static void ASN1CALL ASN1Free_InfoRequestResponse(InfoRequestResponse *val)
  13371. {
  13372. if (val) {
  13373. if ((val)->o[0] & 0x80) {
  13374. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  13375. }
  13376. ASN1Free_EndpointType(&(val)->endpointType);
  13377. ASN1char16string_free(&(val)->endpointIdentifier);
  13378. ASN1Free_TransportAddress(&(val)->rasAddress);
  13379. ASN1Free_InfoRequestResponse_callSignalAddress(&(val)->callSignalAddress);
  13380. if ((val)->o[0] & 0x40) {
  13381. ASN1Free_InfoRequestResponse_endpointAlias(&(val)->endpointAlias);
  13382. }
  13383. if ((val)->o[0] & 0x20) {
  13384. ASN1Free_InfoRequestResponse_perCallInfo(&(val)->perCallInfo);
  13385. }
  13386. if ((val)->o[1] & 0x80) {
  13387. ASN1Free_InfoRequestResponse_tokens(&(val)->tokens);
  13388. }
  13389. if ((val)->o[1] & 0x40) {
  13390. ASN1Free_InfoRequestResponse_cryptoTokens(&(val)->cryptoTokens);
  13391. }
  13392. if ((val)->o[1] & 0x20) {
  13393. ASN1Free_ICV(&(val)->integrityCheckValue);
  13394. }
  13395. }
  13396. }
  13397. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols *val)
  13398. {
  13399. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn);
  13400. }
  13401. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_protocols_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_protocols val)
  13402. {
  13403. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  13404. return 0;
  13405. return 1;
  13406. }
  13407. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols *val)
  13408. {
  13409. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn, sizeof(**val));
  13410. }
  13411. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_protocols_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_protocols val)
  13412. {
  13413. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  13414. return 0;
  13415. return 1;
  13416. }
  13417. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols(PResourcesAvailableIndicate_protocols *val)
  13418. {
  13419. if (val) {
  13420. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn);
  13421. }
  13422. }
  13423. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_protocols_ElmFn(PResourcesAvailableIndicate_protocols val)
  13424. {
  13425. if (val) {
  13426. ASN1Free_SupportedProtocols(&val->value);
  13427. }
  13428. }
  13429. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias *val)
  13430. {
  13431. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn);
  13432. }
  13433. static int ASN1CALL ASN1Enc_InfoRequestResponse_endpointAlias_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_endpointAlias val)
  13434. {
  13435. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13436. return 0;
  13437. return 1;
  13438. }
  13439. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias *val)
  13440. {
  13441. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn, sizeof(**val));
  13442. }
  13443. static int ASN1CALL ASN1Dec_InfoRequestResponse_endpointAlias_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_endpointAlias val)
  13444. {
  13445. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13446. return 0;
  13447. return 1;
  13448. }
  13449. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias(PInfoRequestResponse_endpointAlias *val)
  13450. {
  13451. if (val) {
  13452. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_endpointAlias_ElmFn);
  13453. }
  13454. }
  13455. static void ASN1CALL ASN1Free_InfoRequestResponse_endpointAlias_ElmFn(PInfoRequestResponse_endpointAlias val)
  13456. {
  13457. if (val) {
  13458. ASN1Free_AliasAddress(&val->value);
  13459. }
  13460. }
  13461. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints *val)
  13462. {
  13463. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn);
  13464. }
  13465. static int ASN1CALL ASN1Enc_LocationConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PLocationConfirm_alternateEndpoints val)
  13466. {
  13467. if (!ASN1Enc_Endpoint(enc, &val->value))
  13468. return 0;
  13469. return 1;
  13470. }
  13471. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints *val)
  13472. {
  13473. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13474. }
  13475. static int ASN1CALL ASN1Dec_LocationConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PLocationConfirm_alternateEndpoints val)
  13476. {
  13477. if (!ASN1Dec_Endpoint(dec, &val->value))
  13478. return 0;
  13479. return 1;
  13480. }
  13481. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints(PLocationConfirm_alternateEndpoints *val)
  13482. {
  13483. if (val) {
  13484. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_alternateEndpoints_ElmFn);
  13485. }
  13486. }
  13487. static void ASN1CALL ASN1Free_LocationConfirm_alternateEndpoints_ElmFn(PLocationConfirm_alternateEndpoints val)
  13488. {
  13489. if (val) {
  13490. ASN1Free_Endpoint(&val->value);
  13491. }
  13492. }
  13493. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress *val)
  13494. {
  13495. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn);
  13496. }
  13497. static int ASN1CALL ASN1Enc_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PLocationConfirm_remoteExtensionAddress val)
  13498. {
  13499. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13500. return 0;
  13501. return 1;
  13502. }
  13503. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress *val)
  13504. {
  13505. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13506. }
  13507. static int ASN1CALL ASN1Dec_LocationConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PLocationConfirm_remoteExtensionAddress val)
  13508. {
  13509. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13510. return 0;
  13511. return 1;
  13512. }
  13513. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress(PLocationConfirm_remoteExtensionAddress *val)
  13514. {
  13515. if (val) {
  13516. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn);
  13517. }
  13518. }
  13519. static void ASN1CALL ASN1Free_LocationConfirm_remoteExtensionAddress_ElmFn(PLocationConfirm_remoteExtensionAddress val)
  13520. {
  13521. if (val) {
  13522. ASN1Free_AliasAddress(&val->value);
  13523. }
  13524. }
  13525. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo *val)
  13526. {
  13527. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn);
  13528. }
  13529. static int ASN1CALL ASN1Enc_LocationConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destExtraCallInfo val)
  13530. {
  13531. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13532. return 0;
  13533. return 1;
  13534. }
  13535. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo *val)
  13536. {
  13537. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13538. }
  13539. static int ASN1CALL ASN1Dec_LocationConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destExtraCallInfo val)
  13540. {
  13541. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13542. return 0;
  13543. return 1;
  13544. }
  13545. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo(PLocationConfirm_destExtraCallInfo *val)
  13546. {
  13547. if (val) {
  13548. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn);
  13549. }
  13550. }
  13551. static void ASN1CALL ASN1Free_LocationConfirm_destExtraCallInfo_ElmFn(PLocationConfirm_destExtraCallInfo val)
  13552. {
  13553. if (val) {
  13554. ASN1Free_AliasAddress(&val->value);
  13555. }
  13556. }
  13557. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo(ASN1encoding_t enc, PLocationConfirm_destinationInfo *val)
  13558. {
  13559. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_destinationInfo_ElmFn);
  13560. }
  13561. static int ASN1CALL ASN1Enc_LocationConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationConfirm_destinationInfo val)
  13562. {
  13563. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13564. return 0;
  13565. return 1;
  13566. }
  13567. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo(ASN1decoding_t dec, PLocationConfirm_destinationInfo *val)
  13568. {
  13569. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_destinationInfo_ElmFn, sizeof(**val));
  13570. }
  13571. static int ASN1CALL ASN1Dec_LocationConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationConfirm_destinationInfo val)
  13572. {
  13573. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13574. return 0;
  13575. return 1;
  13576. }
  13577. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo(PLocationConfirm_destinationInfo *val)
  13578. {
  13579. if (val) {
  13580. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_destinationInfo_ElmFn);
  13581. }
  13582. }
  13583. static void ASN1CALL ASN1Free_LocationConfirm_destinationInfo_ElmFn(PLocationConfirm_destinationInfo val)
  13584. {
  13585. if (val) {
  13586. ASN1Free_AliasAddress(&val->value);
  13587. }
  13588. }
  13589. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo(ASN1encoding_t enc, PLocationRequest_sourceInfo *val)
  13590. {
  13591. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_sourceInfo_ElmFn);
  13592. }
  13593. static int ASN1CALL ASN1Enc_LocationRequest_sourceInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_sourceInfo val)
  13594. {
  13595. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13596. return 0;
  13597. return 1;
  13598. }
  13599. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo(ASN1decoding_t dec, PLocationRequest_sourceInfo *val)
  13600. {
  13601. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_sourceInfo_ElmFn, sizeof(**val));
  13602. }
  13603. static int ASN1CALL ASN1Dec_LocationRequest_sourceInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_sourceInfo val)
  13604. {
  13605. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13606. return 0;
  13607. return 1;
  13608. }
  13609. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo(PLocationRequest_sourceInfo *val)
  13610. {
  13611. if (val) {
  13612. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_sourceInfo_ElmFn);
  13613. }
  13614. }
  13615. static void ASN1CALL ASN1Free_LocationRequest_sourceInfo_ElmFn(PLocationRequest_sourceInfo val)
  13616. {
  13617. if (val) {
  13618. ASN1Free_AliasAddress(&val->value);
  13619. }
  13620. }
  13621. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo(ASN1encoding_t enc, PLocationRequest_destinationInfo *val)
  13622. {
  13623. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_destinationInfo_ElmFn);
  13624. }
  13625. static int ASN1CALL ASN1Enc_LocationRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PLocationRequest_destinationInfo val)
  13626. {
  13627. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13628. return 0;
  13629. return 1;
  13630. }
  13631. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo(ASN1decoding_t dec, PLocationRequest_destinationInfo *val)
  13632. {
  13633. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_destinationInfo_ElmFn, sizeof(**val));
  13634. }
  13635. static int ASN1CALL ASN1Dec_LocationRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PLocationRequest_destinationInfo val)
  13636. {
  13637. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13638. return 0;
  13639. return 1;
  13640. }
  13641. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo(PLocationRequest_destinationInfo *val)
  13642. {
  13643. if (val) {
  13644. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_destinationInfo_ElmFn);
  13645. }
  13646. }
  13647. static void ASN1CALL ASN1Free_LocationRequest_destinationInfo_ElmFn(PLocationRequest_destinationInfo val)
  13648. {
  13649. if (val) {
  13650. ASN1Free_AliasAddress(&val->value);
  13651. }
  13652. }
  13653. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints *val)
  13654. {
  13655. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn);
  13656. }
  13657. static int ASN1CALL ASN1Enc_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_alternateEndpoints val)
  13658. {
  13659. if (!ASN1Enc_Endpoint(enc, &val->value))
  13660. return 0;
  13661. return 1;
  13662. }
  13663. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints *val)
  13664. {
  13665. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn, sizeof(**val));
  13666. }
  13667. static int ASN1CALL ASN1Dec_AdmissionConfirm_alternateEndpoints_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_alternateEndpoints val)
  13668. {
  13669. if (!ASN1Dec_Endpoint(dec, &val->value))
  13670. return 0;
  13671. return 1;
  13672. }
  13673. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints(PAdmissionConfirm_alternateEndpoints *val)
  13674. {
  13675. if (val) {
  13676. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn);
  13677. }
  13678. }
  13679. static void ASN1CALL ASN1Free_AdmissionConfirm_alternateEndpoints_ElmFn(PAdmissionConfirm_alternateEndpoints val)
  13680. {
  13681. if (val) {
  13682. ASN1Free_Endpoint(&val->value);
  13683. }
  13684. }
  13685. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress *val)
  13686. {
  13687. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13688. }
  13689. static int ASN1CALL ASN1Enc_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_remoteExtensionAddress val)
  13690. {
  13691. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13692. return 0;
  13693. return 1;
  13694. }
  13695. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress *val)
  13696. {
  13697. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn, sizeof(**val));
  13698. }
  13699. static int ASN1CALL ASN1Dec_AdmissionConfirm_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_remoteExtensionAddress val)
  13700. {
  13701. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13702. return 0;
  13703. return 1;
  13704. }
  13705. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress(PAdmissionConfirm_remoteExtensionAddress *val)
  13706. {
  13707. if (val) {
  13708. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn);
  13709. }
  13710. }
  13711. static void ASN1CALL ASN1Free_AdmissionConfirm_remoteExtensionAddress_ElmFn(PAdmissionConfirm_remoteExtensionAddress val)
  13712. {
  13713. if (val) {
  13714. ASN1Free_AliasAddress(&val->value);
  13715. }
  13716. }
  13717. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo *val)
  13718. {
  13719. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13720. }
  13721. static int ASN1CALL ASN1Enc_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destExtraCallInfo val)
  13722. {
  13723. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13724. return 0;
  13725. return 1;
  13726. }
  13727. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo *val)
  13728. {
  13729. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn, sizeof(**val));
  13730. }
  13731. static int ASN1CALL ASN1Dec_AdmissionConfirm_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destExtraCallInfo val)
  13732. {
  13733. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13734. return 0;
  13735. return 1;
  13736. }
  13737. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo(PAdmissionConfirm_destExtraCallInfo *val)
  13738. {
  13739. if (val) {
  13740. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn);
  13741. }
  13742. }
  13743. static void ASN1CALL ASN1Free_AdmissionConfirm_destExtraCallInfo_ElmFn(PAdmissionConfirm_destExtraCallInfo val)
  13744. {
  13745. if (val) {
  13746. ASN1Free_AliasAddress(&val->value);
  13747. }
  13748. }
  13749. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo *val)
  13750. {
  13751. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn);
  13752. }
  13753. static int ASN1CALL ASN1Enc_AdmissionConfirm_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_destinationInfo val)
  13754. {
  13755. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13756. return 0;
  13757. return 1;
  13758. }
  13759. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo *val)
  13760. {
  13761. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn, sizeof(**val));
  13762. }
  13763. static int ASN1CALL ASN1Dec_AdmissionConfirm_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_destinationInfo val)
  13764. {
  13765. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13766. return 0;
  13767. return 1;
  13768. }
  13769. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo(PAdmissionConfirm_destinationInfo *val)
  13770. {
  13771. if (val) {
  13772. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_destinationInfo_ElmFn);
  13773. }
  13774. }
  13775. static void ASN1CALL ASN1Free_AdmissionConfirm_destinationInfo_ElmFn(PAdmissionConfirm_destinationInfo val)
  13776. {
  13777. if (val) {
  13778. ASN1Free_AliasAddress(&val->value);
  13779. }
  13780. }
  13781. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives(ASN1encoding_t enc, PAdmissionRequest_destAlternatives *val)
  13782. {
  13783. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destAlternatives_ElmFn);
  13784. }
  13785. static int ASN1CALL ASN1Enc_AdmissionRequest_destAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destAlternatives val)
  13786. {
  13787. if (!ASN1Enc_Endpoint(enc, &val->value))
  13788. return 0;
  13789. return 1;
  13790. }
  13791. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives(ASN1decoding_t dec, PAdmissionRequest_destAlternatives *val)
  13792. {
  13793. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destAlternatives_ElmFn, sizeof(**val));
  13794. }
  13795. static int ASN1CALL ASN1Dec_AdmissionRequest_destAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destAlternatives val)
  13796. {
  13797. if (!ASN1Dec_Endpoint(dec, &val->value))
  13798. return 0;
  13799. return 1;
  13800. }
  13801. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives(PAdmissionRequest_destAlternatives *val)
  13802. {
  13803. if (val) {
  13804. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destAlternatives_ElmFn);
  13805. }
  13806. }
  13807. static void ASN1CALL ASN1Free_AdmissionRequest_destAlternatives_ElmFn(PAdmissionRequest_destAlternatives val)
  13808. {
  13809. if (val) {
  13810. ASN1Free_Endpoint(&val->value);
  13811. }
  13812. }
  13813. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives *val)
  13814. {
  13815. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn);
  13816. }
  13817. static int ASN1CALL ASN1Enc_AdmissionRequest_srcAlternatives_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcAlternatives val)
  13818. {
  13819. if (!ASN1Enc_Endpoint(enc, &val->value))
  13820. return 0;
  13821. return 1;
  13822. }
  13823. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives *val)
  13824. {
  13825. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn, sizeof(**val));
  13826. }
  13827. static int ASN1CALL ASN1Dec_AdmissionRequest_srcAlternatives_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcAlternatives val)
  13828. {
  13829. if (!ASN1Dec_Endpoint(dec, &val->value))
  13830. return 0;
  13831. return 1;
  13832. }
  13833. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives(PAdmissionRequest_srcAlternatives *val)
  13834. {
  13835. if (val) {
  13836. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcAlternatives_ElmFn);
  13837. }
  13838. }
  13839. static void ASN1CALL ASN1Free_AdmissionRequest_srcAlternatives_ElmFn(PAdmissionRequest_srcAlternatives val)
  13840. {
  13841. if (val) {
  13842. ASN1Free_Endpoint(&val->value);
  13843. }
  13844. }
  13845. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo(ASN1encoding_t enc, PAdmissionRequest_srcInfo *val)
  13846. {
  13847. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_srcInfo_ElmFn);
  13848. }
  13849. static int ASN1CALL ASN1Enc_AdmissionRequest_srcInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_srcInfo val)
  13850. {
  13851. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13852. return 0;
  13853. return 1;
  13854. }
  13855. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo(ASN1decoding_t dec, PAdmissionRequest_srcInfo *val)
  13856. {
  13857. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_srcInfo_ElmFn, sizeof(**val));
  13858. }
  13859. static int ASN1CALL ASN1Dec_AdmissionRequest_srcInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_srcInfo val)
  13860. {
  13861. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13862. return 0;
  13863. return 1;
  13864. }
  13865. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo(PAdmissionRequest_srcInfo *val)
  13866. {
  13867. if (val) {
  13868. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_srcInfo_ElmFn);
  13869. }
  13870. }
  13871. static void ASN1CALL ASN1Free_AdmissionRequest_srcInfo_ElmFn(PAdmissionRequest_srcInfo val)
  13872. {
  13873. if (val) {
  13874. ASN1Free_AliasAddress(&val->value);
  13875. }
  13876. }
  13877. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo *val)
  13878. {
  13879. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn);
  13880. }
  13881. static int ASN1CALL ASN1Enc_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destExtraCallInfo val)
  13882. {
  13883. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13884. return 0;
  13885. return 1;
  13886. }
  13887. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo *val)
  13888. {
  13889. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn, sizeof(**val));
  13890. }
  13891. static int ASN1CALL ASN1Dec_AdmissionRequest_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destExtraCallInfo val)
  13892. {
  13893. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13894. return 0;
  13895. return 1;
  13896. }
  13897. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo(PAdmissionRequest_destExtraCallInfo *val)
  13898. {
  13899. if (val) {
  13900. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn);
  13901. }
  13902. }
  13903. static void ASN1CALL ASN1Free_AdmissionRequest_destExtraCallInfo_ElmFn(PAdmissionRequest_destExtraCallInfo val)
  13904. {
  13905. if (val) {
  13906. ASN1Free_AliasAddress(&val->value);
  13907. }
  13908. }
  13909. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo(ASN1encoding_t enc, PAdmissionRequest_destinationInfo *val)
  13910. {
  13911. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_destinationInfo_ElmFn);
  13912. }
  13913. static int ASN1CALL ASN1Enc_AdmissionRequest_destinationInfo_ElmFn(ASN1encoding_t enc, PAdmissionRequest_destinationInfo val)
  13914. {
  13915. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13916. return 0;
  13917. return 1;
  13918. }
  13919. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo(ASN1decoding_t dec, PAdmissionRequest_destinationInfo *val)
  13920. {
  13921. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_destinationInfo_ElmFn, sizeof(**val));
  13922. }
  13923. static int ASN1CALL ASN1Dec_AdmissionRequest_destinationInfo_ElmFn(ASN1decoding_t dec, PAdmissionRequest_destinationInfo val)
  13924. {
  13925. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13926. return 0;
  13927. return 1;
  13928. }
  13929. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo(PAdmissionRequest_destinationInfo *val)
  13930. {
  13931. if (val) {
  13932. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_destinationInfo_ElmFn);
  13933. }
  13934. }
  13935. static void ASN1CALL ASN1Free_AdmissionRequest_destinationInfo_ElmFn(PAdmissionRequest_destinationInfo val)
  13936. {
  13937. if (val) {
  13938. ASN1Free_AliasAddress(&val->value);
  13939. }
  13940. }
  13941. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints *val)
  13942. {
  13943. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn);
  13944. }
  13945. static int ASN1CALL ASN1Enc_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_alternateEndpoints val)
  13946. {
  13947. if (!ASN1Enc_Endpoint(enc, &val->value))
  13948. return 0;
  13949. return 1;
  13950. }
  13951. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints *val)
  13952. {
  13953. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  13954. }
  13955. static int ASN1CALL ASN1Dec_UnregistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_alternateEndpoints val)
  13956. {
  13957. if (!ASN1Dec_Endpoint(dec, &val->value))
  13958. return 0;
  13959. return 1;
  13960. }
  13961. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints(PUnregistrationRequest_alternateEndpoints *val)
  13962. {
  13963. if (val) {
  13964. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn);
  13965. }
  13966. }
  13967. static void ASN1CALL ASN1Free_UnregistrationRequest_alternateEndpoints_ElmFn(PUnregistrationRequest_alternateEndpoints val)
  13968. {
  13969. if (val) {
  13970. ASN1Free_Endpoint(&val->value);
  13971. }
  13972. }
  13973. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias *val)
  13974. {
  13975. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn);
  13976. }
  13977. static int ASN1CALL ASN1Enc_UnregistrationRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_endpointAlias val)
  13978. {
  13979. if (!ASN1Enc_AliasAddress(enc, &val->value))
  13980. return 0;
  13981. return 1;
  13982. }
  13983. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias *val)
  13984. {
  13985. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn, sizeof(**val));
  13986. }
  13987. static int ASN1CALL ASN1Dec_UnregistrationRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_endpointAlias val)
  13988. {
  13989. if (!ASN1Dec_AliasAddress(dec, &val->value))
  13990. return 0;
  13991. return 1;
  13992. }
  13993. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias(PUnregistrationRequest_endpointAlias *val)
  13994. {
  13995. if (val) {
  13996. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_endpointAlias_ElmFn);
  13997. }
  13998. }
  13999. static void ASN1CALL ASN1Free_UnregistrationRequest_endpointAlias_ElmFn(PUnregistrationRequest_endpointAlias val)
  14000. {
  14001. if (val) {
  14002. ASN1Free_AliasAddress(&val->value);
  14003. }
  14004. }
  14005. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias *val)
  14006. {
  14007. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn);
  14008. }
  14009. static int ASN1CALL ASN1Enc_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1encoding_t enc, PRegistrationRejectReason_duplicateAlias val)
  14010. {
  14011. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14012. return 0;
  14013. return 1;
  14014. }
  14015. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias *val)
  14016. {
  14017. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn, sizeof(**val));
  14018. }
  14019. static int ASN1CALL ASN1Dec_RegistrationRejectReason_duplicateAlias_ElmFn(ASN1decoding_t dec, PRegistrationRejectReason_duplicateAlias val)
  14020. {
  14021. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14022. return 0;
  14023. return 1;
  14024. }
  14025. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias(PRegistrationRejectReason_duplicateAlias *val)
  14026. {
  14027. if (val) {
  14028. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn);
  14029. }
  14030. }
  14031. static void ASN1CALL ASN1Free_RegistrationRejectReason_duplicateAlias_ElmFn(PRegistrationRejectReason_duplicateAlias val)
  14032. {
  14033. if (val) {
  14034. ASN1Free_AliasAddress(&val->value);
  14035. }
  14036. }
  14037. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias *val)
  14038. {
  14039. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn);
  14040. }
  14041. static int ASN1CALL ASN1Enc_RegistrationConfirm_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_terminalAlias val)
  14042. {
  14043. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14044. return 0;
  14045. return 1;
  14046. }
  14047. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias *val)
  14048. {
  14049. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn, sizeof(**val));
  14050. }
  14051. static int ASN1CALL ASN1Dec_RegistrationConfirm_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_terminalAlias val)
  14052. {
  14053. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14054. return 0;
  14055. return 1;
  14056. }
  14057. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias(PRegistrationConfirm_terminalAlias *val)
  14058. {
  14059. if (val) {
  14060. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_terminalAlias_ElmFn);
  14061. }
  14062. }
  14063. static void ASN1CALL ASN1Free_RegistrationConfirm_terminalAlias_ElmFn(PRegistrationConfirm_terminalAlias val)
  14064. {
  14065. if (val) {
  14066. ASN1Free_AliasAddress(&val->value);
  14067. }
  14068. }
  14069. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints *val)
  14070. {
  14071. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn);
  14072. }
  14073. static int ASN1CALL ASN1Enc_RegistrationRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PRegistrationRequest_alternateEndpoints val)
  14074. {
  14075. if (!ASN1Enc_Endpoint(enc, &val->value))
  14076. return 0;
  14077. return 1;
  14078. }
  14079. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints *val)
  14080. {
  14081. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14082. }
  14083. static int ASN1CALL ASN1Dec_RegistrationRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PRegistrationRequest_alternateEndpoints val)
  14084. {
  14085. if (!ASN1Dec_Endpoint(dec, &val->value))
  14086. return 0;
  14087. return 1;
  14088. }
  14089. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints(PRegistrationRequest_alternateEndpoints *val)
  14090. {
  14091. if (val) {
  14092. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn);
  14093. }
  14094. }
  14095. static void ASN1CALL ASN1Free_RegistrationRequest_alternateEndpoints_ElmFn(PRegistrationRequest_alternateEndpoints val)
  14096. {
  14097. if (val) {
  14098. ASN1Free_Endpoint(&val->value);
  14099. }
  14100. }
  14101. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias(ASN1encoding_t enc, PRegistrationRequest_terminalAlias *val)
  14102. {
  14103. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_terminalAlias_ElmFn);
  14104. }
  14105. static int ASN1CALL ASN1Enc_RegistrationRequest_terminalAlias_ElmFn(ASN1encoding_t enc, PRegistrationRequest_terminalAlias val)
  14106. {
  14107. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14108. return 0;
  14109. return 1;
  14110. }
  14111. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias(ASN1decoding_t dec, PRegistrationRequest_terminalAlias *val)
  14112. {
  14113. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_terminalAlias_ElmFn, sizeof(**val));
  14114. }
  14115. static int ASN1CALL ASN1Dec_RegistrationRequest_terminalAlias_ElmFn(ASN1decoding_t dec, PRegistrationRequest_terminalAlias val)
  14116. {
  14117. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14118. return 0;
  14119. return 1;
  14120. }
  14121. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias(PRegistrationRequest_terminalAlias *val)
  14122. {
  14123. if (val) {
  14124. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_terminalAlias_ElmFn);
  14125. }
  14126. }
  14127. static void ASN1CALL ASN1Free_RegistrationRequest_terminalAlias_ElmFn(PRegistrationRequest_terminalAlias val)
  14128. {
  14129. if (val) {
  14130. ASN1Free_AliasAddress(&val->value);
  14131. }
  14132. }
  14133. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints *val)
  14134. {
  14135. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn);
  14136. }
  14137. static int ASN1CALL ASN1Enc_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_alternateEndpoints val)
  14138. {
  14139. if (!ASN1Enc_Endpoint(enc, &val->value))
  14140. return 0;
  14141. return 1;
  14142. }
  14143. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints *val)
  14144. {
  14145. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn, sizeof(**val));
  14146. }
  14147. static int ASN1CALL ASN1Dec_GatekeeperRequest_alternateEndpoints_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_alternateEndpoints val)
  14148. {
  14149. if (!ASN1Dec_Endpoint(dec, &val->value))
  14150. return 0;
  14151. return 1;
  14152. }
  14153. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints(PGatekeeperRequest_alternateEndpoints *val)
  14154. {
  14155. if (val) {
  14156. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn);
  14157. }
  14158. }
  14159. static void ASN1CALL ASN1Free_GatekeeperRequest_alternateEndpoints_ElmFn(PGatekeeperRequest_alternateEndpoints val)
  14160. {
  14161. if (val) {
  14162. ASN1Free_Endpoint(&val->value);
  14163. }
  14164. }
  14165. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias *val)
  14166. {
  14167. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn);
  14168. }
  14169. static int ASN1CALL ASN1Enc_GatekeeperRequest_endpointAlias_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_endpointAlias val)
  14170. {
  14171. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14172. return 0;
  14173. return 1;
  14174. }
  14175. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias *val)
  14176. {
  14177. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn, sizeof(**val));
  14178. }
  14179. static int ASN1CALL ASN1Dec_GatekeeperRequest_endpointAlias_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_endpointAlias val)
  14180. {
  14181. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14182. return 0;
  14183. return 1;
  14184. }
  14185. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias(PGatekeeperRequest_endpointAlias *val)
  14186. {
  14187. if (val) {
  14188. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_endpointAlias_ElmFn);
  14189. }
  14190. }
  14191. static void ASN1CALL ASN1Free_GatekeeperRequest_endpointAlias_ElmFn(PGatekeeperRequest_endpointAlias val)
  14192. {
  14193. if (val) {
  14194. ASN1Free_AliasAddress(&val->value);
  14195. }
  14196. }
  14197. static int ASN1CALL ASN1Enc_CryptoH323Token_cryptoEPPwdHash(ASN1encoding_t enc, CryptoH323Token_cryptoEPPwdHash *val)
  14198. {
  14199. ASN1uint32_t l;
  14200. if (!ASN1Enc_AliasAddress(enc, &(val)->alias))
  14201. return 0;
  14202. l = ASN1uint32_uoctets((val)->timeStamp - 1);
  14203. if (!ASN1PEREncBitVal(enc, 2, l - 1))
  14204. return 0;
  14205. ASN1PEREncAlignment(enc);
  14206. if (!ASN1PEREncBitVal(enc, l * 8, (val)->timeStamp - 1))
  14207. return 0;
  14208. if (!ASN1Enc_HASHED(enc, &(val)->token))
  14209. return 0;
  14210. return 1;
  14211. }
  14212. static int ASN1CALL ASN1Dec_CryptoH323Token_cryptoEPPwdHash(ASN1decoding_t dec, CryptoH323Token_cryptoEPPwdHash *val)
  14213. {
  14214. ASN1uint32_t l;
  14215. if (!ASN1Dec_AliasAddress(dec, &(val)->alias))
  14216. return 0;
  14217. if (!ASN1PERDecU32Val(dec, 2, &l))
  14218. return 0;
  14219. l += 1;
  14220. ASN1PERDecAlignment(dec);
  14221. if (!ASN1PERDecU32Val(dec, l * 8, &(val)->timeStamp))
  14222. return 0;
  14223. (val)->timeStamp += 1;
  14224. if (!ASN1Dec_HASHED(dec, &(val)->token))
  14225. return 0;
  14226. return 1;
  14227. }
  14228. static void ASN1CALL ASN1Free_CryptoH323Token_cryptoEPPwdHash(CryptoH323Token_cryptoEPPwdHash *val)
  14229. {
  14230. if (val) {
  14231. ASN1Free_AliasAddress(&(val)->alias);
  14232. ASN1Free_HASHED(&(val)->token);
  14233. }
  14234. }
  14235. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo(ASN1encoding_t enc, PEndpoint_destExtraCallInfo *val)
  14236. {
  14237. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_destExtraCallInfo_ElmFn);
  14238. }
  14239. static int ASN1CALL ASN1Enc_Endpoint_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PEndpoint_destExtraCallInfo val)
  14240. {
  14241. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14242. return 0;
  14243. return 1;
  14244. }
  14245. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo(ASN1decoding_t dec, PEndpoint_destExtraCallInfo *val)
  14246. {
  14247. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_destExtraCallInfo_ElmFn, sizeof(**val));
  14248. }
  14249. static int ASN1CALL ASN1Dec_Endpoint_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PEndpoint_destExtraCallInfo val)
  14250. {
  14251. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14252. return 0;
  14253. return 1;
  14254. }
  14255. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo(PEndpoint_destExtraCallInfo *val)
  14256. {
  14257. if (val) {
  14258. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_destExtraCallInfo_ElmFn);
  14259. }
  14260. }
  14261. static void ASN1CALL ASN1Free_Endpoint_destExtraCallInfo_ElmFn(PEndpoint_destExtraCallInfo val)
  14262. {
  14263. if (val) {
  14264. ASN1Free_AliasAddress(&val->value);
  14265. }
  14266. }
  14267. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress *val)
  14268. {
  14269. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn);
  14270. }
  14271. static int ASN1CALL ASN1Enc_Endpoint_remoteExtensionAddress_ElmFn(ASN1encoding_t enc, PEndpoint_remoteExtensionAddress val)
  14272. {
  14273. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14274. return 0;
  14275. return 1;
  14276. }
  14277. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress *val)
  14278. {
  14279. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn, sizeof(**val));
  14280. }
  14281. static int ASN1CALL ASN1Dec_Endpoint_remoteExtensionAddress_ElmFn(ASN1decoding_t dec, PEndpoint_remoteExtensionAddress val)
  14282. {
  14283. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14284. return 0;
  14285. return 1;
  14286. }
  14287. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress(PEndpoint_remoteExtensionAddress *val)
  14288. {
  14289. if (val) {
  14290. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_remoteExtensionAddress_ElmFn);
  14291. }
  14292. }
  14293. static void ASN1CALL ASN1Free_Endpoint_remoteExtensionAddress_ElmFn(PEndpoint_remoteExtensionAddress val)
  14294. {
  14295. if (val) {
  14296. ASN1Free_AliasAddress(&val->value);
  14297. }
  14298. }
  14299. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress(ASN1encoding_t enc, PEndpoint_aliasAddress *val)
  14300. {
  14301. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_aliasAddress_ElmFn);
  14302. }
  14303. static int ASN1CALL ASN1Enc_Endpoint_aliasAddress_ElmFn(ASN1encoding_t enc, PEndpoint_aliasAddress val)
  14304. {
  14305. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14306. return 0;
  14307. return 1;
  14308. }
  14309. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress(ASN1decoding_t dec, PEndpoint_aliasAddress *val)
  14310. {
  14311. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_aliasAddress_ElmFn, sizeof(**val));
  14312. }
  14313. static int ASN1CALL ASN1Dec_Endpoint_aliasAddress_ElmFn(ASN1decoding_t dec, PEndpoint_aliasAddress val)
  14314. {
  14315. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14316. return 0;
  14317. return 1;
  14318. }
  14319. static void ASN1CALL ASN1Free_Endpoint_aliasAddress(PEndpoint_aliasAddress *val)
  14320. {
  14321. if (val) {
  14322. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_aliasAddress_ElmFn);
  14323. }
  14324. }
  14325. static void ASN1CALL ASN1Free_Endpoint_aliasAddress_ElmFn(PEndpoint_aliasAddress val)
  14326. {
  14327. if (val) {
  14328. ASN1Free_AliasAddress(&val->value);
  14329. }
  14330. }
  14331. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes *val)
  14332. {
  14333. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn);
  14334. }
  14335. static int ASN1CALL ASN1Enc_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1encoding_t enc, PNonStandardProtocol_supportedPrefixes val)
  14336. {
  14337. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14338. return 0;
  14339. return 1;
  14340. }
  14341. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes *val)
  14342. {
  14343. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn, sizeof(**val));
  14344. }
  14345. static int ASN1CALL ASN1Dec_NonStandardProtocol_supportedPrefixes_ElmFn(ASN1decoding_t dec, PNonStandardProtocol_supportedPrefixes val)
  14346. {
  14347. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14348. return 0;
  14349. return 1;
  14350. }
  14351. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes(PNonStandardProtocol_supportedPrefixes *val)
  14352. {
  14353. if (val) {
  14354. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn);
  14355. }
  14356. }
  14357. static void ASN1CALL ASN1Free_NonStandardProtocol_supportedPrefixes_ElmFn(PNonStandardProtocol_supportedPrefixes val)
  14358. {
  14359. if (val) {
  14360. ASN1Free_SupportedPrefix(&val->value);
  14361. }
  14362. }
  14363. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes *val)
  14364. {
  14365. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn);
  14366. }
  14367. static int ASN1CALL ASN1Enc_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PT120OnlyCaps_supportedPrefixes val)
  14368. {
  14369. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14370. return 0;
  14371. return 1;
  14372. }
  14373. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes *val)
  14374. {
  14375. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14376. }
  14377. static int ASN1CALL ASN1Dec_T120OnlyCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PT120OnlyCaps_supportedPrefixes val)
  14378. {
  14379. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14380. return 0;
  14381. return 1;
  14382. }
  14383. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes(PT120OnlyCaps_supportedPrefixes *val)
  14384. {
  14385. if (val) {
  14386. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn);
  14387. }
  14388. }
  14389. static void ASN1CALL ASN1Free_T120OnlyCaps_supportedPrefixes_ElmFn(PT120OnlyCaps_supportedPrefixes val)
  14390. {
  14391. if (val) {
  14392. ASN1Free_SupportedPrefix(&val->value);
  14393. }
  14394. }
  14395. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes *val)
  14396. {
  14397. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn);
  14398. }
  14399. static int ASN1CALL ASN1Enc_VoiceCaps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PVoiceCaps_supportedPrefixes val)
  14400. {
  14401. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14402. return 0;
  14403. return 1;
  14404. }
  14405. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes *val)
  14406. {
  14407. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn, sizeof(**val));
  14408. }
  14409. static int ASN1CALL ASN1Dec_VoiceCaps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PVoiceCaps_supportedPrefixes val)
  14410. {
  14411. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14412. return 0;
  14413. return 1;
  14414. }
  14415. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes(PVoiceCaps_supportedPrefixes *val)
  14416. {
  14417. if (val) {
  14418. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_VoiceCaps_supportedPrefixes_ElmFn);
  14419. }
  14420. }
  14421. static void ASN1CALL ASN1Free_VoiceCaps_supportedPrefixes_ElmFn(PVoiceCaps_supportedPrefixes val)
  14422. {
  14423. if (val) {
  14424. ASN1Free_SupportedPrefix(&val->value);
  14425. }
  14426. }
  14427. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes(ASN1encoding_t enc, PH324Caps_supportedPrefixes *val)
  14428. {
  14429. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H324Caps_supportedPrefixes_ElmFn);
  14430. }
  14431. static int ASN1CALL ASN1Enc_H324Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH324Caps_supportedPrefixes val)
  14432. {
  14433. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14434. return 0;
  14435. return 1;
  14436. }
  14437. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes(ASN1decoding_t dec, PH324Caps_supportedPrefixes *val)
  14438. {
  14439. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H324Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14440. }
  14441. static int ASN1CALL ASN1Dec_H324Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH324Caps_supportedPrefixes val)
  14442. {
  14443. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14444. return 0;
  14445. return 1;
  14446. }
  14447. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes(PH324Caps_supportedPrefixes *val)
  14448. {
  14449. if (val) {
  14450. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H324Caps_supportedPrefixes_ElmFn);
  14451. }
  14452. }
  14453. static void ASN1CALL ASN1Free_H324Caps_supportedPrefixes_ElmFn(PH324Caps_supportedPrefixes val)
  14454. {
  14455. if (val) {
  14456. ASN1Free_SupportedPrefix(&val->value);
  14457. }
  14458. }
  14459. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes(ASN1encoding_t enc, PH323Caps_supportedPrefixes *val)
  14460. {
  14461. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H323Caps_supportedPrefixes_ElmFn);
  14462. }
  14463. static int ASN1CALL ASN1Enc_H323Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH323Caps_supportedPrefixes val)
  14464. {
  14465. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14466. return 0;
  14467. return 1;
  14468. }
  14469. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes(ASN1decoding_t dec, PH323Caps_supportedPrefixes *val)
  14470. {
  14471. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H323Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14472. }
  14473. static int ASN1CALL ASN1Dec_H323Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH323Caps_supportedPrefixes val)
  14474. {
  14475. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14476. return 0;
  14477. return 1;
  14478. }
  14479. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes(PH323Caps_supportedPrefixes *val)
  14480. {
  14481. if (val) {
  14482. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H323Caps_supportedPrefixes_ElmFn);
  14483. }
  14484. }
  14485. static void ASN1CALL ASN1Free_H323Caps_supportedPrefixes_ElmFn(PH323Caps_supportedPrefixes val)
  14486. {
  14487. if (val) {
  14488. ASN1Free_SupportedPrefix(&val->value);
  14489. }
  14490. }
  14491. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes(ASN1encoding_t enc, PH322Caps_supportedPrefixes *val)
  14492. {
  14493. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H322Caps_supportedPrefixes_ElmFn);
  14494. }
  14495. static int ASN1CALL ASN1Enc_H322Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH322Caps_supportedPrefixes val)
  14496. {
  14497. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14498. return 0;
  14499. return 1;
  14500. }
  14501. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes(ASN1decoding_t dec, PH322Caps_supportedPrefixes *val)
  14502. {
  14503. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H322Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14504. }
  14505. static int ASN1CALL ASN1Dec_H322Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH322Caps_supportedPrefixes val)
  14506. {
  14507. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14508. return 0;
  14509. return 1;
  14510. }
  14511. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes(PH322Caps_supportedPrefixes *val)
  14512. {
  14513. if (val) {
  14514. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H322Caps_supportedPrefixes_ElmFn);
  14515. }
  14516. }
  14517. static void ASN1CALL ASN1Free_H322Caps_supportedPrefixes_ElmFn(PH322Caps_supportedPrefixes val)
  14518. {
  14519. if (val) {
  14520. ASN1Free_SupportedPrefix(&val->value);
  14521. }
  14522. }
  14523. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes(ASN1encoding_t enc, PH321Caps_supportedPrefixes *val)
  14524. {
  14525. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H321Caps_supportedPrefixes_ElmFn);
  14526. }
  14527. static int ASN1CALL ASN1Enc_H321Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH321Caps_supportedPrefixes val)
  14528. {
  14529. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14530. return 0;
  14531. return 1;
  14532. }
  14533. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes(ASN1decoding_t dec, PH321Caps_supportedPrefixes *val)
  14534. {
  14535. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H321Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14536. }
  14537. static int ASN1CALL ASN1Dec_H321Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH321Caps_supportedPrefixes val)
  14538. {
  14539. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14540. return 0;
  14541. return 1;
  14542. }
  14543. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes(PH321Caps_supportedPrefixes *val)
  14544. {
  14545. if (val) {
  14546. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H321Caps_supportedPrefixes_ElmFn);
  14547. }
  14548. }
  14549. static void ASN1CALL ASN1Free_H321Caps_supportedPrefixes_ElmFn(PH321Caps_supportedPrefixes val)
  14550. {
  14551. if (val) {
  14552. ASN1Free_SupportedPrefix(&val->value);
  14553. }
  14554. }
  14555. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes(ASN1encoding_t enc, PH320Caps_supportedPrefixes *val)
  14556. {
  14557. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H320Caps_supportedPrefixes_ElmFn);
  14558. }
  14559. static int ASN1CALL ASN1Enc_H320Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH320Caps_supportedPrefixes val)
  14560. {
  14561. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14562. return 0;
  14563. return 1;
  14564. }
  14565. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes(ASN1decoding_t dec, PH320Caps_supportedPrefixes *val)
  14566. {
  14567. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H320Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14568. }
  14569. static int ASN1CALL ASN1Dec_H320Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH320Caps_supportedPrefixes val)
  14570. {
  14571. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14572. return 0;
  14573. return 1;
  14574. }
  14575. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes(PH320Caps_supportedPrefixes *val)
  14576. {
  14577. if (val) {
  14578. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H320Caps_supportedPrefixes_ElmFn);
  14579. }
  14580. }
  14581. static void ASN1CALL ASN1Free_H320Caps_supportedPrefixes_ElmFn(PH320Caps_supportedPrefixes val)
  14582. {
  14583. if (val) {
  14584. ASN1Free_SupportedPrefix(&val->value);
  14585. }
  14586. }
  14587. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes(ASN1encoding_t enc, PH310Caps_supportedPrefixes *val)
  14588. {
  14589. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H310Caps_supportedPrefixes_ElmFn);
  14590. }
  14591. static int ASN1CALL ASN1Enc_H310Caps_supportedPrefixes_ElmFn(ASN1encoding_t enc, PH310Caps_supportedPrefixes val)
  14592. {
  14593. if (!ASN1Enc_SupportedPrefix(enc, &val->value))
  14594. return 0;
  14595. return 1;
  14596. }
  14597. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes(ASN1decoding_t dec, PH310Caps_supportedPrefixes *val)
  14598. {
  14599. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H310Caps_supportedPrefixes_ElmFn, sizeof(**val));
  14600. }
  14601. static int ASN1CALL ASN1Dec_H310Caps_supportedPrefixes_ElmFn(ASN1decoding_t dec, PH310Caps_supportedPrefixes val)
  14602. {
  14603. if (!ASN1Dec_SupportedPrefix(dec, &val->value))
  14604. return 0;
  14605. return 1;
  14606. }
  14607. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes(PH310Caps_supportedPrefixes *val)
  14608. {
  14609. if (val) {
  14610. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H310Caps_supportedPrefixes_ElmFn);
  14611. }
  14612. }
  14613. static void ASN1CALL ASN1Free_H310Caps_supportedPrefixes_ElmFn(PH310Caps_supportedPrefixes val)
  14614. {
  14615. if (val) {
  14616. ASN1Free_SupportedPrefix(&val->value);
  14617. }
  14618. }
  14619. static int ASN1CALL ASN1Enc_GatewayInfo_protocol(ASN1encoding_t enc, PGatewayInfo_protocol *val)
  14620. {
  14621. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatewayInfo_protocol_ElmFn);
  14622. }
  14623. static int ASN1CALL ASN1Enc_GatewayInfo_protocol_ElmFn(ASN1encoding_t enc, PGatewayInfo_protocol val)
  14624. {
  14625. if (!ASN1Enc_SupportedProtocols(enc, &val->value))
  14626. return 0;
  14627. return 1;
  14628. }
  14629. static int ASN1CALL ASN1Dec_GatewayInfo_protocol(ASN1decoding_t dec, PGatewayInfo_protocol *val)
  14630. {
  14631. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatewayInfo_protocol_ElmFn, sizeof(**val));
  14632. }
  14633. static int ASN1CALL ASN1Dec_GatewayInfo_protocol_ElmFn(ASN1decoding_t dec, PGatewayInfo_protocol val)
  14634. {
  14635. if (!ASN1Dec_SupportedProtocols(dec, &val->value))
  14636. return 0;
  14637. return 1;
  14638. }
  14639. static void ASN1CALL ASN1Free_GatewayInfo_protocol(PGatewayInfo_protocol *val)
  14640. {
  14641. if (val) {
  14642. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatewayInfo_protocol_ElmFn);
  14643. }
  14644. }
  14645. static void ASN1CALL ASN1Free_GatewayInfo_protocol_ElmFn(PGatewayInfo_protocol val)
  14646. {
  14647. if (val) {
  14648. ASN1Free_SupportedProtocols(&val->value);
  14649. }
  14650. }
  14651. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo *val)
  14652. {
  14653. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn);
  14654. }
  14655. static int ASN1CALL ASN1Enc_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PFacility_UUIE_destExtraCallInfo val)
  14656. {
  14657. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14658. return 0;
  14659. return 1;
  14660. }
  14661. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo *val)
  14662. {
  14663. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14664. }
  14665. static int ASN1CALL ASN1Dec_Facility_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PFacility_UUIE_destExtraCallInfo val)
  14666. {
  14667. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14668. return 0;
  14669. return 1;
  14670. }
  14671. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo(PFacility_UUIE_destExtraCallInfo *val)
  14672. {
  14673. if (val) {
  14674. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn);
  14675. }
  14676. }
  14677. static void ASN1CALL ASN1Free_Facility_UUIE_destExtraCallInfo_ElmFn(PFacility_UUIE_destExtraCallInfo val)
  14678. {
  14679. if (val) {
  14680. ASN1Free_AliasAddress(&val->value);
  14681. }
  14682. }
  14683. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress *val)
  14684. {
  14685. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14686. }
  14687. static int ASN1CALL ASN1Enc_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1encoding_t enc, PFacility_UUIE_alternativeAliasAddress val)
  14688. {
  14689. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14690. return 0;
  14691. return 1;
  14692. }
  14693. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress *val)
  14694. {
  14695. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn, sizeof(**val));
  14696. }
  14697. static int ASN1CALL ASN1Dec_Facility_UUIE_alternativeAliasAddress_ElmFn(ASN1decoding_t dec, PFacility_UUIE_alternativeAliasAddress val)
  14698. {
  14699. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14700. return 0;
  14701. return 1;
  14702. }
  14703. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress(PFacility_UUIE_alternativeAliasAddress *val)
  14704. {
  14705. if (val) {
  14706. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn);
  14707. }
  14708. }
  14709. static void ASN1CALL ASN1Free_Facility_UUIE_alternativeAliasAddress_ElmFn(PFacility_UUIE_alternativeAliasAddress val)
  14710. {
  14711. if (val) {
  14712. ASN1Free_AliasAddress(&val->value);
  14713. }
  14714. }
  14715. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo *val)
  14716. {
  14717. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn);
  14718. }
  14719. static int ASN1CALL ASN1Enc_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destExtraCallInfo val)
  14720. {
  14721. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14722. return 0;
  14723. return 1;
  14724. }
  14725. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo *val)
  14726. {
  14727. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn, sizeof(**val));
  14728. }
  14729. static int ASN1CALL ASN1Dec_Setup_UUIE_destExtraCallInfo_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destExtraCallInfo val)
  14730. {
  14731. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14732. return 0;
  14733. return 1;
  14734. }
  14735. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo(PSetup_UUIE_destExtraCallInfo *val)
  14736. {
  14737. if (val) {
  14738. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn);
  14739. }
  14740. }
  14741. static void ASN1CALL ASN1Free_Setup_UUIE_destExtraCallInfo_ElmFn(PSetup_UUIE_destExtraCallInfo val)
  14742. {
  14743. if (val) {
  14744. ASN1Free_AliasAddress(&val->value);
  14745. }
  14746. }
  14747. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress(ASN1encoding_t enc, PSetup_UUIE_destinationAddress *val)
  14748. {
  14749. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_destinationAddress_ElmFn);
  14750. }
  14751. static int ASN1CALL ASN1Enc_Setup_UUIE_destinationAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_destinationAddress val)
  14752. {
  14753. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14754. return 0;
  14755. return 1;
  14756. }
  14757. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress(ASN1decoding_t dec, PSetup_UUIE_destinationAddress *val)
  14758. {
  14759. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_destinationAddress_ElmFn, sizeof(**val));
  14760. }
  14761. static int ASN1CALL ASN1Dec_Setup_UUIE_destinationAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_destinationAddress val)
  14762. {
  14763. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14764. return 0;
  14765. return 1;
  14766. }
  14767. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress(PSetup_UUIE_destinationAddress *val)
  14768. {
  14769. if (val) {
  14770. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_destinationAddress_ElmFn);
  14771. }
  14772. }
  14773. static void ASN1CALL ASN1Free_Setup_UUIE_destinationAddress_ElmFn(PSetup_UUIE_destinationAddress val)
  14774. {
  14775. if (val) {
  14776. ASN1Free_AliasAddress(&val->value);
  14777. }
  14778. }
  14779. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress(ASN1encoding_t enc, PSetup_UUIE_sourceAddress *val)
  14780. {
  14781. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_sourceAddress_ElmFn);
  14782. }
  14783. static int ASN1CALL ASN1Enc_Setup_UUIE_sourceAddress_ElmFn(ASN1encoding_t enc, PSetup_UUIE_sourceAddress val)
  14784. {
  14785. if (!ASN1Enc_AliasAddress(enc, &val->value))
  14786. return 0;
  14787. return 1;
  14788. }
  14789. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress(ASN1decoding_t dec, PSetup_UUIE_sourceAddress *val)
  14790. {
  14791. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_sourceAddress_ElmFn, sizeof(**val));
  14792. }
  14793. static int ASN1CALL ASN1Dec_Setup_UUIE_sourceAddress_ElmFn(ASN1decoding_t dec, PSetup_UUIE_sourceAddress val)
  14794. {
  14795. if (!ASN1Dec_AliasAddress(dec, &val->value))
  14796. return 0;
  14797. return 1;
  14798. }
  14799. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress(PSetup_UUIE_sourceAddress *val)
  14800. {
  14801. if (val) {
  14802. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_sourceAddress_ElmFn);
  14803. }
  14804. }
  14805. static void ASN1CALL ASN1Free_Setup_UUIE_sourceAddress_ElmFn(PSetup_UUIE_sourceAddress val)
  14806. {
  14807. if (val) {
  14808. ASN1Free_AliasAddress(&val->value);
  14809. }
  14810. }
  14811. static int ASN1CALL ASN1Enc_Alerting_UUIE(ASN1encoding_t enc, Alerting_UUIE *val)
  14812. {
  14813. ASN1octet_t o[2];
  14814. ASN1uint32_t y;
  14815. ASN1encoding_t ee;
  14816. CopyMemory(o, (val)->o, 2);
  14817. o[1] |= 0x80;
  14818. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14819. if (!ASN1PEREncBitVal(enc, 1, y))
  14820. return 0;
  14821. if (!ASN1PEREncBits(enc, 1, o))
  14822. return 0;
  14823. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14824. return 0;
  14825. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14826. return 0;
  14827. if (o[0] & 0x80) {
  14828. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14829. return 0;
  14830. }
  14831. if (y) {
  14832. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14833. return 0;
  14834. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  14835. return 0;
  14836. if (o[1] & 0x80) {
  14837. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  14838. return 0;
  14839. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14840. return 0;
  14841. }
  14842. if (o[1] & 0x40) {
  14843. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  14844. return 0;
  14845. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14846. return 0;
  14847. }
  14848. if (o[1] & 0x20) {
  14849. if (!ASN1Enc_Alerting_UUIE_tokens(ee, &(val)->tokens))
  14850. return 0;
  14851. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14852. return 0;
  14853. }
  14854. if (o[1] & 0x10) {
  14855. if (!ASN1Enc_Alerting_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  14856. return 0;
  14857. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14858. return 0;
  14859. }
  14860. if (o[1] & 0x8) {
  14861. if (!ASN1Enc_Alerting_UUIE_fastStart(ee, &(val)->fastStart))
  14862. return 0;
  14863. if (!ASN1PEREncFlushFragmentedToParent(ee))
  14864. return 0;
  14865. }
  14866. ASN1_CloseEncoder2(ee);
  14867. }
  14868. return 1;
  14869. }
  14870. static int ASN1CALL ASN1Dec_Alerting_UUIE(ASN1decoding_t dec, Alerting_UUIE *val)
  14871. {
  14872. ASN1uint32_t y;
  14873. ASN1decoding_t dd;
  14874. ASN1octet_t *db;
  14875. ASN1uint32_t ds;
  14876. ASN1uint32_t i;
  14877. ASN1uint32_t e;
  14878. if (!ASN1PERDecExtensionBit(dec, &y))
  14879. return 0;
  14880. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  14881. return 0;
  14882. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  14883. return 0;
  14884. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  14885. return 0;
  14886. if ((val)->o[0] & 0x80) {
  14887. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  14888. return 0;
  14889. }
  14890. if (!y) {
  14891. ZeroMemory((val)->o + 1, 1);
  14892. } else {
  14893. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  14894. return 0;
  14895. if ((val)->o[1] & 0x80) {
  14896. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14897. return 0;
  14898. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14899. return 0;
  14900. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  14901. return 0;
  14902. ASN1_CloseDecoder(dd);
  14903. ASN1Free(db);
  14904. }
  14905. if ((val)->o[1] & 0x40) {
  14906. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14907. return 0;
  14908. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14909. return 0;
  14910. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  14911. return 0;
  14912. ASN1_CloseDecoder(dd);
  14913. ASN1Free(db);
  14914. }
  14915. if ((val)->o[1] & 0x20) {
  14916. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14917. return 0;
  14918. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14919. return 0;
  14920. if (!ASN1Dec_Alerting_UUIE_tokens(dd, &(val)->tokens))
  14921. return 0;
  14922. ASN1_CloseDecoder(dd);
  14923. ASN1Free(db);
  14924. }
  14925. if ((val)->o[1] & 0x10) {
  14926. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14927. return 0;
  14928. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14929. return 0;
  14930. if (!ASN1Dec_Alerting_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  14931. return 0;
  14932. ASN1_CloseDecoder(dd);
  14933. ASN1Free(db);
  14934. }
  14935. if ((val)->o[1] & 0x8) {
  14936. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  14937. return 0;
  14938. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  14939. return 0;
  14940. if (!ASN1Dec_Alerting_UUIE_fastStart(dd, &(val)->fastStart))
  14941. return 0;
  14942. ASN1_CloseDecoder(dd);
  14943. ASN1Free(db);
  14944. }
  14945. for (i = 0; i < e; i++) {
  14946. if (!ASN1PERDecSkipFragmented(dec, 8))
  14947. return 0;
  14948. }
  14949. }
  14950. return 1;
  14951. }
  14952. static void ASN1CALL ASN1Free_Alerting_UUIE(Alerting_UUIE *val)
  14953. {
  14954. if (val) {
  14955. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  14956. ASN1Free_EndpointType(&(val)->destinationInfo);
  14957. if ((val)->o[0] & 0x80) {
  14958. ASN1Free_TransportAddress(&(val)->h245Address);
  14959. }
  14960. if ((val)->o[1] & 0x80) {
  14961. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  14962. }
  14963. if ((val)->o[1] & 0x40) {
  14964. ASN1Free_H245Security(&(val)->h245SecurityMode);
  14965. }
  14966. if ((val)->o[1] & 0x20) {
  14967. ASN1Free_Alerting_UUIE_tokens(&(val)->tokens);
  14968. }
  14969. if ((val)->o[1] & 0x10) {
  14970. ASN1Free_Alerting_UUIE_cryptoTokens(&(val)->cryptoTokens);
  14971. }
  14972. if ((val)->o[1] & 0x8) {
  14973. ASN1Free_Alerting_UUIE_fastStart(&(val)->fastStart);
  14974. }
  14975. }
  14976. }
  14977. static int ASN1CALL ASN1Enc_CallProceeding_UUIE(ASN1encoding_t enc, CallProceeding_UUIE *val)
  14978. {
  14979. ASN1octet_t o[2];
  14980. ASN1uint32_t y;
  14981. ASN1encoding_t ee;
  14982. CopyMemory(o, (val)->o, 2);
  14983. o[1] |= 0x80;
  14984. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  14985. if (!ASN1PEREncBitVal(enc, 1, y))
  14986. return 0;
  14987. if (!ASN1PEREncBits(enc, 1, o))
  14988. return 0;
  14989. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  14990. return 0;
  14991. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  14992. return 0;
  14993. if (o[0] & 0x80) {
  14994. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  14995. return 0;
  14996. }
  14997. if (y) {
  14998. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  14999. return 0;
  15000. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15001. return 0;
  15002. if (o[1] & 0x80) {
  15003. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15004. return 0;
  15005. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15006. return 0;
  15007. }
  15008. if (o[1] & 0x40) {
  15009. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  15010. return 0;
  15011. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15012. return 0;
  15013. }
  15014. if (o[1] & 0x20) {
  15015. if (!ASN1Enc_CallProceeding_UUIE_tokens(ee, &(val)->tokens))
  15016. return 0;
  15017. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15018. return 0;
  15019. }
  15020. if (o[1] & 0x10) {
  15021. if (!ASN1Enc_CallProceeding_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15022. return 0;
  15023. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15024. return 0;
  15025. }
  15026. if (o[1] & 0x8) {
  15027. if (!ASN1Enc_CallProceeding_UUIE_fastStart(ee, &(val)->fastStart))
  15028. return 0;
  15029. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15030. return 0;
  15031. }
  15032. ASN1_CloseEncoder2(ee);
  15033. }
  15034. return 1;
  15035. }
  15036. static int ASN1CALL ASN1Dec_CallProceeding_UUIE(ASN1decoding_t dec, CallProceeding_UUIE *val)
  15037. {
  15038. ASN1uint32_t y;
  15039. ASN1decoding_t dd;
  15040. ASN1octet_t *db;
  15041. ASN1uint32_t ds;
  15042. ASN1uint32_t i;
  15043. ASN1uint32_t e;
  15044. if (!ASN1PERDecExtensionBit(dec, &y))
  15045. return 0;
  15046. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15047. return 0;
  15048. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15049. return 0;
  15050. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15051. return 0;
  15052. if ((val)->o[0] & 0x80) {
  15053. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15054. return 0;
  15055. }
  15056. if (!y) {
  15057. ZeroMemory((val)->o + 1, 1);
  15058. } else {
  15059. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15060. return 0;
  15061. if ((val)->o[1] & 0x80) {
  15062. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15063. return 0;
  15064. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15065. return 0;
  15066. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15067. return 0;
  15068. ASN1_CloseDecoder(dd);
  15069. ASN1Free(db);
  15070. }
  15071. if ((val)->o[1] & 0x40) {
  15072. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15073. return 0;
  15074. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15075. return 0;
  15076. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15077. return 0;
  15078. ASN1_CloseDecoder(dd);
  15079. ASN1Free(db);
  15080. }
  15081. if ((val)->o[1] & 0x20) {
  15082. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15083. return 0;
  15084. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15085. return 0;
  15086. if (!ASN1Dec_CallProceeding_UUIE_tokens(dd, &(val)->tokens))
  15087. return 0;
  15088. ASN1_CloseDecoder(dd);
  15089. ASN1Free(db);
  15090. }
  15091. if ((val)->o[1] & 0x10) {
  15092. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15093. return 0;
  15094. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15095. return 0;
  15096. if (!ASN1Dec_CallProceeding_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15097. return 0;
  15098. ASN1_CloseDecoder(dd);
  15099. ASN1Free(db);
  15100. }
  15101. if ((val)->o[1] & 0x8) {
  15102. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15103. return 0;
  15104. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15105. return 0;
  15106. if (!ASN1Dec_CallProceeding_UUIE_fastStart(dd, &(val)->fastStart))
  15107. return 0;
  15108. ASN1_CloseDecoder(dd);
  15109. ASN1Free(db);
  15110. }
  15111. for (i = 0; i < e; i++) {
  15112. if (!ASN1PERDecSkipFragmented(dec, 8))
  15113. return 0;
  15114. }
  15115. }
  15116. return 1;
  15117. }
  15118. static void ASN1CALL ASN1Free_CallProceeding_UUIE(CallProceeding_UUIE *val)
  15119. {
  15120. if (val) {
  15121. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15122. ASN1Free_EndpointType(&(val)->destinationInfo);
  15123. if ((val)->o[0] & 0x80) {
  15124. ASN1Free_TransportAddress(&(val)->h245Address);
  15125. }
  15126. if ((val)->o[1] & 0x80) {
  15127. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15128. }
  15129. if ((val)->o[1] & 0x40) {
  15130. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15131. }
  15132. if ((val)->o[1] & 0x20) {
  15133. ASN1Free_CallProceeding_UUIE_tokens(&(val)->tokens);
  15134. }
  15135. if ((val)->o[1] & 0x10) {
  15136. ASN1Free_CallProceeding_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15137. }
  15138. if ((val)->o[1] & 0x8) {
  15139. ASN1Free_CallProceeding_UUIE_fastStart(&(val)->fastStart);
  15140. }
  15141. }
  15142. }
  15143. static int ASN1CALL ASN1Enc_Connect_UUIE(ASN1encoding_t enc, Connect_UUIE *val)
  15144. {
  15145. ASN1octet_t o[2];
  15146. ASN1uint32_t y;
  15147. ASN1encoding_t ee;
  15148. CopyMemory(o, (val)->o, 2);
  15149. o[1] |= 0x80;
  15150. y = ASN1PEREncCheckExtensions(5, (val)->o + 1);
  15151. if (!ASN1PEREncBitVal(enc, 1, y))
  15152. return 0;
  15153. if (!ASN1PEREncBits(enc, 1, o))
  15154. return 0;
  15155. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15156. return 0;
  15157. if (o[0] & 0x80) {
  15158. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15159. return 0;
  15160. }
  15161. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15162. return 0;
  15163. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15164. return 0;
  15165. if (y) {
  15166. if (!ASN1PEREncNormallySmallBits(enc, 5, o + 1))
  15167. return 0;
  15168. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15169. return 0;
  15170. if (o[1] & 0x80) {
  15171. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15172. return 0;
  15173. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15174. return 0;
  15175. }
  15176. if (o[1] & 0x40) {
  15177. if (!ASN1Enc_H245Security(ee, &(val)->h245SecurityMode))
  15178. return 0;
  15179. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15180. return 0;
  15181. }
  15182. if (o[1] & 0x20) {
  15183. if (!ASN1Enc_Connect_UUIE_tokens(ee, &(val)->tokens))
  15184. return 0;
  15185. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15186. return 0;
  15187. }
  15188. if (o[1] & 0x10) {
  15189. if (!ASN1Enc_Connect_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15190. return 0;
  15191. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15192. return 0;
  15193. }
  15194. if (o[1] & 0x8) {
  15195. if (!ASN1Enc_Connect_UUIE_fastStart(ee, &(val)->fastStart))
  15196. return 0;
  15197. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15198. return 0;
  15199. }
  15200. ASN1_CloseEncoder2(ee);
  15201. }
  15202. return 1;
  15203. }
  15204. static int ASN1CALL ASN1Dec_Connect_UUIE(ASN1decoding_t dec, Connect_UUIE *val)
  15205. {
  15206. ASN1uint32_t y;
  15207. ASN1decoding_t dd;
  15208. ASN1octet_t *db;
  15209. ASN1uint32_t ds;
  15210. ASN1uint32_t i;
  15211. ASN1uint32_t e;
  15212. if (!ASN1PERDecExtensionBit(dec, &y))
  15213. return 0;
  15214. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  15215. return 0;
  15216. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15217. return 0;
  15218. if ((val)->o[0] & 0x80) {
  15219. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15220. return 0;
  15221. }
  15222. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15223. return 0;
  15224. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15225. return 0;
  15226. if (!y) {
  15227. ZeroMemory((val)->o + 1, 1);
  15228. } else {
  15229. if (!ASN1PERDecNormallySmallExtension(dec, &e, 5, (val)->o + 1))
  15230. return 0;
  15231. if ((val)->o[1] & 0x80) {
  15232. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15233. return 0;
  15234. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15235. return 0;
  15236. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15237. return 0;
  15238. ASN1_CloseDecoder(dd);
  15239. ASN1Free(db);
  15240. }
  15241. if ((val)->o[1] & 0x40) {
  15242. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15243. return 0;
  15244. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15245. return 0;
  15246. if (!ASN1Dec_H245Security(dd, &(val)->h245SecurityMode))
  15247. return 0;
  15248. ASN1_CloseDecoder(dd);
  15249. ASN1Free(db);
  15250. }
  15251. if ((val)->o[1] & 0x20) {
  15252. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15253. return 0;
  15254. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15255. return 0;
  15256. if (!ASN1Dec_Connect_UUIE_tokens(dd, &(val)->tokens))
  15257. return 0;
  15258. ASN1_CloseDecoder(dd);
  15259. ASN1Free(db);
  15260. }
  15261. if ((val)->o[1] & 0x10) {
  15262. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15263. return 0;
  15264. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15265. return 0;
  15266. if (!ASN1Dec_Connect_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15267. return 0;
  15268. ASN1_CloseDecoder(dd);
  15269. ASN1Free(db);
  15270. }
  15271. if ((val)->o[1] & 0x8) {
  15272. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15273. return 0;
  15274. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15275. return 0;
  15276. if (!ASN1Dec_Connect_UUIE_fastStart(dd, &(val)->fastStart))
  15277. return 0;
  15278. ASN1_CloseDecoder(dd);
  15279. ASN1Free(db);
  15280. }
  15281. for (i = 0; i < e; i++) {
  15282. if (!ASN1PERDecSkipFragmented(dec, 8))
  15283. return 0;
  15284. }
  15285. }
  15286. return 1;
  15287. }
  15288. static void ASN1CALL ASN1Free_Connect_UUIE(Connect_UUIE *val)
  15289. {
  15290. if (val) {
  15291. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15292. if ((val)->o[0] & 0x80) {
  15293. ASN1Free_TransportAddress(&(val)->h245Address);
  15294. }
  15295. ASN1Free_EndpointType(&(val)->destinationInfo);
  15296. if ((val)->o[1] & 0x80) {
  15297. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15298. }
  15299. if ((val)->o[1] & 0x40) {
  15300. ASN1Free_H245Security(&(val)->h245SecurityMode);
  15301. }
  15302. if ((val)->o[1] & 0x20) {
  15303. ASN1Free_Connect_UUIE_tokens(&(val)->tokens);
  15304. }
  15305. if ((val)->o[1] & 0x10) {
  15306. ASN1Free_Connect_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15307. }
  15308. if ((val)->o[1] & 0x8) {
  15309. ASN1Free_Connect_UUIE_fastStart(&(val)->fastStart);
  15310. }
  15311. }
  15312. }
  15313. static int ASN1CALL ASN1Enc_Setup_UUIE(ASN1encoding_t enc, Setup_UUIE *val)
  15314. {
  15315. ASN1octet_t o[3];
  15316. ASN1uint32_t y;
  15317. ASN1encoding_t ee;
  15318. CopyMemory(o, (val)->o, 3);
  15319. o[1] |= 0x20;
  15320. o[1] |= 0x1;
  15321. o[2] |= 0x80;
  15322. y = ASN1PEREncCheckExtensions(9, (val)->o + 1);
  15323. if (!ASN1PEREncBitVal(enc, 1, y))
  15324. return 0;
  15325. if (!ASN1PEREncBits(enc, 7, o))
  15326. return 0;
  15327. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15328. return 0;
  15329. if (o[0] & 0x80) {
  15330. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15331. return 0;
  15332. }
  15333. if (o[0] & 0x40) {
  15334. if (!ASN1Enc_Setup_UUIE_sourceAddress(enc, &(val)->sourceAddress))
  15335. return 0;
  15336. }
  15337. if (!ASN1Enc_EndpointType(enc, &(val)->sourceInfo))
  15338. return 0;
  15339. if (o[0] & 0x20) {
  15340. if (!ASN1Enc_Setup_UUIE_destinationAddress(enc, &(val)->destinationAddress))
  15341. return 0;
  15342. }
  15343. if (o[0] & 0x10) {
  15344. if (!ASN1Enc_TransportAddress(enc, &(val)->destCallSignalAddress))
  15345. return 0;
  15346. }
  15347. if (o[0] & 0x8) {
  15348. if (!ASN1Enc_Setup_UUIE_destExtraCallInfo(enc, &(val)->destExtraCallInfo))
  15349. return 0;
  15350. }
  15351. if (o[0] & 0x4) {
  15352. if (!ASN1Enc_Setup_UUIE_destExtraCRV(enc, &(val)->destExtraCRV))
  15353. return 0;
  15354. }
  15355. if (!ASN1PEREncBoolean(enc, (val)->activeMC))
  15356. return 0;
  15357. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15358. return 0;
  15359. if (!ASN1Enc_Setup_UUIE_conferenceGoal(enc, &(val)->conferenceGoal))
  15360. return 0;
  15361. if (o[0] & 0x2) {
  15362. if (!ASN1Enc_QseriesOptions(enc, &(val)->callServices))
  15363. return 0;
  15364. }
  15365. if (!ASN1Enc_CallType(enc, &(val)->callType))
  15366. return 0;
  15367. if (y) {
  15368. if (!ASN1PEREncNormallySmallBits(enc, 9, o + 1))
  15369. return 0;
  15370. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15371. return 0;
  15372. if (o[1] & 0x80) {
  15373. if (!ASN1Enc_TransportAddress(ee, &(val)->sourceCallSignalAddress))
  15374. return 0;
  15375. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15376. return 0;
  15377. }
  15378. if (o[1] & 0x40) {
  15379. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15380. return 0;
  15381. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15382. return 0;
  15383. }
  15384. if (o[1] & 0x20) {
  15385. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15386. return 0;
  15387. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15388. return 0;
  15389. }
  15390. if (o[1] & 0x10) {
  15391. if (!ASN1Enc_Setup_UUIE_h245SecurityCapability(ee, &(val)->h245SecurityCapability))
  15392. return 0;
  15393. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15394. return 0;
  15395. }
  15396. if (o[1] & 0x8) {
  15397. if (!ASN1Enc_Setup_UUIE_tokens(ee, &(val)->tokens))
  15398. return 0;
  15399. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15400. return 0;
  15401. }
  15402. if (o[1] & 0x4) {
  15403. if (!ASN1Enc_Setup_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15404. return 0;
  15405. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15406. return 0;
  15407. }
  15408. if (o[1] & 0x2) {
  15409. if (!ASN1Enc_Setup_UUIE_fastStart(ee, &(val)->fastStart))
  15410. return 0;
  15411. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15412. return 0;
  15413. }
  15414. if (o[1] & 0x1) {
  15415. if (!ASN1PEREncBoolean(ee, (val)->mediaWaitForConnect))
  15416. return 0;
  15417. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15418. return 0;
  15419. }
  15420. if (o[2] & 0x80) {
  15421. if (!ASN1PEREncBoolean(ee, (val)->canOverlapSend))
  15422. return 0;
  15423. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15424. return 0;
  15425. }
  15426. ASN1_CloseEncoder2(ee);
  15427. }
  15428. return 1;
  15429. }
  15430. static int ASN1CALL ASN1Dec_Setup_UUIE(ASN1decoding_t dec, Setup_UUIE *val)
  15431. {
  15432. ASN1uint32_t y;
  15433. ASN1decoding_t dd;
  15434. ASN1octet_t *db;
  15435. ASN1uint32_t ds;
  15436. ASN1uint32_t i;
  15437. ASN1uint32_t e;
  15438. if (!ASN1PERDecExtensionBit(dec, &y))
  15439. return 0;
  15440. if (!ASN1PERDecExtension(dec, 7, (val)->o))
  15441. return 0;
  15442. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15443. return 0;
  15444. if ((val)->o[0] & 0x80) {
  15445. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15446. return 0;
  15447. }
  15448. if ((val)->o[0] & 0x40) {
  15449. if (!ASN1Dec_Setup_UUIE_sourceAddress(dec, &(val)->sourceAddress))
  15450. return 0;
  15451. }
  15452. if (!ASN1Dec_EndpointType(dec, &(val)->sourceInfo))
  15453. return 0;
  15454. if ((val)->o[0] & 0x20) {
  15455. if (!ASN1Dec_Setup_UUIE_destinationAddress(dec, &(val)->destinationAddress))
  15456. return 0;
  15457. }
  15458. if ((val)->o[0] & 0x10) {
  15459. if (!ASN1Dec_TransportAddress(dec, &(val)->destCallSignalAddress))
  15460. return 0;
  15461. }
  15462. if ((val)->o[0] & 0x8) {
  15463. if (!ASN1Dec_Setup_UUIE_destExtraCallInfo(dec, &(val)->destExtraCallInfo))
  15464. return 0;
  15465. }
  15466. if ((val)->o[0] & 0x4) {
  15467. if (!ASN1Dec_Setup_UUIE_destExtraCRV(dec, &(val)->destExtraCRV))
  15468. return 0;
  15469. }
  15470. if (!ASN1PERDecBoolean(dec, &(val)->activeMC))
  15471. return 0;
  15472. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15473. return 0;
  15474. if (!ASN1Dec_Setup_UUIE_conferenceGoal(dec, &(val)->conferenceGoal))
  15475. return 0;
  15476. if ((val)->o[0] & 0x2) {
  15477. if (!ASN1Dec_QseriesOptions(dec, &(val)->callServices))
  15478. return 0;
  15479. }
  15480. if (!ASN1Dec_CallType(dec, &(val)->callType))
  15481. return 0;
  15482. if (!y) {
  15483. ZeroMemory((val)->o + 1, 2);
  15484. } else {
  15485. if (!ASN1PERDecNormallySmallExtension(dec, &e, 9, (val)->o + 1))
  15486. return 0;
  15487. if ((val)->o[1] & 0x80) {
  15488. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15489. return 0;
  15490. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15491. return 0;
  15492. if (!ASN1Dec_TransportAddress(dd, &(val)->sourceCallSignalAddress))
  15493. return 0;
  15494. ASN1_CloseDecoder(dd);
  15495. ASN1Free(db);
  15496. }
  15497. if ((val)->o[1] & 0x40) {
  15498. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15499. return 0;
  15500. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15501. return 0;
  15502. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15503. return 0;
  15504. ASN1_CloseDecoder(dd);
  15505. ASN1Free(db);
  15506. }
  15507. if ((val)->o[1] & 0x20) {
  15508. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15509. return 0;
  15510. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15511. return 0;
  15512. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15513. return 0;
  15514. ASN1_CloseDecoder(dd);
  15515. ASN1Free(db);
  15516. }
  15517. if ((val)->o[1] & 0x10) {
  15518. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15519. return 0;
  15520. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15521. return 0;
  15522. if (!ASN1Dec_Setup_UUIE_h245SecurityCapability(dd, &(val)->h245SecurityCapability))
  15523. return 0;
  15524. ASN1_CloseDecoder(dd);
  15525. ASN1Free(db);
  15526. }
  15527. if ((val)->o[1] & 0x8) {
  15528. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15529. return 0;
  15530. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15531. return 0;
  15532. if (!ASN1Dec_Setup_UUIE_tokens(dd, &(val)->tokens))
  15533. return 0;
  15534. ASN1_CloseDecoder(dd);
  15535. ASN1Free(db);
  15536. }
  15537. if ((val)->o[1] & 0x4) {
  15538. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15539. return 0;
  15540. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15541. return 0;
  15542. if (!ASN1Dec_Setup_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15543. return 0;
  15544. ASN1_CloseDecoder(dd);
  15545. ASN1Free(db);
  15546. }
  15547. if ((val)->o[1] & 0x2) {
  15548. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15549. return 0;
  15550. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15551. return 0;
  15552. if (!ASN1Dec_Setup_UUIE_fastStart(dd, &(val)->fastStart))
  15553. return 0;
  15554. ASN1_CloseDecoder(dd);
  15555. ASN1Free(db);
  15556. }
  15557. if ((val)->o[1] & 0x1) {
  15558. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15559. return 0;
  15560. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15561. return 0;
  15562. if (!ASN1PERDecBoolean(dd, &(val)->mediaWaitForConnect))
  15563. return 0;
  15564. ASN1_CloseDecoder(dd);
  15565. ASN1Free(db);
  15566. }
  15567. if ((val)->o[2] & 0x80) {
  15568. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15569. return 0;
  15570. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15571. return 0;
  15572. if (!ASN1PERDecBoolean(dd, &(val)->canOverlapSend))
  15573. return 0;
  15574. ASN1_CloseDecoder(dd);
  15575. ASN1Free(db);
  15576. }
  15577. for (i = 0; i < e; i++) {
  15578. if (!ASN1PERDecSkipFragmented(dec, 8))
  15579. return 0;
  15580. }
  15581. }
  15582. return 1;
  15583. }
  15584. static void ASN1CALL ASN1Free_Setup_UUIE(Setup_UUIE *val)
  15585. {
  15586. if (val) {
  15587. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15588. if ((val)->o[0] & 0x80) {
  15589. ASN1Free_TransportAddress(&(val)->h245Address);
  15590. }
  15591. if ((val)->o[0] & 0x40) {
  15592. ASN1Free_Setup_UUIE_sourceAddress(&(val)->sourceAddress);
  15593. }
  15594. ASN1Free_EndpointType(&(val)->sourceInfo);
  15595. if ((val)->o[0] & 0x20) {
  15596. ASN1Free_Setup_UUIE_destinationAddress(&(val)->destinationAddress);
  15597. }
  15598. if ((val)->o[0] & 0x10) {
  15599. ASN1Free_TransportAddress(&(val)->destCallSignalAddress);
  15600. }
  15601. if ((val)->o[0] & 0x8) {
  15602. ASN1Free_Setup_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15603. }
  15604. if ((val)->o[0] & 0x4) {
  15605. ASN1Free_Setup_UUIE_destExtraCRV(&(val)->destExtraCRV);
  15606. }
  15607. if ((val)->o[1] & 0x80) {
  15608. ASN1Free_TransportAddress(&(val)->sourceCallSignalAddress);
  15609. }
  15610. if ((val)->o[1] & 0x40) {
  15611. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15612. }
  15613. if ((val)->o[1] & 0x20) {
  15614. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15615. }
  15616. if ((val)->o[1] & 0x10) {
  15617. ASN1Free_Setup_UUIE_h245SecurityCapability(&(val)->h245SecurityCapability);
  15618. }
  15619. if ((val)->o[1] & 0x8) {
  15620. ASN1Free_Setup_UUIE_tokens(&(val)->tokens);
  15621. }
  15622. if ((val)->o[1] & 0x4) {
  15623. ASN1Free_Setup_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15624. }
  15625. if ((val)->o[1] & 0x2) {
  15626. ASN1Free_Setup_UUIE_fastStart(&(val)->fastStart);
  15627. }
  15628. }
  15629. }
  15630. static int ASN1CALL ASN1Enc_Facility_UUIE(ASN1encoding_t enc, Facility_UUIE *val)
  15631. {
  15632. ASN1octet_t o[2];
  15633. ASN1uint32_t y;
  15634. ASN1encoding_t ee;
  15635. CopyMemory(o, (val)->o, 2);
  15636. o[1] |= 0x80;
  15637. y = ASN1PEREncCheckExtensions(8, (val)->o + 1);
  15638. if (!ASN1PEREncBitVal(enc, 1, y))
  15639. return 0;
  15640. if (!ASN1PEREncBits(enc, 3, o))
  15641. return 0;
  15642. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15643. return 0;
  15644. if (o[0] & 0x80) {
  15645. if (!ASN1Enc_TransportAddress(enc, &(val)->alternativeAddress))
  15646. return 0;
  15647. }
  15648. if (o[0] & 0x40) {
  15649. if (!ASN1Enc_Facility_UUIE_alternativeAliasAddress(enc, &(val)->alternativeAliasAddress))
  15650. return 0;
  15651. }
  15652. if (o[0] & 0x20) {
  15653. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15654. return 0;
  15655. }
  15656. if (!ASN1Enc_FacilityReason(enc, &(val)->reason))
  15657. return 0;
  15658. if (y) {
  15659. if (!ASN1PEREncNormallySmallBits(enc, 8, o + 1))
  15660. return 0;
  15661. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  15662. return 0;
  15663. if (o[1] & 0x80) {
  15664. if (!ASN1Enc_CallIdentifier(ee, &(val)->callIdentifier))
  15665. return 0;
  15666. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15667. return 0;
  15668. }
  15669. if (o[1] & 0x40) {
  15670. if (!ASN1Enc_Facility_UUIE_destExtraCallInfo(ee, &(val)->destExtraCallInfo))
  15671. return 0;
  15672. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15673. return 0;
  15674. }
  15675. if (o[1] & 0x20) {
  15676. if (!ASN1Enc_AliasAddress(ee, &(val)->remoteExtensionAddress))
  15677. return 0;
  15678. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15679. return 0;
  15680. }
  15681. if (o[1] & 0x10) {
  15682. if (!ASN1Enc_Facility_UUIE_tokens(ee, &(val)->tokens))
  15683. return 0;
  15684. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15685. return 0;
  15686. }
  15687. if (o[1] & 0x8) {
  15688. if (!ASN1Enc_Facility_UUIE_cryptoTokens(ee, &(val)->cryptoTokens))
  15689. return 0;
  15690. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15691. return 0;
  15692. }
  15693. if (o[1] & 0x4) {
  15694. if (!ASN1Enc_Facility_UUIE_conferences(ee, &(val)->conferences))
  15695. return 0;
  15696. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15697. return 0;
  15698. }
  15699. if (o[1] & 0x2) {
  15700. if (!ASN1Enc_TransportAddress(ee, &(val)->h245Address))
  15701. return 0;
  15702. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15703. return 0;
  15704. }
  15705. if (o[1] & 0x1) {
  15706. if (!ASN1Enc_Facility_UUIE_fastStart(ee, &(val)->fastStart))
  15707. return 0;
  15708. if (!ASN1PEREncFlushFragmentedToParent(ee))
  15709. return 0;
  15710. }
  15711. ASN1_CloseEncoder2(ee);
  15712. }
  15713. return 1;
  15714. }
  15715. static int ASN1CALL ASN1Dec_Facility_UUIE(ASN1decoding_t dec, Facility_UUIE *val)
  15716. {
  15717. ASN1uint32_t y;
  15718. ASN1decoding_t dd;
  15719. ASN1octet_t *db;
  15720. ASN1uint32_t ds;
  15721. ASN1uint32_t i;
  15722. ASN1uint32_t e;
  15723. if (!ASN1PERDecExtensionBit(dec, &y))
  15724. return 0;
  15725. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15726. return 0;
  15727. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15728. return 0;
  15729. if ((val)->o[0] & 0x80) {
  15730. if (!ASN1Dec_TransportAddress(dec, &(val)->alternativeAddress))
  15731. return 0;
  15732. }
  15733. if ((val)->o[0] & 0x40) {
  15734. if (!ASN1Dec_Facility_UUIE_alternativeAliasAddress(dec, &(val)->alternativeAliasAddress))
  15735. return 0;
  15736. }
  15737. if ((val)->o[0] & 0x20) {
  15738. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15739. return 0;
  15740. }
  15741. if (!ASN1Dec_FacilityReason(dec, &(val)->reason))
  15742. return 0;
  15743. if (!y) {
  15744. ZeroMemory((val)->o + 1, 1);
  15745. } else {
  15746. if (!ASN1PERDecNormallySmallExtension(dec, &e, 8, (val)->o + 1))
  15747. return 0;
  15748. if ((val)->o[1] & 0x80) {
  15749. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15750. return 0;
  15751. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15752. return 0;
  15753. if (!ASN1Dec_CallIdentifier(dd, &(val)->callIdentifier))
  15754. return 0;
  15755. ASN1_CloseDecoder(dd);
  15756. ASN1Free(db);
  15757. }
  15758. if ((val)->o[1] & 0x40) {
  15759. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15760. return 0;
  15761. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15762. return 0;
  15763. if (!ASN1Dec_Facility_UUIE_destExtraCallInfo(dd, &(val)->destExtraCallInfo))
  15764. return 0;
  15765. ASN1_CloseDecoder(dd);
  15766. ASN1Free(db);
  15767. }
  15768. if ((val)->o[1] & 0x20) {
  15769. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15770. return 0;
  15771. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15772. return 0;
  15773. if (!ASN1Dec_AliasAddress(dd, &(val)->remoteExtensionAddress))
  15774. return 0;
  15775. ASN1_CloseDecoder(dd);
  15776. ASN1Free(db);
  15777. }
  15778. if ((val)->o[1] & 0x10) {
  15779. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15780. return 0;
  15781. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15782. return 0;
  15783. if (!ASN1Dec_Facility_UUIE_tokens(dd, &(val)->tokens))
  15784. return 0;
  15785. ASN1_CloseDecoder(dd);
  15786. ASN1Free(db);
  15787. }
  15788. if ((val)->o[1] & 0x8) {
  15789. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15790. return 0;
  15791. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15792. return 0;
  15793. if (!ASN1Dec_Facility_UUIE_cryptoTokens(dd, &(val)->cryptoTokens))
  15794. return 0;
  15795. ASN1_CloseDecoder(dd);
  15796. ASN1Free(db);
  15797. }
  15798. if ((val)->o[1] & 0x4) {
  15799. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15800. return 0;
  15801. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15802. return 0;
  15803. if (!ASN1Dec_Facility_UUIE_conferences(dd, &(val)->conferences))
  15804. return 0;
  15805. ASN1_CloseDecoder(dd);
  15806. ASN1Free(db);
  15807. }
  15808. if ((val)->o[1] & 0x2) {
  15809. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15810. return 0;
  15811. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15812. return 0;
  15813. if (!ASN1Dec_TransportAddress(dd, &(val)->h245Address))
  15814. return 0;
  15815. ASN1_CloseDecoder(dd);
  15816. ASN1Free(db);
  15817. }
  15818. if ((val)->o[1] & 0x1) {
  15819. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  15820. return 0;
  15821. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  15822. return 0;
  15823. if (!ASN1Dec_Facility_UUIE_fastStart(dd, &(val)->fastStart))
  15824. return 0;
  15825. ASN1_CloseDecoder(dd);
  15826. ASN1Free(db);
  15827. }
  15828. for (i = 0; i < e; i++) {
  15829. if (!ASN1PERDecSkipFragmented(dec, 8))
  15830. return 0;
  15831. }
  15832. }
  15833. return 1;
  15834. }
  15835. static void ASN1CALL ASN1Free_Facility_UUIE(Facility_UUIE *val)
  15836. {
  15837. if (val) {
  15838. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  15839. if ((val)->o[0] & 0x80) {
  15840. ASN1Free_TransportAddress(&(val)->alternativeAddress);
  15841. }
  15842. if ((val)->o[0] & 0x40) {
  15843. ASN1Free_Facility_UUIE_alternativeAliasAddress(&(val)->alternativeAliasAddress);
  15844. }
  15845. if ((val)->o[0] & 0x20) {
  15846. }
  15847. if ((val)->o[1] & 0x80) {
  15848. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  15849. }
  15850. if ((val)->o[1] & 0x40) {
  15851. ASN1Free_Facility_UUIE_destExtraCallInfo(&(val)->destExtraCallInfo);
  15852. }
  15853. if ((val)->o[1] & 0x20) {
  15854. ASN1Free_AliasAddress(&(val)->remoteExtensionAddress);
  15855. }
  15856. if ((val)->o[1] & 0x10) {
  15857. ASN1Free_Facility_UUIE_tokens(&(val)->tokens);
  15858. }
  15859. if ((val)->o[1] & 0x8) {
  15860. ASN1Free_Facility_UUIE_cryptoTokens(&(val)->cryptoTokens);
  15861. }
  15862. if ((val)->o[1] & 0x4) {
  15863. ASN1Free_Facility_UUIE_conferences(&(val)->conferences);
  15864. }
  15865. if ((val)->o[1] & 0x2) {
  15866. ASN1Free_TransportAddress(&(val)->h245Address);
  15867. }
  15868. if ((val)->o[1] & 0x1) {
  15869. ASN1Free_Facility_UUIE_fastStart(&(val)->fastStart);
  15870. }
  15871. }
  15872. }
  15873. static int ASN1CALL ASN1Enc_ConferenceList(ASN1encoding_t enc, ConferenceList *val)
  15874. {
  15875. if (!ASN1PEREncExtensionBitClear(enc))
  15876. return 0;
  15877. if (!ASN1PEREncBits(enc, 3, (val)->o))
  15878. return 0;
  15879. if ((val)->o[0] & 0x80) {
  15880. if (!ASN1PEREncOctetString_FixedSize(enc, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15881. return 0;
  15882. }
  15883. if ((val)->o[0] & 0x40) {
  15884. if (!ASN1Enc_AliasAddress(enc, &(val)->conferenceAlias))
  15885. return 0;
  15886. }
  15887. if ((val)->o[0] & 0x20) {
  15888. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  15889. return 0;
  15890. }
  15891. return 1;
  15892. }
  15893. static int ASN1CALL ASN1Dec_ConferenceList(ASN1decoding_t dec, ConferenceList *val)
  15894. {
  15895. ASN1uint32_t y;
  15896. if (!ASN1PERDecExtensionBit(dec, &y))
  15897. return 0;
  15898. if (!ASN1PERDecExtension(dec, 3, (val)->o))
  15899. return 0;
  15900. if ((val)->o[0] & 0x80) {
  15901. if (!ASN1PERDecOctetString_FixedSize(dec, (ASN1octetstring2_t *) &(val)->conferenceID, 16))
  15902. return 0;
  15903. }
  15904. if ((val)->o[0] & 0x40) {
  15905. if (!ASN1Dec_AliasAddress(dec, &(val)->conferenceAlias))
  15906. return 0;
  15907. }
  15908. if ((val)->o[0] & 0x20) {
  15909. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  15910. return 0;
  15911. }
  15912. if (y) {
  15913. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  15914. return 0;
  15915. }
  15916. return 1;
  15917. }
  15918. static void ASN1CALL ASN1Free_ConferenceList(ConferenceList *val)
  15919. {
  15920. if (val) {
  15921. if ((val)->o[0] & 0x80) {
  15922. }
  15923. if ((val)->o[0] & 0x40) {
  15924. ASN1Free_AliasAddress(&(val)->conferenceAlias);
  15925. }
  15926. if ((val)->o[0] & 0x20) {
  15927. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  15928. }
  15929. }
  15930. }
  15931. static int ASN1CALL ASN1Enc_Progress_UUIE(ASN1encoding_t enc, Progress_UUIE *val)
  15932. {
  15933. if (!ASN1PEREncExtensionBitClear(enc))
  15934. return 0;
  15935. if (!ASN1PEREncBits(enc, 5, (val)->o))
  15936. return 0;
  15937. if (!ASN1PEREncObjectIdentifier(enc, &(val)->protocolIdentifier))
  15938. return 0;
  15939. if (!ASN1Enc_EndpointType(enc, &(val)->destinationInfo))
  15940. return 0;
  15941. if ((val)->o[0] & 0x80) {
  15942. if (!ASN1Enc_TransportAddress(enc, &(val)->h245Address))
  15943. return 0;
  15944. }
  15945. if (!ASN1Enc_CallIdentifier(enc, &(val)->callIdentifier))
  15946. return 0;
  15947. if ((val)->o[0] & 0x40) {
  15948. if (!ASN1Enc_H245Security(enc, &(val)->h245SecurityMode))
  15949. return 0;
  15950. }
  15951. if ((val)->o[0] & 0x20) {
  15952. if (!ASN1Enc_Progress_UUIE_tokens(enc, &(val)->tokens))
  15953. return 0;
  15954. }
  15955. if ((val)->o[0] & 0x10) {
  15956. if (!ASN1Enc_Progress_UUIE_cryptoTokens(enc, &(val)->cryptoTokens))
  15957. return 0;
  15958. }
  15959. if ((val)->o[0] & 0x8) {
  15960. if (!ASN1Enc_Progress_UUIE_fastStart(enc, &(val)->fastStart))
  15961. return 0;
  15962. }
  15963. return 1;
  15964. }
  15965. static int ASN1CALL ASN1Dec_Progress_UUIE(ASN1decoding_t dec, Progress_UUIE *val)
  15966. {
  15967. ASN1uint32_t y;
  15968. if (!ASN1PERDecExtensionBit(dec, &y))
  15969. return 0;
  15970. if (!ASN1PERDecExtension(dec, 5, (val)->o))
  15971. return 0;
  15972. if (!ASN1PERDecObjectIdentifier(dec, &(val)->protocolIdentifier))
  15973. return 0;
  15974. if (!ASN1Dec_EndpointType(dec, &(val)->destinationInfo))
  15975. return 0;
  15976. if ((val)->o[0] & 0x80) {
  15977. if (!ASN1Dec_TransportAddress(dec, &(val)->h245Address))
  15978. return 0;
  15979. }
  15980. if (!ASN1Dec_CallIdentifier(dec, &(val)->callIdentifier))
  15981. return 0;
  15982. if ((val)->o[0] & 0x40) {
  15983. if (!ASN1Dec_H245Security(dec, &(val)->h245SecurityMode))
  15984. return 0;
  15985. }
  15986. if ((val)->o[0] & 0x20) {
  15987. if (!ASN1Dec_Progress_UUIE_tokens(dec, &(val)->tokens))
  15988. return 0;
  15989. }
  15990. if ((val)->o[0] & 0x10) {
  15991. if (!ASN1Dec_Progress_UUIE_cryptoTokens(dec, &(val)->cryptoTokens))
  15992. return 0;
  15993. }
  15994. if ((val)->o[0] & 0x8) {
  15995. if (!ASN1Dec_Progress_UUIE_fastStart(dec, &(val)->fastStart))
  15996. return 0;
  15997. }
  15998. if (y) {
  15999. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  16000. return 0;
  16001. }
  16002. return 1;
  16003. }
  16004. static void ASN1CALL ASN1Free_Progress_UUIE(Progress_UUIE *val)
  16005. {
  16006. if (val) {
  16007. ASN1objectidentifier_free(&(val)->protocolIdentifier);
  16008. ASN1Free_EndpointType(&(val)->destinationInfo);
  16009. if ((val)->o[0] & 0x80) {
  16010. ASN1Free_TransportAddress(&(val)->h245Address);
  16011. }
  16012. ASN1Free_CallIdentifier(&(val)->callIdentifier);
  16013. if ((val)->o[0] & 0x40) {
  16014. ASN1Free_H245Security(&(val)->h245SecurityMode);
  16015. }
  16016. if ((val)->o[0] & 0x20) {
  16017. ASN1Free_Progress_UUIE_tokens(&(val)->tokens);
  16018. }
  16019. if ((val)->o[0] & 0x10) {
  16020. ASN1Free_Progress_UUIE_cryptoTokens(&(val)->cryptoTokens);
  16021. }
  16022. if ((val)->o[0] & 0x8) {
  16023. ASN1Free_Progress_UUIE_fastStart(&(val)->fastStart);
  16024. }
  16025. }
  16026. }
  16027. static int ASN1CALL ASN1Enc_CryptoH323Token(ASN1encoding_t enc, CryptoH323Token *val)
  16028. {
  16029. if (!ASN1PEREncSimpleChoiceEx(enc, (val)->choice, 3))
  16030. return 0;
  16031. switch ((val)->choice) {
  16032. case 1:
  16033. if (!ASN1Enc_CryptoH323Token_cryptoEPPwdHash(enc, &(val)->u.cryptoEPPwdHash))
  16034. return 0;
  16035. break;
  16036. case 2:
  16037. if (!ASN1Enc_CryptoH323Token_cryptoGKPwdHash(enc, &(val)->u.cryptoGKPwdHash))
  16038. return 0;
  16039. break;
  16040. case 3:
  16041. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoEPPwdEncr))
  16042. return 0;
  16043. break;
  16044. case 4:
  16045. if (!ASN1Enc_ENCRYPTED(enc, &(val)->u.cryptoGKPwdEncr))
  16046. return 0;
  16047. break;
  16048. case 5:
  16049. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoEPCert))
  16050. return 0;
  16051. break;
  16052. case 6:
  16053. if (!ASN1Enc_SIGNED_EncodedPwdCertToken(enc, &(val)->u.cryptoGKCert))
  16054. return 0;
  16055. break;
  16056. case 7:
  16057. if (!ASN1Enc_SIGNED_EncodedFastStartToken(enc, &(val)->u.cryptoFastStart))
  16058. return 0;
  16059. break;
  16060. case 8:
  16061. if (!ASN1Enc_CryptoToken(enc, &(val)->u.nestedcryptoToken))
  16062. return 0;
  16063. break;
  16064. default:
  16065. /* impossible */
  16066. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16067. return 0;
  16068. }
  16069. return 1;
  16070. }
  16071. static int ASN1CALL ASN1Dec_CryptoH323Token(ASN1decoding_t dec, CryptoH323Token *val)
  16072. {
  16073. if (!ASN1PERDecSimpleChoiceEx(dec, &(val)->choice, 3))
  16074. return 0;
  16075. switch ((val)->choice) {
  16076. case 1:
  16077. if (!ASN1Dec_CryptoH323Token_cryptoEPPwdHash(dec, &(val)->u.cryptoEPPwdHash))
  16078. return 0;
  16079. break;
  16080. case 2:
  16081. if (!ASN1Dec_CryptoH323Token_cryptoGKPwdHash(dec, &(val)->u.cryptoGKPwdHash))
  16082. return 0;
  16083. break;
  16084. case 3:
  16085. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoEPPwdEncr))
  16086. return 0;
  16087. break;
  16088. case 4:
  16089. if (!ASN1Dec_ENCRYPTED(dec, &(val)->u.cryptoGKPwdEncr))
  16090. return 0;
  16091. break;
  16092. case 5:
  16093. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoEPCert))
  16094. return 0;
  16095. break;
  16096. case 6:
  16097. if (!ASN1Dec_SIGNED_EncodedPwdCertToken(dec, &(val)->u.cryptoGKCert))
  16098. return 0;
  16099. break;
  16100. case 7:
  16101. if (!ASN1Dec_SIGNED_EncodedFastStartToken(dec, &(val)->u.cryptoFastStart))
  16102. return 0;
  16103. break;
  16104. case 8:
  16105. if (!ASN1Dec_CryptoToken(dec, &(val)->u.nestedcryptoToken))
  16106. return 0;
  16107. break;
  16108. case 0:
  16109. /* extension case */
  16110. if (!ASN1PERDecSkipFragmented(dec, 8))
  16111. return 0;
  16112. break;
  16113. default:
  16114. /* impossible */
  16115. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16116. return 0;
  16117. }
  16118. return 1;
  16119. }
  16120. static void ASN1CALL ASN1Free_CryptoH323Token(CryptoH323Token *val)
  16121. {
  16122. if (val) {
  16123. switch ((val)->choice) {
  16124. case 1:
  16125. ASN1Free_CryptoH323Token_cryptoEPPwdHash(&(val)->u.cryptoEPPwdHash);
  16126. break;
  16127. case 2:
  16128. ASN1Free_CryptoH323Token_cryptoGKPwdHash(&(val)->u.cryptoGKPwdHash);
  16129. break;
  16130. case 3:
  16131. ASN1Free_ENCRYPTED(&(val)->u.cryptoEPPwdEncr);
  16132. break;
  16133. case 4:
  16134. ASN1Free_ENCRYPTED(&(val)->u.cryptoGKPwdEncr);
  16135. break;
  16136. case 5:
  16137. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoEPCert);
  16138. break;
  16139. case 6:
  16140. ASN1Free_SIGNED_EncodedPwdCertToken(&(val)->u.cryptoGKCert);
  16141. break;
  16142. case 7:
  16143. ASN1Free_SIGNED_EncodedFastStartToken(&(val)->u.cryptoFastStart);
  16144. break;
  16145. case 8:
  16146. ASN1Free_CryptoToken(&(val)->u.nestedcryptoToken);
  16147. break;
  16148. }
  16149. }
  16150. }
  16151. static int ASN1CALL ASN1Enc_RasMessage(ASN1encoding_t enc, RasMessage *val)
  16152. {
  16153. ASN1encoding_t ee;
  16154. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 5, 25))
  16155. return 0;
  16156. switch ((val)->choice) {
  16157. case 1:
  16158. if (!ASN1Enc_GatekeeperRequest(enc, &(val)->u.gatekeeperRequest))
  16159. return 0;
  16160. break;
  16161. case 2:
  16162. if (!ASN1Enc_GatekeeperConfirm(enc, &(val)->u.gatekeeperConfirm))
  16163. return 0;
  16164. break;
  16165. case 3:
  16166. if (!ASN1Enc_GatekeeperReject(enc, &(val)->u.gatekeeperReject))
  16167. return 0;
  16168. break;
  16169. case 4:
  16170. if (!ASN1Enc_RegistrationRequest(enc, &(val)->u.registrationRequest))
  16171. return 0;
  16172. break;
  16173. case 5:
  16174. if (!ASN1Enc_RegistrationConfirm(enc, &(val)->u.registrationConfirm))
  16175. return 0;
  16176. break;
  16177. case 6:
  16178. if (!ASN1Enc_RegistrationReject(enc, &(val)->u.registrationReject))
  16179. return 0;
  16180. break;
  16181. case 7:
  16182. if (!ASN1Enc_UnregistrationRequest(enc, &(val)->u.unregistrationRequest))
  16183. return 0;
  16184. break;
  16185. case 8:
  16186. if (!ASN1Enc_UnregistrationConfirm(enc, &(val)->u.unregistrationConfirm))
  16187. return 0;
  16188. break;
  16189. case 9:
  16190. if (!ASN1Enc_UnregistrationReject(enc, &(val)->u.unregistrationReject))
  16191. return 0;
  16192. break;
  16193. case 10:
  16194. if (!ASN1Enc_AdmissionRequest(enc, &(val)->u.admissionRequest))
  16195. return 0;
  16196. break;
  16197. case 11:
  16198. if (!ASN1Enc_AdmissionConfirm(enc, &(val)->u.admissionConfirm))
  16199. return 0;
  16200. break;
  16201. case 12:
  16202. if (!ASN1Enc_AdmissionReject(enc, &(val)->u.admissionReject))
  16203. return 0;
  16204. break;
  16205. case 13:
  16206. if (!ASN1Enc_BandwidthRequest(enc, &(val)->u.bandwidthRequest))
  16207. return 0;
  16208. break;
  16209. case 14:
  16210. if (!ASN1Enc_BandwidthConfirm(enc, &(val)->u.bandwidthConfirm))
  16211. return 0;
  16212. break;
  16213. case 15:
  16214. if (!ASN1Enc_BandwidthReject(enc, &(val)->u.bandwidthReject))
  16215. return 0;
  16216. break;
  16217. case 16:
  16218. if (!ASN1Enc_DisengageRequest(enc, &(val)->u.disengageRequest))
  16219. return 0;
  16220. break;
  16221. case 17:
  16222. if (!ASN1Enc_DisengageConfirm(enc, &(val)->u.disengageConfirm))
  16223. return 0;
  16224. break;
  16225. case 18:
  16226. if (!ASN1Enc_DisengageReject(enc, &(val)->u.disengageReject))
  16227. return 0;
  16228. break;
  16229. case 19:
  16230. if (!ASN1Enc_LocationRequest(enc, &(val)->u.locationRequest))
  16231. return 0;
  16232. break;
  16233. case 20:
  16234. if (!ASN1Enc_LocationConfirm(enc, &(val)->u.locationConfirm))
  16235. return 0;
  16236. break;
  16237. case 21:
  16238. if (!ASN1Enc_LocationReject(enc, &(val)->u.locationReject))
  16239. return 0;
  16240. break;
  16241. case 22:
  16242. if (!ASN1Enc_InfoRequest(enc, &(val)->u.infoRequest))
  16243. return 0;
  16244. break;
  16245. case 23:
  16246. if (!ASN1Enc_InfoRequestResponse(enc, &(val)->u.infoRequestResponse))
  16247. return 0;
  16248. break;
  16249. case 24:
  16250. if (!ASN1Enc_H225NonStandardMessage(enc, &(val)->u.nonStandardMessage))
  16251. return 0;
  16252. break;
  16253. case 25:
  16254. if (!ASN1Enc_UnknownMessageResponse(enc, &(val)->u.unknownMessageResponse))
  16255. return 0;
  16256. break;
  16257. case 26:
  16258. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16259. return 0;
  16260. if (!ASN1Enc_RequestInProgress(ee, &(val)->u.requestInProgress))
  16261. return 0;
  16262. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16263. return 0;
  16264. ASN1_CloseEncoder2(ee);
  16265. break;
  16266. case 27:
  16267. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16268. return 0;
  16269. if (!ASN1Enc_ResourcesAvailableIndicate(ee, &(val)->u.resourcesAvailableIndicate))
  16270. return 0;
  16271. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16272. return 0;
  16273. ASN1_CloseEncoder2(ee);
  16274. break;
  16275. case 28:
  16276. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16277. return 0;
  16278. if (!ASN1Enc_ResourcesAvailableConfirm(ee, &(val)->u.resourcesAvailableConfirm))
  16279. return 0;
  16280. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16281. return 0;
  16282. ASN1_CloseEncoder2(ee);
  16283. break;
  16284. case 29:
  16285. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16286. return 0;
  16287. if (!ASN1Enc_InfoRequestAck(ee, &(val)->u.infoRequestAck))
  16288. return 0;
  16289. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16290. return 0;
  16291. ASN1_CloseEncoder2(ee);
  16292. break;
  16293. case 30:
  16294. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  16295. return 0;
  16296. if (!ASN1Enc_InfoRequestNak(ee, &(val)->u.infoRequestNak))
  16297. return 0;
  16298. if (!ASN1PEREncFlushFragmentedToParent(ee))
  16299. return 0;
  16300. ASN1_CloseEncoder2(ee);
  16301. break;
  16302. default:
  16303. /* impossible */
  16304. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  16305. return 0;
  16306. }
  16307. return 1;
  16308. }
  16309. static int ASN1CALL ASN1Dec_RasMessage(ASN1decoding_t dec, RasMessage *val)
  16310. {
  16311. ASN1decoding_t dd;
  16312. ASN1octet_t *db;
  16313. ASN1uint32_t ds;
  16314. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 5, 25))
  16315. return 0;
  16316. switch ((val)->choice) {
  16317. case 1:
  16318. if (!ASN1Dec_GatekeeperRequest(dec, &(val)->u.gatekeeperRequest))
  16319. return 0;
  16320. break;
  16321. case 2:
  16322. if (!ASN1Dec_GatekeeperConfirm(dec, &(val)->u.gatekeeperConfirm))
  16323. return 0;
  16324. break;
  16325. case 3:
  16326. if (!ASN1Dec_GatekeeperReject(dec, &(val)->u.gatekeeperReject))
  16327. return 0;
  16328. break;
  16329. case 4:
  16330. if (!ASN1Dec_RegistrationRequest(dec, &(val)->u.registrationRequest))
  16331. return 0;
  16332. break;
  16333. case 5:
  16334. if (!ASN1Dec_RegistrationConfirm(dec, &(val)->u.registrationConfirm))
  16335. return 0;
  16336. break;
  16337. case 6:
  16338. if (!ASN1Dec_RegistrationReject(dec, &(val)->u.registrationReject))
  16339. return 0;
  16340. break;
  16341. case 7:
  16342. if (!ASN1Dec_UnregistrationRequest(dec, &(val)->u.unregistrationRequest))
  16343. return 0;
  16344. break;
  16345. case 8:
  16346. if (!ASN1Dec_UnregistrationConfirm(dec, &(val)->u.unregistrationConfirm))
  16347. return 0;
  16348. break;
  16349. case 9:
  16350. if (!ASN1Dec_UnregistrationReject(dec, &(val)->u.unregistrationReject))
  16351. return 0;
  16352. break;
  16353. case 10:
  16354. if (!ASN1Dec_AdmissionRequest(dec, &(val)->u.admissionRequest))
  16355. return 0;
  16356. break;
  16357. case 11:
  16358. if (!ASN1Dec_AdmissionConfirm(dec, &(val)->u.admissionConfirm))
  16359. return 0;
  16360. break;
  16361. case 12:
  16362. if (!ASN1Dec_AdmissionReject(dec, &(val)->u.admissionReject))
  16363. return 0;
  16364. break;
  16365. case 13:
  16366. if (!ASN1Dec_BandwidthRequest(dec, &(val)->u.bandwidthRequest))
  16367. return 0;
  16368. break;
  16369. case 14:
  16370. if (!ASN1Dec_BandwidthConfirm(dec, &(val)->u.bandwidthConfirm))
  16371. return 0;
  16372. break;
  16373. case 15:
  16374. if (!ASN1Dec_BandwidthReject(dec, &(val)->u.bandwidthReject))
  16375. return 0;
  16376. break;
  16377. case 16:
  16378. if (!ASN1Dec_DisengageRequest(dec, &(val)->u.disengageRequest))
  16379. return 0;
  16380. break;
  16381. case 17:
  16382. if (!ASN1Dec_DisengageConfirm(dec, &(val)->u.disengageConfirm))
  16383. return 0;
  16384. break;
  16385. case 18:
  16386. if (!ASN1Dec_DisengageReject(dec, &(val)->u.disengageReject))
  16387. return 0;
  16388. break;
  16389. case 19:
  16390. if (!ASN1Dec_LocationRequest(dec, &(val)->u.locationRequest))
  16391. return 0;
  16392. break;
  16393. case 20:
  16394. if (!ASN1Dec_LocationConfirm(dec, &(val)->u.locationConfirm))
  16395. return 0;
  16396. break;
  16397. case 21:
  16398. if (!ASN1Dec_LocationReject(dec, &(val)->u.locationReject))
  16399. return 0;
  16400. break;
  16401. case 22:
  16402. if (!ASN1Dec_InfoRequest(dec, &(val)->u.infoRequest))
  16403. return 0;
  16404. break;
  16405. case 23:
  16406. if (!ASN1Dec_InfoRequestResponse(dec, &(val)->u.infoRequestResponse))
  16407. return 0;
  16408. break;
  16409. case 24:
  16410. if (!ASN1Dec_H225NonStandardMessage(dec, &(val)->u.nonStandardMessage))
  16411. return 0;
  16412. break;
  16413. case 25:
  16414. if (!ASN1Dec_UnknownMessageResponse(dec, &(val)->u.unknownMessageResponse))
  16415. return 0;
  16416. break;
  16417. case 26:
  16418. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16419. return 0;
  16420. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16421. return 0;
  16422. if (!ASN1Dec_RequestInProgress(dd, &(val)->u.requestInProgress))
  16423. return 0;
  16424. ASN1_CloseDecoder(dd);
  16425. ASN1Free(db);
  16426. break;
  16427. case 27:
  16428. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16429. return 0;
  16430. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16431. return 0;
  16432. if (!ASN1Dec_ResourcesAvailableIndicate(dd, &(val)->u.resourcesAvailableIndicate))
  16433. return 0;
  16434. ASN1_CloseDecoder(dd);
  16435. ASN1Free(db);
  16436. break;
  16437. case 28:
  16438. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16439. return 0;
  16440. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16441. return 0;
  16442. if (!ASN1Dec_ResourcesAvailableConfirm(dd, &(val)->u.resourcesAvailableConfirm))
  16443. return 0;
  16444. ASN1_CloseDecoder(dd);
  16445. ASN1Free(db);
  16446. break;
  16447. case 29:
  16448. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16449. return 0;
  16450. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16451. return 0;
  16452. if (!ASN1Dec_InfoRequestAck(dd, &(val)->u.infoRequestAck))
  16453. return 0;
  16454. ASN1_CloseDecoder(dd);
  16455. ASN1Free(db);
  16456. break;
  16457. case 30:
  16458. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  16459. return 0;
  16460. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  16461. return 0;
  16462. if (!ASN1Dec_InfoRequestNak(dd, &(val)->u.infoRequestNak))
  16463. return 0;
  16464. ASN1_CloseDecoder(dd);
  16465. ASN1Free(db);
  16466. break;
  16467. case 0:
  16468. /* extension case */
  16469. if (!ASN1PERDecSkipFragmented(dec, 8))
  16470. return 0;
  16471. break;
  16472. default:
  16473. /* impossible */
  16474. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  16475. return 0;
  16476. }
  16477. return 1;
  16478. }
  16479. static void ASN1CALL ASN1Free_RasMessage(RasMessage *val)
  16480. {
  16481. if (val) {
  16482. switch ((val)->choice) {
  16483. case 1:
  16484. ASN1Free_GatekeeperRequest(&(val)->u.gatekeeperRequest);
  16485. break;
  16486. case 2:
  16487. ASN1Free_GatekeeperConfirm(&(val)->u.gatekeeperConfirm);
  16488. break;
  16489. case 3:
  16490. ASN1Free_GatekeeperReject(&(val)->u.gatekeeperReject);
  16491. break;
  16492. case 4:
  16493. ASN1Free_RegistrationRequest(&(val)->u.registrationRequest);
  16494. break;
  16495. case 5:
  16496. ASN1Free_RegistrationConfirm(&(val)->u.registrationConfirm);
  16497. break;
  16498. case 6:
  16499. ASN1Free_RegistrationReject(&(val)->u.registrationReject);
  16500. break;
  16501. case 7:
  16502. ASN1Free_UnregistrationRequest(&(val)->u.unregistrationRequest);
  16503. break;
  16504. case 8:
  16505. ASN1Free_UnregistrationConfirm(&(val)->u.unregistrationConfirm);
  16506. break;
  16507. case 9:
  16508. ASN1Free_UnregistrationReject(&(val)->u.unregistrationReject);
  16509. break;
  16510. case 10:
  16511. ASN1Free_AdmissionRequest(&(val)->u.admissionRequest);
  16512. break;
  16513. case 11:
  16514. ASN1Free_AdmissionConfirm(&(val)->u.admissionConfirm);
  16515. break;
  16516. case 12:
  16517. ASN1Free_AdmissionReject(&(val)->u.admissionReject);
  16518. break;
  16519. case 13:
  16520. ASN1Free_BandwidthRequest(&(val)->u.bandwidthRequest);
  16521. break;
  16522. case 14:
  16523. ASN1Free_BandwidthConfirm(&(val)->u.bandwidthConfirm);
  16524. break;
  16525. case 15:
  16526. ASN1Free_BandwidthReject(&(val)->u.bandwidthReject);
  16527. break;
  16528. case 16:
  16529. ASN1Free_DisengageRequest(&(val)->u.disengageRequest);
  16530. break;
  16531. case 17:
  16532. ASN1Free_DisengageConfirm(&(val)->u.disengageConfirm);
  16533. break;
  16534. case 18:
  16535. ASN1Free_DisengageReject(&(val)->u.disengageReject);
  16536. break;
  16537. case 19:
  16538. ASN1Free_LocationRequest(&(val)->u.locationRequest);
  16539. break;
  16540. case 20:
  16541. ASN1Free_LocationConfirm(&(val)->u.locationConfirm);
  16542. break;
  16543. case 21:
  16544. ASN1Free_LocationReject(&(val)->u.locationReject);
  16545. break;
  16546. case 22:
  16547. ASN1Free_InfoRequest(&(val)->u.infoRequest);
  16548. break;
  16549. case 23:
  16550. ASN1Free_InfoRequestResponse(&(val)->u.infoRequestResponse);
  16551. break;
  16552. case 24:
  16553. ASN1Free_H225NonStandardMessage(&(val)->u.nonStandardMessage);
  16554. break;
  16555. case 25:
  16556. ASN1Free_UnknownMessageResponse(&(val)->u.unknownMessageResponse);
  16557. break;
  16558. case 26:
  16559. ASN1Free_RequestInProgress(&(val)->u.requestInProgress);
  16560. break;
  16561. case 27:
  16562. ASN1Free_ResourcesAvailableIndicate(&(val)->u.resourcesAvailableIndicate);
  16563. break;
  16564. case 28:
  16565. ASN1Free_ResourcesAvailableConfirm(&(val)->u.resourcesAvailableConfirm);
  16566. break;
  16567. case 29:
  16568. ASN1Free_InfoRequestAck(&(val)->u.infoRequestAck);
  16569. break;
  16570. case 30:
  16571. ASN1Free_InfoRequestNak(&(val)->u.infoRequestNak);
  16572. break;
  16573. }
  16574. }
  16575. }
  16576. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16577. {
  16578. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16579. }
  16580. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16581. {
  16582. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16583. return 0;
  16584. return 1;
  16585. }
  16586. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16587. {
  16588. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn, sizeof(**val));
  16589. }
  16590. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16591. {
  16592. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16593. return 0;
  16594. return 1;
  16595. }
  16596. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens *val)
  16597. {
  16598. if (val) {
  16599. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn);
  16600. }
  16601. }
  16602. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_cryptoTokens_ElmFn(PInfoRequestResponse_perCallInfo_Seq_cryptoTokens val)
  16603. {
  16604. if (val) {
  16605. ASN1Free_CryptoH323Token(&val->value);
  16606. }
  16607. }
  16608. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens *val)
  16609. {
  16610. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16611. }
  16612. static int ASN1CALL ASN1Enc_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableConfirm_cryptoTokens val)
  16613. {
  16614. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16615. return 0;
  16616. return 1;
  16617. }
  16618. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens *val)
  16619. {
  16620. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16621. }
  16622. static int ASN1CALL ASN1Dec_ResourcesAvailableConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableConfirm_cryptoTokens val)
  16623. {
  16624. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16625. return 0;
  16626. return 1;
  16627. }
  16628. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens(PResourcesAvailableConfirm_cryptoTokens *val)
  16629. {
  16630. if (val) {
  16631. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn);
  16632. }
  16633. }
  16634. static void ASN1CALL ASN1Free_ResourcesAvailableConfirm_cryptoTokens_ElmFn(PResourcesAvailableConfirm_cryptoTokens val)
  16635. {
  16636. if (val) {
  16637. ASN1Free_CryptoH323Token(&val->value);
  16638. }
  16639. }
  16640. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens *val)
  16641. {
  16642. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16643. }
  16644. static int ASN1CALL ASN1Enc_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1encoding_t enc, PResourcesAvailableIndicate_cryptoTokens val)
  16645. {
  16646. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16647. return 0;
  16648. return 1;
  16649. }
  16650. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens *val)
  16651. {
  16652. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn, sizeof(**val));
  16653. }
  16654. static int ASN1CALL ASN1Dec_ResourcesAvailableIndicate_cryptoTokens_ElmFn(ASN1decoding_t dec, PResourcesAvailableIndicate_cryptoTokens val)
  16655. {
  16656. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16657. return 0;
  16658. return 1;
  16659. }
  16660. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens(PResourcesAvailableIndicate_cryptoTokens *val)
  16661. {
  16662. if (val) {
  16663. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn);
  16664. }
  16665. }
  16666. static void ASN1CALL ASN1Free_ResourcesAvailableIndicate_cryptoTokens_ElmFn(PResourcesAvailableIndicate_cryptoTokens val)
  16667. {
  16668. if (val) {
  16669. ASN1Free_CryptoH323Token(&val->value);
  16670. }
  16671. }
  16672. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens(ASN1encoding_t enc, PRequestInProgress_cryptoTokens *val)
  16673. {
  16674. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RequestInProgress_cryptoTokens_ElmFn);
  16675. }
  16676. static int ASN1CALL ASN1Enc_RequestInProgress_cryptoTokens_ElmFn(ASN1encoding_t enc, PRequestInProgress_cryptoTokens val)
  16677. {
  16678. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16679. return 0;
  16680. return 1;
  16681. }
  16682. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens(ASN1decoding_t dec, PRequestInProgress_cryptoTokens *val)
  16683. {
  16684. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RequestInProgress_cryptoTokens_ElmFn, sizeof(**val));
  16685. }
  16686. static int ASN1CALL ASN1Dec_RequestInProgress_cryptoTokens_ElmFn(ASN1decoding_t dec, PRequestInProgress_cryptoTokens val)
  16687. {
  16688. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16689. return 0;
  16690. return 1;
  16691. }
  16692. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens(PRequestInProgress_cryptoTokens *val)
  16693. {
  16694. if (val) {
  16695. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RequestInProgress_cryptoTokens_ElmFn);
  16696. }
  16697. }
  16698. static void ASN1CALL ASN1Free_RequestInProgress_cryptoTokens_ElmFn(PRequestInProgress_cryptoTokens val)
  16699. {
  16700. if (val) {
  16701. ASN1Free_CryptoH323Token(&val->value);
  16702. }
  16703. }
  16704. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens *val)
  16705. {
  16706. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn);
  16707. }
  16708. static int ASN1CALL ASN1Enc_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnknownMessageResponse_cryptoTokens val)
  16709. {
  16710. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16711. return 0;
  16712. return 1;
  16713. }
  16714. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens *val)
  16715. {
  16716. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn, sizeof(**val));
  16717. }
  16718. static int ASN1CALL ASN1Dec_UnknownMessageResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnknownMessageResponse_cryptoTokens val)
  16719. {
  16720. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16721. return 0;
  16722. return 1;
  16723. }
  16724. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens(PUnknownMessageResponse_cryptoTokens *val)
  16725. {
  16726. if (val) {
  16727. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn);
  16728. }
  16729. }
  16730. static void ASN1CALL ASN1Free_UnknownMessageResponse_cryptoTokens_ElmFn(PUnknownMessageResponse_cryptoTokens val)
  16731. {
  16732. if (val) {
  16733. ASN1Free_CryptoH323Token(&val->value);
  16734. }
  16735. }
  16736. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens *val)
  16737. {
  16738. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn);
  16739. }
  16740. static int ASN1CALL ASN1Enc_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1encoding_t enc, PH225NonStandardMessage_cryptoTokens val)
  16741. {
  16742. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16743. return 0;
  16744. return 1;
  16745. }
  16746. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens *val)
  16747. {
  16748. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn, sizeof(**val));
  16749. }
  16750. static int ASN1CALL ASN1Dec_H225NonStandardMessage_cryptoTokens_ElmFn(ASN1decoding_t dec, PH225NonStandardMessage_cryptoTokens val)
  16751. {
  16752. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16753. return 0;
  16754. return 1;
  16755. }
  16756. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens(PH225NonStandardMessage_cryptoTokens *val)
  16757. {
  16758. if (val) {
  16759. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn);
  16760. }
  16761. }
  16762. static void ASN1CALL ASN1Free_H225NonStandardMessage_cryptoTokens_ElmFn(PH225NonStandardMessage_cryptoTokens val)
  16763. {
  16764. if (val) {
  16765. ASN1Free_CryptoH323Token(&val->value);
  16766. }
  16767. }
  16768. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens *val)
  16769. {
  16770. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn);
  16771. }
  16772. static int ASN1CALL ASN1Enc_InfoRequestNak_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestNak_cryptoTokens val)
  16773. {
  16774. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16775. return 0;
  16776. return 1;
  16777. }
  16778. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens *val)
  16779. {
  16780. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn, sizeof(**val));
  16781. }
  16782. static int ASN1CALL ASN1Dec_InfoRequestNak_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestNak_cryptoTokens val)
  16783. {
  16784. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16785. return 0;
  16786. return 1;
  16787. }
  16788. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens(PInfoRequestNak_cryptoTokens *val)
  16789. {
  16790. if (val) {
  16791. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestNak_cryptoTokens_ElmFn);
  16792. }
  16793. }
  16794. static void ASN1CALL ASN1Free_InfoRequestNak_cryptoTokens_ElmFn(PInfoRequestNak_cryptoTokens val)
  16795. {
  16796. if (val) {
  16797. ASN1Free_CryptoH323Token(&val->value);
  16798. }
  16799. }
  16800. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens *val)
  16801. {
  16802. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn);
  16803. }
  16804. static int ASN1CALL ASN1Enc_InfoRequestAck_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestAck_cryptoTokens val)
  16805. {
  16806. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16807. return 0;
  16808. return 1;
  16809. }
  16810. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens *val)
  16811. {
  16812. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn, sizeof(**val));
  16813. }
  16814. static int ASN1CALL ASN1Dec_InfoRequestAck_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestAck_cryptoTokens val)
  16815. {
  16816. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16817. return 0;
  16818. return 1;
  16819. }
  16820. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens(PInfoRequestAck_cryptoTokens *val)
  16821. {
  16822. if (val) {
  16823. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestAck_cryptoTokens_ElmFn);
  16824. }
  16825. }
  16826. static void ASN1CALL ASN1Free_InfoRequestAck_cryptoTokens_ElmFn(PInfoRequestAck_cryptoTokens val)
  16827. {
  16828. if (val) {
  16829. ASN1Free_CryptoH323Token(&val->value);
  16830. }
  16831. }
  16832. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens *val)
  16833. {
  16834. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn);
  16835. }
  16836. static int ASN1CALL ASN1Enc_InfoRequestResponse_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_cryptoTokens val)
  16837. {
  16838. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16839. return 0;
  16840. return 1;
  16841. }
  16842. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens *val)
  16843. {
  16844. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn, sizeof(**val));
  16845. }
  16846. static int ASN1CALL ASN1Dec_InfoRequestResponse_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_cryptoTokens val)
  16847. {
  16848. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16849. return 0;
  16850. return 1;
  16851. }
  16852. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens(PInfoRequestResponse_cryptoTokens *val)
  16853. {
  16854. if (val) {
  16855. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn);
  16856. }
  16857. }
  16858. static void ASN1CALL ASN1Free_InfoRequestResponse_cryptoTokens_ElmFn(PInfoRequestResponse_cryptoTokens val)
  16859. {
  16860. if (val) {
  16861. ASN1Free_CryptoH323Token(&val->value);
  16862. }
  16863. }
  16864. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens(ASN1encoding_t enc, PInfoRequest_cryptoTokens *val)
  16865. {
  16866. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequest_cryptoTokens_ElmFn);
  16867. }
  16868. static int ASN1CALL ASN1Enc_InfoRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PInfoRequest_cryptoTokens val)
  16869. {
  16870. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16871. return 0;
  16872. return 1;
  16873. }
  16874. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens(ASN1decoding_t dec, PInfoRequest_cryptoTokens *val)
  16875. {
  16876. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequest_cryptoTokens_ElmFn, sizeof(**val));
  16877. }
  16878. static int ASN1CALL ASN1Dec_InfoRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PInfoRequest_cryptoTokens val)
  16879. {
  16880. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16881. return 0;
  16882. return 1;
  16883. }
  16884. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens(PInfoRequest_cryptoTokens *val)
  16885. {
  16886. if (val) {
  16887. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequest_cryptoTokens_ElmFn);
  16888. }
  16889. }
  16890. static void ASN1CALL ASN1Free_InfoRequest_cryptoTokens_ElmFn(PInfoRequest_cryptoTokens val)
  16891. {
  16892. if (val) {
  16893. ASN1Free_CryptoH323Token(&val->value);
  16894. }
  16895. }
  16896. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens(ASN1encoding_t enc, PDisengageReject_cryptoTokens *val)
  16897. {
  16898. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageReject_cryptoTokens_ElmFn);
  16899. }
  16900. static int ASN1CALL ASN1Enc_DisengageReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageReject_cryptoTokens val)
  16901. {
  16902. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16903. return 0;
  16904. return 1;
  16905. }
  16906. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens(ASN1decoding_t dec, PDisengageReject_cryptoTokens *val)
  16907. {
  16908. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageReject_cryptoTokens_ElmFn, sizeof(**val));
  16909. }
  16910. static int ASN1CALL ASN1Dec_DisengageReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageReject_cryptoTokens val)
  16911. {
  16912. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16913. return 0;
  16914. return 1;
  16915. }
  16916. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens(PDisengageReject_cryptoTokens *val)
  16917. {
  16918. if (val) {
  16919. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageReject_cryptoTokens_ElmFn);
  16920. }
  16921. }
  16922. static void ASN1CALL ASN1Free_DisengageReject_cryptoTokens_ElmFn(PDisengageReject_cryptoTokens val)
  16923. {
  16924. if (val) {
  16925. ASN1Free_CryptoH323Token(&val->value);
  16926. }
  16927. }
  16928. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens *val)
  16929. {
  16930. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn);
  16931. }
  16932. static int ASN1CALL ASN1Enc_DisengageConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageConfirm_cryptoTokens val)
  16933. {
  16934. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16935. return 0;
  16936. return 1;
  16937. }
  16938. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens *val)
  16939. {
  16940. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn, sizeof(**val));
  16941. }
  16942. static int ASN1CALL ASN1Dec_DisengageConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageConfirm_cryptoTokens val)
  16943. {
  16944. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16945. return 0;
  16946. return 1;
  16947. }
  16948. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens(PDisengageConfirm_cryptoTokens *val)
  16949. {
  16950. if (val) {
  16951. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageConfirm_cryptoTokens_ElmFn);
  16952. }
  16953. }
  16954. static void ASN1CALL ASN1Free_DisengageConfirm_cryptoTokens_ElmFn(PDisengageConfirm_cryptoTokens val)
  16955. {
  16956. if (val) {
  16957. ASN1Free_CryptoH323Token(&val->value);
  16958. }
  16959. }
  16960. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens(ASN1encoding_t enc, PDisengageRequest_cryptoTokens *val)
  16961. {
  16962. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_DisengageRequest_cryptoTokens_ElmFn);
  16963. }
  16964. static int ASN1CALL ASN1Enc_DisengageRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PDisengageRequest_cryptoTokens val)
  16965. {
  16966. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16967. return 0;
  16968. return 1;
  16969. }
  16970. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens(ASN1decoding_t dec, PDisengageRequest_cryptoTokens *val)
  16971. {
  16972. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_DisengageRequest_cryptoTokens_ElmFn, sizeof(**val));
  16973. }
  16974. static int ASN1CALL ASN1Dec_DisengageRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PDisengageRequest_cryptoTokens val)
  16975. {
  16976. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  16977. return 0;
  16978. return 1;
  16979. }
  16980. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens(PDisengageRequest_cryptoTokens *val)
  16981. {
  16982. if (val) {
  16983. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_DisengageRequest_cryptoTokens_ElmFn);
  16984. }
  16985. }
  16986. static void ASN1CALL ASN1Free_DisengageRequest_cryptoTokens_ElmFn(PDisengageRequest_cryptoTokens val)
  16987. {
  16988. if (val) {
  16989. ASN1Free_CryptoH323Token(&val->value);
  16990. }
  16991. }
  16992. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens(ASN1encoding_t enc, PLocationReject_cryptoTokens *val)
  16993. {
  16994. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationReject_cryptoTokens_ElmFn);
  16995. }
  16996. static int ASN1CALL ASN1Enc_LocationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationReject_cryptoTokens val)
  16997. {
  16998. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  16999. return 0;
  17000. return 1;
  17001. }
  17002. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens(ASN1decoding_t dec, PLocationReject_cryptoTokens *val)
  17003. {
  17004. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationReject_cryptoTokens_ElmFn, sizeof(**val));
  17005. }
  17006. static int ASN1CALL ASN1Dec_LocationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationReject_cryptoTokens val)
  17007. {
  17008. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17009. return 0;
  17010. return 1;
  17011. }
  17012. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens(PLocationReject_cryptoTokens *val)
  17013. {
  17014. if (val) {
  17015. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationReject_cryptoTokens_ElmFn);
  17016. }
  17017. }
  17018. static void ASN1CALL ASN1Free_LocationReject_cryptoTokens_ElmFn(PLocationReject_cryptoTokens val)
  17019. {
  17020. if (val) {
  17021. ASN1Free_CryptoH323Token(&val->value);
  17022. }
  17023. }
  17024. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens(ASN1encoding_t enc, PLocationConfirm_cryptoTokens *val)
  17025. {
  17026. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationConfirm_cryptoTokens_ElmFn);
  17027. }
  17028. static int ASN1CALL ASN1Enc_LocationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationConfirm_cryptoTokens val)
  17029. {
  17030. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17031. return 0;
  17032. return 1;
  17033. }
  17034. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens(ASN1decoding_t dec, PLocationConfirm_cryptoTokens *val)
  17035. {
  17036. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17037. }
  17038. static int ASN1CALL ASN1Dec_LocationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationConfirm_cryptoTokens val)
  17039. {
  17040. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17041. return 0;
  17042. return 1;
  17043. }
  17044. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens(PLocationConfirm_cryptoTokens *val)
  17045. {
  17046. if (val) {
  17047. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationConfirm_cryptoTokens_ElmFn);
  17048. }
  17049. }
  17050. static void ASN1CALL ASN1Free_LocationConfirm_cryptoTokens_ElmFn(PLocationConfirm_cryptoTokens val)
  17051. {
  17052. if (val) {
  17053. ASN1Free_CryptoH323Token(&val->value);
  17054. }
  17055. }
  17056. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens(ASN1encoding_t enc, PLocationRequest_cryptoTokens *val)
  17057. {
  17058. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_LocationRequest_cryptoTokens_ElmFn);
  17059. }
  17060. static int ASN1CALL ASN1Enc_LocationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PLocationRequest_cryptoTokens val)
  17061. {
  17062. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17063. return 0;
  17064. return 1;
  17065. }
  17066. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens(ASN1decoding_t dec, PLocationRequest_cryptoTokens *val)
  17067. {
  17068. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_LocationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17069. }
  17070. static int ASN1CALL ASN1Dec_LocationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PLocationRequest_cryptoTokens val)
  17071. {
  17072. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17073. return 0;
  17074. return 1;
  17075. }
  17076. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens(PLocationRequest_cryptoTokens *val)
  17077. {
  17078. if (val) {
  17079. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_LocationRequest_cryptoTokens_ElmFn);
  17080. }
  17081. }
  17082. static void ASN1CALL ASN1Free_LocationRequest_cryptoTokens_ElmFn(PLocationRequest_cryptoTokens val)
  17083. {
  17084. if (val) {
  17085. ASN1Free_CryptoH323Token(&val->value);
  17086. }
  17087. }
  17088. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens(ASN1encoding_t enc, PBandwidthReject_cryptoTokens *val)
  17089. {
  17090. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthReject_cryptoTokens_ElmFn);
  17091. }
  17092. static int ASN1CALL ASN1Enc_BandwidthReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthReject_cryptoTokens val)
  17093. {
  17094. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17095. return 0;
  17096. return 1;
  17097. }
  17098. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens(ASN1decoding_t dec, PBandwidthReject_cryptoTokens *val)
  17099. {
  17100. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthReject_cryptoTokens_ElmFn, sizeof(**val));
  17101. }
  17102. static int ASN1CALL ASN1Dec_BandwidthReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthReject_cryptoTokens val)
  17103. {
  17104. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17105. return 0;
  17106. return 1;
  17107. }
  17108. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens(PBandwidthReject_cryptoTokens *val)
  17109. {
  17110. if (val) {
  17111. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthReject_cryptoTokens_ElmFn);
  17112. }
  17113. }
  17114. static void ASN1CALL ASN1Free_BandwidthReject_cryptoTokens_ElmFn(PBandwidthReject_cryptoTokens val)
  17115. {
  17116. if (val) {
  17117. ASN1Free_CryptoH323Token(&val->value);
  17118. }
  17119. }
  17120. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens *val)
  17121. {
  17122. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn);
  17123. }
  17124. static int ASN1CALL ASN1Enc_BandwidthConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthConfirm_cryptoTokens val)
  17125. {
  17126. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17127. return 0;
  17128. return 1;
  17129. }
  17130. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens *val)
  17131. {
  17132. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17133. }
  17134. static int ASN1CALL ASN1Dec_BandwidthConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthConfirm_cryptoTokens val)
  17135. {
  17136. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17137. return 0;
  17138. return 1;
  17139. }
  17140. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens(PBandwidthConfirm_cryptoTokens *val)
  17141. {
  17142. if (val) {
  17143. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn);
  17144. }
  17145. }
  17146. static void ASN1CALL ASN1Free_BandwidthConfirm_cryptoTokens_ElmFn(PBandwidthConfirm_cryptoTokens val)
  17147. {
  17148. if (val) {
  17149. ASN1Free_CryptoH323Token(&val->value);
  17150. }
  17151. }
  17152. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens *val)
  17153. {
  17154. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn);
  17155. }
  17156. static int ASN1CALL ASN1Enc_BandwidthRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PBandwidthRequest_cryptoTokens val)
  17157. {
  17158. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17159. return 0;
  17160. return 1;
  17161. }
  17162. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens *val)
  17163. {
  17164. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn, sizeof(**val));
  17165. }
  17166. static int ASN1CALL ASN1Dec_BandwidthRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PBandwidthRequest_cryptoTokens val)
  17167. {
  17168. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17169. return 0;
  17170. return 1;
  17171. }
  17172. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens(PBandwidthRequest_cryptoTokens *val)
  17173. {
  17174. if (val) {
  17175. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_BandwidthRequest_cryptoTokens_ElmFn);
  17176. }
  17177. }
  17178. static void ASN1CALL ASN1Free_BandwidthRequest_cryptoTokens_ElmFn(PBandwidthRequest_cryptoTokens val)
  17179. {
  17180. if (val) {
  17181. ASN1Free_CryptoH323Token(&val->value);
  17182. }
  17183. }
  17184. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens(ASN1encoding_t enc, PAdmissionReject_cryptoTokens *val)
  17185. {
  17186. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionReject_cryptoTokens_ElmFn);
  17187. }
  17188. static int ASN1CALL ASN1Enc_AdmissionReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionReject_cryptoTokens val)
  17189. {
  17190. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17191. return 0;
  17192. return 1;
  17193. }
  17194. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens(ASN1decoding_t dec, PAdmissionReject_cryptoTokens *val)
  17195. {
  17196. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionReject_cryptoTokens_ElmFn, sizeof(**val));
  17197. }
  17198. static int ASN1CALL ASN1Dec_AdmissionReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionReject_cryptoTokens val)
  17199. {
  17200. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17201. return 0;
  17202. return 1;
  17203. }
  17204. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens(PAdmissionReject_cryptoTokens *val)
  17205. {
  17206. if (val) {
  17207. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionReject_cryptoTokens_ElmFn);
  17208. }
  17209. }
  17210. static void ASN1CALL ASN1Free_AdmissionReject_cryptoTokens_ElmFn(PAdmissionReject_cryptoTokens val)
  17211. {
  17212. if (val) {
  17213. ASN1Free_CryptoH323Token(&val->value);
  17214. }
  17215. }
  17216. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens *val)
  17217. {
  17218. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn);
  17219. }
  17220. static int ASN1CALL ASN1Enc_AdmissionConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionConfirm_cryptoTokens val)
  17221. {
  17222. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17223. return 0;
  17224. return 1;
  17225. }
  17226. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens *val)
  17227. {
  17228. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17229. }
  17230. static int ASN1CALL ASN1Dec_AdmissionConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionConfirm_cryptoTokens val)
  17231. {
  17232. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17233. return 0;
  17234. return 1;
  17235. }
  17236. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens(PAdmissionConfirm_cryptoTokens *val)
  17237. {
  17238. if (val) {
  17239. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn);
  17240. }
  17241. }
  17242. static void ASN1CALL ASN1Free_AdmissionConfirm_cryptoTokens_ElmFn(PAdmissionConfirm_cryptoTokens val)
  17243. {
  17244. if (val) {
  17245. ASN1Free_CryptoH323Token(&val->value);
  17246. }
  17247. }
  17248. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens *val)
  17249. {
  17250. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn);
  17251. }
  17252. static int ASN1CALL ASN1Enc_AdmissionRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PAdmissionRequest_cryptoTokens val)
  17253. {
  17254. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17255. return 0;
  17256. return 1;
  17257. }
  17258. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens *val)
  17259. {
  17260. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn, sizeof(**val));
  17261. }
  17262. static int ASN1CALL ASN1Dec_AdmissionRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PAdmissionRequest_cryptoTokens val)
  17263. {
  17264. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17265. return 0;
  17266. return 1;
  17267. }
  17268. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens(PAdmissionRequest_cryptoTokens *val)
  17269. {
  17270. if (val) {
  17271. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_AdmissionRequest_cryptoTokens_ElmFn);
  17272. }
  17273. }
  17274. static void ASN1CALL ASN1Free_AdmissionRequest_cryptoTokens_ElmFn(PAdmissionRequest_cryptoTokens val)
  17275. {
  17276. if (val) {
  17277. ASN1Free_CryptoH323Token(&val->value);
  17278. }
  17279. }
  17280. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens *val)
  17281. {
  17282. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn);
  17283. }
  17284. static int ASN1CALL ASN1Enc_UnregistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationReject_cryptoTokens val)
  17285. {
  17286. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17287. return 0;
  17288. return 1;
  17289. }
  17290. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens *val)
  17291. {
  17292. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17293. }
  17294. static int ASN1CALL ASN1Dec_UnregistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationReject_cryptoTokens val)
  17295. {
  17296. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17297. return 0;
  17298. return 1;
  17299. }
  17300. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens(PUnregistrationReject_cryptoTokens *val)
  17301. {
  17302. if (val) {
  17303. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationReject_cryptoTokens_ElmFn);
  17304. }
  17305. }
  17306. static void ASN1CALL ASN1Free_UnregistrationReject_cryptoTokens_ElmFn(PUnregistrationReject_cryptoTokens val)
  17307. {
  17308. if (val) {
  17309. ASN1Free_CryptoH323Token(&val->value);
  17310. }
  17311. }
  17312. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens *val)
  17313. {
  17314. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn);
  17315. }
  17316. static int ASN1CALL ASN1Enc_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationConfirm_cryptoTokens val)
  17317. {
  17318. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17319. return 0;
  17320. return 1;
  17321. }
  17322. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens *val)
  17323. {
  17324. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17325. }
  17326. static int ASN1CALL ASN1Dec_UnregistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationConfirm_cryptoTokens val)
  17327. {
  17328. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17329. return 0;
  17330. return 1;
  17331. }
  17332. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens(PUnregistrationConfirm_cryptoTokens *val)
  17333. {
  17334. if (val) {
  17335. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn);
  17336. }
  17337. }
  17338. static void ASN1CALL ASN1Free_UnregistrationConfirm_cryptoTokens_ElmFn(PUnregistrationConfirm_cryptoTokens val)
  17339. {
  17340. if (val) {
  17341. ASN1Free_CryptoH323Token(&val->value);
  17342. }
  17343. }
  17344. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens *val)
  17345. {
  17346. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn);
  17347. }
  17348. static int ASN1CALL ASN1Enc_UnregistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PUnregistrationRequest_cryptoTokens val)
  17349. {
  17350. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17351. return 0;
  17352. return 1;
  17353. }
  17354. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens *val)
  17355. {
  17356. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17357. }
  17358. static int ASN1CALL ASN1Dec_UnregistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PUnregistrationRequest_cryptoTokens val)
  17359. {
  17360. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17361. return 0;
  17362. return 1;
  17363. }
  17364. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens(PUnregistrationRequest_cryptoTokens *val)
  17365. {
  17366. if (val) {
  17367. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn);
  17368. }
  17369. }
  17370. static void ASN1CALL ASN1Free_UnregistrationRequest_cryptoTokens_ElmFn(PUnregistrationRequest_cryptoTokens val)
  17371. {
  17372. if (val) {
  17373. ASN1Free_CryptoH323Token(&val->value);
  17374. }
  17375. }
  17376. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens(ASN1encoding_t enc, PRegistrationReject_cryptoTokens *val)
  17377. {
  17378. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationReject_cryptoTokens_ElmFn);
  17379. }
  17380. static int ASN1CALL ASN1Enc_RegistrationReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationReject_cryptoTokens val)
  17381. {
  17382. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17383. return 0;
  17384. return 1;
  17385. }
  17386. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens(ASN1decoding_t dec, PRegistrationReject_cryptoTokens *val)
  17387. {
  17388. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationReject_cryptoTokens_ElmFn, sizeof(**val));
  17389. }
  17390. static int ASN1CALL ASN1Dec_RegistrationReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationReject_cryptoTokens val)
  17391. {
  17392. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17393. return 0;
  17394. return 1;
  17395. }
  17396. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens(PRegistrationReject_cryptoTokens *val)
  17397. {
  17398. if (val) {
  17399. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationReject_cryptoTokens_ElmFn);
  17400. }
  17401. }
  17402. static void ASN1CALL ASN1Free_RegistrationReject_cryptoTokens_ElmFn(PRegistrationReject_cryptoTokens val)
  17403. {
  17404. if (val) {
  17405. ASN1Free_CryptoH323Token(&val->value);
  17406. }
  17407. }
  17408. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens *val)
  17409. {
  17410. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn);
  17411. }
  17412. static int ASN1CALL ASN1Enc_RegistrationConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationConfirm_cryptoTokens val)
  17413. {
  17414. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17415. return 0;
  17416. return 1;
  17417. }
  17418. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens *val)
  17419. {
  17420. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17421. }
  17422. static int ASN1CALL ASN1Dec_RegistrationConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationConfirm_cryptoTokens val)
  17423. {
  17424. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17425. return 0;
  17426. return 1;
  17427. }
  17428. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens(PRegistrationConfirm_cryptoTokens *val)
  17429. {
  17430. if (val) {
  17431. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn);
  17432. }
  17433. }
  17434. static void ASN1CALL ASN1Free_RegistrationConfirm_cryptoTokens_ElmFn(PRegistrationConfirm_cryptoTokens val)
  17435. {
  17436. if (val) {
  17437. ASN1Free_CryptoH323Token(&val->value);
  17438. }
  17439. }
  17440. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens *val)
  17441. {
  17442. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn);
  17443. }
  17444. static int ASN1CALL ASN1Enc_RegistrationRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PRegistrationRequest_cryptoTokens val)
  17445. {
  17446. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17447. return 0;
  17448. return 1;
  17449. }
  17450. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens *val)
  17451. {
  17452. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn, sizeof(**val));
  17453. }
  17454. static int ASN1CALL ASN1Dec_RegistrationRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PRegistrationRequest_cryptoTokens val)
  17455. {
  17456. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17457. return 0;
  17458. return 1;
  17459. }
  17460. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens(PRegistrationRequest_cryptoTokens *val)
  17461. {
  17462. if (val) {
  17463. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_RegistrationRequest_cryptoTokens_ElmFn);
  17464. }
  17465. }
  17466. static void ASN1CALL ASN1Free_RegistrationRequest_cryptoTokens_ElmFn(PRegistrationRequest_cryptoTokens val)
  17467. {
  17468. if (val) {
  17469. ASN1Free_CryptoH323Token(&val->value);
  17470. }
  17471. }
  17472. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens *val)
  17473. {
  17474. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn);
  17475. }
  17476. static int ASN1CALL ASN1Enc_GatekeeperReject_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperReject_cryptoTokens val)
  17477. {
  17478. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17479. return 0;
  17480. return 1;
  17481. }
  17482. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens *val)
  17483. {
  17484. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn, sizeof(**val));
  17485. }
  17486. static int ASN1CALL ASN1Dec_GatekeeperReject_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperReject_cryptoTokens val)
  17487. {
  17488. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17489. return 0;
  17490. return 1;
  17491. }
  17492. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens(PGatekeeperReject_cryptoTokens *val)
  17493. {
  17494. if (val) {
  17495. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperReject_cryptoTokens_ElmFn);
  17496. }
  17497. }
  17498. static void ASN1CALL ASN1Free_GatekeeperReject_cryptoTokens_ElmFn(PGatekeeperReject_cryptoTokens val)
  17499. {
  17500. if (val) {
  17501. ASN1Free_CryptoH323Token(&val->value);
  17502. }
  17503. }
  17504. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens *val)
  17505. {
  17506. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn);
  17507. }
  17508. static int ASN1CALL ASN1Enc_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperConfirm_cryptoTokens val)
  17509. {
  17510. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17511. return 0;
  17512. return 1;
  17513. }
  17514. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens *val)
  17515. {
  17516. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn, sizeof(**val));
  17517. }
  17518. static int ASN1CALL ASN1Dec_GatekeeperConfirm_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperConfirm_cryptoTokens val)
  17519. {
  17520. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17521. return 0;
  17522. return 1;
  17523. }
  17524. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens(PGatekeeperConfirm_cryptoTokens *val)
  17525. {
  17526. if (val) {
  17527. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn);
  17528. }
  17529. }
  17530. static void ASN1CALL ASN1Free_GatekeeperConfirm_cryptoTokens_ElmFn(PGatekeeperConfirm_cryptoTokens val)
  17531. {
  17532. if (val) {
  17533. ASN1Free_CryptoH323Token(&val->value);
  17534. }
  17535. }
  17536. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens *val)
  17537. {
  17538. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn);
  17539. }
  17540. static int ASN1CALL ASN1Enc_GatekeeperRequest_cryptoTokens_ElmFn(ASN1encoding_t enc, PGatekeeperRequest_cryptoTokens val)
  17541. {
  17542. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17543. return 0;
  17544. return 1;
  17545. }
  17546. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens *val)
  17547. {
  17548. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn, sizeof(**val));
  17549. }
  17550. static int ASN1CALL ASN1Dec_GatekeeperRequest_cryptoTokens_ElmFn(ASN1decoding_t dec, PGatekeeperRequest_cryptoTokens val)
  17551. {
  17552. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17553. return 0;
  17554. return 1;
  17555. }
  17556. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens(PGatekeeperRequest_cryptoTokens *val)
  17557. {
  17558. if (val) {
  17559. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn);
  17560. }
  17561. }
  17562. static void ASN1CALL ASN1Free_GatekeeperRequest_cryptoTokens_ElmFn(PGatekeeperRequest_cryptoTokens val)
  17563. {
  17564. if (val) {
  17565. ASN1Free_CryptoH323Token(&val->value);
  17566. }
  17567. }
  17568. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens(ASN1encoding_t enc, PEndpoint_cryptoTokens *val)
  17569. {
  17570. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Endpoint_cryptoTokens_ElmFn);
  17571. }
  17572. static int ASN1CALL ASN1Enc_Endpoint_cryptoTokens_ElmFn(ASN1encoding_t enc, PEndpoint_cryptoTokens val)
  17573. {
  17574. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17575. return 0;
  17576. return 1;
  17577. }
  17578. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens(ASN1decoding_t dec, PEndpoint_cryptoTokens *val)
  17579. {
  17580. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Endpoint_cryptoTokens_ElmFn, sizeof(**val));
  17581. }
  17582. static int ASN1CALL ASN1Dec_Endpoint_cryptoTokens_ElmFn(ASN1decoding_t dec, PEndpoint_cryptoTokens val)
  17583. {
  17584. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17585. return 0;
  17586. return 1;
  17587. }
  17588. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens(PEndpoint_cryptoTokens *val)
  17589. {
  17590. if (val) {
  17591. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Endpoint_cryptoTokens_ElmFn);
  17592. }
  17593. }
  17594. static void ASN1CALL ASN1Free_Endpoint_cryptoTokens_ElmFn(PEndpoint_cryptoTokens val)
  17595. {
  17596. if (val) {
  17597. ASN1Free_CryptoH323Token(&val->value);
  17598. }
  17599. }
  17600. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens *val)
  17601. {
  17602. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn);
  17603. }
  17604. static int ASN1CALL ASN1Enc_Progress_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PProgress_UUIE_cryptoTokens val)
  17605. {
  17606. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17607. return 0;
  17608. return 1;
  17609. }
  17610. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens *val)
  17611. {
  17612. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17613. }
  17614. static int ASN1CALL ASN1Dec_Progress_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PProgress_UUIE_cryptoTokens val)
  17615. {
  17616. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17617. return 0;
  17618. return 1;
  17619. }
  17620. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens(PProgress_UUIE_cryptoTokens *val)
  17621. {
  17622. if (val) {
  17623. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Progress_UUIE_cryptoTokens_ElmFn);
  17624. }
  17625. }
  17626. static void ASN1CALL ASN1Free_Progress_UUIE_cryptoTokens_ElmFn(PProgress_UUIE_cryptoTokens val)
  17627. {
  17628. if (val) {
  17629. ASN1Free_CryptoH323Token(&val->value);
  17630. }
  17631. }
  17632. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences(ASN1encoding_t enc, PFacility_UUIE_conferences *val)
  17633. {
  17634. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_conferences_ElmFn);
  17635. }
  17636. static int ASN1CALL ASN1Enc_Facility_UUIE_conferences_ElmFn(ASN1encoding_t enc, PFacility_UUIE_conferences val)
  17637. {
  17638. if (!ASN1Enc_ConferenceList(enc, &val->value))
  17639. return 0;
  17640. return 1;
  17641. }
  17642. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences(ASN1decoding_t dec, PFacility_UUIE_conferences *val)
  17643. {
  17644. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_conferences_ElmFn, sizeof(**val));
  17645. }
  17646. static int ASN1CALL ASN1Dec_Facility_UUIE_conferences_ElmFn(ASN1decoding_t dec, PFacility_UUIE_conferences val)
  17647. {
  17648. if (!ASN1Dec_ConferenceList(dec, &val->value))
  17649. return 0;
  17650. return 1;
  17651. }
  17652. static void ASN1CALL ASN1Free_Facility_UUIE_conferences(PFacility_UUIE_conferences *val)
  17653. {
  17654. if (val) {
  17655. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_conferences_ElmFn);
  17656. }
  17657. }
  17658. static void ASN1CALL ASN1Free_Facility_UUIE_conferences_ElmFn(PFacility_UUIE_conferences val)
  17659. {
  17660. if (val) {
  17661. ASN1Free_ConferenceList(&val->value);
  17662. }
  17663. }
  17664. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens *val)
  17665. {
  17666. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn);
  17667. }
  17668. static int ASN1CALL ASN1Enc_Facility_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PFacility_UUIE_cryptoTokens val)
  17669. {
  17670. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17671. return 0;
  17672. return 1;
  17673. }
  17674. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens *val)
  17675. {
  17676. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17677. }
  17678. static int ASN1CALL ASN1Dec_Facility_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PFacility_UUIE_cryptoTokens val)
  17679. {
  17680. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17681. return 0;
  17682. return 1;
  17683. }
  17684. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens(PFacility_UUIE_cryptoTokens *val)
  17685. {
  17686. if (val) {
  17687. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Facility_UUIE_cryptoTokens_ElmFn);
  17688. }
  17689. }
  17690. static void ASN1CALL ASN1Free_Facility_UUIE_cryptoTokens_ElmFn(PFacility_UUIE_cryptoTokens val)
  17691. {
  17692. if (val) {
  17693. ASN1Free_CryptoH323Token(&val->value);
  17694. }
  17695. }
  17696. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens *val)
  17697. {
  17698. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn);
  17699. }
  17700. static int ASN1CALL ASN1Enc_Setup_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PSetup_UUIE_cryptoTokens val)
  17701. {
  17702. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17703. return 0;
  17704. return 1;
  17705. }
  17706. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens *val)
  17707. {
  17708. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17709. }
  17710. static int ASN1CALL ASN1Dec_Setup_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PSetup_UUIE_cryptoTokens val)
  17711. {
  17712. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17713. return 0;
  17714. return 1;
  17715. }
  17716. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens(PSetup_UUIE_cryptoTokens *val)
  17717. {
  17718. if (val) {
  17719. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Setup_UUIE_cryptoTokens_ElmFn);
  17720. }
  17721. }
  17722. static void ASN1CALL ASN1Free_Setup_UUIE_cryptoTokens_ElmFn(PSetup_UUIE_cryptoTokens val)
  17723. {
  17724. if (val) {
  17725. ASN1Free_CryptoH323Token(&val->value);
  17726. }
  17727. }
  17728. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens *val)
  17729. {
  17730. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn);
  17731. }
  17732. static int ASN1CALL ASN1Enc_Connect_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PConnect_UUIE_cryptoTokens val)
  17733. {
  17734. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17735. return 0;
  17736. return 1;
  17737. }
  17738. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens *val)
  17739. {
  17740. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17741. }
  17742. static int ASN1CALL ASN1Dec_Connect_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PConnect_UUIE_cryptoTokens val)
  17743. {
  17744. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17745. return 0;
  17746. return 1;
  17747. }
  17748. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens(PConnect_UUIE_cryptoTokens *val)
  17749. {
  17750. if (val) {
  17751. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Connect_UUIE_cryptoTokens_ElmFn);
  17752. }
  17753. }
  17754. static void ASN1CALL ASN1Free_Connect_UUIE_cryptoTokens_ElmFn(PConnect_UUIE_cryptoTokens val)
  17755. {
  17756. if (val) {
  17757. ASN1Free_CryptoH323Token(&val->value);
  17758. }
  17759. }
  17760. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens *val)
  17761. {
  17762. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17763. }
  17764. static int ASN1CALL ASN1Enc_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PCallProceeding_UUIE_cryptoTokens val)
  17765. {
  17766. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17767. return 0;
  17768. return 1;
  17769. }
  17770. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens *val)
  17771. {
  17772. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17773. }
  17774. static int ASN1CALL ASN1Dec_CallProceeding_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PCallProceeding_UUIE_cryptoTokens val)
  17775. {
  17776. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17777. return 0;
  17778. return 1;
  17779. }
  17780. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens(PCallProceeding_UUIE_cryptoTokens *val)
  17781. {
  17782. if (val) {
  17783. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn);
  17784. }
  17785. }
  17786. static void ASN1CALL ASN1Free_CallProceeding_UUIE_cryptoTokens_ElmFn(PCallProceeding_UUIE_cryptoTokens val)
  17787. {
  17788. if (val) {
  17789. ASN1Free_CryptoH323Token(&val->value);
  17790. }
  17791. }
  17792. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens *val)
  17793. {
  17794. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn);
  17795. }
  17796. static int ASN1CALL ASN1Enc_Alerting_UUIE_cryptoTokens_ElmFn(ASN1encoding_t enc, PAlerting_UUIE_cryptoTokens val)
  17797. {
  17798. if (!ASN1Enc_CryptoH323Token(enc, &val->value))
  17799. return 0;
  17800. return 1;
  17801. }
  17802. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens *val)
  17803. {
  17804. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn, sizeof(**val));
  17805. }
  17806. static int ASN1CALL ASN1Dec_Alerting_UUIE_cryptoTokens_ElmFn(ASN1decoding_t dec, PAlerting_UUIE_cryptoTokens val)
  17807. {
  17808. if (!ASN1Dec_CryptoH323Token(dec, &val->value))
  17809. return 0;
  17810. return 1;
  17811. }
  17812. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens(PAlerting_UUIE_cryptoTokens *val)
  17813. {
  17814. if (val) {
  17815. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn);
  17816. }
  17817. }
  17818. static void ASN1CALL ASN1Free_Alerting_UUIE_cryptoTokens_ElmFn(PAlerting_UUIE_cryptoTokens val)
  17819. {
  17820. if (val) {
  17821. ASN1Free_CryptoH323Token(&val->value);
  17822. }
  17823. }
  17824. static int ASN1CALL ASN1Enc_H323_UU_PDU_h323_message_body(ASN1encoding_t enc, H323_UU_PDU_h323_message_body *val)
  17825. {
  17826. ASN1encoding_t ee;
  17827. if (!ASN1PEREncComplexChoice(enc, (val)->choice, 3, 7))
  17828. return 0;
  17829. switch ((val)->choice) {
  17830. case 1:
  17831. if (!ASN1Enc_Setup_UUIE(enc, &(val)->u.setup))
  17832. return 0;
  17833. break;
  17834. case 2:
  17835. if (!ASN1Enc_CallProceeding_UUIE(enc, &(val)->u.callProceeding))
  17836. return 0;
  17837. break;
  17838. case 3:
  17839. if (!ASN1Enc_Connect_UUIE(enc, &(val)->u.connect))
  17840. return 0;
  17841. break;
  17842. case 4:
  17843. if (!ASN1Enc_Alerting_UUIE(enc, &(val)->u.alerting))
  17844. return 0;
  17845. break;
  17846. case 5:
  17847. if (!ASN1Enc_Information_UUIE(enc, &(val)->u.information))
  17848. return 0;
  17849. break;
  17850. case 6:
  17851. if (!ASN1Enc_ReleaseComplete_UUIE(enc, &(val)->u.releaseComplete))
  17852. return 0;
  17853. break;
  17854. case 7:
  17855. if (!ASN1Enc_Facility_UUIE(enc, &(val)->u.facility))
  17856. return 0;
  17857. break;
  17858. case 8:
  17859. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17860. return 0;
  17861. if (!ASN1Enc_Progress_UUIE(ee, &(val)->u.progress))
  17862. return 0;
  17863. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17864. return 0;
  17865. ASN1_CloseEncoder2(ee);
  17866. break;
  17867. case 9:
  17868. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  17869. return 0;
  17870. if (!ASN1PEREncFlushFragmentedToParent(ee))
  17871. return 0;
  17872. ASN1_CloseEncoder2(ee);
  17873. break;
  17874. default:
  17875. /* impossible */
  17876. ASN1EncSetError(enc, ASN1_ERR_CHOICE);
  17877. return 0;
  17878. }
  17879. return 1;
  17880. }
  17881. static int ASN1CALL ASN1Dec_H323_UU_PDU_h323_message_body(ASN1decoding_t dec, H323_UU_PDU_h323_message_body *val)
  17882. {
  17883. ASN1decoding_t dd;
  17884. ASN1octet_t *db;
  17885. ASN1uint32_t ds;
  17886. if (!ASN1PERDecComplexChoice(dec, &(val)->choice, 3, 7))
  17887. return 0;
  17888. switch ((val)->choice) {
  17889. case 1:
  17890. if (!ASN1Dec_Setup_UUIE(dec, &(val)->u.setup))
  17891. return 0;
  17892. break;
  17893. case 2:
  17894. if (!ASN1Dec_CallProceeding_UUIE(dec, &(val)->u.callProceeding))
  17895. return 0;
  17896. break;
  17897. case 3:
  17898. if (!ASN1Dec_Connect_UUIE(dec, &(val)->u.connect))
  17899. return 0;
  17900. break;
  17901. case 4:
  17902. if (!ASN1Dec_Alerting_UUIE(dec, &(val)->u.alerting))
  17903. return 0;
  17904. break;
  17905. case 5:
  17906. if (!ASN1Dec_Information_UUIE(dec, &(val)->u.information))
  17907. return 0;
  17908. break;
  17909. case 6:
  17910. if (!ASN1Dec_ReleaseComplete_UUIE(dec, &(val)->u.releaseComplete))
  17911. return 0;
  17912. break;
  17913. case 7:
  17914. if (!ASN1Dec_Facility_UUIE(dec, &(val)->u.facility))
  17915. return 0;
  17916. break;
  17917. case 8:
  17918. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17919. return 0;
  17920. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17921. return 0;
  17922. if (!ASN1Dec_Progress_UUIE(dd, &(val)->u.progress))
  17923. return 0;
  17924. ASN1_CloseDecoder(dd);
  17925. ASN1Free(db);
  17926. break;
  17927. case 9:
  17928. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  17929. return 0;
  17930. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  17931. return 0;
  17932. ASN1_CloseDecoder(dd);
  17933. ASN1Free(db);
  17934. break;
  17935. case 0:
  17936. /* extension case */
  17937. if (!ASN1PERDecSkipFragmented(dec, 8))
  17938. return 0;
  17939. break;
  17940. default:
  17941. /* impossible */
  17942. ASN1DecSetError(dec, ASN1_ERR_CHOICE);
  17943. return 0;
  17944. }
  17945. return 1;
  17946. }
  17947. static void ASN1CALL ASN1Free_H323_UU_PDU_h323_message_body(H323_UU_PDU_h323_message_body *val)
  17948. {
  17949. if (val) {
  17950. switch ((val)->choice) {
  17951. case 1:
  17952. ASN1Free_Setup_UUIE(&(val)->u.setup);
  17953. break;
  17954. case 2:
  17955. ASN1Free_CallProceeding_UUIE(&(val)->u.callProceeding);
  17956. break;
  17957. case 3:
  17958. ASN1Free_Connect_UUIE(&(val)->u.connect);
  17959. break;
  17960. case 4:
  17961. ASN1Free_Alerting_UUIE(&(val)->u.alerting);
  17962. break;
  17963. case 5:
  17964. ASN1Free_Information_UUIE(&(val)->u.information);
  17965. break;
  17966. case 6:
  17967. ASN1Free_ReleaseComplete_UUIE(&(val)->u.releaseComplete);
  17968. break;
  17969. case 7:
  17970. ASN1Free_Facility_UUIE(&(val)->u.facility);
  17971. break;
  17972. case 8:
  17973. ASN1Free_Progress_UUIE(&(val)->u.progress);
  17974. break;
  17975. }
  17976. }
  17977. }
  17978. static int ASN1CALL ASN1Enc_H323_UU_PDU(ASN1encoding_t enc, H323_UU_PDU *val)
  17979. {
  17980. ASN1octet_t o[2];
  17981. ASN1uint32_t y;
  17982. ASN1encoding_t ee;
  17983. CopyMemory(o, (val)->o, 2);
  17984. o[1] |= 0x40;
  17985. y = ASN1PEREncCheckExtensions(4, (val)->o + 1);
  17986. if (!ASN1PEREncBitVal(enc, 1, y))
  17987. return 0;
  17988. if (!ASN1PEREncBits(enc, 1, o))
  17989. return 0;
  17990. if (!ASN1Enc_H323_UU_PDU_h323_message_body(enc, &(val)->h323_message_body))
  17991. return 0;
  17992. if (o[0] & 0x80) {
  17993. if (!ASN1Enc_H225NonStandardParameter(enc, &(val)->nonStandardData))
  17994. return 0;
  17995. }
  17996. if (y) {
  17997. if (!ASN1PEREncNormallySmallBits(enc, 4, o + 1))
  17998. return 0;
  17999. if (ASN1_CreateEncoder(enc->module, &ee, NULL, 0, enc) < 0)
  18000. return 0;
  18001. if (o[1] & 0x80) {
  18002. if (!ASN1Enc_H323_UU_PDU_h4501SupplementaryService(ee, &(val)->h4501SupplementaryService))
  18003. return 0;
  18004. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18005. return 0;
  18006. }
  18007. if (o[1] & 0x40) {
  18008. if (!ASN1PEREncBoolean(ee, (val)->h245Tunneling))
  18009. return 0;
  18010. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18011. return 0;
  18012. }
  18013. if (o[1] & 0x20) {
  18014. if (!ASN1Enc_H323_UU_PDU_h245Control(ee, &(val)->h245Control))
  18015. return 0;
  18016. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18017. return 0;
  18018. }
  18019. if (o[1] & 0x10) {
  18020. if (!ASN1Enc_H323_UU_PDU_nonStandardControl(ee, &(val)->nonStandardControl))
  18021. return 0;
  18022. if (!ASN1PEREncFlushFragmentedToParent(ee))
  18023. return 0;
  18024. }
  18025. ASN1_CloseEncoder2(ee);
  18026. }
  18027. return 1;
  18028. }
  18029. static int ASN1CALL ASN1Dec_H323_UU_PDU(ASN1decoding_t dec, H323_UU_PDU *val)
  18030. {
  18031. ASN1uint32_t y;
  18032. ASN1decoding_t dd;
  18033. ASN1octet_t *db;
  18034. ASN1uint32_t ds;
  18035. ASN1uint32_t i;
  18036. ASN1uint32_t e;
  18037. if (!ASN1PERDecExtensionBit(dec, &y))
  18038. return 0;
  18039. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  18040. return 0;
  18041. if (!ASN1Dec_H323_UU_PDU_h323_message_body(dec, &(val)->h323_message_body))
  18042. return 0;
  18043. if ((val)->o[0] & 0x80) {
  18044. if (!ASN1Dec_H225NonStandardParameter(dec, &(val)->nonStandardData))
  18045. return 0;
  18046. }
  18047. if (!y) {
  18048. ZeroMemory((val)->o + 1, 1);
  18049. } else {
  18050. if (!ASN1PERDecNormallySmallExtension(dec, &e, 4, (val)->o + 1))
  18051. return 0;
  18052. if ((val)->o[1] & 0x80) {
  18053. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18054. return 0;
  18055. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18056. return 0;
  18057. if (!ASN1Dec_H323_UU_PDU_h4501SupplementaryService(dd, &(val)->h4501SupplementaryService))
  18058. return 0;
  18059. ASN1_CloseDecoder(dd);
  18060. ASN1Free(db);
  18061. }
  18062. if ((val)->o[1] & 0x40) {
  18063. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18064. return 0;
  18065. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18066. return 0;
  18067. if (!ASN1PERDecBoolean(dd, &(val)->h245Tunneling))
  18068. return 0;
  18069. ASN1_CloseDecoder(dd);
  18070. ASN1Free(db);
  18071. }
  18072. if ((val)->o[1] & 0x20) {
  18073. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18074. return 0;
  18075. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18076. return 0;
  18077. if (!ASN1Dec_H323_UU_PDU_h245Control(dd, &(val)->h245Control))
  18078. return 0;
  18079. ASN1_CloseDecoder(dd);
  18080. ASN1Free(db);
  18081. }
  18082. if ((val)->o[1] & 0x10) {
  18083. if (!ASN1PERDecFragmented(dec, &ds, &db, 8))
  18084. return 0;
  18085. if (ASN1_CreateDecoder(dec->module, &dd, db, ds, dec) < 0)
  18086. return 0;
  18087. if (!ASN1Dec_H323_UU_PDU_nonStandardControl(dd, &(val)->nonStandardControl))
  18088. return 0;
  18089. ASN1_CloseDecoder(dd);
  18090. ASN1Free(db);
  18091. }
  18092. for (i = 0; i < e; i++) {
  18093. if (!ASN1PERDecSkipFragmented(dec, 8))
  18094. return 0;
  18095. }
  18096. }
  18097. return 1;
  18098. }
  18099. static void ASN1CALL ASN1Free_H323_UU_PDU(H323_UU_PDU *val)
  18100. {
  18101. if (val) {
  18102. ASN1Free_H323_UU_PDU_h323_message_body(&(val)->h323_message_body);
  18103. if ((val)->o[0] & 0x80) {
  18104. ASN1Free_H225NonStandardParameter(&(val)->nonStandardData);
  18105. }
  18106. if ((val)->o[1] & 0x80) {
  18107. ASN1Free_H323_UU_PDU_h4501SupplementaryService(&(val)->h4501SupplementaryService);
  18108. }
  18109. if ((val)->o[1] & 0x20) {
  18110. ASN1Free_H323_UU_PDU_h245Control(&(val)->h245Control);
  18111. }
  18112. if ((val)->o[1] & 0x10) {
  18113. ASN1Free_H323_UU_PDU_nonStandardControl(&(val)->nonStandardControl);
  18114. }
  18115. }
  18116. }
  18117. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1encoding_t enc, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18118. {
  18119. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323pdu))
  18120. return 0;
  18121. if (!ASN1PEREncBoolean(enc, (val)->sent))
  18122. return 0;
  18123. return 1;
  18124. }
  18125. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(ASN1decoding_t dec, InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18126. {
  18127. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323pdu))
  18128. return 0;
  18129. if (!ASN1PERDecBoolean(dec, &(val)->sent))
  18130. return 0;
  18131. return 1;
  18132. }
  18133. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(InfoRequestResponse_perCallInfo_Seq_pdu_Seq *val)
  18134. {
  18135. if (val) {
  18136. ASN1Free_H323_UU_PDU(&(val)->h323pdu);
  18137. }
  18138. }
  18139. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18140. {
  18141. return ASN1PEREncSeqOf_NoSize(enc, (ASN1iterator_t **) val, (ASN1iterator_encfn) ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18142. }
  18143. static int ASN1CALL ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1encoding_t enc, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18144. {
  18145. if (!ASN1Enc_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(enc, &val->value))
  18146. return 0;
  18147. return 1;
  18148. }
  18149. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18150. {
  18151. return ASN1PERDecSeqOf_NoSize(dec, (ASN1iterator_t **) val, (ASN1iterator_decfn) ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn, sizeof(**val));
  18152. }
  18153. static int ASN1CALL ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(ASN1decoding_t dec, PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18154. {
  18155. if (!ASN1Dec_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(dec, &val->value))
  18156. return 0;
  18157. return 1;
  18158. }
  18159. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu(PInfoRequestResponse_perCallInfo_Seq_pdu *val)
  18160. {
  18161. if (val) {
  18162. ASN1PERFreeSeqOf((ASN1iterator_t **) val, (ASN1iterator_freefn) ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn);
  18163. }
  18164. }
  18165. static void ASN1CALL ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_ElmFn(PInfoRequestResponse_perCallInfo_Seq_pdu val)
  18166. {
  18167. if (val) {
  18168. ASN1Free_InfoRequestResponse_perCallInfo_Seq_pdu_Seq(&val->value);
  18169. }
  18170. }
  18171. static int ASN1CALL ASN1Enc_H323_UserInformation(ASN1encoding_t enc, H323_UserInformation *val)
  18172. {
  18173. if (!ASN1PEREncExtensionBitClear(enc))
  18174. return 0;
  18175. if (!ASN1PEREncBits(enc, 1, (val)->o))
  18176. return 0;
  18177. if (!ASN1Enc_H323_UU_PDU(enc, &(val)->h323_uu_pdu))
  18178. return 0;
  18179. if ((val)->o[0] & 0x80) {
  18180. if (!ASN1Enc_H323_UserInformation_user_data(enc, &(val)->user_data))
  18181. return 0;
  18182. }
  18183. return 1;
  18184. }
  18185. static int ASN1CALL ASN1Dec_H323_UserInformation(ASN1decoding_t dec, H323_UserInformation *val)
  18186. {
  18187. ASN1uint32_t y;
  18188. if (!ASN1PERDecExtensionBit(dec, &y))
  18189. return 0;
  18190. if (!ASN1PERDecExtension(dec, 1, (val)->o))
  18191. return 0;
  18192. if (!ASN1Dec_H323_UU_PDU(dec, &(val)->h323_uu_pdu))
  18193. return 0;
  18194. if ((val)->o[0] & 0x80) {
  18195. if (!ASN1Dec_H323_UserInformation_user_data(dec, &(val)->user_data))
  18196. return 0;
  18197. }
  18198. if (y) {
  18199. if (!ASN1PERDecSkipNormallySmallExtensionFragmented(dec))
  18200. return 0;
  18201. }
  18202. return 1;
  18203. }
  18204. static void ASN1CALL ASN1Free_H323_UserInformation(H323_UserInformation *val)
  18205. {
  18206. if (val) {
  18207. ASN1Free_H323_UU_PDU(&(val)->h323_uu_pdu);
  18208. if ((val)->o[0] & 0x80) {
  18209. ASN1Free_H323_UserInformation_user_data(&(val)->user_data);
  18210. }
  18211. }
  18212. }