There are fields defined as OCTET STRING in my asn definition file. Yet these are fields like username, telephonenumber, etc. Thus I know they are net mere byte codes.
Here's the code I am using to set such a field:
MyType.user = *OCTET_STRING_new_frombuf(&asn_DEF_OCTET_STRING, username, strlen(username); //ignore asserts for now
when I want to print them, I see fields like:
user: 32 30 34 30
which is normal, I guess, because these are the octal codes for the characters.
Is there any way that I can print those fields in the xer_fprintf as snormal trings, without changing the definiton file
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2013-01-03
nevermind. looks like only solution is in the previous thread
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are fields defined as OCTET STRING in my asn definition file. Yet these are fields like username, telephonenumber, etc. Thus I know they are net mere byte codes.
Here's the code I am using to set such a field:
MyType.user = *OCTET_STRING_new_frombuf(&asn_DEF_OCTET_STRING, username, strlen(username); //ignore asserts for now
when I want to print them, I see fields like:
user: 32 30 34 30
which is normal, I guess, because these are the octal codes for the characters.
Is there any way that I can print those fields in the xer_fprintf as snormal trings, without changing the definiton file
nevermind. looks like only solution is in the previous thread