X509at_add1_attr

Append a duplicate of attr to an X509_ATTRIBUTE stack, creating the stack if needed.

Synopsis

Declared in <openssl/x509.h>

stack_st_X509_ATTRIBUTE*
X509at_add1_attr(
    stack_st_X509_ATTRIBUTE** x,
    X509_ATTRIBUTE* attr);

Return Value

  • The attribute stack on success, or NULL on failure.
  • The attribute stack on success, or NULL on failure.

Parameters

NameDescription
xAddress of a STACK_OF(X509_ATTRIBUTE) pointer; allocated if *x is NULL.
attrAttribute to duplicate and append.