Lines Matching refs:cms
93 CMS_ContentInfo *cms = NULL; in test_CMS_add1_cert() local
96 ret = TEST_ptr(cms = CMS_ContentInfo_new()) in test_CMS_add1_cert()
97 && TEST_ptr(CMS_add1_signer(cms, cert, privkey, NULL, 0)) in test_CMS_add1_cert()
98 && TEST_true(CMS_add1_cert(cms, cert)); /* add cert again */ in test_CMS_add1_cert()
100 CMS_ContentInfo_free(cms); in test_CMS_add1_cert()
107 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_bio_NULL() local
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()
313 CMS_ContentInfo_free(cms); in test_d2i_CMS_bio_NULL()
353 CMS_ContentInfo *cms = NULL; in test_d2i_CMS_decode() local
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()
381 CMS_ContentInfo_free(cms); in test_d2i_CMS_decode()