Home
last modified time | relevance | path

Searched refs:crit (Results 1 – 21 of 21) sorted by relevance

/openssl/crypto/x509/
H A Dx509_ext.c37 return X509v3_get_ext_by_critical(x->crl.extensions, crit, lastpos); in X509_CRL_get_ext_by_critical()
52 return X509V3_get_d2i(x->crl.extensions, nid, crit, idx); in X509_CRL_get_ext_d2i()
55 int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, in X509_CRL_add1_ext_i2d() argument
81 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos) in X509_get_ext_by_critical() argument
84 (x->cert_info.extensions, crit, lastpos)); in X509_get_ext_by_critical()
102 void *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx) in X509_get_ext_d2i() argument
104 return X509V3_get_d2i(x->cert_info.extensions, nid, crit, idx); in X509_get_ext_d2i()
107 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, in X509_add1_ext_i2d() argument
132 return X509v3_get_ext_by_critical(x->extensions, crit, lastpos); in X509_REVOKED_get_ext_by_critical()
152 return X509V3_get_d2i(x->extensions, nid, crit, idx); in X509_REVOKED_get_ext_d2i()
[all …]
H A Dv3_lib.c163 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit, in X509V3_get_d2i() argument
172 if (crit) in X509V3_get_d2i()
173 *crit = -1; in X509V3_get_d2i()
191 if (crit) in X509V3_get_d2i()
192 *crit = -2; in X509V3_get_d2i()
200 if (crit) in X509V3_get_d2i()
201 *crit = X509_EXTENSION_get_critical(found_ex); in X509V3_get_d2i()
208 if (crit) in X509V3_get_d2i()
209 *crit = -1; in X509V3_get_d2i()
220 int crit, unsigned long flags) in X509V3_add1_i2d() argument
[all …]
H A Dx509_v3.c61 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
76 crit = crit != 0; in X509v3_get_ext_by_critical()
77 if (c == crit) in X509v3_get_ext_by_critical()
176 int crit, in X509_EXTENSION_create_by_NID() argument
187 ret = X509_EXTENSION_create_by_OBJ(ex, obj, crit, data); in X509_EXTENSION_create_by_NID()
194 const ASN1_OBJECT *obj, int crit, in X509_EXTENSION_create_by_OBJ() argument
209 if (!X509_EXTENSION_set_critical(ret, crit)) in X509_EXTENSION_create_by_OBJ()
232 int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit) in X509_EXTENSION_set_critical() argument
236 ex->critical = (crit) ? 0xFF : 0; in X509_EXTENSION_set_critical()
H A Dv3_conf.c23 int crit, const char *value);
25 int crit, int type,
38 int crit; in X509V3_EXT_nconf_int() local
42 crit = v3_check_critical(&value); in X509V3_EXT_nconf_int()
45 ret = do_ext_nconf(conf, ctx, OBJ_sn2nid(name), crit, value); in X509V3_EXT_nconf_int()
67 int crit; in X509V3_EXT_nconf_nid() local
70 crit = v3_check_critical(&value); in X509V3_EXT_nconf_nid()
73 value, crit, ext_type, ctx); in X509V3_EXT_nconf_nid()
74 return do_ext_nconf(conf, ctx, ext_nid, crit, value); in X509V3_EXT_nconf_nid()
129 ext = do_ext_i2d(method, ext_nid, crit, ext_struc); in do_ext_nconf()
[all …]
H A Dpcy_data.c39 const ASN1_OBJECT *cid, int crit) in ossl_policy_data_new() argument
65 if (crit) in ossl_policy_data_new()
H A Dx509_acert.c314 void *X509_ACERT_get_ext_d2i(const X509_ACERT *x, int nid, int *crit, int *idx) in X509_ACERT_get_ext_d2i() argument
316 return X509V3_get_d2i(x->acinfo->extensions, nid, crit, idx); in X509_ACERT_get_ext_d2i()
319 int X509_ACERT_add1_ext_i2d(X509_ACERT *x, int nid, void *value, int crit, in X509_ACERT_add1_ext_i2d() argument
322 return X509V3_add1_i2d(&x->acinfo->extensions, nid, value, crit, flags); in X509_ACERT_add1_ext_i2d()
H A Dpcy_cache.c27 CERTIFICATEPOLICIES *policies, int crit) in policy_cache_create() argument
43 data = ossl_policy_data_new(policy, NULL, crit); in policy_cache_create()
H A Dpcy_local.h144 int crit);
/openssl/crypto/ocsp/
H A Docsp_ext.c44 (x->tbsRequest.requestExtensions, crit, lastpos)); in OCSP_REQUEST_get_ext_by_critical()
66 crit, flags); in OCSP_REQUEST_add1_ext_i2d()
96 (x->singleRequestExtensions, crit, lastpos)); in OCSP_ONEREQ_get_ext_by_critical()
111 return X509V3_get_d2i(x->singleRequestExtensions, nid, crit, idx); in OCSP_ONEREQ_get1_ext_d2i()
146 int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit, in OCSP_BASICRESP_get_ext_by_critical() argument
150 (x->tbsResponseData.responseExtensions, crit, lastpos)); in OCSP_BASICRESP_get_ext_by_critical()
171 int crit, unsigned long flags) in OCSP_BASICRESP_add1_ext_i2d() argument
174 value, crit, flags); in OCSP_BASICRESP_add1_ext_i2d()
201 int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit, in OCSP_SINGLERESP_get_ext_by_critical() argument
220 return X509V3_get_d2i(x->singleExtensions, nid, crit, idx); in OCSP_SINGLERESP_get1_ext_d2i()
[all …]
/openssl/doc/man3/
H A DX509V3_get_d2i.pod17 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,
20 int crit, unsigned long flags);
23 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
25 void *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx);
26 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
30 int X509_ACERT_add1_ext_i2d(X509_ACERT *x, int nid, void *value, int crit,
34 int X509_CRL_add1_ext_i2d(X509_CRL *crl, int nid, void *value, int crit,
52 If I<crit> is not NULL then I<*crit> is set to a status value: -2 if the
59 STACK if necessary) using OID I<nid> and criticality I<crit> according
67 with OID I<ext_nid> and criticality I<crit>.
[all …]
H A DX509_EXTENSION_set_object.pod14 int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);
18 int nid, int crit,
21 const ASN1_OBJECT *obj, int crit,
33 X509_EXTENSION_set_critical() sets the criticality of B<ex> to B<crit>. If
34 B<crit> is zero the extension in non-critical otherwise it is critical.
40 criticality B<crit> using data B<data>. The created extension is returned and
H A DX509v3_get_ext_by_NID.pod28 int crit, int lastpos);
40 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos);
49 int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos);
58 int X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit, int lastpos);
77 looks for an extension of criticality I<crit>. A zero value for I<crit>
/openssl/crypto/ts/
H A Dts_req_utils.c160 int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos) in TS_REQ_get_ext_by_critical() argument
162 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_REQ_get_ext_by_critical()
180 void *TS_REQ_get_ext_d2i(TS_REQ *a, int nid, int *crit, int *idx) in TS_REQ_get_ext_d2i() argument
182 return X509V3_get_d2i(a->extensions, nid, crit, idx); in TS_REQ_get_ext_d2i()
H A Dts_rsp_utils.c321 int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos) in TS_TST_INFO_get_ext_by_critical() argument
323 return X509v3_get_ext_by_critical(a->extensions, crit, lastpos); in TS_TST_INFO_get_ext_by_critical()
341 void *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx) in TS_TST_INFO_get_ext_d2i() argument
343 return X509V3_get_d2i(a->extensions, nid, crit, idx); in TS_TST_INFO_get_ext_d2i()
/openssl/include/openssl/
H A Docsp.h.in307 int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);
310 void *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,
319 int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);
322 void *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);
323 int OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,
331 int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,
335 void *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,
338 int crit, unsigned long flags);
345 int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,
349 void *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,
[all …]
H A Dts.h158 int TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos);
162 void *TS_REQ_get_ext_d2i(TS_REQ *a, int nid, int *crit, int *idx);
220 int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);
224 void *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx);
H A Dx509.h.in902 int crit, int lastpos);
913 int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos);
917 void *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx);
918 int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,
925 int X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos);
929 void *X509_CRL_get_ext_d2i(const X509_CRL *x, int nid, int *crit, int *idx);
930 int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit,
937 int X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit,
942 void *X509_REVOKED_get_ext_d2i(const X509_REVOKED *x, int nid, int *crit,
948 int nid, int crit,
[all …]
H A Dx509_acert.h.in80 void *X509_ACERT_get_ext_d2i(const X509_ACERT *x, int nid, int *crit, int *idx);
81 int X509_ACERT_add1_ext_i2d(X509_ACERT *x, int nid, void *value, int crit,
H A Dx509v3.h.in702 void *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,
705 X509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);
707 int crit, unsigned long flags);
/openssl/crypto/cmp/
H A Dcmp_msg.c132 static int add1_extension(X509_EXTENSIONS **pexts, int nid, int crit, void *ex) in add1_extension() argument
140 if ((ext = X509V3_EXT_i2d(nid, crit, ex)) == NULL) in add1_extension()
284 int crit = ctx->setSubjectAltNameCritical || subject == NULL; in OSSL_CMP_CTX_setup_CRM() local
331 && !add1_extension(&exts, NID_subject_alt_name, crit, default_sans)) in OSSL_CMP_CTX_setup_CRM()
338 crit, ctx->subjectAltNames)) in OSSL_CMP_CTX_setup_CRM()
/openssl/test/certs/
H A Dsetup.sh468 ./mkcert.sh geneeextra server.example ee-key ee-cert-crit-unknown-ext ca-key ca-cert "1.2.3.4=criti…

Completed in 53 milliseconds