Home
last modified time | relevance | path

Searched refs:X509_ATTRIBUTE (Results 1 – 25 of 51) sorted by relevance

123

/openssl/crypto/x509/
H A Dx509_att.c40 X509_ATTRIBUTE *ex; in X509at_get_attr_by_OBJ()
56 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_get_attr()
69 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_delete_attr()
82 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF() argument
118 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF() argument
151 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) in STACK_OF() argument
186 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) in STACK_OF() argument
221 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) in STACK_OF() argument
242 X509_ATTRIBUTE *at; in X509at_get0_data_by_OBJ()
285 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr, in X509_ATTRIBUTE_create_by_OBJ()
[all …]
H A Dx_attrib.c29 ASN1_SEQUENCE(X509_ATTRIBUTE) = {
30 ASN1_SIMPLE(X509_ATTRIBUTE, object, ASN1_OBJECT),
31 ASN1_SET_OF(X509_ATTRIBUTE, set, ASN1_ANY)
32 } ASN1_SEQUENCE_END(X509_ATTRIBUTE)
34 IMPLEMENT_ASN1_FUNCTIONS(X509_ATTRIBUTE)
35 IMPLEMENT_ASN1_DUP_FUNCTION(X509_ATTRIBUTE)
37 X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value)
39 X509_ATTRIBUTE *ret = NULL;
H A Dx509_acert.c59 ASN1_SEQUENCE_OF(X509_ACERT_INFO, attributes, X509_ATTRIBUTE),
208 X509_ATTRIBUTE *X509_ACERT_get_attr(const X509_ACERT *x, int loc) in X509_ACERT_get_attr()
213 X509_ATTRIBUTE *X509_ACERT_delete_attr(X509_ACERT *x, int loc) in X509_ACERT_delete_attr()
218 int X509_ACERT_add1_attr(X509_ACERT *x, X509_ATTRIBUTE *attr) in X509_ACERT_add1_attr()
220 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr()
228 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_OBJ()
236 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_NID()
244 STACK_OF(X509_ATTRIBUTE) **attrs = &x->acinfo->attributes; in X509_ACERT_add1_attr_by_txt()
H A Dx509_req.c123 X509_ATTRIBUTE *attr; in STACK_OF()
192 X509_ATTRIBUTE *att = X509at_delete_attr(req->req_info.attributes, loc); in X509_REQ_add_extensions_nid()
231 X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc) in X509_REQ_get_attr()
236 X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc) in X509_REQ_delete_attr()
238 X509_ATTRIBUTE *attr; in X509_REQ_delete_attr()
250 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr) in X509_REQ_add1_attr()
H A Dv3_sda.c16 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, Attributes, X509_ATTRIBUTE) in ASN1_ITEM_TEMPLATE()
25 X509_ATTRIBUTE *attr; in ASN1_ITEM_TEMPLATE()
/openssl/doc/man3/
H A DX509_ATTRIBUTE.pod5 X509_ATTRIBUTE, X509at_get_attr,
29 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc);
30 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc);
31 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,
33 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE)
38 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE)
42 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)
50 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,
53 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,
57 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,
[all …]
H A DX509_REQ_get_attr.pod10 - B<X509_ATTRIBUTE> support for signed certificate requests
20 X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);
21 X509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);
22 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);
46 X509_REQ_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the
50 X509_REQ_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
53 X509_REQ_add1_attr() pushes a copy of the passed in B<X509_ATTRIBUTE> I<>attr>
57 X509_REQ_add1_attr_by_OBJ() creates a new B<X509_ATTRIBUTE> using
71 Refer to L<X509_ATTRIBUTE(3)> for information related to attributes.
85 X509_REQ_get_attr() returns either an B<X509_ATTRIBUTE> or NULL on error.
[all …]
H A DPKCS8_pkey_add1_attr.pod11 const STACK_OF(X509_ATTRIBUTE) *
13 int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr);
21 PKCS8_pkey_get0_attrs() returns a const STACK of X509_ATTRIBUTE present in
24 PKCS8_pkey_add1_attr() adds a constructed X509_ATTRIBUTE B<attr> to the
28 X509_ATTRIBUTE from the passed arguments and add it to the existing
38 STACK of X509_ATTRIBUTE is present in many X509-related structures and some of
H A DEVP_PKEY_get_attr.pod11 - EVP_PKEY B<X509_ATTRIBUTE> functions
21 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc);
22 X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc);
23 int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);
49 EVP_PKEY_get_attr() returns the B<X509_ATTRIBUTE> object at index I<loc> in the
53 EVP_PKEY_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
56 EVP_PKEY_add1_attr() pushes a copy of the passed in B<X509_ATTRIBUTE> object
60 EVP_PKEY_add1_attr_by_OBJ() creates a new B<X509_ATTRIBUTE> using
85 EVP_PKEY_get_attr() returns either a B<X509_ATTRIBUTE> or NULL if there is a
88 EVP_PKEY_delete_attr() returns either the removed B<X509_ATTRIBUTE> or NULL if
[all …]
H A DPKCS12_SAFEBAG_get0_attrs.pod12 const STACK_OF(X509_ATTRIBUTE) *PKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);
14 ASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,
19 PKCS12_SAFEBAG_get0_attrs() retrieves the stack of B<X509_ATTRIBUTE>s from a
23 B<X509_ATTRIBUTE>s. I<attr_nid> is the NID of the attribute to retrieve.
27 PKCS12_SAFEBAG_get0_attrs() returns the stack of B<X509_ATTRIBUTE>s from a
H A DCMS_signed_get_attr.pod28 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc);
29 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc);
30 int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);
49 X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc);
50 X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc);
51 int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);
89 CMS_signed_delete_attr() removes the B<X509_ATTRIBUTE> object at index I<loc> in
93 CMS_signed_add1_attr() pushes a copy of the passed in B<X509_ATTRIBUTE> object
97 CMS_signed_add1_attr_by_OBJ() creates a new signed B<X509_ATTRIBUTE> using
121 Refer to L<X509_ATTRIBUTE(3)> for information related to attributes.
[all …]
H A DX509_ACERT_add1_attr.pod16 int X509_ACERT_add1_attr(X509_ACERT *x, X509_ATTRIBUTE *attr);
23 X509_ATTRIBUTE *X509_ACERT_delete_attr(X509_ACERT *x, int loc);
27 X509_ACERT_add1_attr() adds a constructed X509_ATTRIBUTE B<attr> to the
46 X509_ACERT_delete_attr() returns a B<X509_ATTRIBUTE> pointer on
H A DX509_ACERT_get_attr.pod15 X509_ATTRIBUTE *X509_ACERT_get_attr(const X509_ACERT *x, int loc);
23 X509_ACERT_get0_attr() retrieves the I<loc>th B<X509_ATTRIBUTE> from an
35 X509_ACERT_get0_attr() return a B<X509_ATTRIBUTE> from an attribute
H A DPKCS12_SAFEBAG_set0_attrs.pod12 void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, STACK_OF(X509_ATTRIBUTE) *attrs);
16 PKCS12_SAFEBAG_set0_attrs() assigns the stack of B<X509_ATTRIBUTE>s to a
/openssl/crypto/cms/
H A Dcms_att.c86 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc) in CMS_signed_get_attr()
91 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc) in CMS_signed_delete_attr()
96 int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_signed_add1_attr()
154 X509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc) in CMS_unsigned_get_attr()
159 X509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc) in CMS_unsigned_delete_attr()
164 int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_unsigned_add1_attr()
211 static X509_ATTRIBUTE *cms_attrib_get(int nid, in cms_attrib_get()
212 const STACK_OF(X509_ATTRIBUTE) *attrs, in cms_attrib_get()
215 X509_ATTRIBUTE *at; in cms_attrib_get()
228 const STACK_OF(X509_ATTRIBUTE) *attrs, in cms_check_attribute()
[all …]
H A Dcms_local.h92 STACK_OF(X509_ATTRIBUTE) *signedAttrs;
95 STACK_OF(X509_ATTRIBUTE) *unsignedAttrs;
118 STACK_OF(X509_ATTRIBUTE) *unprotectedAttrs;
259 STACK_OF(X509_ATTRIBUTE) *unprotectedAttrs;
269 STACK_OF(X509_ATTRIBUTE) *authAttrs;
271 STACK_OF(X509_ATTRIBUTE) *unauthAttrs;
279 STACK_OF(X509_ATTRIBUTE) *authAttrs;
281 STACK_OF(X509_ATTRIBUTE) *unauthAttrs;
H A Dcms_asn1.c63 ASN1_IMP_SET_OF_OPT(CMS_SignerInfo, signedAttrs, X509_ATTRIBUTE, 0),
66 ASN1_IMP_SET_OF_OPT(CMS_SignerInfo, unsignedAttrs, X509_ATTRIBUTE, 1)
244 ASN1_IMP_SET_OF_OPT(CMS_EnvelopedData, unprotectedAttrs, X509_ATTRIBUTE, 1)
257 ASN1_IMP_SET_OF_OPT(CMS_EncryptedData, unprotectedAttrs, X509_ATTRIBUTE, 1)
353 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SET_ORDER, 0, CMS_ATTRIBUTES, X509_ATTRIBUTE)
363 V_ASN1_SET, CMS_ATTRIBUTES, X509_ATTRIBUTE)
/openssl/include/crypto/
H A Dx509.h73 STACK_OF(X509_ATTRIBUTE) *attributes;
294 STACK_OF(X509_ATTRIBUTE) *attributes;
329 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_dup(const STACK_OF(X509_ATTRIBUTE) *x);
373 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,
374 const X509_ATTRIBUTE *attr);
375 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) **x,
380 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) **x,
384 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) **x,
/openssl/include/openssl/
H A Dx509.h.in559 DECLARE_ASN1_FUNCTIONS(X509_ATTRIBUTE)
965 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc);
966 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc);
967 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,
969 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE)
974 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE)
978 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)
985 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,
988 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,
992 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,
[all …]
/openssl/crypto/asn1/
H A Dp8_pkey.c33 ASN1_IMP_SET_OF_OPT(PKCS8_PRIV_KEY_INFO, attributes, X509_ATTRIBUTE, 0)
68 const STACK_OF(X509_ATTRIBUTE) * in STACK_OF() argument
88 int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr) in PKCS8_pkey_add1_attr()
/openssl/crypto/pkcs12/
H A Dp12_attr.c95 ASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs, in PKCS12_get_attr_gen()
117 const STACK_OF(X509_ATTRIBUTE) * in STACK_OF() argument
123 void PKCS12_SAFEBAG_set0_attrs(PKCS12_SAFEBAG *bag, STACK_OF(X509_ATTRIBUTE) *attrs) in PKCS12_SAFEBAG_set0_attrs()
/openssl/crypto/pkcs7/
H A Dpk7_asn1.c156 ASN1_IMP_SEQUENCE_OF_OPT(PKCS7_SIGNER_INFO, auth_attr, X509_ATTRIBUTE, 0),
159 ASN1_IMP_SET_OF_OPT(PKCS7_SIGNER_INFO, unauth_attr, X509_ATTRIBUTE, 1)
243 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SET_ORDER, 0, PKCS7_ATTRIBUTES, X509_ATTRIBUTE)
253 V_ASN1_SET, PKCS7_ATTRIBUTES, X509_ATTRIBUTE)
H A Dpk7_doit.c21 static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype,
23 static ASN1_TYPE *get_attribute(const STACK_OF(X509_ATTRIBUTE) *sk, int nid);
775 STACK_OF(X509_ATTRIBUTE) *sk; in PKCS7_dataFinal()
1069 STACK_OF(X509_ATTRIBUTE) *sk; in PKCS7_signatureVerify()
1217 static ASN1_TYPE *get_attribute(const STACK_OF(X509_ATTRIBUTE) *sk, int nid) in get_attribute()
1226 ASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk) in PKCS7_digest_from_attributes()
1235 STACK_OF(X509_ATTRIBUTE) *sk) in PKCS7_set_signed_attributes()
1245 STACK_OF(X509_ATTRIBUTE) *sk) in PKCS7_set_attributes()
1266 static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype, in add_attribute()
1269 X509_ATTRIBUTE *attr = NULL; in add_attribute()
/openssl/crypto/evp/
H A Devp_pkey.c201 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc) in EVP_PKEY_get_attr()
206 X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc) in EVP_PKEY_delete_attr()
211 int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr) in EVP_PKEY_add1_attr()
/openssl/test/helpers/
H A Dpkcs12.c45 static int check_attrs(const STACK_OF(X509_ATTRIBUTE) *bag_attrs, const PKCS12_ATTR *attrs);
346 STACK_OF(X509_ATTRIBUTE)* attrs = NULL; in add_attributes()
347 X509_ATTRIBUTE *x509_attr = NULL; in add_attributes()
364 attrs = (STACK_OF(X509_ATTRIBUTE)*)PKCS12_SAFEBAG_get0_attrs(bag); in add_attributes()
512 static int check_attrs(const STACK_OF(X509_ATTRIBUTE) *bag_attrs, const PKCS12_ATTR *attrs) in check_attrs()
515 X509_ATTRIBUTE *attr; in check_attrs()

Completed in 39 milliseconds

123