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

655 lines
29 KiB

  1. /* Copyright (C) Microsoft Corporation, 1999. All rights reserved. */
  2. /* ASN.1 definitions for Connection Negotiation Protocol (GNP) */
  3. #ifndef _CNPPDU_Module_H_
  4. #define _CNPPDU_Module_H_
  5. #include "msper.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. typedef struct CNP_TransportAddress_ipSourceRoute_route * PCNP_TransportAddress_ipSourceRoute_route;
  10. typedef struct CNP_TransportAddress_ipAddress_nonStandardParameters * PCNP_TransportAddress_ipAddress_nonStandardParameters;
  11. typedef struct CNP_TransportAddress_ipSourceRoute_nonStandardParameters * PCNP_TransportAddress_ipSourceRoute_nonStandardParameters;
  12. typedef struct CNP_TransportAddress_ipxAddress_nonStandardParameters * PCNP_TransportAddress_ipxAddress_nonStandardParameters;
  13. typedef struct CNP_TransportAddress_ip6Address_nonStandardParameters * PCNP_TransportAddress_ip6Address_nonStandardParameters;
  14. typedef struct CNP_NonStandardPDU_nonStandardParameters * PCNP_NonStandardPDU_nonStandardParameters;
  15. typedef struct ErrorPDU_nonStandardParameters * PErrorPDU_nonStandardParameters;
  16. typedef struct DisconnectRequestPDU_nonStandardParameters * PDisconnectRequestPDU_nonStandardParameters;
  17. typedef struct ConnectConfirmPDU_nonStandardParameters * PConnectConfirmPDU_nonStandardParameters;
  18. typedef struct ConnectRequestPDU_nonStandardParameters * PConnectRequestPDU_nonStandardParameters;
  19. typedef struct ConnectRequestPDU_unreliableSecurityProtocols * PConnectRequestPDU_unreliableSecurityProtocols;
  20. typedef struct ConnectRequestPDU_reliableTransportProtocols * PConnectRequestPDU_reliableTransportProtocols;
  21. typedef struct UnreliableTransportProtocol_nonStandardParameters * PUnreliableTransportProtocol_nonStandardParameters;
  22. typedef struct ReliableTransportProtocol_nonStandardParameters * PReliableTransportProtocol_nonStandardParameters;
  23. typedef struct PrivatePartyNumber_nonStandardParameters * PPrivatePartyNumber_nonStandardParameters;
  24. typedef struct PublicPartyNumber_nonStandardParameters * PPublicPartyNumber_nonStandardParameters;
  25. typedef struct DisconnectRequestPDU_destinationAddress * PDisconnectRequestPDU_destinationAddress;
  26. typedef struct ConnectRequestPDU_destinationAddress * PConnectRequestPDU_destinationAddress;
  27. typedef struct ConnectRequestPDU_unreliableTransportProtocols * PConnectRequestPDU_unreliableTransportProtocols;
  28. typedef struct ConnectRequestPDU_reliableSecurityProtocols * PConnectRequestPDU_reliableSecurityProtocols;
  29. typedef struct CNP_TransportAddress_ipSourceRoute_route_Seq {
  30. ASN1uint32_t length;
  31. ASN1octet_t value[4];
  32. } CNP_TransportAddress_ipSourceRoute_route_Seq;
  33. typedef ASN1char_t NumberDigits[129];
  34. typedef ASN1uint16_t TPDUSize;
  35. typedef ASN1uint16_t CNP_Priority;
  36. typedef ASN1objectidentifier_t ProtocolIdentifier;
  37. typedef struct CNP_TransportAddress_ipSourceRoute_route {
  38. PCNP_TransportAddress_ipSourceRoute_route next;
  39. CNP_TransportAddress_ipSourceRoute_route_Seq value;
  40. } CNP_TransportAddress_ipSourceRoute_route_Element;
  41. typedef struct CNP_TransportAddress_ip6Address {
  42. union {
  43. ASN1uint16_t bit_mask;
  44. ASN1octet_t o[1];
  45. };
  46. struct CNP_TransportAddress_ip6Address_ip_ip {
  47. ASN1uint32_t length;
  48. ASN1octet_t value[16];
  49. } ip;
  50. ASN1uint16_t port;
  51. # define CNP_TransportAddress_ip6Address_nonStandardParameters_present 0x80
  52. PCNP_TransportAddress_ip6Address_nonStandardParameters nonStandardParameters;
  53. } CNP_TransportAddress_ip6Address;
  54. typedef struct CNP_TransportAddress_ipxAddress {
  55. union {
  56. ASN1uint16_t bit_mask;
  57. ASN1octet_t o[1];
  58. };
  59. struct CNP_TransportAddress_ipxAddress_node_node {
  60. ASN1uint32_t length;
  61. ASN1octet_t value[6];
  62. } node;
  63. struct CNP_TransportAddress_ipxAddress_netnum_netnum {
  64. ASN1uint32_t length;
  65. ASN1octet_t value[4];
  66. } netnum;
  67. struct CNP_TransportAddress_ipxAddress_port_port {
  68. ASN1uint32_t length;
  69. ASN1octet_t value[2];
  70. } port;
  71. # define CNP_TransportAddress_ipxAddress_nonStandardParameters_present 0x80
  72. PCNP_TransportAddress_ipxAddress_nonStandardParameters nonStandardParameters;
  73. } CNP_TransportAddress_ipxAddress;
  74. typedef struct CNP_TransportAddress_ipAddress {
  75. union {
  76. ASN1uint16_t bit_mask;
  77. ASN1octet_t o[1];
  78. };
  79. struct CNP_TransportAddress_ipAddress_ip_ip {
  80. ASN1uint32_t length;
  81. ASN1octet_t value[4];
  82. } ip;
  83. ASN1uint16_t port;
  84. # define CNP_TransportAddress_ipAddress_nonStandardParameters_present 0x80
  85. PCNP_TransportAddress_ipAddress_nonStandardParameters nonStandardParameters;
  86. } CNP_TransportAddress_ipAddress;
  87. typedef struct H221NonStandard {
  88. ASN1uint16_t t35CountryCode;
  89. ASN1uint16_t t35Extension;
  90. ASN1uint16_t manufacturerCode;
  91. } H221NonStandard;
  92. typedef struct NonStandardIdentifier {
  93. ASN1choice_t choice;
  94. union {
  95. # define object_chosen 1
  96. ASN1objectidentifier_t object;
  97. # define h221NonStandard_chosen 2
  98. H221NonStandard h221NonStandard;
  99. } u;
  100. } NonStandardIdentifier;
  101. typedef struct CNP_NonStandardParameter {
  102. NonStandardIdentifier nonStandardIdentifier;
  103. ASN1octetstring_t data;
  104. } CNP_NonStandardParameter;
  105. typedef struct PublicTypeOfNumber {
  106. ASN1choice_t choice;
  107. union {
  108. # define PublicTypeOfNumber_unknown_chosen 1
  109. # define internationalNumber_chosen 2
  110. # define nationalNumber_chosen 3
  111. # define networkSpecificNumber_chosen 4
  112. # define subscriberNumber_chosen 5
  113. # define PublicTypeOfNumber_abbreviatedNumber_chosen 6
  114. # define nonStandardPublicTypeOfNumber_chosen 7
  115. CNP_NonStandardParameter nonStandardPublicTypeOfNumber;
  116. } u;
  117. } PublicTypeOfNumber;
  118. typedef struct PublicPartyNumber {
  119. union {
  120. ASN1uint16_t bit_mask;
  121. ASN1octet_t o[1];
  122. };
  123. PublicTypeOfNumber publicTypeOfNumber;
  124. NumberDigits publicNumberDigits;
  125. # define PublicPartyNumber_nonStandardParameters_present 0x80
  126. PPublicPartyNumber_nonStandardParameters nonStandardParameters;
  127. } PublicPartyNumber;
  128. typedef struct PrivateTypeOfNumber {
  129. ASN1choice_t choice;
  130. union {
  131. # define PrivateTypeOfNumber_unknown_chosen 1
  132. # define level2RegionalNumber_chosen 2
  133. # define level1RegionalNumber_chosen 3
  134. # define pISNSpecificNumber_chosen 4
  135. # define localNumber_chosen 5
  136. # define PrivateTypeOfNumber_abbreviatedNumber_chosen 6
  137. # define nonStandardPrivateTypeOfNumber_chosen 7
  138. CNP_NonStandardParameter nonStandardPrivateTypeOfNumber;
  139. } u;
  140. } PrivateTypeOfNumber;
  141. typedef struct PrivatePartyNumber {
  142. union {
  143. ASN1uint16_t bit_mask;
  144. ASN1octet_t o[1];
  145. };
  146. PrivateTypeOfNumber privateTypeOfNumber;
  147. NumberDigits privateNumberDigits;
  148. # define PrivatePartyNumber_nonStandardParameters_present 0x80
  149. PPrivatePartyNumber_nonStandardParameters nonStandardParameters;
  150. } PrivatePartyNumber;
  151. typedef struct PartyNumber {
  152. ASN1choice_t choice;
  153. union {
  154. # define publicNumber_chosen 1
  155. PublicPartyNumber publicNumber;
  156. # define dataPartyNumber_chosen 2
  157. NumberDigits dataPartyNumber;
  158. # define telexPartyNumber_chosen 3
  159. NumberDigits telexPartyNumber;
  160. # define privateNumber_chosen 4
  161. PrivatePartyNumber privateNumber;
  162. # define nationalStandardPartyNumber_chosen 5
  163. NumberDigits nationalStandardPartyNumber;
  164. # define nonStandardPartyNumber_chosen 6
  165. CNP_NonStandardParameter nonStandardPartyNumber;
  166. } u;
  167. } PartyNumber;
  168. typedef struct ReliableTransportProtocolType {
  169. ASN1choice_t choice;
  170. union {
  171. # define cnp_chosen 1
  172. # define x224_chosen 2
  173. # define map_chosen 3
  174. # define ReliableTransportProtocolType_nonStandardTransportProtocol_chosen 4
  175. CNP_NonStandardParameter nonStandardTransportProtocol;
  176. } u;
  177. } ReliableTransportProtocolType;
  178. typedef struct ReliableTransportProtocol {
  179. union {
  180. ASN1uint16_t bit_mask;
  181. ASN1octet_t o[1];
  182. };
  183. ReliableTransportProtocolType type;
  184. TPDUSize maxTPDUSize;
  185. # define ReliableTransportProtocol_nonStandardParameters_present 0x80
  186. PReliableTransportProtocol_nonStandardParameters nonStandardParameters;
  187. } ReliableTransportProtocol;
  188. typedef struct UnreliableTransportProtocolType {
  189. ASN1choice_t choice;
  190. union {
  191. # define x234_chosen 1
  192. # define UnreliableTransportProtocolType_nonStandardTransportProtocol_chosen 2
  193. CNP_NonStandardParameter nonStandardTransportProtocol;
  194. } u;
  195. } UnreliableTransportProtocolType;
  196. typedef struct UnreliableSecurityProtocol {
  197. ASN1choice_t choice;
  198. union {
  199. # define UnreliableSecurityProtocol_none_chosen 1
  200. # define UnreliableSecurityProtocol_ipsecIKEKeyManagement_chosen 2
  201. # define UnreliableSecurityProtocol_ipsecManualKeyManagement_chosen 3
  202. # define UnreliableSecurityProtocol_physical_chosen 4
  203. # define UnreliableSecurityProtocol_nonStandardSecurityProtocol_chosen 5
  204. CNP_NonStandardParameter nonStandardSecurityProtocol;
  205. } u;
  206. } UnreliableSecurityProtocol;
  207. typedef struct X274WithSAIDInfo {
  208. ASN1octetstring_t localSAID;
  209. ASN1octetstring_t peerSAID;
  210. } X274WithSAIDInfo;
  211. typedef struct ConnectRequestPDU {
  212. union {
  213. ASN1uint16_t bit_mask;
  214. ASN1octet_t o[1];
  215. };
  216. ProtocolIdentifier protocolIdentifier;
  217. ASN1bool_t reconnectRequested;
  218. # define priority_present 0x80
  219. CNP_Priority priority;
  220. # define reliableTransportProtocols_present 0x40
  221. PConnectRequestPDU_reliableTransportProtocols reliableTransportProtocols;
  222. # define reliableSecurityProtocols_present 0x20
  223. PConnectRequestPDU_reliableSecurityProtocols reliableSecurityProtocols;
  224. # define unreliableTransportProtocols_present 0x10
  225. PConnectRequestPDU_unreliableTransportProtocols unreliableTransportProtocols;
  226. # define unreliableSecurityProtocols_present 0x8
  227. PConnectRequestPDU_unreliableSecurityProtocols unreliableSecurityProtocols;
  228. # define ConnectRequestPDU_destinationAddress_present 0x4
  229. PConnectRequestPDU_destinationAddress destinationAddress;
  230. # define ConnectRequestPDU_nonStandardParameters_present 0x2
  231. PConnectRequestPDU_nonStandardParameters nonStandardParameters;
  232. } ConnectRequestPDU;
  233. typedef struct DisconnectReason {
  234. ASN1choice_t choice;
  235. union {
  236. # define unacceptableVersion_chosen 1
  237. # define incompatibleParameters_chosen 2
  238. # define securityDenied_chosen 3
  239. # define destinationUnreachable_chosen 4
  240. # define userRejected_chosen 5
  241. # define userInitiated_chosen 6
  242. # define protocolError_chosen 7
  243. # define unspecifiedFailure_chosen 8
  244. # define routeToAlternate_chosen 9
  245. # define nonStandardDisconnectReason_chosen 10
  246. CNP_NonStandardParameter nonStandardDisconnectReason;
  247. } u;
  248. } DisconnectReason;
  249. typedef struct RejectCause {
  250. ASN1choice_t choice;
  251. union {
  252. # define unrecognizedPDU_chosen 1
  253. # define invalidParameter_chosen 2
  254. # define causeUnspecified_chosen 3
  255. # define nonStandardRejectCause_chosen 4
  256. CNP_NonStandardParameter nonStandardRejectCause;
  257. } u;
  258. } RejectCause;
  259. typedef struct ErrorPDU {
  260. union {
  261. ASN1uint16_t bit_mask;
  262. ASN1octet_t o[1];
  263. };
  264. RejectCause rejectCause;
  265. ASN1octetstring_t rejectedPDU;
  266. # define ErrorPDU_nonStandardParameters_present 0x80
  267. PErrorPDU_nonStandardParameters nonStandardParameters;
  268. } ErrorPDU;
  269. typedef struct CNP_NonStandardPDU {
  270. union {
  271. ASN1uint16_t bit_mask;
  272. ASN1octet_t o[1];
  273. };
  274. # define CNP_NonStandardPDU_nonStandardParameters_present 0x80
  275. PCNP_NonStandardPDU_nonStandardParameters nonStandardParameters;
  276. } CNP_NonStandardPDU;
  277. typedef struct CNP_TransportAddress_ipAddress_nonStandardParameters {
  278. PCNP_TransportAddress_ipAddress_nonStandardParameters next;
  279. CNP_NonStandardParameter value;
  280. } CNP_TransportAddress_ipAddress_nonStandardParameters_Element;
  281. typedef struct CNP_TransportAddress_ipSourceRoute_nonStandardParameters {
  282. PCNP_TransportAddress_ipSourceRoute_nonStandardParameters next;
  283. CNP_NonStandardParameter value;
  284. } CNP_TransportAddress_ipSourceRoute_nonStandardParameters_Element;
  285. typedef struct CNP_TransportAddress_ipSourceRoute_routing {
  286. ASN1choice_t choice;
  287. union {
  288. # define strict_chosen 1
  289. # define loose_chosen 2
  290. # define nonStandardRouting_chosen 3
  291. CNP_NonStandardParameter nonStandardRouting;
  292. } u;
  293. } CNP_TransportAddress_ipSourceRoute_routing;
  294. typedef struct CNP_TransportAddress_ipxAddress_nonStandardParameters {
  295. PCNP_TransportAddress_ipxAddress_nonStandardParameters next;
  296. CNP_NonStandardParameter value;
  297. } CNP_TransportAddress_ipxAddress_nonStandardParameters_Element;
  298. typedef struct CNP_TransportAddress_ip6Address_nonStandardParameters {
  299. PCNP_TransportAddress_ip6Address_nonStandardParameters next;
  300. CNP_NonStandardParameter value;
  301. } CNP_TransportAddress_ip6Address_nonStandardParameters_Element;
  302. typedef struct CNP_NonStandardPDU_nonStandardParameters {
  303. PCNP_NonStandardPDU_nonStandardParameters next;
  304. CNP_NonStandardParameter value;
  305. } CNP_NonStandardPDU_nonStandardParameters_Element;
  306. typedef struct ErrorPDU_nonStandardParameters {
  307. PErrorPDU_nonStandardParameters next;
  308. CNP_NonStandardParameter value;
  309. } ErrorPDU_nonStandardParameters_Element;
  310. typedef struct DisconnectRequestPDU_nonStandardParameters {
  311. PDisconnectRequestPDU_nonStandardParameters next;
  312. CNP_NonStandardParameter value;
  313. } DisconnectRequestPDU_nonStandardParameters_Element;
  314. typedef struct ConnectConfirmPDU_nonStandardParameters {
  315. PConnectConfirmPDU_nonStandardParameters next;
  316. CNP_NonStandardParameter value;
  317. } ConnectConfirmPDU_nonStandardParameters_Element;
  318. typedef struct ConnectRequestPDU_nonStandardParameters {
  319. PConnectRequestPDU_nonStandardParameters next;
  320. CNP_NonStandardParameter value;
  321. } ConnectRequestPDU_nonStandardParameters_Element;
  322. typedef struct ConnectRequestPDU_unreliableSecurityProtocols {
  323. PConnectRequestPDU_unreliableSecurityProtocols next;
  324. UnreliableSecurityProtocol value;
  325. } ConnectRequestPDU_unreliableSecurityProtocols_Element;
  326. typedef struct ConnectRequestPDU_reliableTransportProtocols {
  327. PConnectRequestPDU_reliableTransportProtocols next;
  328. ReliableTransportProtocol value;
  329. } ConnectRequestPDU_reliableTransportProtocols_Element;
  330. typedef struct UnreliableTransportProtocol_nonStandardParameters {
  331. PUnreliableTransportProtocol_nonStandardParameters next;
  332. CNP_NonStandardParameter value;
  333. } UnreliableTransportProtocol_nonStandardParameters_Element;
  334. typedef struct ReliableTransportProtocol_nonStandardParameters {
  335. PReliableTransportProtocol_nonStandardParameters next;
  336. CNP_NonStandardParameter value;
  337. } ReliableTransportProtocol_nonStandardParameters_Element;
  338. typedef struct PrivatePartyNumber_nonStandardParameters {
  339. PPrivatePartyNumber_nonStandardParameters next;
  340. CNP_NonStandardParameter value;
  341. } PrivatePartyNumber_nonStandardParameters_Element;
  342. typedef struct PublicPartyNumber_nonStandardParameters {
  343. PPublicPartyNumber_nonStandardParameters next;
  344. CNP_NonStandardParameter value;
  345. } PublicPartyNumber_nonStandardParameters_Element;
  346. typedef struct CNP_TransportAddress_ipSourceRoute {
  347. union {
  348. ASN1uint16_t bit_mask;
  349. ASN1octet_t o[1];
  350. };
  351. struct CNP_TransportAddress_ipSourceRoute_ip_ip {
  352. ASN1uint32_t length;
  353. ASN1octet_t value[4];
  354. } ip;
  355. ASN1uint16_t port;
  356. PCNP_TransportAddress_ipSourceRoute_route route;
  357. CNP_TransportAddress_ipSourceRoute_routing routing;
  358. # define CNP_TransportAddress_ipSourceRoute_nonStandardParameters_present 0x80
  359. PCNP_TransportAddress_ipSourceRoute_nonStandardParameters nonStandardParameters;
  360. } CNP_TransportAddress_ipSourceRoute;
  361. typedef struct CNP_TransportAddress {
  362. ASN1choice_t choice;
  363. union {
  364. # define ipAddress_chosen 1
  365. CNP_TransportAddress_ipAddress ipAddress;
  366. # define ipSourceRoute_chosen 2
  367. CNP_TransportAddress_ipSourceRoute ipSourceRoute;
  368. # define ipxAddress_chosen 3
  369. CNP_TransportAddress_ipxAddress ipxAddress;
  370. # define ip6Address_chosen 4
  371. CNP_TransportAddress_ip6Address ip6Address;
  372. # define netBios_chosen 5
  373. struct CNP_TransportAddress_netBios_netBios {
  374. ASN1uint32_t length;
  375. ASN1octet_t value[16];
  376. } netBios;
  377. # define nsap_chosen 6
  378. struct CNP_TransportAddress_nsap_nsap {
  379. ASN1uint32_t length;
  380. ASN1octet_t value[20];
  381. } nsap;
  382. # define nonStandardTransportAddress_chosen 7
  383. CNP_NonStandardParameter nonStandardTransportAddress;
  384. } u;
  385. } CNP_TransportAddress;
  386. typedef struct AliasAddress {
  387. ASN1choice_t choice;
  388. union {
  389. # define e164Address_chosen 1
  390. NumberDigits e164Address;
  391. # define name_chosen 2
  392. ASN1char16string_t name;
  393. # define url_chosen 3
  394. ASN1char_t url[513];
  395. # define transportAddress_chosen 4
  396. CNP_TransportAddress transportAddress;
  397. # define emailAddress_chosen 5
  398. ASN1char_t emailAddress[513];
  399. # define partyNumber_chosen 6
  400. PartyNumber partyNumber;
  401. # define nonStandardAliasAddress_chosen 7
  402. CNP_NonStandardParameter nonStandardAliasAddress;
  403. } u;
  404. } AliasAddress;
  405. typedef struct ReliableSecurityProtocol {
  406. ASN1choice_t choice;
  407. union {
  408. # define ReliableSecurityProtocol_none_chosen 1
  409. # define tls_chosen 2
  410. # define ssl_chosen 3
  411. # define ReliableSecurityProtocol_ipsecIKEKeyManagement_chosen 4
  412. # define ReliableSecurityProtocol_ipsecManualKeyManagement_chosen 5
  413. # define x274WithoutSAID_chosen 6
  414. # define x274WithSAID_chosen 7
  415. X274WithSAIDInfo x274WithSAID;
  416. # define ReliableSecurityProtocol_physical_chosen 8
  417. # define gssApiX224_chosen 9
  418. # define ReliableSecurityProtocol_nonStandardSecurityProtocol_chosen 10
  419. CNP_NonStandardParameter nonStandardSecurityProtocol;
  420. } u;
  421. } ReliableSecurityProtocol;
  422. typedef struct UnreliableTransportProtocol {
  423. union {
  424. ASN1uint16_t bit_mask;
  425. ASN1octet_t o[1];
  426. };
  427. UnreliableTransportProtocolType type;
  428. TPDUSize maxTPDUSize;
  429. CNP_TransportAddress sourceAddress;
  430. # define sourceTSAP_present 0x80
  431. ASN1octetstring_t sourceTSAP;
  432. # define UnreliableTransportProtocol_nonStandardParameters_present 0x40
  433. PUnreliableTransportProtocol_nonStandardParameters nonStandardParameters;
  434. } UnreliableTransportProtocol;
  435. typedef struct ConnectConfirmPDU {
  436. union {
  437. ASN1uint16_t bit_mask;
  438. ASN1octet_t o[1];
  439. };
  440. ProtocolIdentifier protocolIdentifier;
  441. # define ConnectConfirmPDU_reliableTransportProtocol_present 0x80
  442. ReliableTransportProtocol reliableTransportProtocol;
  443. # define ConnectConfirmPDU_reliableSecurityProtocol_present 0x40
  444. ReliableSecurityProtocol reliableSecurityProtocol;
  445. # define ConnectConfirmPDU_unreliableTransportProtocol_present 0x20
  446. UnreliableTransportProtocol unreliableTransportProtocol;
  447. # define ConnectConfirmPDU_unreliableSecurityProtocol_present 0x10
  448. UnreliableSecurityProtocol unreliableSecurityProtocol;
  449. # define ConnectConfirmPDU_nonStandardParameters_present 0x8
  450. PConnectConfirmPDU_nonStandardParameters nonStandardParameters;
  451. } ConnectConfirmPDU;
  452. typedef struct DisconnectRequestPDU {
  453. union {
  454. ASN1uint16_t bit_mask;
  455. ASN1octet_t o[1];
  456. };
  457. DisconnectReason disconnectReason;
  458. # define DisconnectRequestPDU_reliableTransportProtocol_present 0x80
  459. ReliableTransportProtocol reliableTransportProtocol;
  460. # define DisconnectRequestPDU_reliableSecurityProtocol_present 0x40
  461. ReliableSecurityProtocol reliableSecurityProtocol;
  462. # define DisconnectRequestPDU_unreliableTransportProtocol_present 0x20
  463. UnreliableTransportProtocol unreliableTransportProtocol;
  464. # define DisconnectRequestPDU_unreliableSecurityProtocol_present 0x10
  465. UnreliableSecurityProtocol unreliableSecurityProtocol;
  466. # define DisconnectRequestPDU_destinationAddress_present 0x8
  467. PDisconnectRequestPDU_destinationAddress destinationAddress;
  468. # define DisconnectRequestPDU_nonStandardParameters_present 0x4
  469. PDisconnectRequestPDU_nonStandardParameters nonStandardParameters;
  470. } DisconnectRequestPDU;
  471. typedef struct CNPPDU {
  472. ASN1choice_t choice;
  473. union {
  474. # define connectRequest_chosen 1
  475. ConnectRequestPDU connectRequest;
  476. # define connectConfirm_chosen 2
  477. ConnectConfirmPDU connectConfirm;
  478. # define disconnectRequest_chosen 3
  479. DisconnectRequestPDU disconnectRequest;
  480. # define error_chosen 4
  481. ErrorPDU error;
  482. # define nonStandardCNPPDU_chosen 5
  483. CNP_NonStandardPDU nonStandardCNPPDU;
  484. } u;
  485. } CNPPDU;
  486. #define CNPPDU_PDU 0
  487. #define SIZE_CNPPDU_Module_PDU_0 sizeof(CNPPDU)
  488. typedef struct DisconnectRequestPDU_destinationAddress {
  489. PDisconnectRequestPDU_destinationAddress next;
  490. AliasAddress value;
  491. } DisconnectRequestPDU_destinationAddress_Element;
  492. typedef struct ConnectRequestPDU_destinationAddress {
  493. PConnectRequestPDU_destinationAddress next;
  494. AliasAddress value;
  495. } ConnectRequestPDU_destinationAddress_Element;
  496. typedef struct ConnectRequestPDU_unreliableTransportProtocols {
  497. PConnectRequestPDU_unreliableTransportProtocols next;
  498. UnreliableTransportProtocol value;
  499. } ConnectRequestPDU_unreliableTransportProtocols_Element;
  500. typedef struct ConnectRequestPDU_reliableSecurityProtocols {
  501. PConnectRequestPDU_reliableSecurityProtocols next;
  502. ReliableSecurityProtocol value;
  503. } ConnectRequestPDU_reliableSecurityProtocols_Element;
  504. extern ASN1objectidentifier_t t123AnnexBProtocolId;
  505. extern ASN1module_t CNPPDU_Module;
  506. extern void ASN1CALL CNPPDU_Module_Startup(void);
  507. extern void ASN1CALL CNPPDU_Module_Cleanup(void);
  508. /* Prototypes of element functions for SEQUENCE OF and SET OF constructs */
  509. extern int ASN1CALL ASN1Enc_CNP_TransportAddress_ipSourceRoute_route_ElmFn(ASN1encoding_t enc, PCNP_TransportAddress_ipSourceRoute_route val);
  510. extern int ASN1CALL ASN1Dec_CNP_TransportAddress_ipSourceRoute_route_ElmFn(ASN1decoding_t dec, PCNP_TransportAddress_ipSourceRoute_route val);
  511. extern void ASN1CALL ASN1Free_CNP_TransportAddress_ipSourceRoute_route_ElmFn(PCNP_TransportAddress_ipSourceRoute_route val);
  512. extern int ASN1CALL ASN1Enc_CNP_TransportAddress_ipAddress_nonStandardParameters_ElmFn(ASN1encoding_t enc, PCNP_TransportAddress_ipAddress_nonStandardParameters val);
  513. extern int ASN1CALL ASN1Dec_CNP_TransportAddress_ipAddress_nonStandardParameters_ElmFn(ASN1decoding_t dec, PCNP_TransportAddress_ipAddress_nonStandardParameters val);
  514. extern void ASN1CALL ASN1Free_CNP_TransportAddress_ipAddress_nonStandardParameters_ElmFn(PCNP_TransportAddress_ipAddress_nonStandardParameters val);
  515. extern int ASN1CALL ASN1Enc_CNP_TransportAddress_ipSourceRoute_nonStandardParameters_ElmFn(ASN1encoding_t enc, PCNP_TransportAddress_ipSourceRoute_nonStandardParameters val);
  516. extern int ASN1CALL ASN1Dec_CNP_TransportAddress_ipSourceRoute_nonStandardParameters_ElmFn(ASN1decoding_t dec, PCNP_TransportAddress_ipSourceRoute_nonStandardParameters val);
  517. extern void ASN1CALL ASN1Free_CNP_TransportAddress_ipSourceRoute_nonStandardParameters_ElmFn(PCNP_TransportAddress_ipSourceRoute_nonStandardParameters val);
  518. extern int ASN1CALL ASN1Enc_CNP_TransportAddress_ipxAddress_nonStandardParameters_ElmFn(ASN1encoding_t enc, PCNP_TransportAddress_ipxAddress_nonStandardParameters val);
  519. extern int ASN1CALL ASN1Dec_CNP_TransportAddress_ipxAddress_nonStandardParameters_ElmFn(ASN1decoding_t dec, PCNP_TransportAddress_ipxAddress_nonStandardParameters val);
  520. extern void ASN1CALL ASN1Free_CNP_TransportAddress_ipxAddress_nonStandardParameters_ElmFn(PCNP_TransportAddress_ipxAddress_nonStandardParameters val);
  521. extern int ASN1CALL ASN1Enc_CNP_TransportAddress_ip6Address_nonStandardParameters_ElmFn(ASN1encoding_t enc, PCNP_TransportAddress_ip6Address_nonStandardParameters val);
  522. extern int ASN1CALL ASN1Dec_CNP_TransportAddress_ip6Address_nonStandardParameters_ElmFn(ASN1decoding_t dec, PCNP_TransportAddress_ip6Address_nonStandardParameters val);
  523. extern void ASN1CALL ASN1Free_CNP_TransportAddress_ip6Address_nonStandardParameters_ElmFn(PCNP_TransportAddress_ip6Address_nonStandardParameters val);
  524. extern int ASN1CALL ASN1Enc_CNP_NonStandardPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PCNP_NonStandardPDU_nonStandardParameters val);
  525. extern int ASN1CALL ASN1Dec_CNP_NonStandardPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PCNP_NonStandardPDU_nonStandardParameters val);
  526. extern void ASN1CALL ASN1Free_CNP_NonStandardPDU_nonStandardParameters_ElmFn(PCNP_NonStandardPDU_nonStandardParameters val);
  527. extern int ASN1CALL ASN1Enc_ErrorPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PErrorPDU_nonStandardParameters val);
  528. extern int ASN1CALL ASN1Dec_ErrorPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PErrorPDU_nonStandardParameters val);
  529. extern void ASN1CALL ASN1Free_ErrorPDU_nonStandardParameters_ElmFn(PErrorPDU_nonStandardParameters val);
  530. extern int ASN1CALL ASN1Enc_DisconnectRequestPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PDisconnectRequestPDU_nonStandardParameters val);
  531. extern int ASN1CALL ASN1Dec_DisconnectRequestPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PDisconnectRequestPDU_nonStandardParameters val);
  532. extern void ASN1CALL ASN1Free_DisconnectRequestPDU_nonStandardParameters_ElmFn(PDisconnectRequestPDU_nonStandardParameters val);
  533. extern int ASN1CALL ASN1Enc_ConnectConfirmPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PConnectConfirmPDU_nonStandardParameters val);
  534. extern int ASN1CALL ASN1Dec_ConnectConfirmPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PConnectConfirmPDU_nonStandardParameters val);
  535. extern void ASN1CALL ASN1Free_ConnectConfirmPDU_nonStandardParameters_ElmFn(PConnectConfirmPDU_nonStandardParameters val);
  536. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_nonStandardParameters_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_nonStandardParameters val);
  537. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_nonStandardParameters_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_nonStandardParameters val);
  538. extern void ASN1CALL ASN1Free_ConnectRequestPDU_nonStandardParameters_ElmFn(PConnectRequestPDU_nonStandardParameters val);
  539. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_unreliableSecurityProtocols_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_unreliableSecurityProtocols val);
  540. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_unreliableSecurityProtocols_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_unreliableSecurityProtocols val);
  541. extern void ASN1CALL ASN1Free_ConnectRequestPDU_unreliableSecurityProtocols_ElmFn(PConnectRequestPDU_unreliableSecurityProtocols val);
  542. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_reliableTransportProtocols_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_reliableTransportProtocols val);
  543. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_reliableTransportProtocols_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_reliableTransportProtocols val);
  544. extern void ASN1CALL ASN1Free_ConnectRequestPDU_reliableTransportProtocols_ElmFn(PConnectRequestPDU_reliableTransportProtocols val);
  545. extern int ASN1CALL ASN1Enc_UnreliableTransportProtocol_nonStandardParameters_ElmFn(ASN1encoding_t enc, PUnreliableTransportProtocol_nonStandardParameters val);
  546. extern int ASN1CALL ASN1Dec_UnreliableTransportProtocol_nonStandardParameters_ElmFn(ASN1decoding_t dec, PUnreliableTransportProtocol_nonStandardParameters val);
  547. extern void ASN1CALL ASN1Free_UnreliableTransportProtocol_nonStandardParameters_ElmFn(PUnreliableTransportProtocol_nonStandardParameters val);
  548. extern int ASN1CALL ASN1Enc_ReliableTransportProtocol_nonStandardParameters_ElmFn(ASN1encoding_t enc, PReliableTransportProtocol_nonStandardParameters val);
  549. extern int ASN1CALL ASN1Dec_ReliableTransportProtocol_nonStandardParameters_ElmFn(ASN1decoding_t dec, PReliableTransportProtocol_nonStandardParameters val);
  550. extern void ASN1CALL ASN1Free_ReliableTransportProtocol_nonStandardParameters_ElmFn(PReliableTransportProtocol_nonStandardParameters val);
  551. extern int ASN1CALL ASN1Enc_PrivatePartyNumber_nonStandardParameters_ElmFn(ASN1encoding_t enc, PPrivatePartyNumber_nonStandardParameters val);
  552. extern int ASN1CALL ASN1Dec_PrivatePartyNumber_nonStandardParameters_ElmFn(ASN1decoding_t dec, PPrivatePartyNumber_nonStandardParameters val);
  553. extern void ASN1CALL ASN1Free_PrivatePartyNumber_nonStandardParameters_ElmFn(PPrivatePartyNumber_nonStandardParameters val);
  554. extern int ASN1CALL ASN1Enc_PublicPartyNumber_nonStandardParameters_ElmFn(ASN1encoding_t enc, PPublicPartyNumber_nonStandardParameters val);
  555. extern int ASN1CALL ASN1Dec_PublicPartyNumber_nonStandardParameters_ElmFn(ASN1decoding_t dec, PPublicPartyNumber_nonStandardParameters val);
  556. extern void ASN1CALL ASN1Free_PublicPartyNumber_nonStandardParameters_ElmFn(PPublicPartyNumber_nonStandardParameters val);
  557. extern int ASN1CALL ASN1Enc_DisconnectRequestPDU_destinationAddress_ElmFn(ASN1encoding_t enc, PDisconnectRequestPDU_destinationAddress val);
  558. extern int ASN1CALL ASN1Dec_DisconnectRequestPDU_destinationAddress_ElmFn(ASN1decoding_t dec, PDisconnectRequestPDU_destinationAddress val);
  559. extern void ASN1CALL ASN1Free_DisconnectRequestPDU_destinationAddress_ElmFn(PDisconnectRequestPDU_destinationAddress val);
  560. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_destinationAddress_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_destinationAddress val);
  561. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_destinationAddress_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_destinationAddress val);
  562. extern void ASN1CALL ASN1Free_ConnectRequestPDU_destinationAddress_ElmFn(PConnectRequestPDU_destinationAddress val);
  563. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_unreliableTransportProtocols_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_unreliableTransportProtocols val);
  564. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_unreliableTransportProtocols_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_unreliableTransportProtocols val);
  565. extern void ASN1CALL ASN1Free_ConnectRequestPDU_unreliableTransportProtocols_ElmFn(PConnectRequestPDU_unreliableTransportProtocols val);
  566. extern int ASN1CALL ASN1Enc_ConnectRequestPDU_reliableSecurityProtocols_ElmFn(ASN1encoding_t enc, PConnectRequestPDU_reliableSecurityProtocols val);
  567. extern int ASN1CALL ASN1Dec_ConnectRequestPDU_reliableSecurityProtocols_ElmFn(ASN1decoding_t dec, PConnectRequestPDU_reliableSecurityProtocols val);
  568. extern void ASN1CALL ASN1Free_ConnectRequestPDU_reliableSecurityProtocols_ElmFn(PConnectRequestPDU_reliableSecurityProtocols val);
  569. #ifdef __cplusplus
  570. } /* extern "C" */
  571. #endif
  572. #endif /* _CNPPDU_Module_H_ */