asn1c/asn1c/enber.1

54 lines
1.5 KiB
Groff
Raw Permalink Normal View History

2014-10-23 08:54:58 +00:00
.TH enber 1 "2014-10-23" "unber counterpart"
.if n .ad l \" Turn off justifications
.nh \" Turn off hyphenation; can damage formatting in technical documents.
.de Vb \" Verbatim begin.
2004-09-24 21:00:15 +00:00
.sp
2014-10-23 08:54:58 +00:00
.in +4
2004-09-24 21:00:15 +00:00
.ft CW
.nf
..
2014-10-23 08:54:58 +00:00
.de Ve \" Verbatim end.
2004-09-24 21:00:15 +00:00
.ft R
2014-10-23 08:54:58 +00:00
.in
2004-09-24 21:00:15 +00:00
.fi
..
.SH NAME
2014-10-23 08:54:58 +00:00
enber \(em Convert the unber XML output back into BER
2004-09-24 21:00:15 +00:00
.SH SYNOPSIS
2014-10-23 08:54:58 +00:00
enber [\fB\-n\fR] [\fB\-\fR] [\fIinput-filenames\fR...]
2004-09-24 21:00:15 +00:00
.SH DESCRIPTION
2006-03-07 14:09:38 +00:00
enber convers the XML-formatted files produced by \fIunber\fR\|(1) back into the BER format.
A single dash denotes the standard input.
2004-09-27 20:31:19 +00:00
.SH OPTIONS
2014-10-23 08:54:58 +00:00
.TP 4
2004-09-27 20:31:19 +00:00
\fB\-n\fR
2014-10-23 08:54:58 +00:00
Disable input validation.
By default, enber performs some basic validity checks
2006-03-07 14:09:58 +00:00
against XML input.
2004-09-24 21:00:15 +00:00
.SH EXAMPLES
2006-03-07 14:09:38 +00:00
Decode a BER sequence and immediately encode it back
2004-09-24 21:00:15 +00:00
.Vb
2014-10-23 08:54:58 +00:00
unber \fB\-p\fR \fIfilename.ber\fR | enber \fB\-\fR > \fIreconstructed.ber\fR
2004-09-24 21:00:15 +00:00
.Ve
2004-09-27 20:31:19 +00:00
.SH FOOTNOTES
2014-10-23 08:54:58 +00:00
This program does not attempt to perform full-fledged XML parsing.
It is merely compatible with \fIunber\fR\|(1)'s output.
2006-03-07 14:24:34 +00:00
In particular, XML style comments are not supported.
A hash "\fB#\fR" or two dashes "\fB--\fR" following a whitespace is treated as a beginning of a comment line, which is ignored completely.
Empty lines are ignored as well.
2004-09-27 20:31:19 +00:00
.P
The following example demostrates the use of comments:
.Vb
2014-10-23 08:54:58 +00:00
<C O="0" T="[1]" TL="2" V="2">
<I O="2" T="[1]" TL="2" V="Indefinite">
\fB--\fR </I O="4" T="[UNIVERSAL 0]" L="4">
\fB#\fR Do not terminate:
\fB#\fR the absence of end-of-content octets is intentional!
</C O="6" T="[1]" L="6">
2004-09-27 20:31:19 +00:00
.Ve
2004-09-24 21:00:15 +00:00
.SH SEE ALSO
.TP
2014-10-23 08:54:58 +00:00
\fIunber\fR\|(1), \&\fIasn1c\fR\|(1)
2004-09-24 21:00:15 +00:00
.SH AUTHORS
Lev Walkin <vlm@lionet.info>