Create an attribute by OID and append a copy to a STACK_OF(X509_ATTRIBUTE).
Synopsis
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);
Return Value
The (possibly newly allocated) attribute stack, or NULL on error.
Parameters
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 |
Created with MrDocs