flags->option = da->attr;
}
+ flags->class = FR_DER_CLASS_CONTEXT;
+
if ((parent->restrictions & (1 << flags->option)) != 0) {
fr_strerror_printf("Parent %s already has a child with option %u - duplicates are not allowed",
da->parent->name, flags->option);
} else if (parent->is_sequence_of && (parent->sequence_of == FR_DER_TAG_CHOICE)) {
fr_assert(flags->der_type < FR_DER_TAG_VALUE_MAX);
+ flags->class = FR_DER_CLASS_CONTEXT;
+
if ((parent->restrictions & (1 << flags->der_type)) != 0) {
fr_strerror_printf("Parent %s already has a child with tag %s - duplicates are not allowed",
da->parent->name, fr_der_tag_to_str(flags->der_type));