43
37
</tr></table></div>
44
38
<div class="refsynopsisdiv" title="Synopsis">
45
39
<a name="gnutls-libtasn1.synopsis"></a><h2>Synopsis</h2>
46
<pre class="synopsis">
47
#define <a class="link" href="gnutls-libtasn1.html#ASN1-API--CAPS" title="ASN1_API">ASN1_API</a>
48
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VERSION--CAPS" title="ASN1_VERSION">ASN1_VERSION</a>
40
<pre class="synopsis">#define <a class="link" href="gnutls-libtasn1.html#ASN1-API:CAPS" title="ASN1_API">ASN1_API</a>
41
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VERSION:CAPS" title="ASN1_VERSION">ASN1_VERSION</a>
49
42
typedef <a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a>;
50
#define <a class="link" href="gnutls-libtasn1.html#ASN1-SUCCESS--CAPS" title="ASN1_SUCCESS">ASN1_SUCCESS</a>
51
#define <a class="link" href="gnutls-libtasn1.html#ASN1-FILE-NOT-FOUND--CAPS" title="ASN1_FILE_NOT_FOUND">ASN1_FILE_NOT_FOUND</a>
52
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ELEMENT-NOT-FOUND--CAPS" title="ASN1_ELEMENT_NOT_FOUND">ASN1_ELEMENT_NOT_FOUND</a>
53
#define <a class="link" href="gnutls-libtasn1.html#ASN1-IDENTIFIER-NOT-FOUND--CAPS" title="ASN1_IDENTIFIER_NOT_FOUND">ASN1_IDENTIFIER_NOT_FOUND</a>
54
#define <a class="link" href="gnutls-libtasn1.html#ASN1-DER-ERROR--CAPS" title="ASN1_DER_ERROR">ASN1_DER_ERROR</a>
55
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VALUE-NOT-FOUND--CAPS" title="ASN1_VALUE_NOT_FOUND">ASN1_VALUE_NOT_FOUND</a>
56
#define <a class="link" href="gnutls-libtasn1.html#ASN1-GENERIC-ERROR--CAPS" title="ASN1_GENERIC_ERROR">ASN1_GENERIC_ERROR</a>
57
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VALUE-NOT-VALID--CAPS" title="ASN1_VALUE_NOT_VALID">ASN1_VALUE_NOT_VALID</a>
58
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-ERROR--CAPS" title="ASN1_TAG_ERROR">ASN1_TAG_ERROR</a>
59
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-IMPLICIT--CAPS" title="ASN1_TAG_IMPLICIT">ASN1_TAG_IMPLICIT</a>
60
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ERROR-TYPE-ANY--CAPS" title="ASN1_ERROR_TYPE_ANY">ASN1_ERROR_TYPE_ANY</a>
61
#define <a class="link" href="gnutls-libtasn1.html#ASN1-SYNTAX-ERROR--CAPS" title="ASN1_SYNTAX_ERROR">ASN1_SYNTAX_ERROR</a>
62
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MEM-ERROR--CAPS" title="ASN1_MEM_ERROR">ASN1_MEM_ERROR</a>
63
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MEM-ALLOC-ERROR--CAPS" title="ASN1_MEM_ALLOC_ERROR">ASN1_MEM_ALLOC_ERROR</a>
64
#define <a class="link" href="gnutls-libtasn1.html#ASN1-DER-OVERFLOW--CAPS" title="ASN1_DER_OVERFLOW">ASN1_DER_OVERFLOW</a>
65
#define <a class="link" href="gnutls-libtasn1.html#ASN1-NAME-TOO-LONG--CAPS" title="ASN1_NAME_TOO_LONG">ASN1_NAME_TOO_LONG</a>
66
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-ERROR--CAPS" title="ASN1_ARRAY_ERROR">ASN1_ARRAY_ERROR</a>
67
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ELEMENT-NOT-EMPTY--CAPS" title="ASN1_ELEMENT_NOT_EMPTY">ASN1_ELEMENT_NOT_EMPTY</a>
68
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME--CAPS" title="ASN1_PRINT_NAME">ASN1_PRINT_NAME</a>
69
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME-TYPE--CAPS" title="ASN1_PRINT_NAME_TYPE">ASN1_PRINT_NAME_TYPE</a>
70
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME-TYPE-VALUE--CAPS" title="ASN1_PRINT_NAME_TYPE_VALUE">ASN1_PRINT_NAME_TYPE_VALUE</a>
71
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-ALL--CAPS" title="ASN1_PRINT_ALL">ASN1_PRINT_ALL</a>
72
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-UNIVERSAL--CAPS" title="ASN1_CLASS_UNIVERSAL">ASN1_CLASS_UNIVERSAL</a>
73
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-APPLICATION--CAPS" title="ASN1_CLASS_APPLICATION">ASN1_CLASS_APPLICATION</a>
74
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-CONTEXT-SPECIFIC--CAPS" title="ASN1_CLASS_CONTEXT_SPECIFIC">ASN1_CLASS_CONTEXT_SPECIFIC</a>
75
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-PRIVATE--CAPS" title="ASN1_CLASS_PRIVATE">ASN1_CLASS_PRIVATE</a>
76
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-STRUCTURED--CAPS" title="ASN1_CLASS_STRUCTURED">ASN1_CLASS_STRUCTURED</a>
77
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-BOOLEAN--CAPS" title="ASN1_TAG_BOOLEAN">ASN1_TAG_BOOLEAN</a>
78
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-INTEGER--CAPS" title="ASN1_TAG_INTEGER">ASN1_TAG_INTEGER</a>
79
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-SEQUENCE--CAPS" title="ASN1_TAG_SEQUENCE">ASN1_TAG_SEQUENCE</a>
80
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-SET--CAPS" title="ASN1_TAG_SET">ASN1_TAG_SET</a>
81
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-OCTET-STRING--CAPS" title="ASN1_TAG_OCTET_STRING">ASN1_TAG_OCTET_STRING</a>
82
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-BIT-STRING--CAPS" title="ASN1_TAG_BIT_STRING">ASN1_TAG_BIT_STRING</a>
43
#define <a class="link" href="gnutls-libtasn1.html#ASN1-SUCCESS:CAPS" title="ASN1_SUCCESS">ASN1_SUCCESS</a>
44
#define <a class="link" href="gnutls-libtasn1.html#ASN1-FILE-NOT-FOUND:CAPS" title="ASN1_FILE_NOT_FOUND">ASN1_FILE_NOT_FOUND</a>
45
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ELEMENT-NOT-FOUND:CAPS" title="ASN1_ELEMENT_NOT_FOUND">ASN1_ELEMENT_NOT_FOUND</a>
46
#define <a class="link" href="gnutls-libtasn1.html#ASN1-IDENTIFIER-NOT-FOUND:CAPS" title="ASN1_IDENTIFIER_NOT_FOUND">ASN1_IDENTIFIER_NOT_FOUND</a>
47
#define <a class="link" href="gnutls-libtasn1.html#ASN1-DER-ERROR:CAPS" title="ASN1_DER_ERROR">ASN1_DER_ERROR</a>
48
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VALUE-NOT-FOUND:CAPS" title="ASN1_VALUE_NOT_FOUND">ASN1_VALUE_NOT_FOUND</a>
49
#define <a class="link" href="gnutls-libtasn1.html#ASN1-GENERIC-ERROR:CAPS" title="ASN1_GENERIC_ERROR">ASN1_GENERIC_ERROR</a>
50
#define <a class="link" href="gnutls-libtasn1.html#ASN1-VALUE-NOT-VALID:CAPS" title="ASN1_VALUE_NOT_VALID">ASN1_VALUE_NOT_VALID</a>
51
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-ERROR:CAPS" title="ASN1_TAG_ERROR">ASN1_TAG_ERROR</a>
52
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-IMPLICIT:CAPS" title="ASN1_TAG_IMPLICIT">ASN1_TAG_IMPLICIT</a>
53
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ERROR-TYPE-ANY:CAPS" title="ASN1_ERROR_TYPE_ANY">ASN1_ERROR_TYPE_ANY</a>
54
#define <a class="link" href="gnutls-libtasn1.html#ASN1-SYNTAX-ERROR:CAPS" title="ASN1_SYNTAX_ERROR">ASN1_SYNTAX_ERROR</a>
55
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MEM-ERROR:CAPS" title="ASN1_MEM_ERROR">ASN1_MEM_ERROR</a>
56
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MEM-ALLOC-ERROR:CAPS" title="ASN1_MEM_ALLOC_ERROR">ASN1_MEM_ALLOC_ERROR</a>
57
#define <a class="link" href="gnutls-libtasn1.html#ASN1-DER-OVERFLOW:CAPS" title="ASN1_DER_OVERFLOW">ASN1_DER_OVERFLOW</a>
58
#define <a class="link" href="gnutls-libtasn1.html#ASN1-NAME-TOO-LONG:CAPS" title="ASN1_NAME_TOO_LONG">ASN1_NAME_TOO_LONG</a>
59
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-ERROR:CAPS" title="ASN1_ARRAY_ERROR">ASN1_ARRAY_ERROR</a>
60
#define <a class="link" href="gnutls-libtasn1.html#ASN1-ELEMENT-NOT-EMPTY:CAPS" title="ASN1_ELEMENT_NOT_EMPTY">ASN1_ELEMENT_NOT_EMPTY</a>
61
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME:CAPS" title="ASN1_PRINT_NAME">ASN1_PRINT_NAME</a>
62
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME-TYPE:CAPS" title="ASN1_PRINT_NAME_TYPE">ASN1_PRINT_NAME_TYPE</a>
63
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-NAME-TYPE-VALUE:CAPS" title="ASN1_PRINT_NAME_TYPE_VALUE">ASN1_PRINT_NAME_TYPE_VALUE</a>
64
#define <a class="link" href="gnutls-libtasn1.html#ASN1-PRINT-ALL:CAPS" title="ASN1_PRINT_ALL">ASN1_PRINT_ALL</a>
65
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-UNIVERSAL:CAPS" title="ASN1_CLASS_UNIVERSAL">ASN1_CLASS_UNIVERSAL</a>
66
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-APPLICATION:CAPS" title="ASN1_CLASS_APPLICATION">ASN1_CLASS_APPLICATION</a>
67
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-CONTEXT-SPECIFIC:CAPS" title="ASN1_CLASS_CONTEXT_SPECIFIC">ASN1_CLASS_CONTEXT_SPECIFIC</a>
68
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-PRIVATE:CAPS" title="ASN1_CLASS_PRIVATE">ASN1_CLASS_PRIVATE</a>
69
#define <a class="link" href="gnutls-libtasn1.html#ASN1-CLASS-STRUCTURED:CAPS" title="ASN1_CLASS_STRUCTURED">ASN1_CLASS_STRUCTURED</a>
70
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-BOOLEAN:CAPS" title="ASN1_TAG_BOOLEAN">ASN1_TAG_BOOLEAN</a>
71
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-INTEGER:CAPS" title="ASN1_TAG_INTEGER">ASN1_TAG_INTEGER</a>
72
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-SEQUENCE:CAPS" title="ASN1_TAG_SEQUENCE">ASN1_TAG_SEQUENCE</a>
73
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-SET:CAPS" title="ASN1_TAG_SET">ASN1_TAG_SET</a>
74
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-OCTET-STRING:CAPS" title="ASN1_TAG_OCTET_STRING">ASN1_TAG_OCTET_STRING</a>
75
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-BIT-STRING:CAPS" title="ASN1_TAG_BIT_STRING">ASN1_TAG_BIT_STRING</a>
83
76
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-UTCTime" title="ASN1_TAG_UTCTime">ASN1_TAG_UTCTime</a>
84
77
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-GENERALIZEDTime" title="ASN1_TAG_GENERALIZEDTime">ASN1_TAG_GENERALIZEDTime</a>
85
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-OBJECT-ID--CAPS" title="ASN1_TAG_OBJECT_ID">ASN1_TAG_OBJECT_ID</a>
86
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-ENUMERATED--CAPS" title="ASN1_TAG_ENUMERATED">ASN1_TAG_ENUMERATED</a>
87
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-NULL--CAPS" title="ASN1_TAG_NULL">ASN1_TAG_NULL</a>
88
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-GENERALSTRING--CAPS" title="ASN1_TAG_GENERALSTRING">ASN1_TAG_GENERALSTRING</a>
78
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-OBJECT-ID:CAPS" title="ASN1_TAG_OBJECT_ID">ASN1_TAG_OBJECT_ID</a>
79
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-ENUMERATED:CAPS" title="ASN1_TAG_ENUMERATED">ASN1_TAG_ENUMERATED</a>
80
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-NULL:CAPS" title="ASN1_TAG_NULL">ASN1_TAG_NULL</a>
81
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TAG-GENERALSTRING:CAPS" title="ASN1_TAG_GENERALSTRING">ASN1_TAG_GENERALSTRING</a>
89
82
typedef <a class="link" href="gnutls-libtasn1.html#node-asn" title="node_asn">node_asn</a>;
90
typedef <a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a>;
91
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TYPE-EMPTY--CAPS" title="ASN1_TYPE_EMPTY">ASN1_TYPE_EMPTY</a>
92
typedef <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-TYPE--CAPS" title="ASN1_ARRAY_TYPE">ASN1_ARRAY_TYPE</a>;
93
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MAX-NAME-SIZE--CAPS" title="ASN1_MAX_NAME_SIZE">ASN1_MAX_NAME_SIZE</a>
94
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MAX-ERROR-DESCRIPTION-SIZE--CAPS" title="ASN1_MAX_ERROR_DESCRIPTION_SIZE">ASN1_MAX_ERROR_DESCRIPTION_SIZE</a>
95
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-parser2tree" title="asn1_parser2tree ()">asn1_parser2tree</a> (const char *file_name,
96
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *definitions,
97
char *errorDescription);
98
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-parser2array" title="asn1_parser2array ()">asn1_parser2array</a> (const char *inputFileName,
99
const char *outputFileName,
100
const char *vectorName,
101
char *errorDescription);
102
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-array2tree" title="asn1_array2tree ()">asn1_array2tree</a> (const <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-TYPE--CAPS" title="ASN1_ARRAY_TYPE">ASN1_ARRAY_TYPE</a> *array,
103
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *definitions,
104
char *errorDescription);
105
void <a class="link" href="gnutls-libtasn1.html#asn1-print-structure" title="asn1_print_structure ()">asn1_print_structure</a> (FILE *out,
106
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> structure,
109
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-create-element" title="asn1_create_element ()">asn1_create_element</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> definitions,
110
const char *source_name,
111
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *element);
112
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-delete-structure" title="asn1_delete_structure ()">asn1_delete_structure</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *structure);
113
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-delete-element" title="asn1_delete_element ()">asn1_delete_element</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> structure,
114
const char *element_name);
115
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-write-value" title="asn1_write_value ()">asn1_write_value</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> node_root,
119
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-read-value" title="asn1_read_value ()">asn1_read_value</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> root,
123
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-number-of-elements" title="asn1_number_of_elements ()">asn1_number_of_elements</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> element,
126
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-der-coding" title="asn1_der_coding ()">asn1_der_coding</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> element,
130
char *ErrorDescription);
131
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding" title="asn1_der_decoding ()">asn1_der_decoding</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *element,
134
char *errorDescription);
135
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding-element" title="asn1_der_decoding_element ()">asn1_der_decoding_element</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *structure,
136
const char *elementName,
139
char *errorDescription);
140
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding-startEnd" title="asn1_der_decoding_startEnd ()">asn1_der_decoding_startEnd</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> element,
143
const char *name_element,
146
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-expand-any-defined-by" title="asn1_expand_any_defined_by ()">asn1_expand_any_defined_by</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> definitions,
147
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *element);
148
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-expand-octet-string" title="asn1_expand_octet_string ()">asn1_expand_octet_string</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> definitions,
149
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> *element,
150
const char *octetName,
151
const char *objectName);
152
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-read-tag" title="asn1_read_tag ()">asn1_read_tag</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> root,
156
const char * <a class="link" href="gnutls-libtasn1.html#asn1-find-structure-from-oid" title="asn1_find_structure_from_oid ()">asn1_find_structure_from_oid</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> definitions,
157
const char *oidValue);
158
const char * <a class="link" href="gnutls-libtasn1.html#asn1-check-version" title="asn1_check_version ()">asn1_check_version</a> (const char *req_version);
159
const char * <a class="link" href="gnutls-libtasn1.html#asn1-strerror" title="asn1_strerror ()">asn1_strerror</a> (<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> error);
160
void <a class="link" href="gnutls-libtasn1.html#asn1-perror" title="asn1_perror ()">asn1_perror</a> (<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> error);
161
int <a class="link" href="gnutls-libtasn1.html#asn1-get-tag-der" title="asn1_get_tag_der ()">asn1_get_tag_der</a> (unsigned char *der,
166
void <a class="link" href="gnutls-libtasn1.html#asn1-octet-der" title="asn1_octet_der ()">asn1_octet_der</a> (unsigned char *str,
170
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-get-octet-der" title="asn1_get_octet_der ()">asn1_get_octet_der</a> (unsigned char *der,
176
void <a class="link" href="gnutls-libtasn1.html#asn1-bit-der" title="asn1_bit_der ()">asn1_bit_der</a> (unsigned char *str,
180
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-get-bit-der" title="asn1_get_bit_der ()">asn1_get_bit_der</a> (unsigned char *der,
186
void <a class="link" href="gnutls-libtasn1.html#asn1-length-der" title="asn1_length_der ()">asn1_length_der</a> (unsigned long int len,
189
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> <a class="link" href="gnutls-libtasn1.html#asn1-find-node" title="asn1_find_node ()">asn1_find_node</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> pointer,
191
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> <a class="link" href="gnutls-libtasn1.html#asn1-copy-node" title="asn1_copy_node ()">asn1_copy_node</a> (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> dst,
192
const char *dst_name,
193
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> src,
194
const char *src_name);
195
#define <a class="link" href="gnutls-libtasn1.html#LIBTASN1-VERSION--CAPS" title="LIBTASN1_VERSION">LIBTASN1_VERSION</a>
196
#define <a class="link" href="gnutls-libtasn1.html#MAX-NAME-SIZE--CAPS" title="MAX_NAME_SIZE">MAX_NAME_SIZE</a>
197
#define <a class="link" href="gnutls-libtasn1.html#MAX-ERROR-DESCRIPTION-SIZE--CAPS" title="MAX_ERROR_DESCRIPTION_SIZE">MAX_ERROR_DESCRIPTION_SIZE</a>
198
const char * <a class="link" href="gnutls-libtasn1.html#libtasn1-strerror" title="libtasn1_strerror ()">libtasn1_strerror</a> (<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> error);
199
void <a class="link" href="gnutls-libtasn1.html#libtasn1-perror" title="libtasn1_perror ()">libtasn1_perror</a> (<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> error);
83
typedef <a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE">ASN1_TYPE</a>;
84
#define <a class="link" href="gnutls-libtasn1.html#ASN1-TYPE-EMPTY:CAPS" title="ASN1_TYPE_EMPTY">ASN1_TYPE_EMPTY</a>
85
typedef <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-TYPE:CAPS" title="ASN1_ARRAY_TYPE">ASN1_ARRAY_TYPE</a>;
86
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MAX-NAME-SIZE:CAPS" title="ASN1_MAX_NAME_SIZE">ASN1_MAX_NAME_SIZE</a>
87
#define <a class="link" href="gnutls-libtasn1.html#ASN1-MAX-ERROR-DESCRIPTION-SIZE:CAPS" title="ASN1_MAX_ERROR_DESCRIPTION_SIZE">ASN1_MAX_ERROR_DESCRIPTION_SIZE</a>
88
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-parser2tree" title="asn1_parser2tree ()">asn1_parser2tree</a> (<em class="parameter"><code>const <span class="type">char</span> *file_name</code></em>,
89
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *definitions</code></em>,
90
<em class="parameter"><code><span class="type">char</span> *errorDescription</code></em>);
91
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-parser2array" title="asn1_parser2array ()">asn1_parser2array</a> (<em class="parameter"><code>const <span class="type">char</span> *inputFileName</code></em>,
92
<em class="parameter"><code>const <span class="type">char</span> *outputFileName</code></em>,
93
<em class="parameter"><code>const <span class="type">char</span> *vectorName</code></em>,
94
<em class="parameter"><code><span class="type">char</span> *errorDescription</code></em>);
95
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-array2tree" title="asn1_array2tree ()">asn1_array2tree</a> (<em class="parameter"><code>const <a class="link" href="gnutls-libtasn1.html#ASN1-ARRAY-TYPE:CAPS" title="ASN1_ARRAY_TYPE"><span class="type">ASN1_ARRAY_TYPE</span></a> *array</code></em>,
96
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *definitions</code></em>,
97
<em class="parameter"><code><span class="type">char</span> *errorDescription</code></em>);
98
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#asn1-print-structure" title="asn1_print_structure ()">asn1_print_structure</a> (<em class="parameter"><code><span class="type">FILE</span> *out</code></em>,
99
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> structure</code></em>,
100
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
101
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> mode</code></em>);
102
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-create-element" title="asn1_create_element ()">asn1_create_element</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> definitions</code></em>,
103
<em class="parameter"><code>const <span class="type">char</span> *source_name</code></em>,
104
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *element</code></em>);
105
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-delete-structure" title="asn1_delete_structure ()">asn1_delete_structure</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *structure</code></em>);
106
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-delete-element" title="asn1_delete_element ()">asn1_delete_element</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> structure</code></em>,
107
<em class="parameter"><code>const <span class="type">char</span> *element_name</code></em>);
108
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-write-value" title="asn1_write_value ()">asn1_write_value</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> node_root</code></em>,
109
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
110
<em class="parameter"><code>const <span class="type">void</span> *ivalue</code></em>,
111
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>);
112
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-read-value" title="asn1_read_value ()">asn1_read_value</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> root</code></em>,
113
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
114
<em class="parameter"><code><span class="type">void</span> *ivalue</code></em>,
115
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *len</code></em>);
116
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-number-of-elements" title="asn1_number_of_elements ()">asn1_number_of_elements</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> element</code></em>,
117
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
118
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *num</code></em>);
119
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-der-coding" title="asn1_der_coding ()">asn1_der_coding</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> element</code></em>,
120
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
121
<em class="parameter"><code><span class="type">void</span> *ider</code></em>,
122
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *len</code></em>,
123
<em class="parameter"><code><span class="type">char</span> *ErrorDescription</code></em>);
124
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding" title="asn1_der_decoding ()">asn1_der_decoding</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *element</code></em>,
125
<em class="parameter"><code>const <span class="type">void</span> *ider</code></em>,
126
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>,
127
<em class="parameter"><code><span class="type">char</span> *errorDescription</code></em>);
128
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding-element" title="asn1_der_decoding_element ()">asn1_der_decoding_element</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *structure</code></em>,
129
<em class="parameter"><code>const <span class="type">char</span> *elementName</code></em>,
130
<em class="parameter"><code>const <span class="type">void</span> *ider</code></em>,
131
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>,
132
<em class="parameter"><code><span class="type">char</span> *errorDescription</code></em>);
133
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-der-decoding-startEnd" title="asn1_der_decoding_startEnd ()">asn1_der_decoding_startEnd</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> element</code></em>,
134
<em class="parameter"><code>const <span class="type">void</span> *ider</code></em>,
135
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>,
136
<em class="parameter"><code>const <span class="type">char</span> *name_element</code></em>,
137
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *start</code></em>,
138
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *end</code></em>);
139
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-expand-any-defined-by" title="asn1_expand_any_defined_by ()">asn1_expand_any_defined_by</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> definitions</code></em>,
140
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *element</code></em>);
141
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-expand-octet-string" title="asn1_expand_octet_string ()">asn1_expand_octet_string</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> definitions</code></em>,
142
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> *element</code></em>,
143
<em class="parameter"><code>const <span class="type">char</span> *octetName</code></em>,
144
<em class="parameter"><code>const <span class="type">char</span> *objectName</code></em>);
145
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-read-tag" title="asn1_read_tag ()">asn1_read_tag</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> root</code></em>,
146
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
147
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *tagValue</code></em>,
148
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *classValue</code></em>);
149
const <span class="returnvalue">char</span> * <a class="link" href="gnutls-libtasn1.html#asn1-find-structure-from-oid" title="asn1_find_structure_from_oid ()">asn1_find_structure_from_oid</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> definitions</code></em>,
150
<em class="parameter"><code>const <span class="type">char</span> *oidValue</code></em>);
151
const <span class="returnvalue">char</span> * <a class="link" href="gnutls-libtasn1.html#asn1-check-version" title="asn1_check_version ()">asn1_check_version</a> (<em class="parameter"><code>const <span class="type">char</span> *req_version</code></em>);
152
const <span class="returnvalue">char</span> * <a class="link" href="gnutls-libtasn1.html#asn1-strerror" title="asn1_strerror ()">asn1_strerror</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="type">asn1_retCode</span></a> error</code></em>);
153
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#asn1-perror" title="asn1_perror ()">asn1_perror</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="type">asn1_retCode</span></a> error</code></em>);
154
<a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="returnvalue">int</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-get-tag-der" title="asn1_get_tag_der ()">asn1_get_tag_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
155
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> der_len</code></em>,
156
<em class="parameter"><code>unsigned <span class="type">char</span> *cls</code></em>,
157
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *len</code></em>,
158
<em class="parameter"><code>unsigned <span class="type">long</span> *tag</code></em>);
159
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#asn1-octet-der" title="asn1_octet_der ()">asn1_octet_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *str</code></em>,
160
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> str_len</code></em>,
161
<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
162
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *der_len</code></em>);
163
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-get-octet-der" title="asn1_get_octet_der ()">asn1_get_octet_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
164
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> der_len</code></em>,
165
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *ret_len</code></em>,
166
<em class="parameter"><code>unsigned <span class="type">char</span> *str</code></em>,
167
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> str_size</code></em>,
168
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *str_len</code></em>);
169
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#asn1-bit-der" title="asn1_bit_der ()">asn1_bit_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *str</code></em>,
170
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> bit_len</code></em>,
171
<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
172
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *der_len</code></em>);
173
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-get-bit-der" title="asn1_get_bit_der ()">asn1_get_bit_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
174
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> der_len</code></em>,
175
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *ret_len</code></em>,
176
<em class="parameter"><code>unsigned <span class="type">char</span> *str</code></em>,
177
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> str_size</code></em>,
178
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *bit_len</code></em>);
179
signed <span class="returnvalue">long</span> <a class="link" href="gnutls-libtasn1.html#asn1-get-length-der" title="asn1_get_length_der ()">asn1_get_length_der</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *der</code></em>,
180
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> der_len</code></em>,
181
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *len</code></em>);
182
signed <span class="returnvalue">long</span> <a class="link" href="gnutls-libtasn1.html#asn1-get-length-ber" title="asn1_get_length_ber ()">asn1_get_length_ber</a> (<em class="parameter"><code>unsigned <span class="type">char</span> *ber</code></em>,
183
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> ber_len</code></em>,
184
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *len</code></em>);
185
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#asn1-length-der" title="asn1_length_der ()">asn1_length_der</a> (<em class="parameter"><code>unsigned long <a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>,
186
<em class="parameter"><code>unsigned <span class="type">char</span> *ans</code></em>,
187
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> *ans_len</code></em>);
188
<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="returnvalue">ASN1_TYPE</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-find-node" title="asn1_find_node ()">asn1_find_node</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> pointer</code></em>,
189
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
190
<a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> <a class="link" href="gnutls-libtasn1.html#asn1-copy-node" title="asn1_copy_node ()">asn1_copy_node</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> dst</code></em>,
191
<em class="parameter"><code>const <span class="type">char</span> *dst_name</code></em>,
192
<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> src</code></em>,
193
<em class="parameter"><code>const <span class="type">char</span> *src_name</code></em>);
194
#define <a class="link" href="gnutls-libtasn1.html#LIBTASN1-VERSION:CAPS" title="LIBTASN1_VERSION">LIBTASN1_VERSION</a>
195
#define <a class="link" href="gnutls-libtasn1.html#MAX-NAME-SIZE:CAPS" title="MAX_NAME_SIZE">MAX_NAME_SIZE</a>
196
#define <a class="link" href="gnutls-libtasn1.html#MAX-ERROR-DESCRIPTION-SIZE:CAPS" title="MAX_ERROR_DESCRIPTION_SIZE">MAX_ERROR_DESCRIPTION_SIZE</a>
197
const <span class="returnvalue">char</span> * <a class="link" href="gnutls-libtasn1.html#libtasn1-strerror" title="libtasn1_strerror ()">libtasn1_strerror</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="type">asn1_retCode</span></a> error</code></em>);
198
<span class="returnvalue">void</span> <a class="link" href="gnutls-libtasn1.html#libtasn1-perror" title="libtasn1_perror ()">libtasn1_perror</a> (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="type">asn1_retCode</span></a> error</code></em>);
202
201
<div class="refsect1" title="Description">
863
816
<div class="refsect2" title="asn1_write_value ()">
864
817
<a name="asn1-write-value"></a><h3>asn1_write_value ()</h3>
865
<pre class="programlisting"><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode">asn1_retCode</a> asn1_write_value (<a class="link" href="gnutls-libtasn1.html#ASN1-TYPE--CAPS" title="ASN1_TYPE">ASN1_TYPE</a> node_root,
870
Set the value of one element inside a structure.
873
If an element is OPTIONAL and you want to delete it, you must use
874
the value=NULL and len=0. Using "pkix.asn":
877
result=asn1_write_value(cert, "tbsCertificate.issuerUniqueID",
881
Description for each type:
884
INTEGER: VALUE must contain a two's complement form integer.
887
value[0]=0xFF , len=1 -> integer=-1.
888
value[0]=0xFF value[1]=0xFF , len=2 -> integer=-1.
889
value[0]=0x01 , len=1 -> integer= 1.
890
value[0]=0x00 value[1]=0x01 , len=2 -> integer= 1.
891
value="123" , len=0 -> integer= 123.
894
ENUMERATED: As INTEGER (but only with not negative numbers).
897
BOOLEAN: VALUE must be the null terminated string "TRUE" or
898
"FALSE" and LEN != 0.
901
value="TRUE" , len=1 -> boolean=TRUE.
902
value="FALSE" , len=1 -> boolean=FALSE.
905
OBJECT IDENTIFIER: VALUE must be a null terminated string with
906
each number separated by a dot (e.g. "1.2.3.543.1"). LEN != 0.
909
value="1 2 840 10040 4 3" , len=1 -> OID=dsa-with-sha.
912
UTCTime: VALUE must be a null terminated string in one of these
913
formats: "YYMMDDhhmmssZ", "YYMMDDhhmmssZ",
914
"YYMMDDhhmmss+hh'mm'", "YYMMDDhhmmss-hh'mm'",
915
"YYMMDDhhmm+hh'mm'", or "YYMMDDhhmm-hh'mm'". LEN != 0.
918
value="9801011200Z" , len=1 -> time=Jannuary 1st, 1998
919
at 12h 00m Greenwich Mean Time
922
GeneralizedTime: VALUE must be in one of this format:
923
"YYYYMMDDhhmmss.sZ", "YYYYMMDDhhmmss.sZ",
924
"YYYYMMDDhhmmss.s+hh'mm'", "YYYYMMDDhhmmss.s-hh'mm'",
925
"YYYYMMDDhhmm+hh'mm'", or "YYYYMMDDhhmm-hh'mm'" where ss.s
926
indicates the seconds with any precision like "10.1" or "01.02".
930
value="2001010112001.12-0700" , len=1 -> time=Jannuary
931
1st, 2001 at 12h 00m 01.12s Pacific Daylight Time
934
OCTET STRING: VALUE contains the octet string and LEN is the
938
value="$\backslash$x01$\backslash$x02$\backslash$x03" ,
939
len=3 -> three bytes octet string
942
GeneralString: VALUE contains the generalstring and LEN is the
946
value="$\backslash$x01$\backslash$x02$\backslash$x03" ,
947
len=3 -> three bytes generalstring
950
BIT STRING: VALUE contains the bit string organized by bytes and
951
LEN is the number of bits.
954
value="$\backslash$xCF" , len=6 -> bit string="110011" (six
958
CHOICE: if NAME indicates a choice type, VALUE must specify one of
959
the alternatives with a null terminated string. LEN != 0. Using
963
result=asn1_write_value(cert,
964
"certificate1.tbsCertificate.subject", "rdnSequence",
968
ANY: VALUE indicates the der encoding of a structure. LEN != 0.
971
SEQUENCE OF: VALUE must be the null terminated string "NEW" and
972
LEN != 0. With this instruction another element is appended in
973
the sequence. The name of this element will be "?1" if it's the
974
first one, "?2" for the second and so on.
980
result=asn1_write_value(cert,
981
"certificate1.tbsCertificate.subject.rdnSequence", "NEW", 1);
984
SET OF: the same as SEQUENCE OF. Using "pkix.asn":
987
result=asn1_write_value(cert,
988
"tbsCertificate.subject.rdnSequence.?LAST", "NEW", 1);</p>
818
<pre class="programlisting"><a class="link" href="gnutls-libtasn1.html#asn1-retCode" title="asn1_retCode"><span class="returnvalue">asn1_retCode</span></a> asn1_write_value (<em class="parameter"><code><a class="link" href="gnutls-libtasn1.html#ASN1-TYPE:CAPS" title="ASN1_TYPE"><span class="type">ASN1_TYPE</span></a> node_root</code></em>,
819
<em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
820
<em class="parameter"><code>const <span class="type">void</span> *ivalue</code></em>,
821
<em class="parameter"><code><a class="link" href="gnutls-crypto.html#int" title="int ()"><span class="type">int</span></a> len</code></em>);</pre>
991
824
<div class="variablelist"><table border="0">