d2i_X509_ATTRIBUTE,
i2d_X509_ATTRIBUTE — decode
and encode generic X.501 Attribute
#include
<openssl/x509.h>
X509_ATTRIBUTE *
d2i_X509_ATTRIBUTE(X509_ATTRIBUTE
**val_out, const unsigned char **der_in,
long length);
int
i2d_X509_ATTRIBUTE(X509_ATTRIBUTE
*val_in, unsigned char **der_out);
d2i_X509_ATTRIBUTE() returns an
X509_ATTRIBUTE object or NULL
if an error occurs.
i2d_X509_ATTRIBUTE() returns the number of
bytes successfully encoded or a negative value if an error occurs.
ITU-T Recommendation X.501, also known as ISO/IEC 9594-2:
Information Technology Open Systems Interconnection The Directory: Models,
section 8.2: Overall structure
d2i_X509_ATTRIBUTE() and
i2d_X509_ATTRIBUTE() first appeared in SSLeay 0.5.1
and have been available since OpenBSD 2.4.