Lines Matching defs:certReq
234 CSSM_APPLE_DOTMAC_TP_CERT_REQUEST certReq;
244 memset(&certReq, 0, sizeof(certReq));
245 certReq.userName.Data = (uint8 *)userName;
246 certReq.userName.Length = strlen(userName);
256 certReq.version = CSSM_DOT_MAC_TP_REQ_VERSION;
258 reqSet.Requests = &certReq;
305 CSSM_APPLE_DOTMAC_TP_CERT_REQUEST certReq;
470 memset(&certReq, 0, sizeof(certReq));
501 certReq.password.Data = (uint8 *)password;
502 certReq.password.Length = strlen(password);
503 certReq.userName.Data = (uint8 *)userName;
504 certReq.userName.Length = strlen(userName);
508 if(readFile(csrInName, &certReq.csr.Data, &len)) {
512 certReq.csr.Length = len;
513 certReq.flags |= CSSM_DOTMAC_TP_EXIST_CSR;
574 certReq.version = CSSM_DOT_MAC_TP_REQ_VERSION;
576 certReq.cspHand = cspHand;
577 certReq.clHand = cuClStartup();
578 certReq.numTypeValuePairs = 1;
579 certReq.typeValuePairs = &tvp;
580 certReq.publicKey = (CSSM_KEY_PTR)pubKey;
581 certReq.privateKey = (CSSM_KEY_PTR)privKey;
584 certReq.flags |= CSSM_DOTMAC_TP_DO_NOT_POST;
587 certReq.flags |= CSSM_DOTMAC_TP_RETURN_CSR;
590 certReq.flags |= CSSM_DOTMAC_TP_SIGN_RENEW;
594 reqSet.Requests = &certReq;
688 if((certReq.csr.Data == NULL) || (certReq.csr.Length == 0)) {
693 if(writeFile(csrOutName, certReq.csr.Data, certReq.csr.Length)) {
697 printf("...%lu bytes written as CSR to %s\n", certReq.csr.Length, csrOutName);
703 if(certReq.clHand) {
704 CSSM_ModuleDetach(certReq.clHand);
710 free(certReq.csr.Data);