Home
last modified time | relevance | path

Searched refs:NULL (Results 51 – 75 of 1992) sorted by relevance

12345678910>>...80

/openssl/crypto/x509/
H A Dv3_asid.c130 a->u.range->min != NULL && a->u.range->max != NULL)); in ASIdOrRange_cmp()
292 ASN1_INTEGER *a_min = NULL, *a_max = NULL, *b_min = NULL, *b_max = in ASIdentifierChoice_is_canonical()
310 if ((bn == NULL && (bn = BN_new()) == NULL) || in ASIdentifierChoice_is_canonical()
400 ASN1_INTEGER *a_min = NULL, *a_max = NULL, *b_min = NULL, *b_max = in ASIdentifierChoice_canonize()
431 if ((bn == NULL && (bn = BN_new()) == NULL) || in ASIdentifierChoice_canonize()
522 ASN1_INTEGER *min = NULL, *max = NULL; in v2i_ASIdentifiers()
604 if (min == NULL || max == NULL) { in v2i_ASIdentifiers()
668 ASN1_INTEGER *p_min = NULL, *p_max = NULL, *c_min = NULL, *c_max = NULL; in asid_contains()
750 ASIdOrRanges *child_as = NULL, *child_rdi = NULL; in asid_validate_path_internal()
755 || !ossl_assert(ctx != NULL || ext != NULL) in asid_validate_path_internal()
[all …]
/openssl/crypto/cmp/
H A Dcmp_asn.c213 if (itav_sk_p == NULL || itav == NULL) { in OSSL_CMP_ITAV_push0_stack_item()
250 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_certProfile()
280 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_caCerts()
310 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_rootCaCert()
567 if (sk_p == NULL || atav == NULL) { in OSSL_CMP_ATAV_push1()
607 if (itav == NULL || out == NULL) { in OSSL_CMP_ITAV_get0_crlStatusList()
626 if (dpn == NULL && issuer == NULL) { in OSSL_CMP_CRLSTATUS_new1()
630 if (dpn != NULL && issuer != NULL) { in OSSL_CMP_CRLSTATUS_new1()
731 if (dpn == NULL && CRLissuer == NULL) { in OSSL_CMP_CRLSTATUS_create()
765 if (crlstatus == NULL || dpn == NULL || issuer == NULL) { in OSSL_CMP_CRLSTATUS_get0()
[all …]
H A Dcmp_vfy.c33 if (!ossl_assert(cmp_ctx != NULL && msg != NULL && cert != NULL)) in verify_signature()
113 if (ctx == NULL || cert == NULL) { in OSSL_CMP_validate_cert_path()
219 if ((str = i2s_ASN1_OCTET_STRING(NULL, skid)) != NULL) in check_kid()
372 cert, NULL, NULL, msg) in check_msg_given_cert()
436 NULL, NULL, msg, mode_3gpp)) in check_msg_all_certs()
472 if (sender == NULL || msg->body == NULL) in check_msg_find_cert()
517 skid_str = skid == NULL ? NULL : i2s_ASN1_OCTET_STRING(NULL, skid); in check_msg_find_cert()
568 if (ctx == NULL || msg == NULL in OSSL_CMP_validate_msg()
669 actual_str = actual == NULL ? NULL: i2s_ASN1_OCTET_STRING(NULL, actual); in check_transactionID_or_nonce()
710 if (!ossl_assert(ctx != NULL && msg != NULL && msg->header != NULL)) in ossl_cmp_msg_check_update()
[all …]
H A Dcmp_genm.c18 return ts == NULL ? NULL : X509_STORE_get0_param(ts); in get0_trustedStore_vpm()
94 req = NULL; in get_genm_itav()
138 return NULL; in get_genm_itav()
151 *out = NULL; in OSSL_CMP_get1_caCerts()
153 if ((req = OSSL_CMP_ITAV_new_caCerts(NULL)) == NULL) in OSSL_CMP_get1_caCerts()
232 if (ts == NULL || target == NULL) { in verify_ss_cert()
322 if (oldWithOld != NULL && my_oldWithNew != NULL in OSSL_CMP_get1_rootCaKeyUpdate()
356 OSSL_CMP_ITAV *req = NULL, *itav = NULL; in OSSL_CMP_get1_crlUpdate()
364 *crl = NULL; in OSSL_CMP_get1_crlUpdate()
379 list = NULL; in OSSL_CMP_get1_crlUpdate()
[all …]
/openssl/crypto/sha/
H A Dsha1_one.c28 if (md == NULL) in ossl_sha1()
31 return NULL; in ossl_sha1()
42 if (md == NULL) in SHA1()
44 return EVP_Q_digest(NULL, "SHA1", NULL, d, n, md, NULL) ? md : NULL; in SHA1()
51 if (md == NULL) in SHA224()
53 return EVP_Q_digest(NULL, "SHA224", NULL, d, n, md, NULL) ? md : NULL; in SHA224()
60 if (md == NULL) in SHA256()
62 return EVP_Q_digest(NULL, "SHA256", NULL, d, n, md, NULL) ? md : NULL; in SHA256()
69 if (md == NULL) in SHA384()
71 return EVP_Q_digest(NULL, "SHA384", NULL, d, n, md, NULL) ? md : NULL; in SHA384()
[all …]
/openssl/crypto/evp/
H A Ddigest.c47 if (ctx->digest != NULL && ctx->digest->freectx != NULL) in evp_md_ctx_clear_digest()
125 return NULL; in evp_md_ctx_new_ex()
234 || (type == NULL && ctx->digest != NULL in evp_md_init_internal()
377 return evp_md_init_internal(ctx, type, NULL, NULL); in EVP_DigestInit()
748 if (digest != NULL && digest->get_params != NULL) in EVP_MD_get_params()
755 if (digest != NULL && digest->gettable_params != NULL) in EVP_MD_gettable_params()
758 return NULL; in EVP_MD_gettable_params()
784 if (md != NULL && md->settable_ctx_params != NULL) { in EVP_MD_settable_ctx_params()
788 return NULL; in EVP_MD_settable_ctx_params()
840 if (md != NULL && md->gettable_ctx_params != NULL) { in EVP_MD_gettable_ctx_params()
[all …]
H A Devp_pkey.c32 if (!PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8)) in evp_pkcs82pkey_legacy()
33 return NULL; in evp_pkcs82pkey_legacy()
64 return NULL; in evp_pkcs82pkey_legacy()
80 if (p8 == NULL in EVP_PKCS82PKEY_ex()
81 || !PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8) in EVP_PKCS82PKEY_ex()
119 return EVP_PKCS82PKEY_ex(p8, NULL, NULL); in EVP_PKCS82PKEY()
142 NULL)) == NULL in EVP_PKEY2PKCS8()
176 p8 = NULL; in EVP_PKEY2PKCS8()
256 EVP_PKEY_asn1_get0_info(NULL, NULL, in EVP_PKEY_get0_type_name()
257 NULL, NULL, &name, ameth); in EVP_PKEY_get0_type_name()
[all …]
H A Dctrl_params_translate.c2422 EVP_PKEY_CTRL_MD, NULL, NULL,
2451 { GET, -1, -1, -1, 0, NULL, NULL,
2454 { GET, -1, -1, -1, 0, NULL, NULL,
2457 { GET, -1, -1, -1, 0, NULL, NULL,
2461 { GET, -1, -1, -1, 0, NULL, NULL,
2464 { GET, -1, -1, -1, 0, NULL, NULL,
2469 { GET, -1, -1, -1, 0, NULL, NULL,
2472 { GET, -1, -1, -1, 0, NULL, NULL,
2475 { GET, -1, -1, -1, 0, NULL, NULL,
2480 { GET, -1, -1, -1, 0, NULL, NULL,
[all …]
H A Dkem.c24 EVP_KEM *kem = NULL; in evp_kem_init()
27 void *provkey = NULL, *provauthkey = NULL; in evp_kem_init()
31 if (ctx == NULL || ctx->keytype == NULL) { in evp_kem_init()
81 for (iter = 1, provkey = NULL; iter < 3 && provkey == NULL; iter++) { in evp_kem_init()
129 if (provkey != NULL && authkey != NULL) { in evp_kem_init()
232 if (out != NULL && secret == NULL) in EVP_PKEY_encapsulate()
256 if (ctx == NULL in EVP_PKEY_decapsulate()
258 || (secret == NULL && secretlen == NULL)) in EVP_PKEY_decapsulate()
418 return NULL; in evp_kem_from_algorithm()
512 if (kem == NULL || kem->gettable_ctx_params == NULL) in EVP_KEM_gettable_ctx_params()
[all …]
H A Dexchange.c25 if (exchange == NULL) in evp_keyexch_new()
26 return NULL; in evp_keyexch_new()
30 return NULL; in evp_keyexch_new()
139 return NULL; in evp_keyexch_from_algorithm()
361 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive_init_ex()
382 EVP_KEYMGMT *tmp_keymgmt = NULL, *tmp_keymgmt_tofree = NULL; in EVP_PKEY_derive_set_peer_ex()
510 if (ctx == NULL || pkeylen == NULL) { in EVP_PKEY_derive()
528 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive()
583 if (keyexch == NULL || keyexch->gettable_ctx_params == NULL) in EVP_KEYEXCH_gettable_ctx_params()
584 return NULL; in EVP_KEYEXCH_gettable_ctx_params()
[all …]
/openssl/test/
H A Dasynctest.c54 if (libctx == NULL) in change_deflt_libctx()
87 if (job == NULL) in waitfd()
90 if (waitctx == NULL) in waitfd()
97 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL)) in waitfd()
107 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, waitctx, MAGIC_WAIT_FD, NULL, NULL)) in waitfd()
127 ASYNC_JOB *job1 = NULL, *job2 = NULL, *job3 = NULL; in test_ASYNC_init_thread()
232 currjob = NULL; in test_ASYNC_get_current_job()
268 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
280 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
292 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, NULL, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
[all …]
H A Dalgorithmid_test.c43 if (!TEST_true(X509_PUBKEY_get0_param(NULL, NULL, NULL, &alg, pubkey)) in test_spki_aid()
50 X509_ALGOR_get0(&oid, NULL, NULL, alg); in test_spki_aid()
61 &keymgmt, NULL)) == NULL) { in test_spki_aid()
132 X509_ALGOR_get0(&sig_oid, NULL, NULL, alg); in test_x509_sig_aid()
155 NULL, NULL, pkey, NULL))) { in test_x509_sig_aid()
200 if ((pubkey = PEM_read_bio_X509_PUBKEY(b, NULL, NULL, NULL)) == NULL) { in test_spki_file()
216 X509 *eecert = NULL, *cacert = NULL; in test_x509_files()
217 BIO *bee = NULL, *bca = NULL; in test_x509_files()
231 if ((eecert = PEM_read_bio_X509(bee, NULL, NULL, NULL)) == NULL) { in test_x509_files()
237 if ((cacert = PEM_read_bio_X509(bca, NULL, NULL, NULL)) == NULL) { in test_x509_files()
[all …]
H A Dffc_internal_test.c178 BIGNUM *p = NULL, *q = NULL, *g = NULL; in ffc_params_validate_g_unverified_test()
179 BIGNUM *p1 = NULL, *g1 = NULL; in ffc_params_validate_g_unverified_test()
197 p = NULL; in ffc_params_validate_g_unverified_test()
198 q = NULL; in ffc_params_validate_g_unverified_test()
208 g = NULL; in ffc_params_validate_g_unverified_test()
248 BIGNUM *p = NULL, *q = NULL; in ffc_params_validate_pq_test()
261 ossl_ffc_params_set0_pqg(&params, NULL, q, NULL); in ffc_params_validate_pq_test()
262 q = NULL; in ffc_params_validate_pq_test()
272 ossl_ffc_params_set0_pqg(&params, p, NULL, NULL); in ffc_params_validate_pq_test()
273 p = NULL; in ffc_params_validate_pq_test()
[all …]
/openssl/providers/implementations/keymgmt/
H A Ddsa_kmgmt.c104 const BIGNUM *priv = NULL, *pub = NULL; in dsa_key_todata()
114 if (pub != NULL in dsa_key_todata()
168 if (pa != NULL && pb != NULL) { in dsa_match()
178 if (pa != NULL && pb != NULL) { in dsa_match()
444 if (!ossl_prov_is_running() || gctx == NULL || dsa == NULL) in dsa_gen_set_template()
497 if (p != NULL in dsa_gen_set_params()
501 if (p != NULL in dsa_gen_set_params()
505 if (p != NULL in dsa_gen_set_params()
509 if (p != NULL in dsa_gen_set_params()
713 return NULL; in dsa_load()
[all …]
H A Ddh_kmgmt.c101 DH *dh = NULL; in dh_newdata()
115 DH *dh = NULL; in dhx_newdata()
145 ok = ok && (DH_get0_p(dh) != NULL && DH_get0_g(dh) != NULL); in dh_has()
165 if (pa != NULL && pb != NULL) { in dh_match()
175 if (pa != NULL && pb != NULL) { in dh_match()
374 if (p != NULL in dh_set_params()
505 if (!ossl_prov_is_running() || gctx == NULL || dh == NULL) in dh_gen_set_template()
623 if (p != NULL in dhx_gen_set_params()
787 if (ffc->p == NULL || ffc->g == NULL) in dh_gen()
833 return NULL; in dh_load()
[all …]
/openssl/apps/
H A Dsmime.c132 {NULL}
164 BIO *in = NULL, *out = NULL, *indata = NULL; in smime_main()
168 STACK_OF(X509) *encerts = NULL, *other = NULL; in smime_main()
169 X509 *cert = NULL, *recip = NULL, *signer = NULL; in smime_main()
174 const char *CAfile = NULL, *CApath = NULL, *CAstore = NULL, *prog = NULL; in smime_main()
175 char *certfile = NULL, *keyfile = NULL, *contfile = NULL; in smime_main()
176 char *infile = NULL, *outfile = NULL, *signerfile = NULL, *recipfile = NULL; in smime_main()
177 char *passinarg = NULL, *passin = NULL, *to = NULL, *from = NULL; in smime_main()
178 char *subject = NULL, *digestname = NULL, *ciphername = NULL; in smime_main()
441 if (recipfile == NULL && keyfile == NULL) { in smime_main()
[all …]
H A Dreq.c246 ENGINE *e = NULL, *gen_eng = NULL; in req_main()
247 EVP_PKEY *pkey = NULL, *CAkey = NULL; in req_main()
249 STACK_OF(OPENSSL_STRING) *pkeyopts = NULL, *sigopts = NULL, *vfyopts = NULL; in req_main()
251 X509 *new_x509 = NULL, *CAcert = NULL; in req_main()
257 const char *infile = NULL, *CAfile = NULL, *CAkeyfile = NULL; in req_main()
258 char *outfile = NULL, *keyfile = NULL, *digest = NULL; in req_main()
259 char *keyalgstr = NULL, *p, *prog, *passargin = NULL, *passargout = NULL; in req_main()
260 char *passin = NULL, *passout = NULL; in req_main()
625 if (keyalg != NULL && pkey != NULL) { in req_main()
691 if (pkey != NULL && (keyfile == NULL || keyout != NULL)) { in req_main()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_crt.c62 if (pkey == NULL && cert == NULL && ca == NULL) { in PKCS12_create_ex2()
116 bags = NULL; in PKCS12_create_ex2()
149 bags = NULL; in PKCS12_create_ex2()
158 safes = NULL; in PKCS12_create_ex2()
170 return NULL; in PKCS12_create_ex2()
181 NULL, NULL); in PKCS12_create_ex()
218 return NULL; in pkcs12_add_cert_bag()
271 return NULL; in PKCS12_add_key_ex()
280 NULL, NULL); in PKCS12_add_key()
355 if (pbags == NULL || bag == NULL) in pkcs12_remove_bag()
[all …]
/openssl/test/helpers/
H A Dpredefined_dhparams.c23 OSSL_PARAM *params = NULL; in get_dh_from_pg_bn()
24 EVP_PKEY *dhpkey = NULL; in get_dh_from_pg_bn()
32 || (q != NULL in get_dh_from_pg_bn()
37 if (params == NULL in get_dh_from_pg_bn()
54 BIGNUM *p = NULL, *g = NULL, *q = NULL; in get_dh_from_pg()
58 if (p == NULL || g == NULL) in get_dh_from_pg()
60 if (qdata != NULL && (q = BN_bin2bn(qdata, qlen, NULL)) == NULL) in get_dh_from_pg()
154 BIGNUM *p = NULL, *g = NULL; in get_dh2048()
162 if (p == NULL) in get_dh2048()
175 BIGNUM *p = NULL, *g = NULL; in get_dh4096()
[all …]
/openssl/crypto/asn1/
H A Dd2i_pr.c33 EVP_PKEY *pkey = NULL, *bak_a = NULL; in d2i_PrivateKey_decoder()
55 && PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8info) in d2i_PrivateKey_decoder()
65 if (a != NULL && (bak_a = *a) != NULL) in d2i_PrivateKey_decoder()
69 if (a != NULL) in d2i_PrivateKey_decoder()
71 if (dctx == NULL) in d2i_PrivateKey_decoder()
87 return NULL; in d2i_PrivateKey_decoder()
97 if (a == NULL || *a == NULL) { in ossl_d2i_PrivateKey_legacy()
147 if (a != NULL) in ossl_d2i_PrivateKey_legacy()
153 return NULL; in ossl_d2i_PrivateKey_legacy()
172 return d2i_PrivateKey_ex(type, a, pp, length, NULL, NULL); in d2i_PrivateKey()
[all …]
/openssl/providers/implementations/encode_decode/
H A Ddecode_der2key.c109 void *key = NULL; in der2key_decode_p8()
111 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, input_der, input_der_len)) != NULL in der2key_decode_p8()
112 && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf) in der2key_decode_p8()
136 if (ctx != NULL) { in der2key_newctx()
214 void *key = NULL; in der2key_decode()
276 if (key == NULL) in der2key_decode()
288 if (key != NULL in der2key_decode()
292 key = NULL; in der2key_decode()
295 if (key != NULL && ctx->desc->adjust_key != NULL) in der2key_decode()
311 der = NULL; in der2key_decode()
[all …]
/openssl/crypto/engine/
H A Deng_list.c63 if (e == NULL) { in engine_list_add()
115 e->next = NULL; in engine_list_add()
123 if (e == NULL) { in engine_list_remove()
156 if (e == NULL) in engine_add_dynamic_id()
159 if (e->dynamic_id == NULL && dynamic_id == NULL) in engine_add_dynamic_id()
205 if (e == NULL || e->dynamic_id == NULL) in engine_remove_dynamic_id()
236 return NULL; in ENGINE_get_first()
240 return NULL; in ENGINE_get_first()
263 return NULL; in ENGINE_get_last()
346 if ((e->id == NULL) || (e->name == NULL)) { in ENGINE_add()
[all …]
/openssl/providers/common/
H A Dprovider_util.c27 pc->cipher = NULL; in ossl_prov_cipher_reset()
31 pc->engine = NULL; in ossl_prov_cipher_reset()
55 *propquery = NULL; in load_common()
57 if (p != NULL) { in load_common()
66 *engine = NULL; in load_common()
70 if (p != NULL) { in load_common()
104 if (p == NULL) in ossl_prov_cipher_load_from_params()
143 pd->md = NULL; in ossl_prov_digest_reset()
189 if (p == NULL) in ossl_prov_digest_load_from_params()
317 *macctx = mac == NULL ? NULL : EVP_MAC_CTX_new(mac); in ossl_prov_macctx_load_from_params()
[all …]
/openssl/test/testutil/
H A Dload.c20 X509 *cert = NULL; in load_cert_pem()
21 BIO *bio = NULL; in load_cert_pem()
24 return NULL; in load_cert_pem()
27 (void)TEST_ptr(cert = PEM_read_bio_X509(bio, &cert, NULL, NULL)); in load_cert_pem()
40 return NULL; in STACK_OF()
45 return NULL; in STACK_OF()
50 x = PEM_read_bio_X509(bio, NULL, 0, NULL); in STACK_OF()
72 BIO *bio = NULL; in load_pkey_pem()
75 return NULL; in load_pkey_pem()
79 if (TEST_ptr(key = PEM_read_bio_PrivateKey_ex(bio, NULL, NULL, NULL, in load_pkey_pem()
[all …]
/openssl/crypto/pkcs7/
H A Dpk7_doit.c55 return NULL; in PKCS7_get_octet_string()
100 btmp = NULL; in pkcs7_bio_add_digest()
142 ek = NULL; in pkcs7_encode_rinfo()
200 BIO *out = NULL, *btmp = NULL; in PKCS7_dataInit()
310 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, 1) <= 0) in PKCS7_dataInit()
388 BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL; in PKCS7_dataDecode()
400 unsigned char *ek = NULL, *tkey = NULL; in PKCS7_dataDecode()
489 if (data_body == NULL && in_bio == NULL) { in PKCS7_dataDecode()
587 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0) in PKCS7_dataDecode()
623 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0) in PKCS7_dataDecode()
[all …]

Completed in 138 milliseconds

12345678910>>...80