Lines Matching refs:cms

5958 	CMS_ContentInfo * cms = NULL;  in PHP_FUNCTION()  local
6006 cms = PEM_read_bio_CMS(sigbio, NULL, 0, NULL); in PHP_FUNCTION()
6010 cms = d2i_CMS_bio(sigbio, NULL); in PHP_FUNCTION()
6014 cms = SMIME_read_CMS(sigbio, &datain); in PHP_FUNCTION()
6020 if (cms == NULL) { in PHP_FUNCTION()
6059 if (CMS_verify(cms, others, store, datain, dataout, (unsigned int)flags)) { in PHP_FUNCTION()
6067 signers = CMS_get0_signers(cms); in PHP_FUNCTION()
6089 if (PEM_write_bio_CMS(p7bout, cms) == 0) { in PHP_FUNCTION()
6114 if (cms) { in PHP_FUNCTION()
6115 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6131 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6215 cms = CMS_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, (unsigned int)flags); in PHP_FUNCTION()
6217 if (cms == NULL) { in PHP_FUNCTION()
6246 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6253 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6258 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6265 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6271 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6276 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6290 if (cms) { in PHP_FUNCTION()
6291 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6310 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6332 cms = PEM_read_bio_CMS(bio_in, NULL, NULL, NULL); in PHP_FUNCTION()
6333 if (cms == NULL) { in PHP_FUNCTION()
6338 switch (OBJ_obj2nid(CMS_get0_type(cms))) { in PHP_FUNCTION()
6341 certs = CMS_get1_certs(cms); in PHP_FUNCTION()
6342 crls = CMS_get1_crls(cms); in PHP_FUNCTION()
6387 if (cms != NULL) { in PHP_FUNCTION()
6388 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6411 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6490 cms = CMS_sign(cert, privkey, others, infile, (unsigned int)flags); in PHP_FUNCTION()
6491 if (cms == NULL) { in PHP_FUNCTION()
6524 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6531 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6536 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6543 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6549 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6554 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6567 if (cms) { in PHP_FUNCTION()
6568 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6592 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6637 cms = d2i_CMS_bio(in, NULL); in PHP_FUNCTION()
6640 cms = PEM_read_bio_CMS(in, NULL, 0, NULL); in PHP_FUNCTION()
6643 cms = SMIME_read_CMS(in, &datain); in PHP_FUNCTION()
6650 if (cms == NULL) { in PHP_FUNCTION()
6654 if (CMS_decrypt(cms, key, cert, NULL, out, 0)) { in PHP_FUNCTION()
6660 if (cms) { in PHP_FUNCTION()
6661 CMS_ContentInfo_free(cms); in PHP_FUNCTION()