Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 33) sorted by relevance

12

/openssl/crypto/x509/
H A Dx509_att.c144 if (attr == NULL) in STACK_OF()
179 if (attr == NULL) in STACK_OF()
214 if (attr == NULL) in STACK_OF()
231 if (attr == NULL) in STACK_OF()
292 if (attr == NULL || *attr == NULL) { in X509_ATTRIBUTE_create_by_OBJ()
298 ret = *attr; in X509_ATTRIBUTE_create_by_OBJ()
306 if (attr != NULL && *attr == NULL) in X509_ATTRIBUTE_create_by_OBJ()
307 *attr = ret; in X509_ATTRIBUTE_create_by_OBJ()
310 if (attr == NULL || ret != *attr) in X509_ATTRIBUTE_create_by_OBJ()
351 if (attr == NULL) { in X509_ATTRIBUTE_set1_data()
[all …]
H A Dv3_sda.c25 X509_ATTRIBUTE *attr; in ASN1_ITEM_TEMPLATE() local
42 attr = sk_X509_ATTRIBUTE_value(attrlst, i); in ASN1_ITEM_TEMPLATE()
43 attr_obj = X509_ATTRIBUTE_get0_object(attr); in ASN1_ITEM_TEMPLATE()
56 if (X509_ATTRIBUTE_count(attr)) { in ASN1_ITEM_TEMPLATE()
57 for (j = 0; j < X509_ATTRIBUTE_count(attr); j++) in ASN1_ITEM_TEMPLATE()
59 av = X509_ATTRIBUTE_get0_type(attr, j); in ASN1_ITEM_TEMPLATE()
H A Dx509_req.c123 X509_ATTRIBUTE *attr; in STACK_OF() local
130 attr = X509_REQ_get_attr(req, idx); in STACK_OF()
131 ext = X509_ATTRIBUTE_get0_type(attr, 0); in STACK_OF()
238 X509_ATTRIBUTE *attr; in X509_REQ_delete_attr() local
244 attr = X509at_delete_attr(req->req_info.attributes, loc); in X509_REQ_delete_attr()
245 if (attr != NULL) in X509_REQ_delete_attr()
247 return attr; in X509_REQ_delete_attr()
250 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr) in X509_REQ_add1_attr() argument
256 if (!X509at_add1_attr(&req->req_info.attributes, attr)) in X509_REQ_add1_attr()
H A Dx509_acert.c218 int X509_ACERT_add1_attr(X509_ACERT *x, X509_ATTRIBUTE *attr) in X509_ACERT_add1_attr() argument
222 return X509at_add1_attr(attrs, attr) != NULL; in X509_ACERT_add1_attr()
/openssl/include/openssl/
H A Dpem.h245 attr PEM_write_fnsig(name, type, FILE, write);
251 attr PEM_write_fnsig(name, type, FILE, write);
311 DECLARE_PEM_write_fp_attr(attr, name, type)
314 DECLARE_PEM_write_fp_ex_attr(attr, name, type)
328 DECLARE_PEM_write_cb_fp_attr(attr, name, type)
338 DECLARE_PEM_read_fp_attr(attr, name, type)
341 DECLARE_PEM_read_fp_ex_attr(attr, name, type)
348 DECLARE_PEM_write_attr(attr, name, type)
351 DECLARE_PEM_write_ex_attr(attr, name, type)
359 DECLARE_PEM_write_const_attr(attr, name, type)
[all …]
H A Dasn1.h.in243 DECLARE_ASN1_FUNCTIONS_name_attr(attr, type, type)
248 DECLARE_ASN1_ALLOC_FUNCTIONS_name_attr(attr, type, type)
254 DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(attr, type, name)
260 DECLARE_ASN1_ITEM_attr(attr, itname)
265 DECLARE_ASN1_ENCODE_FUNCTIONS_attr(attr, type, name, name)
271 attr int i2d_##name(const type *a, unsigned char **out);
282 attr void name##_free(type *a);
287 DECLARE_ASN1_DUP_FUNCTION_name_attr(attr, type, type)
292 attr type *name##_dup(const type *a);
297 DECLARE_ASN1_PRINT_FUNCTION_fname_attr(attr, stname, stname)
[all …]
H A Dx509.h.in728 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);
968 X509_ATTRIBUTE *attr);
988 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,
992 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,
997 int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,
999 void *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype,
1001 int X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr);
1002 ASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);
1003 ASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx);
1011 int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);
[all …]
/openssl/doc/man3/
H A DX509_ATTRIBUTE.pod32 X509_ATTRIBUTE *attr);
53 X509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,
62 int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,
66 int X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr);
67 ASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);
121 Both I<x> and I<attr> must be non NULL or an error will occur.
142 to the attribute I<attr>. If I<attr> contained an existing B<ASN1_OBJECT> then
150 I<attr> attributes NID is used to set an B<ASN1_STRING> using
163 data I<data> of length I<len>. If the passed in attribute I<attr> OR I<*attr> is
178 attribute I<attr>.
[all …]
H A DPKCS8_pkey_add1_attr.pod13 int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr);
24 PKCS8_pkey_add1_attr() adds a constructed X509_ATTRIBUTE B<attr> to the
H A DX509_ACERT_add1_attr.pod16 int X509_ACERT_add1_attr(X509_ACERT *x, X509_ATTRIBUTE *attr);
27 X509_ACERT_add1_attr() adds a constructed X509_ATTRIBUTE B<attr> to the
H A DEVP_PKEY_get_attr.pod23 int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);
58 An error occurs if either I<attr> is NULL, or the attribute already exists.
H A DX509_REQ_get_attr.pod22 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);
53 X509_REQ_add1_attr() pushes a copy of the passed in B<X509_ATTRIBUTE> I<>attr>
/openssl/crypto/thread/arch/
H A Dthread_posix.c38 pthread_attr_t attr; in ossl_crypto_thread_native_spawn() local
45 pthread_attr_init(&attr); in ossl_crypto_thread_native_spawn()
47 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in ossl_crypto_thread_native_spawn()
48 ret = pthread_create(handle, &attr, thread_start_thunk, thread); in ossl_crypto_thread_native_spawn()
49 pthread_attr_destroy(&attr); in ossl_crypto_thread_native_spawn()
/openssl/crypto/ts/
H A Dts_rsp_verify.c208 ASN1_TYPE *attr; in ossl_ess_get_signing_cert() local
211 attr = PKCS7_get_signed_attribute(si, NID_id_smime_aa_signingCertificate); in ossl_ess_get_signing_cert()
212 if (attr == NULL) in ossl_ess_get_signing_cert()
214 p = attr->value.sequence->data; in ossl_ess_get_signing_cert()
215 return d2i_ESS_SIGNING_CERT(NULL, &p, attr->value.sequence->length); in ossl_ess_get_signing_cert()
221 ASN1_TYPE *attr; in ossl_ess_get_signing_cert_v2() local
224 attr = PKCS7_get_signed_attribute(si, NID_id_smime_aa_signingCertificateV2); in ossl_ess_get_signing_cert_v2()
225 if (attr == NULL) in ossl_ess_get_signing_cert_v2()
227 p = attr->value.sequence->data; in ossl_ess_get_signing_cert_v2()
228 return d2i_ESS_SIGNING_CERT_V2(NULL, &p, attr->value.sequence->length); in ossl_ess_get_signing_cert_v2()
/openssl/demos/cms/
H A Dcms_ver.c23 X509_ATTRIBUTE *attr; in print_signingTime() local
35 attr = CMS_signed_get_attr(si, loc); in print_signingTime()
36 t = X509_ATTRIBUTE_get0_type(attr, 0); in print_signingTime()
/openssl/crypto/cms/
H A Dcms_att.c96 int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_signed_add1_attr() argument
98 if (ossl_x509at_add1_attr(&si->signedAttrs, attr)) in CMS_signed_add1_attr()
164 int CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr) in CMS_unsigned_add1_attr() argument
166 if (ossl_x509at_add1_attr(&si->unsignedAttrs, attr)) in CMS_unsigned_add1_attr()
/openssl/test/helpers/
H A Dpkcs12.c341 static int add_attributes(PKCS12_SAFEBAG *bag, const PKCS12_ATTR *attr) in add_attributes() argument
345 const PKCS12_ATTR *p_attr = attr; in add_attributes()
349 if (attr == NULL) in add_attributes()
515 X509_ATTRIBUTE *attr; in check_attrs() local
524 attr = sk_X509_ATTRIBUTE_value(bag_attrs, i); in check_attrs()
525 attr_obj = X509_ATTRIBUTE_get0_object(attr); in check_attrs()
531 if (!TEST_int_eq(X509_ATTRIBUTE_count(attr), 1)) in check_attrs()
534 for (j = 0; j < X509_ATTRIBUTE_count(attr); j++) { in check_attrs()
535 av = X509_ATTRIBUTE_get0_type(attr, j); in check_attrs()
/openssl/crypto/asn1/
H A Dp8_pkey.c88 int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr) in PKCS8_pkey_add1_attr() argument
90 return (X509at_add1_attr(&p8->attributes, attr) != NULL); in PKCS8_pkey_add1_attr()
/openssl/apps/
H A Dpkcs12.c914 X509_ATTRIBUTE *attr = NULL; in jdk_trust() local
924attr = X509_ATTRIBUTE_create(NID_oracle_jdk_trustedkeyusage, V_ASN1_OBJECT, (ASN1_OBJECT*)cbarg); in jdk_trust()
927 X509at_add1_attr(&attrs, attr); in jdk_trust()
932 X509_ATTRIBUTE_free(attr); in jdk_trust()
1287 X509_ATTRIBUTE *attr; in print_attribs() local
1301 attr = sk_X509_ATTRIBUTE_value(attrlst, i); in print_attribs()
1302 attr_obj = X509_ATTRIBUTE_get0_object(attr); in print_attribs()
1312 if (X509_ATTRIBUTE_count(attr)) { in print_attribs()
1313 for (j = 0; j < X509_ATTRIBUTE_count(attr); j++) { in print_attribs()
1314 av = X509_ATTRIBUTE_get0_type(attr, j); in print_attribs()
/openssl/crypto/
H A Dthreads_pthread.c723 pthread_mutexattr_t attr; in CRYPTO_THREAD_lock_new()
733 pthread_mutexattr_init(&attr); in CRYPTO_THREAD_lock_new()
736 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK); in CRYPTO_THREAD_lock_new()
742 if (pthread_mutex_init(lock, &attr) != 0) { in CRYPTO_THREAD_lock_new()
743 pthread_mutexattr_destroy(&attr); in CRYPTO_THREAD_lock_new()
748 pthread_mutexattr_destroy(&attr); in CRYPTO_THREAD_lock_new()
/openssl/crypto/evp/
H A Devp_pkey.c211 int EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr) in EVP_PKEY_add1_attr() argument
213 if (X509at_add1_attr(&key->attributes, attr)) in EVP_PKEY_add1_attr()
/openssl/test/
H A Dpkcs12_format_test.c755 X509_ATTRIBUTE *attr = NULL; in test_set0_attrs() local
768attr = X509_ATTRIBUTE_create(NID_oracle_jdk_trustedkeyusage, V_ASN1_OBJECT, OBJ_txt2obj("anyExtend… in test_set0_attrs()
769 X509at_add1_attr(&attrs, attr); in test_set0_attrs()
772 X509_ATTRIBUTE_free(attr); in test_set0_attrs()
/openssl/apps/lib/
H A Dopt.c1235 DWORD attr; in opt_isdir() local
1249 attr = GetFileAttributes(tempname); in opt_isdir()
1251 attr = GetFileAttributes(name); in opt_isdir()
1253 if (attr == INVALID_FILE_ATTRIBUTES) in opt_isdir()
1255 return ((attr & FILE_ATTRIBUTE_DIRECTORY) != 0); in opt_isdir()
/openssl/crypto/pkcs7/
H A Dpk7_doit.c1287 X509_ATTRIBUTE *attr = NULL; in add_attribute() local
1296 attr = sk_X509_ATTRIBUTE_value(*sk, i); in add_attribute()
1297 if (OBJ_obj2nid(X509_ATTRIBUTE_get0_object(attr)) == nid) in add_attribute()
1304 attr = X509_ATTRIBUTE_create(nid, atrtype, value); in add_attribute()
1305 if (attr == NULL) { in add_attribute()
1311 (void) sk_X509_ATTRIBUTE_set(*sk, i, attr); in add_attribute()
/openssl/test/ocsp-tests/
H A Dmk-ocsp-cert-chain.sh87 rm -f index.txt index.txt.attr

Completed in 70 milliseconds

12