Commit f585ad62 authored by Lev Walkin's avatar Lev Walkin

print XER as well

parent f918398e
...@@ -291,8 +291,10 @@ check_random_roundtrip(enum asn_transfer_syntax syntax, size_t max_random_value_ ...@@ -291,8 +291,10 @@ check_random_roundtrip(enum asn_transfer_syntax syntax, size_t max_random_value_
if(cmp != 0) { if(cmp != 0) {
fprintf(stderr, "Random %s value:\n", ASN1_STR); fprintf(stderr, "Random %s value:\n", ASN1_STR);
asn_fprint(stderr, &asn_DEF_T, structure); asn_fprint(stderr, &asn_DEF_T, structure);
xer_fprint(stderr, &asn_DEF_T, structure);
fprintf(stderr, "Decoded %s value:\n", ASN1_STR); fprintf(stderr, "Decoded %s value:\n", ASN1_STR);
asn_fprint(stderr, &asn_DEF_T, decoded_structure); asn_fprint(stderr, &asn_DEF_T, decoded_structure);
xer_fprint(stderr, &asn_DEF_T, decoded_structure);
assert(cmp == 0); assert(cmp == 0);
} }
ASN_STRUCT_FREE(asn_DEF_T, structure); ASN_STRUCT_FREE(asn_DEF_T, structure);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment