Lines Matching refs:cms
5779 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
5827 cms = PEM_read_bio_CMS(sigbio, NULL, 0, NULL); in PHP_FUNCTION()
5831 cms = d2i_CMS_bio(sigbio, NULL); in PHP_FUNCTION()
5835 cms = SMIME_read_CMS(sigbio, &datain); in PHP_FUNCTION()
5841 if (cms == NULL) { in PHP_FUNCTION()
5880 if (CMS_verify(cms, others, store, datain, dataout, (unsigned int)flags)) { in PHP_FUNCTION()
5888 signers = CMS_get0_signers(cms); in PHP_FUNCTION()
5910 if (PEM_write_bio_CMS(p7bout, cms) == 0) { in PHP_FUNCTION()
5935 if (cms) { in PHP_FUNCTION()
5936 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
5952 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6036 cms = CMS_encrypt(recipcerts, infile, (EVP_CIPHER*)cipher, (unsigned int)flags); in PHP_FUNCTION()
6038 if (cms == NULL) { in PHP_FUNCTION()
6067 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6074 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6079 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6086 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6092 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6097 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6111 if (cms) { in PHP_FUNCTION()
6112 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6131 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6153 cms = PEM_read_bio_CMS(bio_in, NULL, NULL, NULL); in PHP_FUNCTION()
6154 if (cms == NULL) { in PHP_FUNCTION()
6159 switch (OBJ_obj2nid(CMS_get0_type(cms))) { in PHP_FUNCTION()
6162 certs = CMS_get1_certs(cms); in PHP_FUNCTION()
6163 crls = CMS_get1_crls(cms); in PHP_FUNCTION()
6208 if (cms != NULL) { in PHP_FUNCTION()
6209 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6232 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6311 cms = CMS_sign(cert, privkey, others, infile, (unsigned int)flags); in PHP_FUNCTION()
6312 if (cms == NULL) { in PHP_FUNCTION()
6345 if (!SMIME_write_CMS(outfile, cms, infile, (int)flags)) { in PHP_FUNCTION()
6352 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6357 if (i2d_CMS_bio(outfile, cms) != 1) { in PHP_FUNCTION()
6364 if (CMS_final(cms, infile, NULL, (unsigned int) flags) != 1) { in PHP_FUNCTION()
6370 if (PEM_write_bio_CMS_stream(outfile, cms, infile, flags) == 0) { in PHP_FUNCTION()
6375 if (PEM_write_bio_CMS(outfile, cms) == 0) { in PHP_FUNCTION()
6388 if (cms) { in PHP_FUNCTION()
6389 CMS_ContentInfo_free(cms); in PHP_FUNCTION()
6413 CMS_ContentInfo * cms = NULL; in PHP_FUNCTION() local
6458 cms = d2i_CMS_bio(in, NULL); in PHP_FUNCTION()
6461 cms = PEM_read_bio_CMS(in, NULL, 0, NULL); in PHP_FUNCTION()
6464 cms = SMIME_read_CMS(in, &datain); in PHP_FUNCTION()
6471 if (cms == NULL) { in PHP_FUNCTION()
6475 if (CMS_decrypt(cms, key, cert, NULL, out, 0)) { in PHP_FUNCTION()
6481 if (cms) { in PHP_FUNCTION()
6482 CMS_ContentInfo_free(cms); in PHP_FUNCTION()