74 return cms->d.signedData;
95 return cms_get0_signed(cms);
102 if (cms_signed_data_init(cms))
177 sinfos = CMS_get0_SignerInfos(cms);
314 sd = cms_signed_data_init(cms);
377 alg = X509_ALGOR_new();
383 X509_ALGOR_free(alg);
411 if (!si->signedAttrs)
414 if (!si->signedAttrs)
430 if (!cms_copy_messageDigest(cms, si))
445 if (!sd->signerInfos)
447 if (!sd->signerInfos ||
475 tt->
type, tt, -1) <= 0)
495 sd = cms_get0_signed(cms);
498 return sd->signerInfos;
507 sinfos = CMS_get0_SignerInfos(cms);
565 sd = cms_get0_signed(cms);
568 certs = sd->certificates;
691 sinfos = CMS_get0_SignerInfos(cms);
695 if (!cms_SignerInfo_content_sign(cms, si, chain))
706 unsigned char *abuf = NULL;
719 if (!cms_add1_signingTime(si, NULL))
773 unsigned char *abuf = NULL;
817 sd = cms_get0_signed(cms);
821 cms_sd_set_version(sd);
877 if (mlen != (
unsigned int)os->
length)
884 if (memcmp(mval, os->
data, mlen))
913 unsigned char *smder = NULL;
915 smderlen = i2d_X509_ALGORS(algs, &smder);
925 int algnid,
int keysize)
931 key = ASN1_INTEGER_new();
935 alg = X509_ALGOR_new();
939 ASN1_INTEGER_free(key);
949 X509_ALGOR_free(alg);