summaryrefslogtreecommitdiff
path: root/doc/texi/coding.c.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/texi/coding.c.texi')
-rw-r--r--doc/texi/coding.c.texi20
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/texi/coding.c.texi b/doc/texi/coding.c.texi
index 7ffdb35..c92c142 100644
--- a/doc/texi/coding.c.texi
+++ b/doc/texi/coding.c.texi
@@ -59,6 +59,24 @@ with the provided @code{str} .
@strong{Returns:} @code{ASN1_SUCCESS} if successful or an error value.
@end deftypefun
+@subheading asn1_object_id_der
+@anchor{asn1_object_id_der}
+@deftypefun {int} {asn1_object_id_der} (const char * @var{str}, unsigned char * @var{der}, int * @var{der_len}, unsigned @var{flags})
+@var{str}: An object identifier in numeric, dot format.
+
+@var{der}: buffer to hold the returned encoding (may be @code{NULL} ).
+
+@var{der_len}: initially the size of @code{der} ; will hold the final size.
+
+@var{flags}: must be zero
+
+Creates the DER encoding of the provided object identifier.
+
+@strong{Returns:} @code{ASN1_SUCCESS} if DER encoding was OK, @code{ASN1_VALUE_NOT_VALID}
+if @code{str} is not a valid OID, @code{ASN1_MEM_ERROR} if the @code{der} vector isn't big enough and in this case @code{der_len} will contain the
+length needed.
+@end deftypefun
+
@subheading asn1_bit_der
@anchor{asn1_bit_der}
@deftypefun {void} {asn1_bit_der} (const unsigned char * @var{str}, int @var{bit_len}, unsigned char * @var{der}, int * @var{der_len})
@@ -85,7 +103,7 @@ plus the DER encoding. The DER encoding size can be obtained using
@subheading asn1_der_coding
@anchor{asn1_der_coding}
-@deftypefun {int} {asn1_der_coding} (asn1_node @var{element}, const char * @var{name}, void * @var{ider}, int * @var{len}, char * @var{ErrorDescription})
+@deftypefun {int} {asn1_der_coding} (asn1_node_const @var{element}, const char * @var{name}, void * @var{ider}, int * @var{len}, char * @var{ErrorDescription})
@var{element}: pointer to an ASN1 element
@var{name}: the name of the structure you want to encode (it must be