• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_smime/lib/

Lines Matching defs:cert

46 #include "cert.h"
541 * Combine all of the certs and cert chains into rawcerts.
554 * XXX Want to check for duplicates and not add *any* cert that is
568 SecCertificateRef cert = (SecCertificateRef)CFArrayGetValueAtIndex(signerinfo->certList, ci);
569 SecCertificateGetData(cert, sigd->rawCerts[rci++]);
577 SecCertificateRef cert = (SecCertificateRef)CFArrayGetValueAtIndex(sigd->certs, ci);
578 SecCertificateGetData(cert, sigd->rawCerts[rci++]);
731 * The verification checks if the signing cert is valid and has a trusted chain
734 * If trustRef is NULL the cert chain is verified and the VerificationStatus is set accordingly.
797 SecCertificateRef cert;
810 cert = (SecCertificateRef)CFArrayGetValueAtIndex(sigd->certs, i);
811 CFRetain(cert);
813 cert = CERT_FindCertByDERCert(keychainOrArray, sigd->rawCerts[i]);
814 if (!cert) {
819 rv |= CERT_VerifyCert(keychainOrArray, cert, sigd->rawCerts,
821 CFRelease(cert);
856 * SecCmsSignedDataAddCertChain - add cert and its entire chain to the set of certs
859 SecCmsSignedDataAddCertChain(SecCmsSignedDataRef sigd, SecCertificateRef cert)
868 certlist = CERT_CertChainFromCert(cert, usage, PR_FALSE);
879 SecCmsSignedDataAddCertificate(SecCmsSignedDataRef sigd, SecCertificateRef cert)
881 PORT_Assert(cert != NULL);
883 if (cert == NULL)
889 CFArrayAppendValue(sigd->certs, cert);
1120 * cert - base certificates that will be included
1121 * include_chain - if true, include the complete cert chain for cert
1130 SecCmsSignedDataCreateCertsOnly(SecCmsMessageRef cmsg, SecCertificateRef cert, Boolean include_chain)
1148 rv = SecCmsSignedDataAddCertChain(sigd, cert);
1150 rv = SecCmsSignedDataAddCertificate(sigd, cert);