Home
last modified time | relevance | path

Searched refs:NULL (Results 251 – 275 of 1992) sorted by relevance

1...<<11121314151617181920>>...80

/openssl/crypto/dsa/
H A Ddsa_lib.c48 DH *ret = NULL; in DSA_dup_DH()
49 BIGNUM *pub_key = NULL, *priv_key = NULL; in DSA_dup_DH()
51 if (r == NULL) in DSA_dup_DH()
82 return NULL; in DSA_dup_DH()
193 return NULL; in dsa_new_intern()
209 return dsa_new_intern(NULL, NULL); in DSA_new()
226 if (r->meth != NULL && r->meth->finish != NULL) in DSA_free()
273 if ((d->params.p == NULL && p == NULL) in DSA_set0_pqg()
274 || (d->params.q == NULL && q == NULL) in DSA_set0_pqg()
275 || (d->params.g == NULL && g == NULL)) in DSA_set0_pqg()
[all …]
H A Ddsa_ossl.c52 NULL,
53 NULL,
54 NULL
100 if (ret == NULL) in ossl_dsa_do_sign_int()
104 if (ret->r == NULL || ret->s == NULL) in ossl_dsa_do_sign_int()
207 0, NULL, NULL, NULL); in dsa_do_sign()
214 0, NULL, NULL, NULL); in dsa_sign_setup_no_digest()
250 if (k == NULL || l == NULL) in dsa_sign_setup()
255 if ((ctx = BN_CTX_new_ex(NULL)) == NULL) in dsa_sign_setup()
343 kinv = NULL; in dsa_sign_setup()
[all …]
/openssl/crypto/engine/
H A Deng_dyn.c73 {0, NULL, NULL, 0}
162 if (c == NULL) in dynamic_set_data_ctx()
176 == NULL) { in dynamic_set_data_ctx()
181 c = NULL; in dynamic_set_data_ctx()
191 if (c != NULL) in dynamic_set_data_ctx()
210 int new_idx = ENGINE_get_ex_new_index(0, NULL, NULL, NULL, in dynamic_get_data_ctx()
234 return NULL; in dynamic_get_data_ctx()
241 if (ret == NULL) in engine_dynamic()
242 return NULL; in engine_dynamic()
251 return NULL; in engine_dynamic()
[all …]
/openssl/apps/lib/
H A Ds_socket.c49 BIO_ADDR *ourpeer = NULL;
98 if (bindhost != NULL || bindport != NULL) { in init_client()
137 if (bi != NULL) { in init_client()
222 if (hostname != NULL) in get_sock_info_address()
224 if (service != NULL) in get_sock_info_address()
225 *service = NULL; in get_sock_info_address()
247 success = hostname != NULL && service != NULL; in report_server_accept()
329 if (next != NULL in do_server()
383 res = NULL; in do_server()
439 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
[all …]
/openssl/test/
H A Dx509_check_cert_pkey_test.c30 BIO *bio = NULL; in test_x509_check_cert_pkey()
31 X509 *x509 = NULL; in test_x509_check_cert_pkey()
32 X509_REQ *x509_req = NULL; in test_x509_check_cert_pkey()
33 EVP_PKEY *pkey = NULL; in test_x509_check_cert_pkey()
62 if (!TEST_ptr(pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL))) in test_x509_check_cert_pkey()
73 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL); in test_x509_check_cert_pkey()
74 if (x509 == NULL) { in test_x509_check_cert_pkey()
82 x509_req = PEM_read_bio_X509_REQ(bio, NULL, NULL, NULL); in test_x509_check_cert_pkey()
121 sk = PEM_X509_INFO_read_bio(in, NULL, NULL, ""); in test_PEM_X509_INFO_read_bio()
127 if (it->crl != NULL) in test_PEM_X509_INFO_read_bio()
[all …]
H A Dprovider_internal_test.c20 { NULL, 0, NULL, 0, 0 }
55 OSSL_PROVIDER *prov = NULL; in test_builtin_provider()
67 ossl_provider_new(NULL, name, PROVIDER_INIT_FUNCTION_NAME, NULL, 0)) in test_builtin_provider()
70 EVP_set_default_properties(NULL, ""); in test_builtin_provider()
79 OSSL_PROVIDER *prov = NULL; in test_loaded_provider()
82 TEST_ptr(prov = ossl_provider_new(NULL, name, NULL, NULL, 0)) in test_loaded_provider()
90 OSSL_PROVIDER *prov = NULL; in test_configured_provider()
105 OSSL_PROVIDER *prov = NULL; in test_cache_flushes()
106 EVP_MD *md = NULL; in test_cache_flushes()
115 md = NULL; in test_cache_flushes()
[all …]
H A Drsa_test.c219 if (*key != NULL) in rsa_setkey()
249 if (clen != NULL) in test_rsa_simple()
268 key = NULL; in test_rsa_simple()
278 NULL, NULL); in test_rsa_pkcs1()
284 RSA *key = NULL; in test_rsa_oaep()
386 BN_bin2bn(num, bytes, NULL), NULL)) in test_rsa_security_bit()
501 && TEST_true(EVP_DigestSignInit(ctx, NULL, md, NULL, pkey)) in test_EVP_rsa_legacy_key()
511 RSA *rsa = NULL; in load_key()
512 BIGNUM *pn = NULL, *pe = NULL, *pd= NULL; in load_key()
573 rsa = NULL; in load_key()
[all …]
/openssl/crypto/cms/
H A Dcms_env.c135 if (pkey->ameth == NULL || pkey->ameth->pkey_ctrl == NULL) in ossl_cms_env_asn1_ctrl()
153 return cms->d.envelopedData == NULL ? NULL in ossl_cms_get0_env_enc_content()
157 return cms->d.authEnvelopedData == NULL ? NULL in ossl_cms_get0_env_enc_content()
223 return NULL; in CMS_RecipientInfo_get0_pkey_ctx()
247 return NULL; in CMS_EnvelopedData_create_ex()
252 return CMS_EnvelopedData_create_ex(cipher, NULL, NULL); in CMS_EnvelopedData_create()
279 res = CMS_decrypt(ci, secret == NULL ? pkey : NULL, in CMS_EnvelopedData_decrypt()
316 return NULL; in CMS_AuthEnvelopedData_create_ex()
437 return NULL; in CMS_add1_recipient()
552 ek = NULL; in cms_RecipientInfo_ktri_encrypt()
[all …]
H A Dcms_ess.c32 if (prr != NULL) in IMPLEMENT_ASN1_FUNCTIONS()
33 *prr = NULL; in IMPLEMENT_ASN1_FUNCTIONS()
35 if (str == NULL) in IMPLEMENT_ASN1_FUNCTIONS()
39 if (rr == NULL) in IMPLEMENT_ASN1_FUNCTIONS()
41 if (prr != NULL) in IMPLEMENT_ASN1_FUNCTIONS()
59 if (psc != NULL) in ossl_cms_signerinfo_get_signing_cert()
60 *psc = NULL; in ossl_cms_signerinfo_get_signing_cert()
66 if (sc == NULL) in ossl_cms_signerinfo_get_signing_cert()
93 if (sc == NULL) in ossl_cms_signerinfo_get_signing_cert_v2()
155 return NULL; in CMS_ReceiptRequest_create0_ex()
[all …]
/openssl/crypto/pem/
H A Dpem_pk8.c45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey_nid()
66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_bio()
79 if (ctx == NULL) in do_pk8pkey()
87 if (kstr == NULL && cb == NULL) { in do_pk8pkey()
179 if (p8 == NULL) in d2i_PKCS8PrivateKey_bio()
180 return NULL; in d2i_PKCS8PrivateKey_bio()
181 if (cb != NULL) in d2i_PKCS8PrivateKey_bio()
188 return NULL; in d2i_PKCS8PrivateKey_bio()
194 return NULL; in d2i_PKCS8PrivateKey_bio()
198 return NULL; in d2i_PKCS8PrivateKey_bio()
[all …]
/openssl/crypto/crmf/
H A Dcrmf_pbm.c43 OSSL_CRMF_PBMPARAMETER *pbm = NULL; in OSSL_CRMF_pbmp_new()
44 unsigned char *salt = NULL; in OSSL_CRMF_pbmp_new()
112 return NULL; in OSSL_CRMF_pbmp_new()
136 EVP_MD *owf = NULL; in OSSL_CRMF_pbm_new()
137 EVP_MD_CTX *ctx = NULL; in OSSL_CRMF_pbm_new()
144 if (out == NULL || pbmp == NULL || pbmp->mac == NULL in OSSL_CRMF_pbm_new()
145 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new()
163 if ((ctx = EVP_MD_CTX_new()) == NULL) in OSSL_CRMF_pbm_new()
167 if (!EVP_DigestInit_ex(ctx, owf, NULL)) in OSSL_CRMF_pbm_new()
201 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, mac_nid, NULL, &hmac_md_nid, NULL) in OSSL_CRMF_pbm_new()
[all …]
/openssl/demos/signature/
H A DEVP_EC_Signature_demo.c47 EVP_PKEY *pkey = NULL; in get_key()
65 if (pkey == NULL) in get_key()
76 const char *propq = NULL; in demo_sign()
78 EVP_PKEY *priv_key = NULL; in demo_sign()
82 if (priv_key == NULL) { in demo_sign()
100 libctx, NULL, priv_key, NULL)) { in demo_sign()
126 if (sig_value == NULL) { in demo_sign()
154 const char *propq = NULL; in demo_verify()
169 if (pub_key == NULL) { in demo_verify()
175 libctx, NULL, pub_key, NULL)) { in demo_verify()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_p8e.c22 X509_SIG *p8 = NULL; in PKCS8_encrypt_ex()
34 if (EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) { in PKCS8_encrypt_ex()
47 if (pbe == NULL) { in PKCS8_encrypt_ex()
49 return NULL; in PKCS8_encrypt_ex()
52 if (p8 == NULL) { in PKCS8_encrypt_ex()
54 return NULL; in PKCS8_encrypt_ex()
66 p8inf, NULL, NULL); in PKCS8_encrypt()
81 return NULL; in PKCS8_set0_pbe_ex()
86 if (p8 == NULL) { in PKCS8_set0_pbe_ex()
88 return NULL; in PKCS8_set0_pbe_ex()
[all …]
/openssl/apps/
H A Dpkey.c65 {NULL}
70 BIO *out = NULL; in pkey_main()
71 ENGINE *e = NULL; in pkey_main()
72 EVP_PKEY *pkey = NULL; in pkey_main()
75 char *infile = NULL, *outfile = NULL, *passin = NULL, *passout = NULL; in pkey_main()
76 char *passinarg = NULL, *passoutarg = NULL, *ciphername = NULL, *prog; in pkey_main()
212 if (out == NULL) in pkey_main()
219 if (pkey == NULL) in pkey_main()
223 if (asn1_encoding != NULL || point_format != NULL) { in pkey_main()
278 NULL, 0, NULL, in pkey_main()
[all …]
H A Ds_server.c478 char *host = NULL, *port = NULL, *path = NULL; in get_ocsp_resp_from_responder()
479 char *proxy = NULL, *no_proxy = NULL; in get_ocsp_resp_from_responder()
500 NULL, &host, &port, NULL, &path, NULL, NULL)) { in get_ocsp_resp_from_responder()
1024 const char *CApath = NULL, *CAfile = NULL, *CAstore = NULL; in s_server_main()
1025 const char *chCApath = NULL, *chCAfile = NULL, *chCAstore = NULL; in s_server_main()
1027 char *passarg = NULL, *pass = NULL; in s_server_main()
1028 char *vfyCApath = NULL, *vfyCAfile = NULL, *vfyCAstore = NULL; in s_server_main()
1118 if (port == NULL || cctx == NULL || vpm == NULL) in s_server_main()
2345 set_keylog_file(NULL, NULL); in s_server_main()
3182 if ((io == NULL) || (ssl_bio == NULL) || (edio == NULL)) in www_body()
[all …]
H A Denc.c112 {NULL}
120 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main()
121 NULL, *wbio = NULL; in enc_main()
126 char *hkey = NULL, *hiv = NULL, *hsalt = NULL, *p; in enc_main()
127 char *infile = NULL, *outfile = NULL, *prog; in enc_main()
128 char *str = NULL, *passarg = NULL, *pass = NULL, *strbuf = NULL; in enc_main()
386 if (str == NULL && passarg != NULL) { in enc_main()
387 if (!app_passwd(passarg, NULL, &pass, NULL)) { in enc_main()
394 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main()
604 if ((hiv == NULL) && (str == NULL) in enc_main()
[all …]
/openssl/ssl/
H A Dbio_ssl.c64 if (bs == NULL) in ssl_new()
78 if (a == NULL) in ssl_free()
101 if (buf == NULL) in ssl_read()
347 SSL_set_bio(ssl, NULL, NULL); in ssl_ctrl()
439 BIO *ret = NULL, *buf = NULL, *ssl = NULL; in BIO_new_buffer_ssl_connect()
458 return NULL; in BIO_new_buffer_ssl_connect()
464 BIO *ret = NULL, *con = NULL, *ssl = NULL; in BIO_new_ssl_connect()
484 return NULL; in BIO_new_ssl_connect()
512 if ((t == NULL) || (f == NULL)) in BIO_ssl_copy_session_id()
516 if ((tdata->ssl == NULL) || (fdata->ssl == NULL)) in BIO_ssl_copy_session_id()
[all …]
/openssl/crypto/asn1/
H A Dp5_scrypt.c46 X509_ALGOR *scheme = NULL, *ret = NULL; in PKCS5_pbe2_set_scrypt()
58 if (EVP_PBE_scrypt(NULL, 0, NULL, 0, N, r, p, 0, NULL, 0) == 0) { in PKCS5_pbe2_set_scrypt()
70 if (pbe2 == NULL) { in PKCS5_pbe2_set_scrypt()
94 if (ctx == NULL) { in PKCS5_pbe2_set_scrypt()
100 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, iv, 0) == 0) in PKCS5_pbe2_set_scrypt()
107 ctx = NULL; in PKCS5_pbe2_set_scrypt()
144 pbe2 = NULL; in PKCS5_pbe2_set_scrypt()
153 return NULL; in PKCS5_pbe2_set_scrypt()
233 return NULL; in pkcs5_scrypt_set()
283 || EVP_PBE_scrypt_ex(NULL, 0, NULL, 0, N, r, p, 0, NULL, 0, in PKCS5_v2_scrypt_keyivgen_ex()
[all …]
H A Da_object.c26 if ((a == NULL) || (a->data == NULL)) in i2d_ASN1_OBJECT()
33 if (*pp == NULL) { in i2d_ASN1_OBJECT()
58 BIGNUM *bl = NULL; in a2d_ASN1_OBJECT()
187 if ((a == NULL) || (a->data == NULL)) in i2a_ASN1_OBJECT()
236 return NULL; in d2i_ASN1_OBJECT()
289 if ((a == NULL) || ((*a) == NULL) || in ossl_c2i_ASN1_OBJECT()
320 ret->sn = NULL; in ossl_c2i_ASN1_OBJECT()
321 ret->ln = NULL; in ossl_c2i_ASN1_OBJECT()
325 if (a != NULL) in ossl_c2i_ASN1_OBJECT()
333 return NULL; in ossl_c2i_ASN1_OBJECT()
[all …]
/openssl/crypto/ffc/
H A Dffc_key_validate.c23 BIGNUM *tmp = NULL; in ossl_ffc_validate_public_key_partial()
24 BN_CTX *ctx = NULL; in ossl_ffc_validate_public_key_partial()
27 if (params == NULL || pub_key == NULL || params->p == NULL) { in ossl_ffc_validate_public_key_partial()
33 if (ctx == NULL) in ossl_ffc_validate_public_key_partial()
39 if (tmp == NULL in ossl_ffc_validate_public_key_partial()
52 if (ctx != NULL) { in ossl_ffc_validate_public_key_partial()
66 BIGNUM *tmp = NULL; in ossl_ffc_validate_public_key()
67 BN_CTX *ctx = NULL; in ossl_ffc_validate_public_key()
80 if (tmp == NULL in ossl_ffc_validate_public_key()
89 if (ctx != NULL) { in ossl_ffc_validate_public_key()
[all …]
/openssl/crypto/evp/
H A Dp_open.c22 unsigned char *key = NULL; in EVP_OpenInit()
25 EVP_PKEY_CTX *pctx = NULL; in EVP_OpenInit()
29 if (!EVP_DecryptInit_ex(ctx, type, NULL, NULL, NULL)) in EVP_OpenInit()
33 if (priv == NULL) in EVP_OpenInit()
36 if ((pctx = EVP_PKEY_CTX_new(priv, NULL)) == NULL) { in EVP_OpenInit()
42 || EVP_PKEY_decrypt(pctx, NULL, &keylen, ek, ekl) <= 0) in EVP_OpenInit()
45 if ((key = OPENSSL_malloc(keylen)) == NULL) in EVP_OpenInit()
52 || !EVP_DecryptInit_ex(ctx, NULL, NULL, key, iv)) in EVP_OpenInit()
68 i = EVP_DecryptInit_ex(ctx, NULL, NULL, NULL, NULL); in EVP_OpenFinal()
/openssl/demos/smime/
H A Dsmver.c17 BIO *in = NULL, *out = NULL, *tbio = NULL, *cont = NULL; in main()
18 X509_STORE *st = NULL; in main()
19 X509 *cacert = NULL; in main()
20 PKCS7 *p7 = NULL; in main()
29 if (st == NULL) in main()
35 if (tbio == NULL) in main()
38 cacert = PEM_read_bio_X509(tbio, NULL, 0, NULL); in main()
40 if (cacert == NULL) in main()
50 if (in == NULL) in main()
56 if (p7 == NULL) in main()
[all …]
/openssl/crypto/pkcs7/
H A Dpk7_lib.c314 if (alg1 == NULL || alg1->algorithm == NULL) in pkcs7_ecdsa_or_dsa_sign_verify_setup()
331 PKCS7_SIGNER_INFO_get0_algs(si, NULL, NULL, &alg); in pkcs7_rsa_sign_verify_setup()
413 return NULL; in PKCS7_add_signature()
424 return NULL; in STACK_OF()
435 return NULL; in STACK_OF()
452 if (ctx == NULL || p7->d.ptr == NULL) in ossl_pkcs7_resolve_libctx()
478 return p7 != NULL ? &p7->ctx : NULL; in ossl_pkcs7_get0_ctx()
512 return ctx != NULL ? ctx->libctx : NULL; in ossl_pkcs7_ctx_get0_libctx()
516 return ctx != NULL ? ctx->propq : NULL; in ossl_pkcs7_ctx_get0_propq()
537 if (p7 == NULL || p7->d.ptr == NULL) in STACK_OF()
[all …]
/openssl/crypto/dso/
H A Ddso_win32.c25 return NULL; in GetProcAddressA()
46 return NULL; in LoadLibraryA()
98 HINSTANCE h = NULL, *p = NULL; in win32_load()
107 if (h == NULL) { in win32_load()
113 if (p == NULL) in win32_load()
127 if (h != NULL) in win32_load()
142 if (p == NULL) { in win32_unload()
167 if ((dso == NULL) || (symname == NULL)) { in win32_bind_func()
476 return NULL; in openssl_strnchr()
564 path, sz, NULL, NULL); in win32_pathbyaddr()
[all …]
/openssl/providers/implementations/kdfs/
H A Dpkcs12kdf.c54 unsigned char *B = NULL, *D = NULL, *I = NULL, *p = NULL, *Ai = NULL; in pkcs12kdf_derive()
62 if (ctx == NULL) { in pkcs12kdf_derive()
84 if (D == NULL || Ai == NULL || B == NULL || I == NULL) in pkcs12kdf_derive()
142 return NULL; in kdf_pkcs12_new()
145 if (ctx == NULL) in kdf_pkcs12_new()
146 return NULL; in kdf_pkcs12_new()
163 if (ctx != NULL) { in kdf_pkcs12_free()
184 if (dest != NULL) { in kdf_pkcs12_dup()
198 return NULL; in kdf_pkcs12_dup()
205 *buffer = NULL; in pkcs12kdf_set_membuf()
[all …]

Completed in 95 milliseconds

1...<<11121314151617181920>>...80