Lines Matching refs:NULL

39     EVP_PKEY *pkey = NULL;  in pem_read_bio_key_decoder()
40 OSSL_DECODER_CTX *dctx = NULL; in pem_read_bio_key_decoder()
45 return NULL; in pem_read_bio_key_decoder()
47 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, "PEM", NULL, NULL, in pem_read_bio_key_decoder()
50 if (dctx == NULL) in pem_read_bio_key_decoder()
51 return NULL; in pem_read_bio_key_decoder()
53 if (cb == NULL) in pem_read_bio_key_decoder()
60 while (!OSSL_DECODER_from_bio(dctx, bp) || pkey == NULL) in pem_read_bio_key_decoder()
84 pkey = NULL; in pem_read_bio_key_decoder()
89 if (x != NULL) { in pem_read_bio_key_decoder()
105 char *nm = NULL; in pem_read_bio_key_legacy()
106 const unsigned char *p = NULL; in pem_read_bio_key_legacy()
107 unsigned char *data = NULL; in pem_read_bio_key_legacy()
110 EVP_PKEY *ret = NULL; in pem_read_bio_key_legacy()
118 return NULL; in pem_read_bio_key_legacy()
129 return NULL; in pem_read_bio_key_legacy()
138 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len)) == NULL) in pem_read_bio_key_legacy()
141 if (x != NULL) { in pem_read_bio_key_legacy()
152 if ((p8 = d2i_X509_SIG(NULL, &p, len)) == NULL) in pem_read_bio_key_legacy()
154 if (cb != NULL) in pem_read_bio_key_legacy()
166 if (p8inf == NULL) in pem_read_bio_key_legacy()
169 if (x != NULL) { in pem_read_bio_key_legacy()
176 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
177 if (ameth == NULL || ameth->old_priv_decode == NULL) in pem_read_bio_key_legacy()
189 if (ret == NULL) in pem_read_bio_key_legacy()
195 ret = NULL; in pem_read_bio_key_legacy()
205 if (ret == NULL && ERR_peek_last_error() == 0) in pem_read_bio_key_legacy()
220 EVP_PKEY *ret = NULL; in pem_read_bio_key()
221 BIO *new_bio = NULL; in pem_read_bio_key()
227 if (new_bio == NULL) in pem_read_bio_key()
228 return NULL; in pem_read_bio_key()
233 if (cb == NULL) in pem_read_bio_key()
243 if (ret == NULL in pem_read_bio_key()
248 selection)) == NULL)) in pem_read_bio_key()
255 if (new_bio != NULL) { in pem_read_bio_key()
273 return PEM_read_bio_PUBKEY_ex(bp, x, cb, u, NULL, NULL); in PEM_read_bio_PUBKEY()
284 if ((b = BIO_new(BIO_s_file())) == NULL) { in PEM_read_PUBKEY_ex()
296 return PEM_read_PUBKEY_ex(fp, x, cb, u, NULL, NULL); in PEM_read_PUBKEY()
312 return PEM_read_bio_PrivateKey_ex(bp, x, cb, u, NULL, NULL); in PEM_read_bio_PrivateKey()
323 if (x != NULL && (x->ameth == NULL || x->ameth->priv_encode != NULL)) in PEM_write_cb_ex_fnsig()
332 NULL, NULL); in PEM_write_cb_fnsig()
345 EVP_PKEY *copy = NULL; in PEM_write_bio_PrivateKey_traditional()
348 if (x == NULL) in PEM_write_bio_PrivateKey_traditional()
356 if (x->ameth == NULL || x->ameth->old_priv_encode == NULL) { in PEM_write_bio_PrivateKey_traditional()
381 return pem_read_bio_key(bp, x, no_password_cb, NULL, libctx, propq, in PEM_read_bio_Parameters_ex()
387 return PEM_read_bio_Parameters_ex(bp, x, NULL, NULL); in PEM_read_bio_Parameters()
393 IMPLEMENT_PEM_provided_write_body_vars(pkey, Parameters, NULL); in PEM_write_fnsig()
403 pem_str, out, x, NULL, NULL, 0, 0, NULL); in PEM_write_fnsig()
414 if ((b = BIO_new(BIO_s_file())) == NULL) { in PEM_read_PrivateKey_ex()
427 return PEM_read_PrivateKey_ex(fp, x, cb, u, NULL, NULL); in PEM_read_PrivateKey()
435 if ((b = BIO_new_fp(out, BIO_NOCLOSE)) == NULL) { in PEM_write_cb_ex_fnsig()
447 return PEM_write_PrivateKey_ex(out, x, enc, kstr, klen, cb, u, NULL, NULL); in PEM_write_cb_fnsig()