Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
X509_ATTRIBUTE_new, X509_ATTRIBUTE_create, X509_ATTRIBUTE_dup, X509_ATTRIBUTE_free — generic X.501 AttributeSYNOPSIS
#include <openssl/x509.h>X509_ATTRIBUTE_new(void);
X509_ATTRIBUTE_create(int nid, int type, void *value);
X509_ATTRIBUTE_dup(X509_ATTRIBUTE *attr);
X509_ATTRIBUTE_free(X509_ATTRIBUTE *attr);
DESCRIPTION
In the X.501 standard, an Attribute is the fundamental ASN.1 data type used to represent any kind of property of any kind of directory entry. In OpenSSL, very few objects use it directly, most notably the X509_REQ_INFO object used for PKCS#10 certification requests described in X509_REQ_new(3), the PKCS8_PRIV_KEY_INFO object used for PKCS#8 private key information described in PKCS8_PRIV_KEY_INFO_new(3), and the PKCS12_SAFEBAG container object described in PKCS12_SAFEBAG_new(3).RETURN VALUES
X509_ATTRIBUTE_new(), X509_ATTRIBUTE_create(), and X509_ATTRIBUTE_dup() return the new X509_ATTRIBUTE object or NULL if an error occurs.SEE ALSO
d2i_X509_ATTRIBUTE(3), EVP_PKEY_add1_attr(3), OBJ_nid2obj(3), PKCS12_SAFEBAG_new(3), PKCS7_add_attribute(3), PKCS8_pkey_get0_attrs(3), PKCS8_PRIV_KEY_INFO_new(3), X509_ATTRIBUTE_get0_object(3), X509_ATTRIBUTE_set1_object(3), X509_EXTENSION_new(3), X509_new(3), X509_REQ_add1_attr(3), X509_REQ_new(3), X509at_add1_attr(3), X509at_get_attr(3)STANDARDS
- For the general definition of the Attribute data type:
- ITU-T Recommendation X.501, also known as ISO/IEC 9594-2: Information Technology – Open Systems Interconnection – The Directory: Models, section 8.2: Overall structure
- For the specific definition in the context of certification requests:
- RFC 2986: PKCS #10: Certification Request Syntax Specification, section 4.1: CertificationRequestInfo
- For the specific use in the context of private key information:
- RFC 5208: Public-Key Cryptography Standards (PKCS) #8: Private-Key Information Syntax Specification
- For the specific definition in the context of PFX:
- RFC 7292: PKCS #12: Personal Information Exchange Syntax, section 4.2: The SafeBag Type