Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/openssl/crypto/x509/
H A Dx509_trust.c22 static int obj_trust(int id, X509 *x, int flags);
77 return default_trust(id, x, flags); in X509_check_trust()
79 return pt->check_trust(pt, x, flags); in X509_check_trust()
134 flags &= ~X509_TRUST_DYNAMIC; in X509_TRUST_add()
136 flags |= X509_TRUST_DYNAMIC_NAME; in X509_TRUST_add()
143 trtmp->flags = X509_TRUST_DYNAMIC; in X509_TRUST_add()
154 trtmp->flags &= X509_TRUST_DYNAMIC; in X509_TRUST_add()
156 trtmp->flags |= flags; in X509_TRUST_add()
188 if (p->flags & X509_TRUST_DYNAMIC) { in trtable_free()
203 return xp->flags; in X509_TRUST_get_flags()
[all …]
H A Dx509_cmp.c94 if ((a->flags & EXFLAG_NO_FINGERPRINT) == 0 in X509_CRL_match()
190 return X509_add_cert(*p_sk, cert, flags); in ossl_x509_add_cert_new()
199 if ((flags & X509_ADD_FLAG_NO_DUP) != 0) { in X509_add_cert()
211 if ((flags & X509_ADD_FLAG_NO_SS) != 0) { in X509_add_cert()
222 if ((flags & X509_ADD_FLAG_UP_REF) != 0) in X509_add_cert()
238 int flags) in ossl_x509_add_certs_new() argument
474 unsigned long flags) in X509_chain_check_suiteb() argument
478 unsigned long tflags = flags; in X509_chain_check_suiteb()
480 if (!(flags & X509_V_FLAG_SUITEB_128_LOS)) in X509_chain_check_suiteb()
551 if (!(flags & X509_V_FLAG_SUITEB_128_LOS)) in X509_CRL_check_suiteb()
[all …]
H A Dx509_set.c182 int *secbits, uint32_t *flags) in X509_SIG_INFO_get() argument
190 if (flags != NULL) in X509_SIG_INFO_get()
191 *flags = siginf->flags; in X509_SIG_INFO_get()
192 return (siginf->flags & X509_SIG_INFO_VALID) != 0; in X509_SIG_INFO_get()
196 int secbits, uint32_t flags) in X509_SIG_INFO_set() argument
201 siginf->flags = flags; in X509_SIG_INFO_set()
205 uint32_t *flags) in X509_get_signature_info() argument
208 return X509_SIG_INFO_get(&x->siginf, mdnid, pknid, secbits, flags); in X509_get_signature_info()
222 siginf->flags = 0; in x509_sig_info_init()
293 siginf->flags |= X509_SIG_INFO_TLS; in x509_sig_info_init()
[all …]
/openssl/crypto/cms/
H A Dcms_smime.c26 else if (flags & CMS_TEXT) { in cms_get_text_bio()
64 if (flags & CMS_TEXT) { in cms_copy_content()
130 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_data_create_ex()
183 if (!(flags & CMS_DETACHED)) in CMS_digest_create_ex()
186 if ((flags & CMS_STREAM) || CMS_final(cms, in, NULL, flags)) in CMS_digest_create_ex()
242 if (!(flags & CMS_DETACHED)) in CMS_EncryptedData_encrypt_ex()
447 if (flags & CMS_TEXT) { in CMS_verify()
526 if (flags & CMS_ASCIICRLF in CMS_sign_ex()
547 if (!(flags & CMS_DETACHED)) in CMS_sign_ex()
664 if (!(flags & CMS_DETACHED)) in CMS_encrypt_ex()
[all …]
H A Dcms_io.c28 (*pos)->flags |= ASN1_STRING_FLAG_NDEF; in CMS_stream()
29 (*pos)->flags &= ~ASN1_STRING_FLAG_CONT; in CMS_stream()
68 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() argument
70 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags, in i2d_CMS_bio_stream()
75 int flags) in PEM_write_bio_CMS_stream() argument
77 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)cms, in, flags, in PEM_write_bio_CMS_stream()
81 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS() argument
93 return SMIME_write_ASN1_ex(bio, (ASN1_VALUE *)cms, data, flags, ctype_nid, in SMIME_write_CMS()
100 CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, in SMIME_read_CMS_ex() argument
106 ci = (CMS_ContentInfo *)SMIME_read_ASN1_ex(bio, flags, bcont, in SMIME_read_CMS_ex()
/openssl/crypto/engine/
H A Deng_fat.c17 int ENGINE_set_default(ENGINE *e, unsigned int flags) in ENGINE_set_default() argument
23 if ((flags & ENGINE_METHOD_RSA) && !ENGINE_set_default_RSA(e)) in ENGINE_set_default()
26 if ((flags & ENGINE_METHOD_DSA) && !ENGINE_set_default_DSA(e)) in ENGINE_set_default()
30 if ((flags & ENGINE_METHOD_DH) && !ENGINE_set_default_DH(e)) in ENGINE_set_default()
34 if ((flags & ENGINE_METHOD_EC) && !ENGINE_set_default_EC(e)) in ENGINE_set_default()
39 if ((flags & ENGINE_METHOD_PKEY_METHS) in ENGINE_set_default()
42 if ((flags & ENGINE_METHOD_PKEY_ASN1_METHS) in ENGINE_set_default()
84 unsigned int flags = 0; in ENGINE_set_default_string() local
85 if (!CONF_parse_list(def_list, ',', 1, int_def_cb, &flags)) { in ENGINE_set_default_string()
90 return ENGINE_set_default(e, flags); in ENGINE_set_default_string()
[all …]
H A Deng_ctrl.c154 if (ctrl_exists && !(e->flags & ENGINE_FLAGS_MANUAL_CMD_CTRL)) in ENGINE_ctrl()
178 int flags; in ENGINE_cmd_is_executable() local
179 if ((flags = in ENGINE_cmd_is_executable()
184 if (!(flags & ENGINE_CMD_FLAG_NO_INPUT) && in ENGINE_cmd_is_executable()
185 !(flags & ENGINE_CMD_FLAG_NUMERIC) && in ENGINE_cmd_is_executable()
186 !(flags & ENGINE_CMD_FLAG_STRING)) in ENGINE_cmd_is_executable()
230 int num, flags; in ENGINE_ctrl_cmd_string() local
262 if (flags < 0) { in ENGINE_ctrl_cmd_string()
273 if (flags & ENGINE_CMD_FLAG_NO_INPUT) { in ENGINE_ctrl_cmd_string()
294 if (flags & ENGINE_CMD_FLAG_STRING) { in ENGINE_ctrl_cmd_string()
[all …]
/openssl/crypto/asn1/
H A Dtasn_prn.c52 return p->flags; in ASN1_PCTX_get_flags()
57 p->flags = flags; in ASN1_PCTX_set_flags()
67 p->nm_flags = flags; in ASN1_PCTX_set_nm_flags()
77 p->cert_flags = flags; in ASN1_PCTX_set_cert_flags()
87 p->oid_flags = flags; in ASN1_PCTX_set_oid_flags()
97 p->str_flags = flags; in ASN1_PCTX_set_str_flags()
265 int i, flags; in asn1_template_print_ctx() local
268 flags = tt->flags; in asn1_template_print_ctx()
282 if (flags & ASN1_TFLG_EMBED) { in asn1_template_print_ctx()
287 if (flags & ASN1_TFLG_SK_MASK) { in asn1_template_print_ctx()
[all …]
H A Da_strex.c90 chflgs = flags & ASN1_STRFLGS_ESC_MSB; in do_esc_char()
92 chflgs = char_type[chtmp] & flags; in do_esc_char()
335 unsigned short flags; in do_print_ex() local
442 switch (flags & XN_FLAG_SEP_MASK) { in do_name_ex()
478 if (flags & XN_FLAG_SPC_EQ) { in do_name_ex()
486 fn_opt = flags & XN_FLAG_FN_MASK; in do_name_ex()
490 if (flags & XN_FLAG_DN_REV) in do_name_ex()
563 unsigned long flags) in X509_NAME_print_ex() argument
565 if (flags == XN_FLAG_COMPAT) in X509_NAME_print_ex()
574 if (flags == XN_FLAG_COMPAT) { in X509_NAME_print_ex_fp()
[all …]
H A Dasn_mime.c75 if (flags & SMIME_STREAM) { in i2d_ASN1_bio_stream()
82 if (!SMIME_crlf_copy(in, bio, flags)) { in i2d_ASN1_bio_stream()
248 if (flags & SMIME_OLDMIME) in SMIME_write_ASN1_ex()
253 if (flags & SMIME_CRLFEOL) in SMIME_write_ASN1_ex()
257 if ((flags & SMIME_DETACHED) && data) { in SMIME_write_ASN1_ex()
355 if (!(flags & SMIME_DETACHED) || (flags & PKCS7_REUSE_DIGEST)) { in asn1_output_data()
537 if (flags & SMIME_BINARY) { in SMIME_crlf_copy()
542 if (flags & SMIME_TEXT) in SMIME_crlf_copy()
655 (flags & CMS_BINARY) == 0 in multi_split()
1012 if ((flags & CMS_BINARY) != 0) { in strip_eol()
[all …]
H A Dtasn_enc.c217 const int flags = tt->flags; in asn1_template_ex_i2d() local
225 if (flags & ASN1_TFLG_EMBED) { in asn1_template_ex_i2d()
236 if (flags & ASN1_TFLG_TAG_MASK) { in asn1_template_ex_i2d()
243 tclass = flags & ASN1_TFLG_TAG_CLASS; in asn1_template_ex_i2d()
268 if (flags & ASN1_TFLG_SK_MASK) { in asn1_template_ex_i2d()
278 if (flags & ASN1_TFLG_SET_OF) { in asn1_template_ex_i2d()
281 if (flags & ASN1_TFLG_SEQUENCE_OF) in asn1_template_ex_i2d()
319 if (flags & ASN1_TFLG_EXPTAG) in asn1_template_ex_i2d()
329 if (flags & ASN1_TFLG_EXPTAG) in asn1_template_ex_i2d()
338 if (flags & ASN1_TFLG_EXPTAG) in asn1_template_ex_i2d()
[all …]
H A Da_strnid.c93 if (!(tbl->flags & STABLE_NO_MASK)) in ASN1_STRING_set_by_NID()
164 if (tmp != NULL && tmp->flags & STABLE_FLAGS_MALLOC) in stable_get()
177 rv->flags = tmp->flags | STABLE_FLAGS_MALLOC; in stable_get()
182 rv->flags = STABLE_FLAGS_MALLOC; in stable_get()
189 unsigned long flags) in ASN1_STRING_TABLE_add() argument
204 if (flags) in ASN1_STRING_TABLE_add()
205 tmp->flags = STABLE_FLAGS_MALLOC | flags; in ASN1_STRING_TABLE_add()
222 if (tbl->flags & STABLE_FLAGS_MALLOC) in st_free()
/openssl/crypto/pkcs7/
H A Dpk7_smime.c47 if (!(flags & PKCS7_NOCERTS)) { in PKCS7_sign_ex()
54 if (flags & PKCS7_DETACHED) in PKCS7_sign_ex()
60 if (PKCS7_final(p7, data, flags)) in PKCS7_sign_ex()
137 if (!(flags & PKCS7_NOCERTS)) { in PKCS7_sign_add_signer()
142 if (!(flags & PKCS7_NOATTR)) { in PKCS7_sign_add_signer()
313 if (flags & PKCS7_TEXT) { in PKCS7_verify()
333 if (flags & PKCS7_TEXT) { in PKCS7_verify()
343 if (!(flags & PKCS7_NOSIGS)) in PKCS7_verify()
457 if (flags & PKCS7_STREAM) in PKCS7_encrypt_ex()
472 int flags) in PKCS7_encrypt() argument
[all …]
H A Dpk7_mime.c18 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in i2d_PKCS7_bio_stream() argument
20 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, in i2d_PKCS7_bio_stream()
24 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in PEM_write_bio_PKCS7_stream() argument
26 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)p7, in, flags, in PEM_write_bio_PKCS7_stream()
30 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7() argument
44 flags ^= SMIME_OLDMIME; in SMIME_write_PKCS7()
46 return SMIME_write_ASN1_ex(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, in SMIME_write_PKCS7()
/openssl/crypto/ocsp/
H A Docsp_vfy.c48 if ((flags & OCSP_PARTIAL_CHAIN) != 0) in ocsp_verify_signer()
82 if ((flags & OCSP_NOSIGS) == 0) { in ocsp_verify()
111 flags |= OCSP_NOVERIFY; in OCSP_basic_verify()
115 if ((flags & OCSP_NOVERIFY) == 0) { in OCSP_basic_verify()
117 if ((flags & OCSP_NOCHAIN) == 0) { in OCSP_basic_verify()
126 if ((flags & OCSP_NOCHECKS) != 0) { in OCSP_basic_verify()
144 if ((flags & OCSP_NOEXPLICIT) != 0) in OCSP_basic_verify()
178 if ((flags & OCSP_NOINTERN) == 0 && in ocsp_find_signer()
409 flags |= OCSP_NOVERIFY; in OCSP_request_verify()
413 if ((flags & OCSP_NOVERIFY) != 0) in OCSP_request_verify()
[all …]
/openssl/crypto/bio/
H A Dbio_print.c101 int flags; in _dopr() local
138 flags |= DP_F_NUM; in _dopr()
239 flags |= DP_F_UP; in _dopr()
278 flags |= DP_F_UP; in _dopr()
407 if (flags & DP_F_MINUS) in fmtstr()
458 if (flags & DP_F_NUM) { in fmtint()
464 if (flags & DP_F_UP) in fmtint()
482 if (flags & DP_F_ZERO) { in fmtint()
486 if (flags & DP_F_MINUS) in fmtint()
589 else if (flags & DP_F_PLUS) in fmtfp()
[all …]
/openssl/test/
H A Derrtest.c292 int flags = -1; in test_clear_error() local
298 ERR_peek_error_data(&data, &flags); in test_clear_error()
306 ERR_peek_error_data(&data, &flags); in test_clear_error()
308 || !TEST_int_eq(flags, ERR_TXT_MALLOCED)) in test_clear_error()
314 ERR_peek_error_data(&data, &flags); in test_clear_error()
325 ERR_peek_error_data(&data, &flags); in test_clear_error()
327 || !TEST_int_eq(flags, ERR_TXT_MALLOCED)) in test_clear_error()
345 int res = 0, i, flags = -1; in test_save_restore() local
383 ERR_peek_last_error_data(&data, &flags); in test_save_restore()
400 &data, &flags), interr) in test_save_restore()
[all …]
/openssl/apps/
H A Dsmime.c244 flags |= PKCS7_TEXT; in smime_main()
253 flags |= PKCS7_NOCHAIN; in smime_main()
256 flags |= PKCS7_NOCERTS; in smime_main()
259 flags |= PKCS7_NOATTR; in smime_main()
268 flags |= PKCS7_BINARY; in smime_main()
271 flags |= PKCS7_NOSIGS; in smime_main()
281 flags |= PKCS7_CRLFEOL; in smime_main()
461 flags &= ~PKCS7_DETACHED; in smime_main()
464 if (flags & PKCS7_BINARY) in smime_main()
469 if (flags & PKCS7_BINARY) in smime_main()
[all …]
H A Dcms.c409 flags |= CMS_TEXT; in cms_main()
421 flags |= CMS_NOCERTS; in cms_main()
424 flags |= CMS_NOATTR; in cms_main()
433 flags |= CMS_BINARY; in cms_main()
436 flags |= CMS_CADES; in cms_main()
442 flags |= CMS_NOSIGS; in cms_main()
451 flags |= CMS_STREAM; in cms_main()
454 flags &= ~CMS_STREAM; in cms_main()
804 flags &= ~CMS_DETACHED; in cms_main()
977 flags |= CMS_PARTIAL; in cms_main()
[all …]
/openssl/crypto/err/
H A Derr.c168 int *flags);
356 const char **data, int *flags) in ERR_get_error_all() argument
504 if (flags != NULL) in get_error_values()
505 *flags = es->err_data_flags[i]; in get_error_values()
514 if (flags != NULL) in get_error_values()
515 *flags = 0; in get_error_values()
788 err_set_data(es, es->top, data, size, flags); in err_set_error_data_int()
793 void ERR_set_error_data(char *data, int flags) in ERR_set_error_data() argument
823 int flags = ERR_TXT_MALLOCED | ERR_TXT_STRING; in ERR_add_error_vdata() local
837 if ((es->err_data_flags[i] & flags) == flags in ERR_add_error_vdata()
[all …]
/openssl/doc/man3/
H A DSSL_CONF_CTX_set_flags.pod5 SSL_CONF_CTX_set_flags, SSL_CONF_CTX_clear_flags - Set or clear SSL configuration context flags
11 unsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);
12 unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx, unsigned int flags);
16 The function SSL_CONF_CTX_set_flags() sets B<flags> in the context B<cctx>.
18 The function SSL_CONF_CTX_clear_flags() clears B<flags> in the context B<cctx>.
22 The flags set affect how subsequent calls to SSL_CONF_cmd() or
25 Currently the following B<flags> values are recognised:
32 least one of these flags must be set.
37 both of these flags must be set.
60 SSL_CONF_CTX_set_flags() and SSL_CONF_CTX_clear_flags() returns the new flags
[all …]
/openssl/crypto/pem/
H A Dpem_lib.c226 if (flags & PEM_FLAG_SECURE) in pem_free()
254 PEM_FREE(nm, flags, 0); in pem_bytes_read_bio_flags()
255 PEM_FREE(header, flags, 0); in pem_bytes_read_bio_flags()
256 PEM_FREE(data, flags, len); in pem_bytes_read_bio_flags()
278 PEM_FREE(nm, flags, 0); in pem_bytes_read_bio_flags()
279 PEM_FREE(header, flags, 0); in pem_bytes_read_bio_flags()
281 PEM_FREE(data, flags, len); in pem_bytes_read_bio_flags()
937 if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { in PEM_read_bio_ex()
997 PEM_FREE(*header, flags, 0); in PEM_read_bio_ex()
999 PEM_FREE(*data, flags, 0); in PEM_read_bio_ex()
[all …]
/openssl/crypto/conf/
H A Dconf_sap.c39 settings.flags = DEFAULT_CONF_MFLAGS; in OPENSSL_config()
52 unsigned long flags; in ossl_config_int() local
61 flags = settings ? settings->flags : DEFAULT_CONF_MFLAGS; in ossl_config_int()
66 filename, appname, flags); in ossl_config_int()
71 filename, appname, flags); in ossl_config_int()
/openssl/providers/implementations/include/prov/
H A Ddigestcommon.h26 #define PROV_FUNC_DIGEST_GET_PARAM(name, blksize, dgstsize, flags) \ argument
30 return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
51 name, CTX, blksize, dgstsize, flags, upd, fin) \ argument
80 PROV_FUNC_DIGEST_GET_PARAM(name, blksize, dgstsize, flags) \
95 name, CTX, blksize, dgstsize, flags, init, upd, fin) \ argument
102 PROV_DISPATCH_FUNC_DIGEST_CONSTRUCT_START(name, CTX, blksize, dgstsize, flags, \
108 name, CTX, blksize, dgstsize, flags, init, upd, fin, \ argument
117 PROV_DISPATCH_FUNC_DIGEST_CONSTRUCT_START(name, CTX, blksize, dgstsize, flags, \
127 size_t paramsz, unsigned long flags);
/openssl/apps/lib/
H A Dopt.c254 if (flags & ap->retval) in opt_format_error()
282 if ((flags & OPT_FMT_DER) == 0) in opt_format()
288 if ((flags & OPT_FMT_TEXT) == 0) in opt_format()
294 if ((flags & OPT_FMT_NSS) == 0) in opt_format()
302 if ((flags & OPT_FMT_SMIME) == 0) in opt_format()
308 if ((flags & OPT_FMT_MSBLOB) == 0) in opt_format()
314 if ((flags & OPT_FMT_ENGINE) == 0) in opt_format()
320 if ((flags & OPT_FMT_HTTP) == 0) in opt_format()
325 if ((flags & OPT_FMT_PKCS12) == 0) in opt_format()
428 unsigned long int flags; in opt_cipher() local
[all …]

Completed in 54 milliseconds

12345678910>>...19