.\" $OpenBSD: d2i_X509_ALGOR.3,v 1.7 2016/12/28 14:17:47 schwarze Exp $ .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 .\" .\" Copyright (c) 2016 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: December 28 2016 $ .Dt D2I_X509_ALGOR 3 .Os .Sh NAME .Nm d2i_X509_ALGOR , .Nm i2d_X509_ALGOR .Nd decode and encode algorithm identifiers .Sh SYNOPSIS .In openssl/x509.h .Ft X509_ALGOR * .Fo d2i_X509_ALGOR .Fa "X509_ALGOR **val_out" .Fa "unsigned char **der_in" .Fa "long length" .Fc .Ft int .Fo i2d_X509_ALGOR .Fa "X509_ALGOR *val_in" .Fa "unsigned char **der_out" .Fc .Sh DESCRIPTION .Fn d2i_X509_ALGOR and .Fn i2d_X509_ALGOR decode and encode an ASN.1 .Vt AlgorithmIdentifier structure defined in RFC 5280 section 4.1.1.2. For details about the semantics, examples, caveats, and bugs, see .Xr ASN1_item_d2i 3 . .Sh SEE ALSO .Xr ASN1_item_d2i 3 , .Xr X509_ALGOR_new 3 .Sh STANDARDS RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile