GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
D2I_X509_ATTRIBUTE(3) FreeBSD Library Functions Manual D2I_X509_ATTRIBUTE(3)

d2i_X509_ATTRIBUTE, i2d_X509_ATTRIBUTEdecode 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);

() and () decode and encode a generic ASN.1 Attribute structure defined in X.501 section 8.2. For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3).

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.

ASN1_item_d2i(3), d2i_PKCS12(3), d2i_PKCS8_PRIV_KEY_INFO(3), d2i_X509_EXTENSION(3), d2i_X509_REQ(3), X509_ATTRIBUTE_new(3)

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.

March 27, 2018 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.