Create an attribute by OID and append a copy to a STACK_OF(X509_ATTRIBUTE).
Declared in <openssl/x509.h>
stack_st_X509_ATTRIBUTE*
X509at_add1_attr_by_OBJ(
stack_st_X509_ATTRIBUTE** x,
ASN1_OBJECT const* obj,
int type,
unsigned char const* bytes,
int len);
The (possibly newly allocated) attribute stack, or NULL on error.
| Name | Description |
|---|---|
| x | Address of the attribute stack pointer; allocated if NULL. |
| obj | Attribute object identifier. |
| type | ASN.1 type of the attribute data. |
| bytes | Attribute value bytes. |
| len | Length of bytes. |