Lines Matching refs:cms
6184 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6232 cms = PEM_read_bio_CMS(sigbio, NULL, 0, NULL); in PHP_FUNCTION()
6236 cms = d2i_CMS_bio(sigbio, NULL); in PHP_FUNCTION()
6240 cms = SMIME_read_CMS(sigbio, &datain); in PHP_FUNCTION()
6246 if (cms == NULL) { in PHP_FUNCTION()
6285 if (CMS_verify(cms, others, store, datain, dataout, (unsigned int)flags)) { in PHP_FUNCTION()
6293 signers = CMS_get0_signers(cms); in PHP_FUNCTION()
6315 if (PEM_write_bio_CMS(p7bout, cms) == 0) { in PHP_FUNCTION()
6340 if (cms) { in PHP_FUNCTION()
6341 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6357 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6441 cms = CMS_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, (unsigned int)flags); in PHP_FUNCTION()
6443 if (cms == NULL) { in PHP_FUNCTION()
6472 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6479 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6484 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6491 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6497 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6502 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6516 if (cms) { in PHP_FUNCTION()
6517 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6536 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6558 cms = PEM_read_bio_CMS(bio_in, NULL, NULL, NULL); in PHP_FUNCTION()
6559 if (cms == NULL) { in PHP_FUNCTION()
6564 switch (OBJ_obj2nid(CMS_get0_type(cms))) { in PHP_FUNCTION()
6567 certs = CMS_get1_certs(cms); in PHP_FUNCTION()
6568 crls = CMS_get1_crls(cms); in PHP_FUNCTION()
6613 if (cms != NULL) { in PHP_FUNCTION()
6614 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6637 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6716 cms = CMS_sign(cert, privkey, others, infile, (unsigned int)flags); in PHP_FUNCTION()
6717 if (cms == NULL) { in PHP_FUNCTION()
6750 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6757 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6762 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6769 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6775 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6780 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6793 if (cms) { in PHP_FUNCTION()
6794 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6818 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6863 cms = d2i_CMS_bio(in, NULL); in PHP_FUNCTION()
6866 cms = PEM_read_bio_CMS(in, NULL, 0, NULL); in PHP_FUNCTION()
6869 cms = SMIME_read_CMS(in, &datain); in PHP_FUNCTION()
6876 if (cms == NULL) { in PHP_FUNCTION()
6880 if (CMS_decrypt(cms, key, cert, NULL, out, 0)) { in PHP_FUNCTION()
6886 if (cms) { in PHP_FUNCTION()
6887 CMS_ContentInfo_free(cms); in PHP_FUNCTION()