I would like to use CONTAINING in asn1c (http://lionet.info/asn1c/blog/). I don't know how can i give values for the CONTAINING structures.
In my example i would like to give values in the Octasd SEQUENCE for version and tsapolicy. I thought i can do it like any other asn1 types.
Other types for example the INTGER you can use functions to give values. I can give the contentType value with asn_long2INTEGER function:
EncapsulatedContentInfo_t *encapcontinfo;
asn_long2INTEGER(&encapcontinfo->contentType, 32);
In code for example: EncapsulatedContentInfo->eContent.octasd.version But i don't "see" behind octasd.
Is there any way to reach an encapsulated structure?
Part of my asn1:
EncapsulatedContentInfo ::= SEQUENCE {
contentType INTEGER,
eContent [0] IMPLICIT SEQUENCE {
octasd Octasd
}
}
Octasd ::= OCTET STRING (CONTAINING SEQUENCE {
version INTEGER,
tsapolicy OBJECT IDENTIFIER
} )
Any advice appreciated.