Debian Codegraph @

doc/man/shishi_asn1_read_optional.3

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "shishi_asn1_read_optional" 3 "1.0.3" "shishi" "shishi"
3 .SH NAME
4 shishi_asn1_read_optional \- API function
5 .SH SYNOPSIS
6 .B #include <shishi.h>
7 .sp
8 .BI "int shishi_asn1_read_optional(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char ** " data ", size_t * " datalen ");"
9 .SH ARGUMENTS
10 .IP "Shishi * handle" 12
11 shishi handle as allocated by \fBshishi_init()\fP.
12 .IP "Shishi_asn1 node" 12
13 ASN.1 variable to read field from.
14 .IP "const char * field" 12
15 name of field in \fInode\fP to read.
16 .IP "char ** data" 12
17 newly allocated output buffer that will hold ASN.1 field data.
18 .IP "size_t * datalen" 12
19 actual size of output buffer.
20 .SH "DESCRIPTION"
21 Extract data stored in a ASN.1 field into a newly allocated buffer.
22 If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this
23 function set datalen to 0 and succeeds. Can be useful to read
24 ASN.1 fields which are marked OPTIONAL in the grammar, if you want
25 to avoid special error handling in your code.
26 .SH "RETURN VALUE"
27 Returns SHISHI_OK if successful,
28 SHISHI_ASN1_NO_VALUE if the field has no value, ot
29 SHISHI_ASN1_ERROR otherwise.
30 .SH "REPORTING BUGS"
31 Report bugs to <[email protected]>.
32 GNU Shishi home page: http://www.gnu.org/software/shishi/
33 General help using GNU software: http://www.gnu.org/gethelp/
34 .SH COPYRIGHT
35 Copyright \(co 2002-2022 Simon Josefsson.
36 .br
37 Copying and distribution of this file, with or without modification,
38 are permitted in any medium without royalty provided the copyright
39 notice and this notice are preserved.
40 .SH "SEE ALSO"
41 The full documentation for
42 .B shishi
43 is maintained as a Texinfo manual. If the
44 .B info
45 and
46 .B shishi
47 programs are properly installed at your site, the command
48 .IP
49 .B info shishi
50 .PP
51 should give you access to the complete manual.