119-per-strings-OK.asn1.-Pgen-PER 50.5 KB
Newer Older
1 2 3 4 5 6 7 8

/*** <<< INCLUDES [PDU] >>> ***/

#include <IA5String.h>
#include <VisibleString.h>
#include <PrintableString.h>
#include <NumericString.h>
#include <UTF8String.h>
9 10
#include <BMPString.h>
#include <UniversalString.h>
11
#include <NativeReal.h>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#include <OBJECT_IDENTIFIER.h>
#include <asn_SEQUENCE_OF.h>
#include <constr_SEQUENCE_OF.h>
#include <constr_SEQUENCE.h>

/*** <<< FWD-DECLS [PDU] >>> ***/

struct PDU;

/*** <<< TYPE-DECLS [PDU] >>> ***/

typedef struct PDU {
	struct many {
		A_SEQUENCE_OF(struct PDU) list;
		
		/* Context for parsing across buffer boundaries */
		asn_struct_ctx_t _asn_ctx;
	} *many;
	IA5String_t	*ia5	/* OPTIONAL */;
	IA5String_t	*ia5_c	/* OPTIONAL */;
	IA5String_t	*ia5_ce	/* OPTIONAL */;
	IA5String_t	*ia5_ir	/* OPTIONAL */;
	VisibleString_t	*vs	/* OPTIONAL */;
	VisibleString_t	*vs_c	/* OPTIONAL */;
	VisibleString_t	*vs_ce	/* OPTIONAL */;
	VisibleString_t	*vs_ir	/* OPTIONAL */;
	PrintableString_t	*pr	/* OPTIONAL */;
	PrintableString_t	*pr_c	/* OPTIONAL */;
	PrintableString_t	*pr_ir	/* OPTIONAL */;
	NumericString_t	*ns	/* OPTIONAL */;
	NumericString_t	*ns_c	/* OPTIONAL */;
	NumericString_t	*ns_ce	/* OPTIONAL */;
	NumericString_t	*ns_ir	/* OPTIONAL */;
	UTF8String_t	*ut_c	/* OPTIONAL */;
	UTF8String_t	*ut_ce	/* OPTIONAL */;
	UTF8String_t	*ut_ir	/* OPTIONAL */;
48 49 50 51 52 53 54 55 56 57
	BMPString_t	*bm	/* OPTIONAL */;
	BMPString_t	*bm_c	/* OPTIONAL */;
	BMPString_t	*bm_cs	/* OPTIONAL */;
	BMPString_t	*bm_ce	/* OPTIONAL */;
	BMPString_t	*bm_ir	/* OPTIONAL */;
	UniversalString_t	*us	/* OPTIONAL */;
	UniversalString_t	*us_c	/* OPTIONAL */;
	UniversalString_t	*us_cs	/* OPTIONAL */;
	UniversalString_t	*us_ce	/* OPTIONAL */;
	UniversalString_t	*us_ir	/* OPTIONAL */;
58
	double	*real	/* OPTIONAL */;
59 60 61 62 63 64 65 66 67
	OBJECT_IDENTIFIER_t	*oid	/* OPTIONAL */;
	
	/* Context for parsing across buffer boundaries */
	asn_struct_ctx_t _asn_ctx;
} PDU_t;

/*** <<< FUNC-DECLS [PDU] >>> ***/

extern asn_TYPE_descriptor_t asn_DEF_PDU;
68 69
extern asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1;
extern asn_TYPE_member_t asn_MBR_PDU_1[31];
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102

/*** <<< POST-INCLUDE [PDU] >>> ***/

#include "PDU.h"

/*** <<< CTABLES [PDU] >>> ***/

