]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/doc/snacc.n
Security-54.1.tar.gz
[apple/security.git] / SecuritySNACCRuntime / doc / snacc.n
1 '\" This manual page, except for the introductory troff macros, is
2 '\" Copyright (c) 1995 by Robert Joop.
3 '\"
4 '\" $Header: /cvs/Darwin/Security/SecuritySNACCRuntime/doc/snacc.n,v 1.1.1.1 2001/05/18 23:14:10 mb Exp $
5 '\" $Log: snacc.n,v $
6 '\" Revision 1.1.1.1 2001/05/18 23:14:10 mb
7 '\" Move from private repository to open source repository
8 '\"
9 '\" Revision 1.1.1.1 1999/03/16 18:05:54 aram
10 '\" Originals from SMIME Free Library.
11 '\"
12 '\" Revision 1.1 1997/01/01 22:47:24 rj
13 '\" first check-in
14 '\"
15 '\"
16 '\" Copyright (c) 1993 The Regents of the University of California.
17 '\" All rights reserved.
18 '\"
19 '\" Permission is hereby granted, without written agreement and without
20 '\" license or royalty fees, to use, copy, modify, and distribute this
21 '\" documentation for any purpose, provided that the above copyright
22 '\" notice and the following two paragraphs appear in all copies.
23 '\"
24 '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
25 '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
26 '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
27 '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 '\"
29 '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
30 '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
31 '\" AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
32 '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
33 '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
34 '\"
35 .\" The definitions below are for supplemental macros used in Tcl/Tk
36 .\" manual entries.
37 .\"
38 .\" .HS name section [date [version]]
39 .\" Replacement for .TH in other man pages. See below for valid
40 .\" section names.
41 .\"
42 .\" .AP type name in/out [indent]
43 .\" Start paragraph describing an argument to a library procedure.
44 .\" type is type of argument (int, etc.), in/out is either "in", "out",
45 .\" or "in/out" to describe whether procedure reads or modifies arg,
46 .\" and indent is equivalent to second arg of .IP (shouldn't ever be
47 .\" needed; use .AS below instead)
48 .\"
49 .\" .AS [type [name]]
50 .\" Give maximum sizes of arguments for setting tab stops. Type and
51 .\" name are examples of largest possible arguments that will be passed
52 .\" to .AP later. If args are omitted, default tab stops are used.
53 .\"
54 .\" .BS
55 .\" Start box enclosure. From here until next .BE, everything will be
56 .\" enclosed in one large box.
57 .\"
58 .\" .BE
59 .\" End of box enclosure.
60 .\"
61 .\" .VS
62 .\" Begin vertical sidebar, for use in marking newly-changed parts
63 .\" of man pages.
64 .\"
65 .\" .VE
66 .\" End of vertical sidebar.
67 .\"
68 .\" .DS
69 .\" Begin an indented unfilled display.
70 .\"
71 .\" .DE
72 .\" End of indented unfilled display.
73 .\"
74 '\" # Heading for Tcl/Tk man pages
75 .de HS
76 .ds ^3 \\0
77 .if !"\\$3"" .ds ^3 \\$3
78 .if '\\$2'cmds' .TH \\$1 1 \\*(^3 \\$4
79 .if '\\$2'lib' .TH \\$1 3 \\*(^3 \\$4
80 .if '\\$2'tcl' .TH \\$1 n \\*(^3 Tcl "Tcl Built-In Commands"
81 .if '\\$2'tk' .TH \\$1 n \\*(^3 Tk "Tk Commands"
82 .if '\\$2'tclc' .TH \\$1 3 \\*(^3 Tcl "Tcl Library Procedures"
83 .if '\\$2'tkc' .TH \\$1 3 \\*(^3 Tk "Tk Library Procedures"
84 .if '\\$2'tclcmds' .TH \\$1 1 \\*(^3 Tk "Tcl Applications"
85 .if '\\$2'tkcmds' .TH \\$1 1 \\*(^3 Tk "Tk Applications"
86 .if t .wh -1.3i ^B
87 .nr ^l \\n(.l
88 .ad b
89 ..
90 '\" # Start an argument description
91 .de AP
92 .ie !"\\$4"" .TP \\$4
93 .el \{\
94 . ie !"\\$2"" .TP \\n()Cu
95 . el .TP 15
96 .\}
97 .ie !"\\$3"" \{\
98 .ta \\n()Au \\n()Bu
99 \&\\$1 \\fI\\$2\\fP (\\$3)
100 .\".b
101 .\}
102 .el \{\
103 .br
104 .ie !"\\$2"" \{\
105 \&\\$1 \\fI\\$2\\fP
106 .\}
107 .el \{\
108 \&\\fI\\$1\\fP
109 .\}
110 .\}
111 ..
112 '\" # define tabbing values for .AP
113 .de AS
114 .nr )A 10n
115 .if !"\\$1"" .nr )A \\w'\\$1'u+3n
116 .nr )B \\n()Au+15n
117 .\"
118 .if !"\\$2"" .nr )B \\w'\\$2'u+\\n()Au+3n
119 .nr )C \\n()Bu+\\w'(in/out)'u+2n
120 ..
121 '\" # BS - start boxed text
122 '\" # ^y = starting y location
123 '\" # ^b = 1
124 .de BS
125 .br
126 .mk ^y
127 .nr ^b 1u
128 .if n .nf
129 .if n .ti 0
130 .if n \l'\\n(.lu\(ul'
131 .if n .fi
132 ..
133 '\" # BE - end boxed text (draw box now)
134 .de BE
135 .nf
136 .ti 0
137 .mk ^t
138 .ie n \l'\\n(^lu\(ul'
139 .el \{\
140 .\" Draw four-sided box normally, but don't draw top of
141 .\" box if the box started on an earlier page.
142 .ie !\\n(^b-1 \{\
143 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
144 .\}
145 .el \}\
146 \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
147 .\}
148 .\}
149 .fi
150 .br
151 .nr ^b 0
152 ..
153 '\" # VS - start vertical sidebar
154 '\" # ^Y = starting y location
155 '\" # ^v = 1 (for troff; for nroff this doesn't matter)
156 .de VS
157 .mk ^Y
158 .ie n 'mc \s12\(br\s0
159 .el .nr ^v 1u
160 ..
161 '\" # VE - end of vertical sidebar
162 .de VE
163 .ie n 'mc
164 .el \{\
165 .ev 2
166 .nf
167 .ti 0
168 .mk ^t
169 \h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'
170 .sp -1
171 .fi
172 .ev
173 .\}
174 .nr ^v 0
175 ..
176 '\" # Special macro to handle page bottom: finish off current
177 '\" # box/sidebar if in box/sidebar mode, then invoked standard
178 '\" # page bottom macro.
179 .de ^B
180 .ev 2
181 'ti 0
182 'nf
183 .mk ^t
184 .if \\n(^b \{\
185 .\" Draw three-sided box if this is the box's first page,
186 .\" draw two sides but no top otherwise.
187 .ie !\\n(^b-1 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
188 .el \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
189 .\}
190 .if \\n(^v \{\
191 .nr ^x \\n(^tu+1v-\\n(^Yu
192 \kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c
193 .\}
194 .bp
195 'fi
196 .ev
197 .if \\n(^b \{\
198 .mk ^y
199 .nr ^b 2
200 .\}
201 .if \\n(^v \{\
202 .mk ^Y
203 .\}
204 ..
205 '\" # DS - begin display
206 .de DS
207 .RS
208 .nf
209 .sp
210 ..
211 '\" # DE - end display
212 .de DE
213 .fi
214 .RE
215 .sp .5
216 ..
217 .\" stupid HS macros hasn't got the right ability!
218 .TH snacc n "August 1995" Tcl "Tcl Extensions"
219 .BS
220 '\" Note: do not modify the .SH NAME line immediately below!
221 .SH NAME
222 snacc \- Manipulate BER encoded files
223 .SH SYNOPSIS
224 \fBsnacc \fIoption\fR ?\fIarg arg ...\fR?
225 .BE
226
227 .SH DESCRIPTION
228 .PP
229 This command provides several operations on BER encoded files.
230 Those files can be created, opened, read, its contents examined and
231 manipulated and written to disk, as indicated by the \fIoption\fR.
232 The valid options are:
233 .TP
234 \fBsnacc create \fItype\fR
235 .TP
236 \fBsnacc open \fItype filename ?flags? ?mode?\fR
237 \fBfile \fBdirname \fIname\fR
238
239 .SH SEE ALSO
240 .IR snacced (1)
241 .SH KEYWORDS
242 ASN.1, BER, file