Lines Matching refs:cms

5532 	CMS_ContentInfo * cms = NULL;  in PHP_FUNCTION()  local
5577 cms = PEM_read_bio_CMS(sigbio, NULL, 0, NULL); in PHP_FUNCTION()
5581 cms = d2i_CMS_bio(sigbio, NULL); in PHP_FUNCTION()
5585 cms = SMIME_read_CMS(sigbio, &datain); in PHP_FUNCTION()
5591 if (cms == NULL) { in PHP_FUNCTION()
5630 if (CMS_verify(cms, others, store, datain, dataout, (unsigned int)flags)) { in PHP_FUNCTION()
5638 signers = CMS_get0_signers(cms); in PHP_FUNCTION()
5660 PEM_write_bio_CMS(p7bout, cms); in PHP_FUNCTION()
5681 if (cms) { in PHP_FUNCTION()
5682 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
5698 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
5782 cms = CMS_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, (unsigned int)flags); in PHP_FUNCTION()
5784 if (cms == NULL) { in PHP_FUNCTION()
5813 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
5820 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
5825 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
5832 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
5838 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
5843 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
5857 if (cms) { in PHP_FUNCTION()
5858 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
5877 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
5899 cms = PEM_read_bio_CMS(bio_in, NULL, NULL, NULL); in PHP_FUNCTION()
5900 if (cms == NULL) { in PHP_FUNCTION()
5905 switch (OBJ_obj2nid(CMS_get0_type(cms))) { in PHP_FUNCTION()
5908 certs = CMS_get1_certs(cms); in PHP_FUNCTION()
5909 crls = CMS_get1_crls(cms); in PHP_FUNCTION()
5954 if (cms != NULL) { in PHP_FUNCTION()
5955 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
5978 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6057 cms = CMS_sign(cert, privkey, others, infile, (unsigned int)flags); in PHP_FUNCTION()
6058 if (cms == NULL) { in PHP_FUNCTION()
6091 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6098 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6103 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6110 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6116 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6121 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6134 if (cms) { in PHP_FUNCTION()
6135 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6159 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6204 cms = d2i_CMS_bio(in, NULL); in PHP_FUNCTION()
6207 cms = PEM_read_bio_CMS(in, NULL, 0, NULL); in PHP_FUNCTION()
6210 cms = SMIME_read_CMS(in, &datain); in PHP_FUNCTION()
6217 if (cms == NULL) { in PHP_FUNCTION()
6221 if (CMS_decrypt(cms, key, cert, NULL, out, 0)) { in PHP_FUNCTION()
6227 if (cms) { in PHP_FUNCTION()
6228 CMS_ContentInfo_free(cms); in PHP_FUNCTION()