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