libressl-d2i_AUTHORITY_KEYID3
Decode and encode x.509 authority key identifiers
Usage
Crypto Library (libcrypto, -lcrypto)
#include <openssl/x509v3.h>
AUTHORITY_KEYID *
d2i_AUTHORITY_KEYID(AUTHORITY_KEYID **val_out, const unsigned char **der_in, long length);
int
i2d_AUTHORITY_KEYID(AUTHORITY_KEYID *val_in, unsigned char **der_out);
Overview
d2i_AUTHORITY_KEYID() and i2d_AUTHORITY_KEYID() decode and encode an ASN.1 AuthorityKeyIdentifier structure defined in RFC 5280 section 4.2.1.1. For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3).
Return values
d2i_AUTHORITY_KEYID() returns an AUTHORITY_KEYID object or NULL if an error occurs.
i2d_AUTHORITY_KEYID() returns the number of bytes successfully encoded or a negative value if an error occurs.