Skip to content
Snippets Groups Projects
Commit efbba4ab authored by Lev Walkin's avatar Lev Walkin
Browse files

more debug

parent 0a8aa604
No related branches found
No related tags found
No related merge requests found
...@@ -264,16 +264,18 @@ main(int ac, char *av[]) { ...@@ -264,16 +264,18 @@ main(int ac, char *av[]) {
break; break;
case OUT_XER: /* -oxer */ case OUT_XER: /* -oxer */
if(xer_fprint(stdout, pduType, structure)) { if(xer_fprint(stdout, pduType, structure)) {
fprintf(stderr, "%s: Cannot convert into XML\n", fprintf(stderr,
name); "%s: Cannot convert %s into XML\n",
name, pduType->name);
exit(EX_UNAVAILABLE); exit(EX_UNAVAILABLE);
} }
break; break;
case OUT_DER: case OUT_DER:
erv = der_encode(pduType, structure, write_out, stdout); erv = der_encode(pduType, structure, write_out, stdout);
if(erv.encoded < 0) { if(erv.encoded < 0) {
fprintf(stderr, "%s: Cannot convert into DER\n", fprintf(stderr,
name); "%s: Cannot convert %s into DER\n",
name, pduType->name);
exit(EX_UNAVAILABLE); exit(EX_UNAVAILABLE);
} }
DEBUG("Encoded in %ld bytes of DER", (long)erv.encoded); DEBUG("Encoded in %ld bytes of DER", (long)erv.encoded);
...@@ -281,8 +283,9 @@ main(int ac, char *av[]) { ...@@ -281,8 +283,9 @@ main(int ac, char *av[]) {
case OUT_PER: case OUT_PER:
erv = uper_encode(pduType, structure, write_out, stdout); erv = uper_encode(pduType, structure, write_out, stdout);
if(erv.encoded < 0) { if(erv.encoded < 0) {
fprintf(stderr, "%s: Cannot convert into Unaligned PER\n", fprintf(stderr,
name); "%s: Cannot convert %s into Unaligned PER\n",
name, pduType->name);
exit(EX_UNAVAILABLE); exit(EX_UNAVAILABLE);
} }
DEBUG("Encoded in %ld bits of UPER", (long)erv.encoded); DEBUG("Encoded in %ld bits of UPER", (long)erv.encoded);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment