xref: /openbsd/lib/libcrypto/man/d2i_X509_ALGOR.3 (revision 10e00d17)
1.\"	$OpenBSD: d2i_X509_ALGOR.3,v 1.9 2018/03/27 17:35:50 schwarze Exp $
2.\"	OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700
3.\"
4.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: March 27 2018 $
19.Dt D2I_X509_ALGOR 3
20.Os
21.Sh NAME
22.Nm d2i_X509_ALGOR ,
23.Nm i2d_X509_ALGOR
24.Nd decode and encode algorithm identifiers
25.Sh SYNOPSIS
26.In openssl/x509.h
27.Ft X509_ALGOR *
28.Fo d2i_X509_ALGOR
29.Fa "X509_ALGOR **val_out"
30.Fa "unsigned char **der_in"
31.Fa "long length"
32.Fc
33.Ft int
34.Fo i2d_X509_ALGOR
35.Fa "X509_ALGOR *val_in"
36.Fa "unsigned char **der_out"
37.Fc
38.Sh DESCRIPTION
39.Fn d2i_X509_ALGOR
40and
41.Fn i2d_X509_ALGOR
42decode and encode an ASN.1
43.Vt AlgorithmIdentifier
44structure defined in RFC 5280 section 4.1.1.2.
45For details about the semantics, examples, caveats, and bugs, see
46.Xr ASN1_item_d2i 3 .
47.Sh SEE ALSO
48.Xr ASN1_item_d2i 3 ,
49.Xr X509_ALGOR_new 3
50.Sh STANDARDS
51RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
52Certificate Revocation List (CRL) Profile
53.Sh HISTORY
54.Fn d2i_X509_ALGOR
55and
56.Fn i2d_X509_ALGOR
57first appeared in SSLeay 0.5.1 and have been available since
58.Ox 2.4 .
59