Home | History | Annotate | Download | only in base

Lines Matching full:certreq

687   CSSM_APPLE_TP_CERT_REQUEST certReq;
688 memset(&certReq, 0, sizeof(certReq));
689 certReq.cspHand = crypto::GetSharedCSPHandle();
690 certReq.clHand = crypto::GetSharedCLHandle();
692 certReq.serialNumber = serial_number & 0x7fffffff;
693 certReq.numSubjectNames = cssm_subject_names.size();
694 certReq.subjectNames = &cssm_subject_names[0];
695 certReq.numIssuerNames = 0; // Root.
696 certReq.issuerNames = NULL;
697 certReq.issuerNameX509 = NULL;
698 certReq.certPublicKey = key->public_key();
699 certReq.issuerPrivateKey = key->key();
701 certReq.signatureAlg = CSSM_ALGID_SHA1WithRSA;
702 certReq.signatureOid = CSSMOID_SHA1WithRSA;
703 certReq.notBefore = 0;
704 certReq.notAfter = static_cast<uint32>(valid_duration.InSeconds());
705 certReq.numExtensions = 0;
706 certReq.extensions = NULL;
707 certReq.challengeString = NULL;
711 reqSet.Requests = &certReq;