Home
last modified time | relevance | path

Searched refs:NULL (Results 151 – 175 of 1960) sorted by relevance

12345678910>>...79

/openssl/apps/
H A Dasn1parse.c56 {NULL}
64 BIO *in = NULL, *b64 = NULL, *derout = NULL; in asn1parse_main()
65 BUF_MEM *buf = NULL; in asn1parse_main()
67 char *genstr = NULL, *genconf = NULL; in asn1parse_main()
68 char *infile = NULL, *oidfile = NULL, *derfile = NULL; in asn1parse_main()
70 char *name = NULL, *header = NULL, *prog; in asn1parse_main()
167 if (in == NULL) in asn1parse_main()
181 if (genconf == NULL && genstr == NULL && informat == FORMAT_PEM) { in asn1parse_main()
319 CONF *cnf = NULL; in do_generate()
337 cnf = NULL; in do_generate()
[all …]
H A Dca.c268 BIGNUM *crlnumber = NULL, *serial = NULL; in ca_main()
270 BIO *in = NULL, *out = NULL, *Sout = NULL; in ca_main()
280 char *dgst = NULL, *policy = NULL, *keyfile = NULL; in ca_main()
281 char *certfile = NULL, *crl_ext = NULL, *crlnumberfile = NULL; in ca_main()
284 const char *infile = NULL, *spkac_file = NULL, *ss_cert_file = NULL; in ca_main()
285 const char *extensions = NULL, *extfile = NULL, *passinarg = NULL; in ca_main()
287 char *outdir = NULL, *outfile = NULL, *rev_arg = NULL, *ser_status = NULL; in ca_main()
288 const char *serialfile = NULL, *subj = NULL; in ca_main()
304 X509 *x509 = NULL, *x509p = NULL, *x = NULL; in ca_main()
1433 if ((rreq = X509_to_X509_REQ(template_cert, NULL, NULL)) == NULL) in certify_cert()
[all …]
H A Ddhparam.c79 {NULL}
84 BIO *in = NULL, *out = NULL; in dhparam_main()
85 EVP_PKEY *pkey = NULL, *tmppkey = NULL; in dhparam_main()
87 char *infile = NULL, *outfile = NULL, *prog; in dhparam_main()
88 ENGINE *e = NULL; in dhparam_main()
183 if (out == NULL) in dhparam_main()
239 ctx = NULL; in dhparam_main()
277 NULL, NULL); in dhparam_main()
347 NULL, NULL); in dhparam_main()
378 BIGNUM *bn_p = NULL, *bn_q = NULL, *bn_g = NULL; in dsa_to_dh()
[all …]
/openssl/ssl/
H A Dssl_ciph.c288 if (ameth && EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id()
303 if (EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, in get_optional_pkey_id()
505 if (c == NULL) in ssl_cipher_get_evp()
520 if ((enc == NULL) && (md == NULL)) in ssl_cipher_get_evp()
524 if ((enc == NULL) || (md == NULL)) in ssl_cipher_get_evp()
808 curr = NULL; in ssl_cipher_apply_rule()
1433 CIPHER_ORDER *co_list = NULL, *head = NULL, *tail = NULL, *curr; in STACK_OF()
1440 if (rule_str == NULL || cipher_list == NULL || cipher_list_by_id == NULL) in STACK_OF()
1962 return NULL; in STACK_OF()
2058 return NULL; in SSL_COMP_get_name()
[all …]
H A Dssl_cert.c49 NULL, NULL, NULL); in DEFINE_RUN_ONCE_STATIC()
228 return NULL; in ssl_cert_dup()
427 if ((sk == NULL || sk_X509_num(sk) == 0) && rpk == NULL) in ssl_verify_internal()
431 if (sk != NULL && rpk != NULL) in ssl_verify_internal()
705 unsigned char *abuf = NULL, *bbuf = NULL; in xname_cmp()
735 return X509_NAME_hash_ex((X509_NAME *)a, NULL, NULL, NULL); in xname_hash()
769 if (PEM_read_bio_X509(in, &x, NULL, NULL) == NULL) in STACK_OF()
813 return SSL_load_client_CA_file_ex(file, NULL, NULL); in STACK_OF()
838 if (PEM_read_bio_X509(in, &x, NULL, NULL) == NULL) in SSL_add_file_cert_subjects_to_stack()
930 if ((ctx = OSSL_STORE_open(uri, NULL, NULL, NULL, NULL)) == NULL) in add_uris_recursive()
[all …]
/openssl/providers/implementations/signature/
H A Decdsa_sig.c115 return NULL; in ecdsa_newctx()
118 if (ctx == NULL) in ecdsa_newctx()
119 return NULL; in ecdsa_newctx()
125 ctx = NULL; in ecdsa_newctx()
139 if (ec == NULL && ctx->ec == NULL) { in ecdsa_signverify_init()
347 if (ctx == NULL || ctx->mdctx == NULL) in ecdsa_digest_signverify_update()
367 if (sig != NULL in ecdsa_digest_sign_final()
428 if (srcctx->kinv != NULL || srcctx->r != NULL) in ecdsa_dupctx()
452 return NULL; in ecdsa_dupctx()
472 if (p != NULL && !OSSL_PARAM_set_utf8_string(p, ctx->md == NULL in ecdsa_get_ctx_params()
[all …]
H A Dmac_legacy_sig.c56 return NULL; in mac_newctx()
60 return NULL; in mac_newctx()
63 if (propq != NULL && (pmacctx->propq = OPENSSL_strdup(propq)) == NULL) in mac_newctx()
67 if (mac == NULL) in mac_newctx()
82 return NULL; in mac_newctx()
100 const char *ciphername = NULL, *engine = NULL; in mac_digest_sign_init()
106 if (pmacctx->key == NULL && vkey == NULL) { in mac_digest_sign_init()
145 if (pmacctx == NULL || pmacctx->macctx == NULL) in mac_digest_sign_update()
178 return NULL; in mac_dupctx()
182 return NULL; in mac_dupctx()
[all …]
H A Ddsa_sig.c112 return NULL; in dsa_newctx()
116 return NULL; in dsa_newctx()
202 if (vdsa == NULL && pdsactx->dsa == NULL) { in dsa_signverify_init()
336 if (pdsactx == NULL || pdsactx->mdctx == NULL) in dsa_digest_signverify_update()
404 ctx->md = NULL; in dsa_freectx()
415 return NULL; in dsa_dupctx()
419 return NULL; in dsa_dupctx()
450 return NULL; in dsa_dupctx()
462 if (p != NULL in dsa_get_ctx_params()
501 if (p != NULL) { in dsa_set_ctx_params()
[all …]
/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c220 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dh_to_text()
225 if (out == NULL || dh == NULL) { in dh_to_text()
300 if (out == NULL || dsa == NULL) { in dsa_to_text()
365 BIGNUM *p = NULL, *a = NULL, *b = NULL; in ec_param_explicit_curve_to_text()
433 const BIGNUM *order = NULL, *cofactor = NULL; in ec_param_explicit_to_text()
495 unsigned char *priv = NULL, *pub = NULL; in ec_to_text()
500 if (out == NULL || ec == NULL) { in ec_to_text()
575 if (out == NULL || ecx == NULL) { in ecx_to_text()
636 const BIGNUM *rsa_d = NULL, *rsa_n = NULL, *rsa_e = NULL; in rsa_to_text()
644 if (out == NULL || rsa == NULL) { in rsa_to_text()
[all …]
/openssl/demos/cms/
H A Dcms_sign2.c17 BIO *in = NULL, *out = NULL, *tbio = NULL; in main()
18 X509 *scert = NULL, *scert2 = NULL; in main()
19 EVP_PKEY *skey = NULL, *skey2 = NULL; in main()
20 CMS_ContentInfo *cms = NULL; in main()
31 scert = PEM_read_bio_X509(tbio, NULL, 0, NULL); in main()
36 skey = PEM_read_bio_PrivateKey(tbio, NULL, 0, NULL); in main()
45 scert2 = PEM_read_bio_X509(tbio, NULL, 0, NULL); in main()
50 skey2 = PEM_read_bio_PrivateKey(tbio, NULL, 0, NULL); in main()
60 cms = CMS_sign(NULL, NULL, NULL, in, CMS_STREAM | CMS_PARTIAL); in main()
67 if (!CMS_add1_signer(cms, scert, skey, NULL, 0)) in main()
[all …]
/openssl/demos/smime/
H A Dsmsign2.c17 BIO *in = NULL, *out = NULL, *tbio = NULL; in main()
18 X509 *scert = NULL, *scert2 = NULL; in main()
19 EVP_PKEY *skey = NULL, *skey2 = NULL; in main()
20 PKCS7 *p7 = NULL; in main()
31 scert = PEM_read_bio_X509(tbio, NULL, 0, NULL); in main()
36 skey = PEM_read_bio_PrivateKey(tbio, NULL, 0, NULL); in main()
45 scert2 = PEM_read_bio_X509(tbio, NULL, 0, NULL); in main()
50 skey2 = PEM_read_bio_PrivateKey(tbio, NULL, 0, NULL); in main()
60 p7 = PKCS7_sign(NULL, NULL, NULL, in, PKCS7_STREAM | PKCS7_PARTIAL); in main()
67 if (!PKCS7_sign_add_signer(p7, scert, skey, NULL, 0)) in main()
[all …]
/openssl/crypto/evp/
H A Dpmeth_lib.c119 if (ret == NULL || *ret == NULL) in EVP_PKEY_meth_find()
214 if (e == NULL && pkey != NULL) in int_ctx_new()
246 if (e == NULL && app_pmeth == NULL && keytype != NULL) { in int_ctx_new()
294 if (pmeth == NULL && keymgmt == NULL) { in int_ctx_new()
301 if ((ret == NULL || pmeth == NULL) && e != NULL) in int_ctx_new()
328 if (pmeth != NULL && pmeth->init != NULL) { in int_ctx_new()
441 return int_ctx_new(NULL, pkey, e, NULL, NULL, -1); in EVP_PKEY_CTX_new()
446 return int_ctx_new(NULL, NULL, e, NULL, NULL, id); in EVP_PKEY_CTX_new_id()
841 if (ctx == NULL || params == NULL) in evp_pkey_ctx_set_params_strict()
866 if (ctx == NULL || params == NULL) in evp_pkey_ctx_get_params_strict()
[all …]
H A Dpmeth_gn.c29 if (ctx == NULL) in gen_init()
35 if (ctx->keymgmt == NULL || ctx->keymgmt->gen_init == NULL) in gen_init()
114 == NULL in ossl_callback_to_pkey_gencb()
118 == NULL in ossl_callback_to_pkey_gencb()
138 if (ctx == NULL) in EVP_PKEY_generate()
191 != NULL); in EVP_PKEY_generate()
323 return NULL; in EVP_PKEY_new_mac_key()
341 if (ctx == NULL || ctx->keytype == NULL) in fromdata_init()
352 if (ctx != NULL) in fromdata_init()
402 return NULL; in EVP_PKEY_fromdata_settable()
[all …]
/openssl/crypto/cmp/
H A Dcmp_client.c39 if (!ossl_assert(ctx != NULL && rep != NULL)) in unprotected_exception()
93 if (!ossl_assert(ctx != NULL && si != NULL)) in save_statusInfo()
158 *rep = NULL; in send_receive_check()
287 *rep = NULL; in poll_for_response()
432 *rep = NULL; in send_receive_also_delayed()
509 if (!ossl_assert(ctx != NULL && crep != NULL)) in get1_cert_status()
510 return NULL; in get1_cert_status()
558 return NULL; in get1_cert_status()
743 if (crepmsg != NULL && crepmsg->caPubs != NULL in cert_response()
907 if (ctx->oldCert == NULL && ctx->p10CSR == NULL in OSSL_CMP_exec_RR_ses()
[all …]
H A Dcmp_ctx.c30 return NULL; \
95 if (md == NULL) { in cmp_ctx_set_md()
112 if (ctx == NULL) in OSSL_CMP_CTX_new()
116 if (propq != NULL && (ctx->propq = OPENSSL_strdup(propq)) == NULL) in OSSL_CMP_CTX_new()
149 return NULL; in OSSL_CMP_CTX_new()
195 if (ctx == NULL) in OSSL_CMP_CTX_free()
350 if (ctx == NULL || ctx->log_cb == NULL) in ossl_cmp_print_log()
416 OSSL_CMP_print_errors_cb(ctx == NULL ? NULL : ctx->log_cb); in OSSL_CMP_CTX_print_errors()
506 if (ctx == NULL || pinfo == NULL) { in DEFINE_OSSL_set1_certs()
576 if (val != NULL && (val_dup = TYPE##_dup(val)) == NULL) \ in DEFINE_OSSL_set1_certs()
[all …]
/openssl/test/
H A Dproperty_test.c153 OSSL_PROPERTY_LIST *p = NULL, *q = NULL; in test_property_parse()
172 OSSL_PROPERTY_LIST *p = NULL, *q = NULL, *o = NULL; in test_property_query_value_create()
270 OSSL_PROPERTY_LIST *q_global = NULL, *q_local = NULL; in test_property_merge()
271 OSSL_PROPERTY_LIST *q_combined = NULL, *prop = NULL; in test_property_merge()
295 OSSL_PROPERTY_LIST *red = NULL, *blue = NULL, *blue2 = NULL; in test_property_defn_cache()
307 red = NULL; in test_property_defn_cache()
309 blue = NULL; in test_property_defn_cache()
315 blue = NULL; in test_property_defn_cache()
356 OSSL_PROPERTY_LIST *d = NULL, *q = NULL; in test_definition_compares()
658 { NULL, "" }
[all …]
H A Ddtlstest.c73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed()
74 SSL *serverssl1 = NULL, *clientssl1 = NULL; in test_dtls_unprocessed()
193 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records()
194 SSL *serverssl = NULL, *clientssl = NULL; in test_dtls_drop_records()
311 SSL_CTX *sctx = NULL, *cctx = NULL; in test_cookie()
312 SSL *serverssl = NULL, *clientssl = NULL; in test_cookie()
351 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_duplicate_records()
401 BIO *rbio = NULL, *wbio = NULL, *sbio = NULL; in test_just_finished()
480 SSL_CTX *sctx = NULL, *cctx = NULL; in test_swap_records()
481 SSL *sssl = NULL, *cssl = NULL; in test_swap_records()
[all …]
H A Dhpke_test.c100 OSSL_HPKE_CTX *sealctx = NULL, *openctx = NULL; in do_testhpke()
181 if (!TEST_true(base->pskid != NULL && base->psk != NULL in do_testhpke()
522 NULL, 0, NULL /* no psk */ in x25519kdfsha256_hkdfsha256_aes128gcm_base_test()
659 NULL, 0, NULL /* PSK stuff */ in P256kdfsha256_hkdfsha256_aes128gcm_base_test()
765 NULL, 0, NULL /* PSK stuff */ in export_only_test()
888 NULL,
1348 if (!TEST_false(OSSL_HPKE_CTX_set1_psk(NULL, NULL, NULL, 0))) in test_hpke_oddcalls()
1396 if (!TEST_false(OSSL_HPKE_encap(NULL, NULL, NULL, NULL, 0, NULL, 0))) in test_hpke_oddcalls()
1398 if (!TEST_false(OSSL_HPKE_decap(NULL, NULL, 0, NULL, NULL, 0))) in test_hpke_oddcalls()
1658 if (!TEST_false(OSSL_HPKE_get_grease_value(NULL, NULL, in test_hpke_random_suites()
[all …]
/openssl/crypto/conf/
H A Dconf_lib.c50 BIO *in = NULL; in LHASH_OF()
57 if (in == NULL) { in LHASH_OF()
59 return NULL; in LHASH_OF()
76 return NULL; in LHASH_OF()
95 return NULL; in LHASH_OF()
102 return NULL; in STACK_OF()
192 return NULL; in NCONF_new_ex()
244 return NULL; in STACK_OF()
289 return NULL; in STACK_OF()
294 return NULL; in STACK_OF()
[all …]
/openssl/crypto/asn1/
H A Dx_algor.c33 if (alg == NULL)
58 if (algo == NULL) in ossl_X509_ALGOR_from_nid()
59 return NULL; in ossl_X509_ALGOR_from_nid()
69 return NULL; in ossl_X509_ALGOR_from_nid()
110 if (src == NULL || dest == NULL) in X509_ALGOR_copy()
161 if (alg == NULL) in ossl_x509_algor_get_md()
164 if (md == NULL) in ossl_x509_algor_get_md()
172 return NULL; in ossl_x509_algor_mgf1_decode()
183 *palg = NULL; in ossl_x509_algor_md_to_mgf1()
192 if (*palg == NULL) in ossl_x509_algor_md_to_mgf1()
[all …]
/openssl/crypto/dh/
H A Ddh_backend.c63 BIGNUM *priv_key = NULL, *pub_key = NULL; in ossl_dh_key_fromdata()
65 if (dh == NULL) in ossl_dh_key_fromdata()
106 const BIGNUM *priv = NULL, *pub = NULL; in ossl_dh_key_todata()
108 if (dh == NULL) in ossl_dh_key_todata()
112 if (priv != NULL in ossl_dh_key_todata()
116 if (pub != NULL in ossl_dh_key_todata()
134 if (f != NULL && (*out = BN_dup(f)) == NULL) in dh_bn_dup_check()
177 return NULL; in ossl_dh_dup()
192 DH *dh = NULL; in ossl_dh_key_from_pkcs8()
201 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dh_key_from_pkcs8()
[all …]
/openssl/crypto/
H A Dex_data.c18 if (global == NULL) in ossl_do_ex_data_init()
38 return NULL; in get_and_lock()
46 return NULL; in get_and_lock()
124 if (ip == NULL) in ossl_crypto_free_ex_index_ex()
130 if (a == NULL) in ossl_crypto_free_ex_index_ex()
165 if (ip == NULL) in ossl_crypto_get_ex_new_index_ex()
182 if (a == NULL) in ossl_crypto_get_ex_new_index_ex()
237 ad->sk = NULL; in ossl_crypto_new_ex_data_ex()
253 if (storage[i] != NULL && storage[i]->new_func != NULL) { in ossl_crypto_new_ex_data_ex()
328 if (storage[i] != NULL && storage[i]->dup_func != NULL) in CRYPTO_dup_ex_data()
[all …]
/openssl/crypto/sm2/
H A Dsm2_crypt.c51 if (p == NULL)
115 BIGNUM *k = NULL; in ossl_sm2_encrypt()
116 BIGNUM *x1 = NULL; in ossl_sm2_encrypt()
117 BIGNUM *y1 = NULL; in ossl_sm2_encrypt()
118 BIGNUM *x2 = NULL; in ossl_sm2_encrypt()
153 if (kG == NULL || kP == NULL) { in ossl_sm2_encrypt()
170 if (y2 == NULL) { in ossl_sm2_encrypt()
178 if (x2y2 == NULL || C3 == NULL) in ossl_sm2_encrypt()
193 if (!EC_POINT_mul(group, kG, k, NULL, NULL, ctx) in ossl_sm2_encrypt()
241 if (ctext_struct.C3 == NULL || ctext_struct.C2 == NULL) { in ossl_sm2_encrypt()
[all …]
/openssl/crypto/comp/
H A Dc_brotli.c117 if (state == NULL) in brotli_stateful_init()
295 brotli_encode_dso = DSO_load(NULL, LIBBROTLIENC, NULL, 0); in DEFINE_RUN_ONCE_STATIC()
304 brotli_decode_dso = DSO_load(NULL, LIBBROTLIDEC, NULL, 0); in DEFINE_RUN_ONCE_STATIC()
316 if (p_encode_init == NULL || p_encode_stream == NULL || p_encode_has_more == NULL in DEFINE_RUN_ONCE_STATIC()
317 || p_encode_end == NULL || p_encode_oneshot == NULL || p_decode_init == NULL in DEFINE_RUN_ONCE_STATIC()
318 || p_decode_stream == NULL || p_decode_has_more == NULL || p_decode_end == NULL in DEFINE_RUN_ONCE_STATIC()
319 … || p_decode_error == NULL || p_decode_error_string == NULL || p_decode_is_finished == NULL in DEFINE_RUN_ONCE_STATIC()
437 return NULL; in BIO_f_brotli()
483 if (bi == NULL) in bio_brotli_free()
706 if (next == NULL) in bio_brotli_ctrl()
[all …]
/openssl/crypto/ec/
H A Decp_mont.c146 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_group_set_curve()
148 BIGNUM *one = NULL; in ossl_ec_GFp_mont_group_set_curve()
156 if (ctx == NULL) { in ossl_ec_GFp_mont_group_set_curve()
158 if (ctx == NULL) in ossl_ec_GFp_mont_group_set_curve()
163 if (mont == NULL) in ossl_ec_GFp_mont_group_set_curve()
170 if (one == NULL) in ossl_ec_GFp_mont_group_set_curve()
176 mont = NULL; in ossl_ec_GFp_mont_group_set_curve()
178 one = NULL; in ossl_ec_GFp_mont_group_set_curve()
226 BIGNUM *e = NULL; in ossl_ec_GFp_mont_field_inv()
227 BN_CTX *new_ctx = NULL; in ossl_ec_GFp_mont_field_inv()
[all …]

Completed in 131 milliseconds

12345678910>>...79