static int check_permitted_alphabet_5(const void *sptr) {
	/* The underlying type is IA5String */
	const IA5String_t *st = (const IA5String_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_6(const void *sptr) {
	/* The underlying type is IA5String */
	const IA5String_t *st = (const IA5String_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

103
static const int permitted_alphabet_table_7[256] = {
104 105 106 107 108 109 110
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  AB              */
 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0,	/*         XYZ      */
};
111
static const int permitted_alphabet_code2value_7[5] = {
112 113 114 115
65,66,88,89,90,};


static int check_permitted_alphabet_7(const void *sptr) {
116
	const int *table = permitted_alphabet_table_7;
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
	/* The underlying type is IA5String */
	const IA5String_t *st = (const IA5String_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!table[cv]) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_9(const void *sptr) {
	/* The underlying type is VisibleString */
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_10(const void *sptr) {
	/* The underlying type is VisibleString */
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

155
static const int permitted_alphabet_table_11[256] = {
156 157 158 159 160 161 162
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  AB              */
 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0,	/*         XYZ      */
};
163
static const int permitted_alphabet_code2value_11[5] = {
164 165 166 167
65,66,88,89,90,};


static int check_permitted_alphabet_11(const void *sptr) {
168
	const int *table = permitted_alphabet_table_11;
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
	/* The underlying type is VisibleString */
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!table[cv]) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_13(const void *sptr) {
	/* The underlying type is PrintableString */
	const PrintableString_t *st = (const PrintableString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

194
static const int permitted_alphabet_table_14[256] = {
195 196 197 198 199 200 201
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  AB              */
 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0,	/*         XYZ      */
};
202
static const int permitted_alphabet_code2value_14[5] = {
203 204 205 206
65,66,88,89,90,};


static int check_permitted_alphabet_14(const void *sptr) {
207
	const int *table = permitted_alphabet_table_14;
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
	/* The underlying type is PrintableString */
	const PrintableString_t *st = (const PrintableString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!table[cv]) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_16(const void *sptr) {
	/* The underlying type is NumericString */
	const NumericString_t *st = (const NumericString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 53 && cv <= 57)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_17(const void *sptr) {
	/* The underlying type is NumericString */
	const NumericString_t *st = (const NumericString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!(cv >= 53 && cv <= 57)) return -1;
	}
	return 0;
}

246
static const int permitted_alphabet_table_18[256] = {
247 248 249 250 251
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,	/*  1       9       */
};
252
static const int permitted_alphabet_code2value_18[2] = {
253 254 255 256
49,57,};


static int check_permitted_alphabet_18(const void *sptr) {
257
	const int *table = permitted_alphabet_table_18;
258 259 260 261 262 263 264 265 266 267 268 269
	/* The underlying type is NumericString */
	const NumericString_t *st = (const NumericString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(!table[cv]) return -1;
	}
	return 0;
}

270
static const int permitted_alphabet_table_21[128] = {
271 272 273 274 275 276 277 278 279
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  A               */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,	/*           Z      */
};

static int check_permitted_alphabet_21(const void *sptr) {
280
	const int *table = permitted_alphabet_table_21;
281 282 283 284 285 286 287 288 289 290 291 292 293
	/* The underlying type is UTF8String */
	const UTF8String_t *st = (const UTF8String_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	for(; ch < end; ch++) {
		uint8_t cv = *ch;
		if(cv >= 0x80) return -1;
		if(!table[cv]) return -1;
	}
	return 0;
}

294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
static int check_permitted_alphabet_23(const void *sptr) {
	/* The underlying type is BMPString */
	const BMPString_t *st = (const BMPString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 2) return -1; /* (size%2)! */
	for(; ch < end; ch += 2) {
		uint16_t cv = (ch[0] << 8)
				| ch[1];
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_24(const void *sptr) {
	/* The underlying type is BMPString */
	const BMPString_t *st = (const BMPString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 2) return -1; /* (size%2)! */
	for(; ch < end; ch += 2) {
		uint16_t cv = (ch[0] << 8)
				| ch[1];
		if(!(cv <= 65533)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_25(const void *sptr) {
	/* The underlying type is BMPString */
	const BMPString_t *st = (const BMPString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 2) return -1; /* (size%2)! */
	for(; ch < end; ch += 2) {
		uint16_t cv = (ch[0] << 8)
				| ch[1];
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

339
static const int permitted_alphabet_table_26[256] = {
340 341 342 343 344 345 346
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  AB              */
 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0,	/*         XYZ      */
};
347
static const int permitted_alphabet_code2value_26[5] = {
348 349 350 351
65,66,88,89,90,};


static int check_permitted_alphabet_26(const void *sptr) {
352
	const int *table = permitted_alphabet_table_26;
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
	/* The underlying type is BMPString */
	const BMPString_t *st = (const BMPString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 2) return -1; /* (size%2)! */
	for(; ch < end; ch += 2) {
		uint16_t cv = (ch[0] << 8)
				| ch[1];
		if(cv > 255) return -1;
		if(!table[cv]) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_28(const void *sptr) {
	/* The underlying type is UniversalString */
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 4) return -1; /* (size%4)! */
	for(; ch < end; ch += 4) {
		uint32_t cv = (ch[0] << 24)
				| (ch[1] << 16)
				| (ch[2] << 8)
				|  ch[3];
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_29(const void *sptr) {
	/* The underlying type is UniversalString */
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 4) return -1; /* (size%4)! */
	for(; ch < end; ch += 4) {
		uint32_t cv = (ch[0] << 24)
				| (ch[1] << 16)
				| (ch[2] << 8)
				|  ch[3];
		if(!(1 /* Constraint matches natural range of cv */)) return -1;
	}
	return 0;
}

static int check_permitted_alphabet_30(const void *sptr) {
	/* The underlying type is UniversalString */
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 4) return -1; /* (size%4)! */
	for(; ch < end; ch += 4) {
		uint32_t cv = (ch[0] << 24)
				| (ch[1] << 16)
				| (ch[2] << 8)
				|  ch[3];
		if(!(cv >= 65 && cv <= 90)) return -1;
	}
	return 0;
}

419
static const int permitted_alphabet_table_31[256] = {
420 421 422 423 424 425 426
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*                  */
 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  AB              */
 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0,	/*         XYZ      */
};
427
static const int permitted_alphabet_code2value_31[5] = {
428 429 430 431
65,66,88,89,90,};


static int check_permitted_alphabet_31(const void *sptr) {
432
	const int *table = permitted_alphabet_table_31;
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
	/* The underlying type is UniversalString */
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	const uint8_t *ch = st->buf;
	const uint8_t *end = ch + st->size;
	
	if(st->size % 4) return -1; /* (size%4)! */
	for(; ch < end; ch += 4) {
		uint32_t cv = (ch[0] << 24)
				| (ch[1] << 16)
				| (ch[2] << 8)
				|  ch[3];
		if(cv > 255) return -1;
		if(!table[cv]) return -1;
	}
	return 0;
}

450 451 452 453 454 455 456 457 458

/*** <<< CODE [PDU] >>> ***/

static int
memb_ia5_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const IA5String_t *st = (const IA5String_t *)sptr;
	
	if(!sptr) {
459
		ASN__CTFAIL(app_key, td, sptr,
460 461 462 463 464 465 466 467 468 469
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_5(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
470
		ASN__CTFAIL(app_key, td, sptr,
471 472 473 474 475 476 477 478 479 480 481 482
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ia5_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const IA5String_t *st = (const IA5String_t *)sptr;
	
	if(!sptr) {
483
		ASN__CTFAIL(app_key, td, sptr,
484 485 486 487 488 489 490 491 492 493
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_6(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
494
		ASN__CTFAIL(app_key, td, sptr,
495 496 497 498 499 500 501 502 503 504 505 506
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ia5_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const IA5String_t *st = (const IA5String_t *)sptr;
	
	if(!sptr) {
507
		ASN__CTFAIL(app_key, td, sptr,
508 509 510 511 512 513 514 515 516 517
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_7(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
518
		ASN__CTFAIL(app_key, td, sptr,
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_ia5_ir_7_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_7)/sizeof(permitted_alphabet_table_7[0]))
		return -1;
	return permitted_alphabet_table_7[value] - 1;
}
static int asn_PER_MAP_ia5_ir_7_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_7)/sizeof(permitted_alphabet_code2value_7[0]))
		return -1;
	return permitted_alphabet_code2value_7[code];
}
static int
memb_vs_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	
	if(!sptr) {
541
		ASN__CTFAIL(app_key, td, sptr,
542 543 544 545 546 547 548 549 550 551
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_9(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
552
		ASN__CTFAIL(app_key, td, sptr,
553 554 555 556 557 558 559 560 561 562 563 564
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_vs_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	
	if(!sptr) {
565
		ASN__CTFAIL(app_key, td, sptr,
566 567 568 569 570 571 572 573 574 575
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_10(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
576
		ASN__CTFAIL(app_key, td, sptr,
577 578 579 580 581 582 583 584 585 586 587 588
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_vs_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const VisibleString_t *st = (const VisibleString_t *)sptr;
	
	if(!sptr) {
589
		ASN__CTFAIL(app_key, td, sptr,
590 591 592 593 594 595 596 597 598 599
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_11(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
600
		ASN__CTFAIL(app_key, td, sptr,
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_vs_ir_11_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_11)/sizeof(permitted_alphabet_table_11[0]))
		return -1;
	return permitted_alphabet_table_11[value] - 1;
}
static int asn_PER_MAP_vs_ir_11_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_11)/sizeof(permitted_alphabet_code2value_11[0]))
		return -1;
	return permitted_alphabet_code2value_11[code];
}
static int
memb_pr_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const PrintableString_t *st = (const PrintableString_t *)sptr;
	
	if(!sptr) {
623
		ASN__CTFAIL(app_key, td, sptr,
624 625 626 627 628 629 630 631 632 633
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_13(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
634
		ASN__CTFAIL(app_key, td, sptr,
635 636 637 638 639 640 641 642 643 644 645 646
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_pr_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const PrintableString_t *st = (const PrintableString_t *)sptr;
	
	if(!sptr) {
647
		ASN__CTFAIL(app_key, td, sptr,
648 649 650 651 652 653 654 655 656 657
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_14(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
658
		ASN__CTFAIL(app_key, td, sptr,
659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_pr_ir_14_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_14)/sizeof(permitted_alphabet_table_14[0]))
		return -1;
	return permitted_alphabet_table_14[value] - 1;
}
static int asn_PER_MAP_pr_ir_14_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_14)/sizeof(permitted_alphabet_code2value_14[0]))
		return -1;
	return permitted_alphabet_code2value_14[code];
}
static int
memb_ns_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const NumericString_t *st = (const NumericString_t *)sptr;
	
	if(!sptr) {
681
		ASN__CTFAIL(app_key, td, sptr,
682 683 684 685 686 687 688 689 690 691
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_16(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
692
		ASN__CTFAIL(app_key, td, sptr,
693 694 695 696 697 698 699 700 701 702 703 704
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ns_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const NumericString_t *st = (const NumericString_t *)sptr;
	
	if(!sptr) {
705
		ASN__CTFAIL(app_key, td, sptr,
706 707 708 709 710 711 712 713 714 715
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_17(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
716
		ASN__CTFAIL(app_key, td, sptr,
717 718 719 720 721 722 723 724 725 726 727 728
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ns_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const NumericString_t *st = (const NumericString_t *)sptr;
	
	if(!sptr) {
729
		ASN__CTFAIL(app_key, td, sptr,
730 731 732 733 734 735 736 737 738 739
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_18(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
740
		ASN__CTFAIL(app_key, td, sptr,
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_ns_ir_18_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_18)/sizeof(permitted_alphabet_table_18[0]))
		return -1;
	return permitted_alphabet_table_18[value] - 1;
}
static int asn_PER_MAP_ns_ir_18_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_18)/sizeof(permitted_alphabet_code2value_18[0]))
		return -1;
	return permitted_alphabet_code2value_18[code];
}
static int
memb_ut_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UTF8String_t *st = (const UTF8String_t *)sptr;
	size_t size;
	
	if(!sptr) {
764
		ASN__CTFAIL(app_key, td, sptr,
765 766 767 768 769 770 771
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	size = UTF8String_length(st);
	if((ssize_t)size < 0) {
772
		ASN__CTFAIL(app_key, td, sptr,
773 774 775 776 777 778 779 780 781
			"%s: UTF-8: broken encoding (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	if((size == 6)) {
		/* Constraint check succeeded */
		return 0;
	} else {
782
		ASN__CTFAIL(app_key, td, sptr,
783 784 785 786 787 788 789 790 791 792 793 794 795
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ut_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UTF8String_t *st = (const UTF8String_t *)sptr;
	size_t size;
	
	if(!sptr) {
796
		ASN__CTFAIL(app_key, td, sptr,
797 798 799 800 801 802 803
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	size = UTF8String_length(st);
	if((ssize_t)size < 0) {
804
		ASN__CTFAIL(app_key, td, sptr,
805 806 807 808 809 810 811 812 813
			"%s: UTF-8: broken encoding (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	if((size == 6)) {
		/* Constraint check succeeded */
		return 0;
	} else {
814
		ASN__CTFAIL(app_key, td, sptr,
815 816 817 818 819 820 821 822 823 824 825 826
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_ut_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UTF8String_t *st = (const UTF8String_t *)sptr;
	
	if(!sptr) {
827
		ASN__CTFAIL(app_key, td, sptr,
828 829 830 831 832 833 834 835 836 837
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_21(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
838
		ASN__CTFAIL(app_key, td, sptr,
839 840 841 842 843 844
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

845 846 847 848 849 850
static int
memb_bm_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const BMPString_t *st = (const BMPString_t *)sptr;
	
	if(!sptr) {
851
		ASN__CTFAIL(app_key, td, sptr,
852 853 854 855 856 857 858 859 860 861
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_23(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
862
		ASN__CTFAIL(app_key, td, sptr,
863 864 865 866 867 868 869 870 871 872 873 874 875
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_bm_cs_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const BMPString_t *st = (const BMPString_t *)sptr;
	size_t size;
	
	if(!sptr) {
876
		ASN__CTFAIL(app_key, td, sptr,
877 878 879 880 881 882 883 884 885 886 887 888
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	size = st->size >> 1;	/* 2 byte per character */
	
	if((size == 6)
		 && !check_permitted_alphabet_24(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
889
		ASN__CTFAIL(app_key, td, sptr,
890 891 892 893 894 895 896 897 898 899 900 901
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_bm_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const BMPString_t *st = (const BMPString_t *)sptr;
	
	if(!sptr) {
902
		ASN__CTFAIL(app_key, td, sptr,
903 904 905 906 907 908 909 910 911 912
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_25(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
913
		ASN__CTFAIL(app_key, td, sptr,
914 915 916 917 918 919 920 921 922 923 924 925
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_bm_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const BMPString_t *st = (const BMPString_t *)sptr;
	
	if(!sptr) {
926
		ASN__CTFAIL(app_key, td, sptr,
927 928 929 930 931 932 933 934 935 936
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_26(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
937
		ASN__CTFAIL(app_key, td, sptr,
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_bm_ir_26_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_26)/sizeof(permitted_alphabet_table_26[0]))
		return -1;
	return permitted_alphabet_table_26[value] - 1;
}
static int asn_PER_MAP_bm_ir_26_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_26)/sizeof(permitted_alphabet_code2value_26[0]))
		return -1;
	return permitted_alphabet_code2value_26[code];
}
static int
memb_us_c_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	
	if(!sptr) {
960
		ASN__CTFAIL(app_key, td, sptr,
961 962 963 964 965 966 967 968 969 970
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_28(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
971
		ASN__CTFAIL(app_key, td, sptr,
972 973 974 975 976 977 978 979 980 981 982 983 984
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_us_cs_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	size_t size;
	
	if(!sptr) {
985
		ASN__CTFAIL(app_key, td, sptr,
986 987 988 989 990 991 992 993 994 995 996 997
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	size = st->size >> 2;	/* 4 byte per character */
	
	if((size == 6)
		 && !check_permitted_alphabet_29(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
998
		ASN__CTFAIL(app_key, td, sptr,
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_us_ce_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	
	if(!sptr) {
1011
		ASN__CTFAIL(app_key, td, sptr,
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_30(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
1022
		ASN__CTFAIL(app_key, td, sptr,
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int
memb_us_ir_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
	const UniversalString_t *st = (const UniversalString_t *)sptr;
	
	if(!sptr) {
1035
		ASN__CTFAIL(app_key, td, sptr,
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045
			"%s: value not given (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
	
	
	if(!check_permitted_alphabet_31(st)) {
		/* Constraint check succeeded */
		return 0;
	} else {
1046
		ASN__CTFAIL(app_key, td, sptr,
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062
			"%s: constraint failed (%s:%d)",
			td->name, __FILE__, __LINE__);
		return -1;
	}
}

static int asn_PER_MAP_us_ir_31_v2c(unsigned int value) {
	if(value >= sizeof(permitted_alphabet_table_31)/sizeof(permitted_alphabet_table_31[0]))
		return -1;
	return permitted_alphabet_table_31[value] - 1;
}
static int asn_PER_MAP_us_ir_31_c2v(unsigned int code) {
	if(code >= sizeof(permitted_alphabet_code2value_31)/sizeof(permitted_alphabet_code2value_31[0]))
		return -1;
	return permitted_alphabet_code2value_31[code];
}
1063 1064 1065

/*** <<< CTDEFS [PDU] >>> ***/

Lev Walkin's avatar
Lev Walkin committed
1066
static asn_per_constraints_t asn_PER_memb_ia5_c_constr_5 CC_NOTUSED = {
1067 1068 1069 1070
	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1071
static asn_per_constraints_t asn_PER_memb_ia5_ce_constr_6 CC_NOTUSED = {
1072 1073 1074 1075
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1076
static asn_per_constraints_t asn_PER_memb_ia5_ir_constr_7 CC_NOTUSED = {
1077 1078 1079 1080 1081
	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_ia5_ir_7_v2c,	/* Value to PER code map */
	asn_PER_MAP_ia5_ir_7_c2v	/* PER code to value map */
};
Lev Walkin's avatar
Lev Walkin committed
1082
static asn_per_constraints_t asn_PER_memb_vs_c_constr_9 CC_NOTUSED = {
1083 1084 1085 1086
	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1087
static asn_per_constraints_t asn_PER_memb_vs_ce_constr_10 CC_NOTUSED = {
1088 1089 1090 1091
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1092
static asn_per_constraints_t asn_PER_memb_vs_ir_constr_11 CC_NOTUSED = {
1093 1094 1095 1096 1097
	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_vs_ir_11_v2c,	/* Value to PER code map */
	asn_PER_MAP_vs_ir_11_c2v	/* PER code to value map */
};
Lev Walkin's avatar
Lev Walkin committed
1098
static asn_per_constraints_t asn_PER_memb_pr_c_constr_13 CC_NOTUSED = {
1099 1100 1101 1102
	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1103
static asn_per_constraints_t asn_PER_memb_pr_ir_constr_14 CC_NOTUSED = {
1104 1105 1106 1107 1108
	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_pr_ir_14_v2c,	/* Value to PER code map */
	asn_PER_MAP_pr_ir_14_c2v	/* PER code to value map */
};
Lev Walkin's avatar
Lev Walkin committed
1109
static asn_per_constraints_t asn_PER_memb_ns_c_constr_16 CC_NOTUSED = {
1110 1111 1112 1113
	{ APC_CONSTRAINED,	 3,  3,  53,  57 }	/* (53..57) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1114
static asn_per_constraints_t asn_PER_memb_ns_ce_constr_17 CC_NOTUSED = {
1115 1116 1117 1118
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1119
static asn_per_constraints_t asn_PER_memb_ns_ir_constr_18 CC_NOTUSED = {
1120 1121 1122 1123 1124
	{ APC_CONSTRAINED,	 1,  1,  49,  57 }	/* (49..57) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_ns_ir_18_v2c,	/* Value to PER code map */
	asn_PER_MAP_ns_ir_18_c2v	/* PER code to value map */
};
Lev Walkin's avatar
Lev Walkin committed
1125
static asn_per_constraints_t asn_PER_memb_ut_c_constr_19 CC_NOTUSED = {
1126 1127 1128 1129
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
Lev Walkin's avatar
Lev Walkin committed
1130
static asn_per_constraints_t asn_PER_memb_ut_ce_constr_20 CC_NOTUSED = {
1131 1132 1133 1134
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
Lev Walkin's avatar
Lev Walkin committed
1135
static asn_per_constraints_t asn_PER_memb_ut_ir_constr_21 CC_NOTUSED = {
1136 1137 1138 1139
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	{ APC_UNCONSTRAINED,	-1, -1,  0,  0 },
	0, 0	/* No PER value map */
};
Lev Walkin's avatar
Lev Walkin committed
1140
static asn_per_constraints_t asn_PER_memb_bm_c_constr_23 CC_NOTUSED = {
1141 1142 1143 1144
	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1145
static asn_per_constraints_t asn_PER_memb_bm_cs_constr_24 CC_NOTUSED = {
1146 1147 1148 1149
	{ APC_CONSTRAINED,	 16,  16,  0,  65533 }	/* (0..65533) */,
	{ APC_CONSTRAINED,	 0,  0,  6,  6 }	/* (SIZE(6..6)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1150
static asn_per_constraints_t asn_PER_memb_bm_ce_constr_25 CC_NOTUSED = {
1151 1152 1153 1154
	{ APC_CONSTRAINED,	 16,  16,  0,  65535 }	/* (0..65535) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1155
static asn_per_constraints_t asn_PER_memb_bm_ir_constr_26 CC_NOTUSED = {
1156 1157 1158 1159 1160
	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_bm_ir_26_v2c,	/* Value to PER code map */
	asn_PER_MAP_bm_ir_26_c2v	/* PER code to value map */
};
Lev Walkin's avatar
Lev Walkin committed
1161
static asn_per_constraints_t asn_PER_memb_us_c_constr_28 CC_NOTUSED = {
1162 1163 1164 1165
	{ APC_CONSTRAINED,	 5,  5,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1166
static asn_per_constraints_t asn_PER_memb_us_cs_constr_29 CC_NOTUSED = {
1167 1168 1169 1170
	{ APC_CONSTRAINED,	 32,  32,  0,  2147483647 }	/* (0..4294967295) */,
	{ APC_CONSTRAINED,	 0,  0,  6,  6 }	/* (SIZE(6..6)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1171
static asn_per_constraints_t asn_PER_memb_us_ce_constr_30 CC_NOTUSED = {
1172 1173 1174 1175 1176
	{ APC_CONSTRAINED,	32, 32, 0, 2147483647 } /* special case 1 */
	,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	0, 0	/* No PER character map necessary */
};
Lev Walkin's avatar
Lev Walkin committed
1177
static asn_per_constraints_t asn_PER_memb_us_ir_constr_31 CC_NOTUSED = {
1178 1179 1180 1181 1182
	{ APC_CONSTRAINED,	 3,  3,  65,  90 }	/* (65..90) */,
	{ APC_SEMI_CONSTRAINED,	-1, -1,  0,  0 }	/* (SIZE(0..MAX)) */,
	asn_PER_MAP_us_ir_31_v2c,	/* Value to PER code map */
	asn_PER_MAP_us_ir_31_c2v	/* PER code to value map */
};
1183 1184 1185 1186 1187 1188 1189 1190

/*** <<< STAT-DEFS [PDU] >>> ***/

static asn_TYPE_member_t asn_MBR_many_2[] = {
	{ ATF_POINTER, 0, 0,
		.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
		.tag_mode = 0,
		.type = &asn_DEF_PDU,
Lev Walkin's avatar
Lev Walkin committed
1191
		.type_selector = 0,
1192
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1193
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1194 1195 1196 1197 1198
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = ""
		},
};
1199
static const ber_tlv_tag_t asn_DEF_many_tags_2[] = {
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
	(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_many_specs_2 = {
	sizeof(struct many),
	offsetof(struct many, _asn_ctx),
	0,	/* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_many_2 = {
	"many",
	"many",
1212
	&asn_OP_SEQUENCE_OF,
1213 1214 1215 1216 1217 1218 1219
	SEQUENCE_OF_constraint,
	asn_DEF_many_tags_2,
	sizeof(asn_DEF_many_tags_2)
		/sizeof(asn_DEF_many_tags_2[0]) - 1, /* 1 */
	asn_DEF_many_tags_2,	/* Same as above */
	sizeof(asn_DEF_many_tags_2)
		/sizeof(asn_DEF_many_tags_2[0]), /* 2 */
Lev Walkin's avatar
Lev Walkin committed
1220
	0,	/* No OER visible constraints */
1221 1222 1223 1224 1225 1226
	0,	/* No PER visible constraints */
	asn_MBR_many_2,
	1,	/* Single element */
	&asn_SPC_many_specs_2	/* Additional specs */
};

1227
asn_TYPE_member_t asn_MBR_PDU_1[] = {
1228
	{ ATF_POINTER, 31, offsetof(struct PDU, many),
1229
		.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1230
		.tag_mode = 0,
1231
		.type = &asn_DEF_many_2,
Lev Walkin's avatar
Lev Walkin committed
1232
		.type_selector = 0,
1233
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1234
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1235 1236 1237 1238
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "many"
		},
1239
	{ ATF_POINTER, 30, offsetof(struct PDU, ia5),
1240 1241 1242
		.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_IA5String,
Lev Walkin's avatar
Lev Walkin committed
1243
		.type_selector = 0,
1244
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1245
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1246 1247 1248 1249
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "ia5"
		},
1250
	{ ATF_POINTER, 29, offsetof(struct PDU, ia5_c),
1251 1252 1253
		.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_IA5String,
Lev Walkin's avatar
Lev Walkin committed
1254
		.type_selector = 0,
1255
		.memb_constraints = memb_ia5_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1256
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1257 1258 1259 1260
		.per_constraints = &asn_PER_memb_ia5_c_constr_5,
		.default_value = 0,
		.name = "ia5-c"
		},
1261
	{ ATF_POINTER, 28, offsetof(struct PDU, ia5_ce),
1262 1263 1264
		.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_IA5String,
Lev Walkin's avatar
Lev Walkin committed
1265
		.type_selector = 0,
1266
		.memb_constraints = memb_ia5_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1267
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1268 1269 1270 1271
		.per_constraints = &asn_PER_memb_ia5_ce_constr_6,
		.default_value = 0,
		.name = "ia5-ce"
		},
1272
	{ ATF_POINTER, 27, offsetof(struct PDU, ia5_ir),
1273 1274 1275
		.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_IA5String,
Lev Walkin's avatar
Lev Walkin committed
1276
		.type_selector = 0,
1277
		.memb_constraints = memb_ia5_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1278
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1279 1280 1281 1282
		.per_constraints = &asn_PER_memb_ia5_ir_constr_7,
		.default_value = 0,
		.name = "ia5-ir"
		},
1283
	{ ATF_POINTER, 26, offsetof(struct PDU, vs),
1284 1285 1286
		.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_VisibleString,
Lev Walkin's avatar
Lev Walkin committed
1287
		.type_selector = 0,
1288
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1289
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1290 1291 1292 1293
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "vs"
		},
1294
	{ ATF_POINTER, 25, offsetof(struct PDU, vs_c),
1295 1296 1297
		.tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_VisibleString,
Lev Walkin's avatar
Lev Walkin committed
1298
		.type_selector = 0,
1299
		.memb_constraints = memb_vs_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1300
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1301 1302 1303 1304
		.per_constraints = &asn_PER_memb_vs_c_constr_9,
		.default_value = 0,
		.name = "vs-c"
		},
1305
	{ ATF_POINTER, 24, offsetof(struct PDU, vs_ce),
1306 1307 1308
		.tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_VisibleString,
Lev Walkin's avatar
Lev Walkin committed
1309
		.type_selector = 0,
1310
		.memb_constraints = memb_vs_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1311
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1312 1313 1314 1315
		.per_constraints = &asn_PER_memb_vs_ce_constr_10,
		.default_value = 0,
		.name = "vs-ce"
		},
1316
	{ ATF_POINTER, 23, offsetof(struct PDU, vs_ir),
1317 1318 1319
		.tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_VisibleString,
Lev Walkin's avatar
Lev Walkin committed
1320
		.type_selector = 0,
1321
		.memb_constraints = memb_vs_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1322
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1323 1324 1325 1326
		.per_constraints = &asn_PER_memb_vs_ir_constr_11,
		.default_value = 0,
		.name = "vs-ir"
		},
1327
	{ ATF_POINTER, 22, offsetof(struct PDU, pr),
1328 1329 1330
		.tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_PrintableString,
Lev Walkin's avatar
Lev Walkin committed
1331
		.type_selector = 0,
1332
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1333
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1334 1335 1336 1337
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "pr"
		},
1338
	{ ATF_POINTER, 21, offsetof(struct PDU, pr_c),
1339 1340 1341
		.tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_PrintableString,
Lev Walkin's avatar
Lev Walkin committed
1342
		.type_selector = 0,
1343
		.memb_constraints = memb_pr_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1344
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1345 1346 1347 1348
		.per_constraints = &asn_PER_memb_pr_c_constr_13,
		.default_value = 0,
		.name = "pr-c"
		},
1349
	{ ATF_POINTER, 20, offsetof(struct PDU, pr_ir),
1350 1351 1352
		.tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_PrintableString,
Lev Walkin's avatar
Lev Walkin committed
1353
		.type_selector = 0,
1354
		.memb_constraints = memb_pr_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1355
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1356 1357 1358 1359
		.per_constraints = &asn_PER_memb_pr_ir_constr_14,
		.default_value = 0,
		.name = "pr-ir"
		},
1360
	{ ATF_POINTER, 19, offsetof(struct PDU, ns),
1361 1362 1363
		.tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_NumericString,
Lev Walkin's avatar
Lev Walkin committed
1364
		.type_selector = 0,
1365
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1366
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1367 1368 1369 1370
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "ns"
		},
1371
	{ ATF_POINTER, 18, offsetof(struct PDU, ns_c),
1372 1373 1374
		.tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_NumericString,
Lev Walkin's avatar
Lev Walkin committed
1375
		.type_selector = 0,
1376
		.memb_constraints = memb_ns_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1377
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1378 1379 1380 1381
		.per_constraints = &asn_PER_memb_ns_c_constr_16,
		.default_value = 0,
		.name = "ns-c"
		},
1382
	{ ATF_POINTER, 17, offsetof(struct PDU, ns_ce),
1383 1384 1385
		.tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_NumericString,
Lev Walkin's avatar
Lev Walkin committed
1386
		.type_selector = 0,
1387
		.memb_constraints = memb_ns_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1388
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1389 1390 1391 1392
		.per_constraints = &asn_PER_memb_ns_ce_constr_17,
		.default_value = 0,
		.name = "ns-ce"
		},
1393
	{ ATF_POINTER, 16, offsetof(struct PDU, ns_ir),
1394 1395 1396
		.tag = (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_NumericString,
Lev Walkin's avatar
Lev Walkin committed
1397
		.type_selector = 0,
1398
		.memb_constraints = memb_ns_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1399
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1400 1401 1402 1403
		.per_constraints = &asn_PER_memb_ns_ir_constr_18,
		.default_value = 0,
		.name = "ns-ir"
		},
1404
	{ ATF_POINTER, 15, offsetof(struct PDU, ut_c),
1405 1406 1407
		.tag = (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UTF8String,
Lev Walkin's avatar
Lev Walkin committed
1408
		.type_selector = 0,
1409
		.memb_constraints = memb_ut_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1410
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1411 1412 1413 1414
		.per_constraints = &asn_PER_memb_ut_c_constr_19,
		.default_value = 0,
		.name = "ut-c"
		},
1415
	{ ATF_POINTER, 14, offsetof(struct PDU, ut_ce),
1416 1417 1418
		.tag = (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UTF8String,
Lev Walkin's avatar
Lev Walkin committed
1419
		.type_selector = 0,
1420
		.memb_constraints = memb_ut_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1421
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1422 1423 1424 1425
		.per_constraints = &asn_PER_memb_ut_ce_constr_20,
		.default_value = 0,
		.name = "ut-ce"
		},
1426
	{ ATF_POINTER, 13, offsetof(struct PDU, ut_ir),
1427 1428 1429
		.tag = (ASN_TAG_CLASS_CONTEXT | (18 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UTF8String,
Lev Walkin's avatar
Lev Walkin committed
1430
		.type_selector = 0,
1431
		.memb_constraints = memb_ut_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1432
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1433 1434 1435 1436
		.per_constraints = &asn_PER_memb_ut_ir_constr_21,
		.default_value = 0,
		.name = "ut-ir"
		},
1437
	{ ATF_POINTER, 12, offsetof(struct PDU, bm),
1438 1439
		.tag = (ASN_TAG_CLASS_CONTEXT | (19 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
1440
		.type = &asn_DEF_BMPString,
Lev Walkin's avatar
Lev Walkin committed
1441
		.type_selector = 0,
1442
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1443
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1444 1445 1446 1447 1448 1449 1450 1451
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "bm"
		},
	{ ATF_POINTER, 11, offsetof(struct PDU, bm_c),
		.tag = (ASN_TAG_CLASS_CONTEXT | (20 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_BMPString,
Lev Walkin's avatar
Lev Walkin committed
1452
		.type_selector = 0,
1453
		.memb_constraints = memb_bm_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1454
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1455 1456 1457 1458 1459 1460 1461 1462
		.per_constraints = &asn_PER_memb_bm_c_constr_23,
		.default_value = 0,
		.name = "bm-c"
		},
	{ ATF_POINTER, 10, offsetof(struct PDU, bm_cs),
		.tag = (ASN_TAG_CLASS_CONTEXT | (21 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_BMPString,
Lev Walkin's avatar
Lev Walkin committed
1463
		.type_selector = 0,
1464
		.memb_constraints = memb_bm_cs_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1465
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1466 1467 1468 1469 1470 1471 1472 1473
		.per_constraints = &asn_PER_memb_bm_cs_constr_24,
		.default_value = 0,
		.name = "bm-cs"
		},
	{ ATF_POINTER, 9, offsetof(struct PDU, bm_ce),
		.tag = (ASN_TAG_CLASS_CONTEXT | (22 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_BMPString,
Lev Walkin's avatar
Lev Walkin committed
1474
		.type_selector = 0,
1475
		.memb_constraints = memb_bm_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1476
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1477 1478 1479 1480 1481 1482 1483 1484
		.per_constraints = &asn_PER_memb_bm_ce_constr_25,
		.default_value = 0,
		.name = "bm-ce"
		},
	{ ATF_POINTER, 8, offsetof(struct PDU, bm_ir),
		.tag = (ASN_TAG_CLASS_CONTEXT | (23 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_BMPString,
Lev Walkin's avatar
Lev Walkin committed
1485
		.type_selector = 0,
1486
		.memb_constraints = memb_bm_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1487
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1488 1489 1490 1491 1492 1493 1494 1495
		.per_constraints = &asn_PER_memb_bm_ir_constr_26,
		.default_value = 0,
		.name = "bm-ir"
		},
	{ ATF_POINTER, 7, offsetof(struct PDU, us),
		.tag = (ASN_TAG_CLASS_CONTEXT | (24 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UniversalString,
Lev Walkin's avatar
Lev Walkin committed
1496
		.type_selector = 0,
1497
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1498
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1499 1500 1501 1502 1503 1504 1505 1506
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "us"
		},
	{ ATF_POINTER, 6, offsetof(struct PDU, us_c),
		.tag = (ASN_TAG_CLASS_CONTEXT | (25 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UniversalString,
Lev Walkin's avatar
Lev Walkin committed
1507
		.type_selector = 0,
1508
		.memb_constraints = memb_us_c_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1509
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1510 1511 1512 1513 1514 1515 1516 1517
		.per_constraints = &asn_PER_memb_us_c_constr_28,
		.default_value = 0,
		.name = "us-c"
		},
	{ ATF_POINTER, 5, offsetof(struct PDU, us_cs),
		.tag = (ASN_TAG_CLASS_CONTEXT | (26 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UniversalString,
Lev Walkin's avatar
Lev Walkin committed
1518
		.type_selector = 0,
1519
		.memb_constraints = memb_us_cs_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1520
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1521 1522 1523 1524 1525 1526 1527 1528
		.per_constraints = &asn_PER_memb_us_cs_constr_29,
		.default_value = 0,
		.name = "us-cs"
		},
	{ ATF_POINTER, 4, offsetof(struct PDU, us_ce),
		.tag = (ASN_TAG_CLASS_CONTEXT | (27 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UniversalString,
Lev Walkin's avatar
Lev Walkin committed
1529
		.type_selector = 0,
1530
		.memb_constraints = memb_us_ce_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1531
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1532 1533 1534 1535 1536 1537 1538 1539
		.per_constraints = &asn_PER_memb_us_ce_constr_30,
		.default_value = 0,
		.name = "us-ce"
		},
	{ ATF_POINTER, 3, offsetof(struct PDU, us_ir),
		.tag = (ASN_TAG_CLASS_CONTEXT | (28 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_UniversalString,
Lev Walkin's avatar
Lev Walkin committed
1540
		.type_selector = 0,
1541
		.memb_constraints = memb_us_ir_constraint_1,
Lev Walkin's avatar
Lev Walkin committed
1542
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1543 1544 1545 1546 1547 1548 1549
		.per_constraints = &asn_PER_memb_us_ir_constr_31,
		.default_value = 0,
		.name = "us-ir"
		},
	{ ATF_POINTER, 2, offsetof(struct PDU, real),
		.tag = (ASN_TAG_CLASS_CONTEXT | (29 << 2)),
		.tag_mode = -1,	/* IMPLICIT tag at current level */
1550
		.type = &asn_DEF_NativeReal,
Lev Walkin's avatar
Lev Walkin committed
1551
		.type_selector = 0,
1552
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1553
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1554 1555 1556 1557 1558
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "real"
		},
	{ ATF_POINTER, 1, offsetof(struct PDU, oid),
1559
		.tag = (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
1560 1561
		.tag_mode = -1,	/* IMPLICIT tag at current level */
		.type = &asn_DEF_OBJECT_IDENTIFIER,
Lev Walkin's avatar
Lev Walkin committed
1562
		.type_selector = 0,
1563
		.memb_constraints = 0,	/* Defer constraints checking to the member type */
Lev Walkin's avatar
Lev Walkin committed
1564
		.oer_constraints = 0,	/* OER is not compiled, use -gen-OER */
1565 1566 1567 1568 1569
		.per_constraints = 0,	/* No PER visible constraints */
		.default_value = 0,
		.name = "oid"
		},
};
1570 1571
static const int asn_MAP_PDU_oms_1[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 };
static const ber_tlv_tag_t asn_DEF_PDU_tags_1[] = {
1572 1573
	(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
1574
static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
Lev Walkin's avatar
Lev Walkin committed
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605
    { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* many */
    { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ia5 */
    { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ia5-c */
    { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ia5-ce */
    { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ia5-ir */
    { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* vs */
    { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* vs-c */
    { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* vs-ce */
    { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* vs-ir */
    { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* pr */
    { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* pr-c */
    { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* pr-ir */
    { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* ns */
    { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* ns-c */
    { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 }, /* ns-ce */
    { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 }, /* ns-ir */
    { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 }, /* ut-c */
    { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }, /* ut-ce */
    { (ASN_TAG_CLASS_CONTEXT | (18 << 2)), 18, 0, 0 }, /* ut-ir */
    { (ASN_TAG_CLASS_CONTEXT | (19 << 2)), 19, 0, 0 }, /* bm */
    { (ASN_TAG_CLASS_CONTEXT | (20 << 2)), 20, 0, 0 }, /* bm-c */
    { (ASN_TAG_CLASS_CONTEXT | (21 << 2)), 21, 0, 0 }, /* bm-cs */
    { (ASN_TAG_CLASS_CONTEXT | (22 << 2)), 22, 0, 0 }, /* bm-ce */
    { (ASN_TAG_CLASS_CONTEXT | (23 << 2)), 23, 0, 0 }, /* bm-ir */
    { (ASN_TAG_CLASS_CONTEXT | (24 << 2)), 24, 0, 0 }, /* us */
    { (ASN_TAG_CLASS_CONTEXT | (25 << 2)), 25, 0, 0 }, /* us-c */
    { (ASN_TAG_CLASS_CONTEXT | (26 << 2)), 26, 0, 0 }, /* us-cs */
    { (ASN_TAG_CLASS_CONTEXT | (27 << 2)), 27, 0, 0 }, /* us-ce */
    { (ASN_TAG_CLASS_CONTEXT | (28 << 2)), 28, 0, 0 }, /* us-ir */
    { (ASN_TAG_CLASS_CONTEXT | (29 << 2)), 29, 0, 0 }, /* real */
    { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 30, 0, 0 } /* oid */
1606
};
1607
asn_SEQUENCE_specifics_t asn_SPC_PDU_specs_1 = {
1608 1609
	sizeof(struct PDU),
	offsetof(struct PDU, _asn_ctx),
Lev Walkin's avatar
Lev Walkin committed
1610 1611
	.tag2el = asn_MAP_PDU_tag2el_1,
	.tag2el_count = 31,	/* Count of tags in the map */
1612
	asn_MAP_PDU_oms_1,	/* Optional members */
1613
	31, 0,	/* Root/Additions */
1614 1615 1616 1617 1618 1619
	-1,	/* Start extensions */
	-1	/* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_PDU = {
	"PDU",
	"PDU",
1620
	&asn_OP_SEQUENCE,
1621 1622 1623 1624 1625 1626 1627
	SEQUENCE_constraint,
	asn_DEF_PDU_tags_1,
	sizeof(asn_DEF_PDU_tags_1)
		/sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
	asn_DEF_PDU_tags_1,	/* Same as above */
	sizeof(asn_DEF_PDU_tags_1)
		/sizeof(asn_DEF_PDU_tags_1[0]), /* 1 */
Lev Walkin's avatar
Lev Walkin committed
1628
	0,	/* No OER visible constraints */
1629 1630
	0,	/* No PER visible constraints */
	asn_MBR_PDU_1,
1631
	31,	/* Elements count */
1632 1633 1634
	&asn_SPC_PDU_specs_1	/* Additional specs */
};