Create an attribute by name and append a copy to a STACK_OF(X509_ATTRIBUTE).
Declared in <openssl/x509.h>
stack_st_X509_ATTRIBUTE*
X509at_add1_attr_by_txt(
stack_st_X509_ATTRIBUTE** x,
char const* attrname,
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. |
| attrname | Attribute name (SN/LN) used to resolve the OID. |
| type | ASN.1 type of the attribute data. |
| bytes | Attribute value bytes. |
| len | Length of bytes. |