Home
last modified time | relevance | path

Searched refs:NULL (Results 201 – 225 of 1992) sorted by relevance

12345678910>>...80

/openssl/fuzz/
H A Ddtlsserver.c582 if (comp_methods != NULL) in time()
608 EC_KEY *ecdsakey = NULL; in FuzzerTestOneInput()
612 DSA *dsakey = NULL; in FuzzerTestOneInput()
630 privkey = PEM_read_bio_RSAPrivateKey(bio_buf, NULL, NULL, NULL); in FuzzerTestOneInput()
643 cert = PEM_read_bio_X509(bio_buf, NULL, NULL, NULL); in FuzzerTestOneInput()
645 OPENSSL_assert(cert != NULL); in FuzzerTestOneInput()
655 ecdsakey = PEM_read_bio_ECPrivateKey(bio_buf, NULL, NULL, NULL); in FuzzerTestOneInput()
667 cert = PEM_read_bio_X509(bio_buf, NULL, NULL, NULL); in FuzzerTestOneInput()
668 OPENSSL_assert(cert != NULL); in FuzzerTestOneInput()
679 dsakey = PEM_read_bio_DSAPrivateKey(bio_buf, NULL, NULL, NULL); in FuzzerTestOneInput()
[all …]
/openssl/test/
H A Devp_pkey_dhkem_test.c33 static EVP_PKEY *rkey[TEST_KEYTYPES_P256_X25519] = { NULL, NULL };
34 static EVP_PKEY_CTX *rctx[TEST_KEYTYPES_P256_X25519] = { NULL, NULL };
42 EVP_PKEY *rpub = NULL, *spriv = NULL; in test_dhkem_encapsulate()
51 if (t->spriv != NULL) { in test_dhkem_encapsulate()
68 EVP_PKEY *rpriv = NULL, *spub = NULL; in test_dhkem_decapsulate()
76 if (t->spub != NULL) { in test_dhkem_decapsulate()
123 BIGNUM *priv = NULL; in test_ec_dhkem_derivekey_fail()
175 && TEST_int_eq(EVP_PKEY_encapsulate(ctx, NULL, &len, NULL, NULL), -2) in test_no_operation_set()
334 && TEST_int_eq(EVP_PKEY_decapsulate(ctx, NULL, NULL, in test_null_params()
339 && TEST_int_eq(EVP_PKEY_encapsulate(ctx, NULL, NULL, in test_null_params()
[all …]
H A Ddhtest.c40 BIGNUM *p = NULL, *q = NULL, *g = NULL; in dh_test()
45 DH *a = NULL; in dh_test()
48 const BIGNUM *ap = NULL, *ag = NULL, *apub_key = NULL; in dh_test()
49 const BIGNUM *bpub_key = NULL, *bpriv_key = NULL; in dh_test()
50 BIGNUM *bp = NULL, *bg = NULL, *cpriv_key = NULL; in dh_test()
266 BIGNUM *p = NULL, *q = NULL, *g = NULL, *pub = NULL, *priv = NULL; in dh_computekey_range_test()
586 BIGNUM *priv_key = NULL, *pub_key = NULL; in rfc5114_test()
664 DH *a = NULL, *b = NULL; in rfc7919_test()
665 const BIGNUM *apub_key = NULL, *bpub_key = NULL; in rfc7919_test()
808 BIGNUM *pcpy = NULL, *gcpy = NULL, *qcpy = NULL; in dh_get_nid()
[all …]
H A Dcurve448_internal_test.c593 return NULL; in dohash()
604 || !TEST_true(ossl_ed448_sign(NULL, outsig, NULL, 0, pubkey1, in test_ed448()
605 privkey1, NULL, 0, 0, NULL)) in test_ed448()
608 pubkey2, privkey2, NULL, 0, 0, NULL)) in test_ed448()
615 pubkey4, privkey4, NULL, 0, 0, NULL)) in test_ed448()
618 pubkey5, privkey5, NULL, 0, 0, NULL)) in test_ed448()
621 pubkey6, privkey6, NULL, 0, 0, NULL)) in test_ed448()
624 pubkey7, privkey7, NULL, 0, 0, NULL)) in test_ed448()
627 pubkey8, privkey8, NULL, 0, 0, NULL)) in test_ed448()
630 pubkey9, privkey9, NULL, 0, 0, NULL)) in test_ed448()
[all …]
H A Dx509_time_test.c278 time_t now = time(NULL); in test_x509_cmp_time_current()
280 ASN1_TIME *asn1_before = NULL, *asn1_after = NULL; in test_x509_cmp_time_current()
305 int always_0 = vpm != NULL in test_X509_cmp_timeframe_vpm()
309 return asn1_before != NULL && asn1_mid != NULL && asn1_after != NULL in test_X509_cmp_timeframe_vpm()
313 && TEST_int_eq(X509_cmp_timeframe(vpm, NULL, NULL), 0) in test_X509_cmp_timeframe_vpm()
324 time_t now = time(NULL); in test_X509_cmp_timeframe()
332 if (vpm == NULL) in test_X509_cmp_timeframe()
354 ASN1_TIME *t = NULL; in test_x509_time()
360 if (t == NULL) { in test_x509_time()
397 if (t != NULL) in test_x509_time()
[all …]
H A Dx509_test.c20 static EVP_PKEY *pubkey = NULL;
22 static EVP_MD *signmd = NULL;
95 X509 *x = NULL; in test_x509_tbs_cache()
113 X509_CRL *crl = NULL; in test_x509_crl_tbs_cache()
127 BIO *bio = NULL; in test_asn1_item_verify()
128 X509 *x509 = NULL; in test_asn1_item_verify()
134 RSA *rsa = NULL; in test_asn1_item_verify()
139 || !TEST_ptr(x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL)) in test_asn1_item_verify()
198 if (pubkey == NULL || privkey == NULL) { in setup_tests()
204 signmd = EVP_MD_fetch(NULL, "SHA384", NULL); in setup_tests()
[all …]
/openssl/crypto/
H A Dinitthread.c66 if (glob_tevent_reg->skhands == NULL || glob_tevent_reg->lock == NULL) { in DEFINE_RUN_ONCE_STATIC()
80 return NULL; in get_global_tevent_register()
160 if (gtr == NULL) in init_thread_push_handlers()
177 if (gtr == NULL) in init_thread_remove_handlers()
267 return NULL; in ossl_thread_event_ctx_new()
273 if (hands == NULL) in ossl_thread_event_ctx_new()
295 return NULL; in ossl_thread_event_ctx_new()
337 if (gtr == NULL) in init_thread_stop()
409 if (hand == NULL) in ossl_init_thread_start()
430 if (gtr == NULL) in init_thread_deregister()
[all …]
H A Dsparse_array.c80 if (p != NULL && node != NULL) in sa_doall()
86 if (p != NULL && p[n] != NULL) { in sa_doall()
113 sa_doall(sa, &sa_free_node, NULL, NULL); in ossl_sa_free()
139 if (sa != NULL) in ossl_sa_doall()
147 if (sa != NULL) in ossl_sa_doall_arg()
162 return NULL; in ossl_sa_get()
169 r = p == NULL ? NULL : p[n & SA_BLOCK_MASK]; in ossl_sa_get()
185 if (sa == NULL) in ossl_sa_set()
205 if (p[i] == NULL && (p[i] = alloc_node()) == NULL) in ossl_sa_set()
210 if (val == NULL && *p != NULL) in ossl_sa_set()
[all …]
H A Dprovider_core.c261 return NULL; in infopair_copy()
276 return NULL; in infopair_copy()
320 return NULL; in ossl_provider_store_new()
834 char *p = NULL; in OSSL_PROVIDER_set_default_search_path()
1332 return prov != NULL ? prov->provctx : NULL; in ossl_provider_ctx()
1578 return NULL; in ossl_provider_module_name()
1587 return NULL; in ossl_provider_module_path()
1599 return NULL; in ossl_provider_prov_ctx()
1607 return NULL; in ossl_provider_get0_dispatch()
1612 return prov != NULL ? prov->libctx : NULL; in ossl_provider_libctx()
[all …]
H A Dcore_namemap.c61 if (namemap != NULL) in ossl_stored_namemap_new()
127 if (names != NULL) in ossl_namemap_doall_names()
132 if (names == NULL) in ossl_namemap_doall_names()
161 if (val != NULL) in ossl_namemap_name2num()
175 if (name == NULL || (tmp = OPENSSL_strndup(name, name_len)) == NULL) in ossl_namemap_name2num_n()
190 return NULL; in ossl_namemap_num2name()
193 return NULL; in ossl_namemap_num2name()
286 if (name == NULL || *name == 0 || namemap == NULL) in ossl_namemap_add_name()
420 if (md != NULL) in get_legacy_md_names()
513 HT_CONFIG htconf = { NULL, NULL, NULL, NAMEMAP_HT_BUCKETS, 1, 1 }; in ossl_namemap_new()
[all …]
/openssl/crypto/comp/
H A Dc_zstd.c61 NULL
143 if (state == NULL) in zstd_stateful_init()
370 zstd_dso = DSO_load(NULL, LIBZSTD, NULL, 0); in DEFINE_RUN_ONCE_STATIC()
390 if (p_createCStream == NULL || p_initCStream == NULL || p_freeCStream == NULL in DEFINE_RUN_ONCE_STATIC()
391 || p_compressStream2 == NULL || p_flushStream == NULL || p_endStream == NULL in DEFINE_RUN_ONCE_STATIC()
392 || p_compress == NULL || p_createDStream == NULL || p_initDStream == NULL in DEFINE_RUN_ONCE_STATIC()
393 || p_freeDStream == NULL || p_decompressStream == NULL || p_decompress == NULL in DEFINE_RUN_ONCE_STATIC()
394 || p_isError == NULL || p_getErrorName == NULL || p_DStreamInSize == NULL in DEFINE_RUN_ONCE_STATIC()
431 zstd_dso = NULL; in ossl_comp_zstd_cleanup()
503 return NULL; in BIO_f_zstd()
[all …]
/openssl/apps/
H A Dkdf.c48 {NULL}
57 if (*optp == NULL) in alloc_kdf_algorithm_name()
59 if (*optp == NULL) in alloc_kdf_algorithm_name()
60 return NULL; in alloc_kdf_algorithm_name()
67 return NULL; in alloc_kdf_algorithm_name()
79 BIO *out = NULL; in kdf_main()
80 EVP_KDF *kdf = NULL; in kdf_main()
82 char *digest = NULL, *cipher = NULL, *mac = NULL; in kdf_main()
148 if (ctx == NULL) in kdf_main()
151 if (opts != NULL) { in kdf_main()
[all …]
H A Dspkac.c56 {NULL}
61 BIO *out = NULL; in spkac_main()
62 CONF *conf = NULL; in spkac_main()
63 ENGINE *e = NULL; in spkac_main()
64 EVP_PKEY *pkey = NULL; in spkac_main()
66 char *challenge = NULL, *keyfile = NULL; in spkac_main()
67 char *infile = NULL, *outfile = NULL, *passinarg = NULL, *passin = NULL; in spkac_main()
71 EVP_MD *md = NULL; in spkac_main()
139 if (!app_passwd(passinarg, NULL, &passin, NULL)) { in spkac_main()
196 if (spki == NULL) { in spkac_main()
[all …]
H A Dsrp.c42 if (id == NULL) in get_index()
117 if (entry == NULL) in lookup_conf()
129 char *gNid = NULL; in srp_verify_user()
229 {NULL}
234 ENGINE *e = NULL; in srp_main()
235 CA_DB *db = NULL; in srp_main()
239 char *user = NULL, *passinarg = NULL, *passoutarg = NULL; in srp_main()
240 char *passin = NULL, *passout = NULL, *gN = NULL, *userinfo = NULL; in srp_main()
242 char **gNrow = NULL, *configfile = NULL; in srp_main()
315 if (srpvfile != NULL && configfile != NULL) { in srp_main()
[all …]
H A Dec.c61 {NULL}
69 EVP_PKEY *eckey = NULL; in ec_main()
70 BIO *out = NULL; in ec_main()
71 ENGINE *e = NULL; in ec_main()
73 char *infile = NULL, *outfile = NULL, *ciphername = NULL, *prog; in ec_main()
74 char *passin = NULL, *passout = NULL, *passinarg = NULL, *passoutarg = NULL; in ec_main()
180 if (eckey == NULL) { in ec_main()
186 if (out == NULL) in ec_main()
226 pctx = EVP_PKEY_CTX_new_from_pkey(NULL, eckey, NULL); in ec_main()
285 if (passin != NULL) in ec_main()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_npas.c38 if (p12 == NULL) { in PKCS12_newpass()
62 STACK_OF(PKCS7) *asafes = NULL, *newsafes = NULL; in newpass_p12()
66 ASN1_OCTET_STRING *p12_data_tmp = NULL, *macoct = NULL; in newpass_p12()
90 if (bags == NULL) in newpass_p12()
105 bags = NULL; in newpass_p12()
187 if (p8new == NULL) in newpass_bag()
216 X509_ALGOR_get0(&aoid, NULL, NULL, pbe2->encryption); in alg_get()
231 X509_ALGOR_get0(&aoid, NULL, NULL, kdf->prf); in alg_get()
252 if (kdf != NULL) in alg_get()
254 if (pbe2 != NULL) in alg_get()
[all …]
/openssl/crypto/evp/
H A Devp_rand.c58 if (rand != NULL) in evp_rand_up_ref()
68 if (rand == NULL) in evp_rand_free()
83 if (rand == NULL) in evp_rand_new()
84 return NULL; in evp_rand_new()
88 return NULL; in evp_rand_new()
130 return NULL; in evp_rand_from_algorithm()
135 return NULL; in evp_rand_from_algorithm()
272 return NULL; in evp_rand_from_algorithm()
278 return NULL; in evp_rand_from_algorithm()
350 return NULL; in EVP_RAND_CTX_new()
[all …]
/openssl/demos/signature/
H A DEVP_ED_Signature_demo.c41 if (sign_context == NULL) { in demo_sign()
54 if (!EVP_DigestSignInit_ex(sign_context, NULL, NULL, libctx, NULL, priv, NULL)) { in demo_sign()
65 if (sig_value == NULL) { in demo_sign()
100 if (verify_context == NULL) { in demo_verify()
105 if (!EVP_DigestVerifyInit_ex(verify_context, NULL, NULL, in demo_verify()
106 libctx, NULL, pub, NULL)) { in demo_verify()
131 EVP_PKEY *priv = NULL, *pub = NULL; in create_key()
141 if (priv == NULL) { in create_key()
155 if (pub == NULL) { in create_key()
176 EVP_PKEY *priv = NULL, *pub = NULL; in main()
[all …]
/openssl/demos/guide/
H A Dquic-hq-interop.c127 return NULL; in create_socket_bio()
179 return NULL; in create_socket_bio()
183 if (bio == NULL) { in create_socket_bio()
185 return NULL; in create_socket_bio()
198 return NULL; in create_socket_bio()
403 if (ctx == NULL || keylog_file == NULL) { in set_keylog_file()
521 if (PEM_read_bio_SSL_SESSION(session_bio, &sess, NULL, NULL)) { in setup_session_cache()
640 outnames = NULL; in build_request_set()
781 BIO *bio = NULL; in setup_connection()
928 SSL *ssl = NULL; in main()
[all …]
/openssl/crypto/cms/
H A Dcms_pwri.c57 if (ec == NULL) in CMS_add0_recipient_password()
58 return NULL; in CMS_add0_recipient_password()
60 if (ris == NULL) in CMS_add0_recipient_password()
61 return NULL; in CMS_add0_recipient_password()
94 if (EVP_EncryptInit_ex(ctx, kekciph, NULL, NULL, NULL) <= 0) { in CMS_add0_recipient_password()
108 if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, iv) <= 0) { in CMS_add0_recipient_password()
126 ctx = NULL; in CMS_add0_recipient_password()
167 encalg = NULL; in CMS_add0_recipient_password()
191 return NULL; in CMS_add0_recipient_password()
235 || !EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL) in kek_unwrap_key()
[all …]
/openssl/ssl/
H A Dssl_conf.c440 CERT *c = NULL; in cmd_Certificate()
534 return do_store(cctx, NULL, value, NULL, 0); in cmd_ChainCAPath()
539 return do_store(cctx, value, NULL, NULL, 0); in cmd_ChainCAFile()
544 return do_store(cctx, NULL, NULL, value, 0); in cmd_ChainCAStore()
549 return do_store(cctx, NULL, value, NULL, 1); in cmd_VerifyCAPath()
554 return do_store(cctx, value, NULL, NULL, 1); in cmd_VerifyCAFile()
559 return do_store(cctx, NULL, NULL, value, 1); in cmd_VerifyCAStore()
612 if (cctx->ctx != NULL || cctx->ssl != NULL) { in cmd_DHParameters()
664 char *commap = NULL, *copy = NULL; in cmd_RecordPadding()
869 if (pcmd == NULL || *pcmd == NULL) in ssl_conf_cmd_skip_prefix()
[all …]
/openssl/crypto/ct/
H A Dct_log.c104 if (ret == NULL) in CTLOG_STORE_new_ex()
105 return NULL; in CTLOG_STORE_new_ex()
123 return NULL; in CTLOG_STORE_new_ex()
128 return CTLOG_STORE_new_ex(NULL, NULL); in CTLOG_STORE_new()
165 if (fpath == NULL) in CTLOG_STORE_load_default_file()
191 if (tmp == NULL) in ctlog_store_load_log()
262 if (ret == NULL) in CTLOG_new_ex()
263 return NULL; in CTLOG_new_ex()
283 return NULL; in CTLOG_new_ex()
288 return CTLOG_new_ex(public_key, name, NULL, NULL); in CTLOG_new()
[all …]
/openssl/ssl/quic/
H A Dquic_srtm.c120 return NULL; in ossl_quic_srtm_new()
129 if (!EVP_EncryptInit_ex2(srtm->blind_ctx, ecb, key, NULL, NULL)) in ossl_quic_srtm_new()
133 ecb = NULL; in ossl_quic_srtm_new()
149 return NULL; in ossl_quic_srtm_new()
166 if (srtm == NULL) in ossl_quic_srtm_free()
189 SRTM_ITEM key, *item = NULL, *prev = NULL; in srtm_find()
194 if (head_p != NULL) in srtm_find()
285 SRTM_ITEM *item = NULL, *head = NULL, *new_head, *r_item; in ossl_quic_srtm_add()
291 if ((item = srtm_find(srtm, opaque, seq_num, &head, NULL)) != NULL) in ossl_quic_srtm_add()
386 if ((item = srtm_find(srtm, opaque, seq_num, NULL, &prev)) == NULL) in ossl_quic_srtm_remove()
[all …]
/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramfromdata.c23 OSSL_LIB_CTX *libctx = NULL; in main()
24 const char *propq = NULL; in main()
25 EVP_PKEY_CTX *ctx = NULL; in main()
26 EVP_PKEY *dsaparamkey = NULL; in main()
27 OSSL_PARAM_BLD *bld = NULL; in main()
28 OSSL_PARAM *params = NULL; in main()
29 BIGNUM *p = NULL, *q = NULL, *g = NULL; in main()
34 if (p == NULL || q == NULL || g == NULL) in main()
39 if (bld == NULL) in main()
46 if (params == NULL) in main()
[all …]
/openssl/crypto/engine/
H A Deng_lib.c37 return NULL; in ENGINE_new()
40 return NULL; in ENGINE_new()
46 return NULL; in ENGINE_new()
58 e->id = NULL; in engine_set_all_null()
59 e->name = NULL; in engine_set_all_null()
62 e->dh_meth = NULL; in engine_set_all_null()
67 e->init = NULL; in engine_set_all_null()
68 e->finish = NULL; in engine_set_all_null()
69 e->ctrl = NULL; in engine_set_all_null()
81 if (e == NULL) in engine_free_util()
[all …]

Completed in 123 milliseconds

12345678910>>...80