Lines Matching refs:NULL

20 static X509 *cert = NULL;
21 static EVP_PKEY *privkey = NULL;
22 static char *derin = NULL;
31 CMS_ContentInfo* content = NULL; in test_encrypt_decrypt()
32 BIO *contentbio = NULL; in test_encrypt_decrypt()
45 if (!TEST_true(CMS_decrypt(content, privkey, cert, NULL, outmsgbio, in test_encrypt_decrypt()
51 NULL, privkey, cert, NULL, in test_encrypt_decrypt()
52 CMS_TEXT, NULL, NULL))) in test_encrypt_decrypt()
93 CMS_ContentInfo *cms = NULL; in test_CMS_add1_cert()
97 && TEST_ptr(CMS_add1_signer(cms, cert, privkey, NULL, 0)) in test_CMS_add1_cert()
106 BIO *bio, *content = NULL; in test_d2i_CMS_bio_NULL()
107 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_bio_NULL()
307 && TEST_ptr(cms = d2i_CMS_bio(bio, NULL)) in test_d2i_CMS_bio_NULL()
308 && TEST_true(CMS_verify(cms, NULL, NULL, NULL, NULL, flags)) in test_d2i_CMS_bio_NULL()
310 CMS_SignedData_verify(cms->d.signedData, NULL, NULL, NULL, in test_d2i_CMS_bio_NULL()
311 NULL, NULL, flags, NULL, NULL)); in test_d2i_CMS_bio_NULL()
321 unsigned char *buf = NULL; in read_all()
322 unsigned char *tmp = NULL; in read_all()
328 if (tmp == NULL) in read_all()
347 return NULL; in read_all()
352 BIO *bio = NULL; in test_d2i_CMS_decode()
353 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_decode()
354 unsigned char *buf = NULL; in test_d2i_CMS_decode()
355 const unsigned char *tmp = NULL; in test_d2i_CMS_decode()
364 if (!TEST_ptr(cms = d2i_CMS_bio(bio, NULL))) in test_d2i_CMS_decode()
371 if (!TEST_ptr(cms = d2i_CMS_ContentInfo(NULL, &tmp, buf_len))) in test_d2i_CMS_decode()
392 char *certin = NULL, *privkeyin = NULL; in setup_tests()
393 BIO *certbio = NULL, *privkeybio = NULL; in setup_tests()
408 if (!TEST_true(PEM_read_bio_X509(certbio, &cert, NULL, NULL))) { in setup_tests()
417 cert = NULL; in setup_tests()
420 if (!TEST_true(PEM_read_bio_PrivateKey(privkeybio, &privkey, NULL, NULL))) { in setup_tests()
423 cert = NULL; in setup_tests()