Lines Matching refs:State

475     VERIFYEXESTATE State =
480 int rc = RTCrStoreCreateInMem(&State.hRootStore, 0);
482 rc = RTCrStoreCreateInMem(&State.hKernelRootStore, 0);
484 rc = RTCrStoreCreateInMem(&State.hAdditionalStore, 0);
498 rc = RTCrStoreCertAddFromFile(ch == 'r' ? State.hRootStore : State.hAdditionalStore, 0, ValueUnion.psz,
507 State.enmSignType = VERIFYEXESTATE::kSignType_Windows;
509 State.enmSignType = VERIFYEXESTATE::kSignType_OSX;
514 case 'k': State.fKernel = true; break;
515 case 'v': State.cVerbose++; break;
516 case 'q': State.cVerbose = 0; break;
533 switch (State.enmSignType)
537 aSets[cSets].hStore = State.hRootStore;
541 aSets[cSets].hStore = State.hRootStore;
545 aSets[cSets].hStore = State.hRootStore;
549 aSets[cSets].hStore = State.hKernelRootStore;
578 rcExit = HandleVerifyExeWorker(&State, ValueUnion.psz, &StaticErrInfo);
599 cRefs = RTCrStoreRelease(State.hRootStore); Assert(cRefs == 0);
600 cRefs = RTCrStoreRelease(State.hKernelRootStore); Assert(cRefs == 0);
601 cRefs = RTCrStoreRelease(State.hAdditionalStore); Assert(cRefs == 0);
648 MAKETAINFOSTATE State = { 0, NULL, NULL };
660 if (State.pszCert)
662 State.pszCert = ValueUnion.psz;
667 if (State.pszOutput)
669 State.pszOutput = ValueUnion.psz;
672 case 'v': State.cVerbose++; break;
673 case 'q': State.cVerbose = 0; break;
679 if (!State.pszCert)
681 if (!State.pszOutput)
689 rc = RTCrX509Certificate_ReadFromFile(&Certificate, State.pszCert, 0, &g_RTAsn1DefaultAllocator,
693 State.pszCert, rc, StaticErrInfo.szMsg);
777 if (State.cVerbose >= 1)
781 rc = RTStrmOpen(State.pszOutput, "wb", &pStrm);
790 RTMsgInfo("Successfully wrote TrustedAnchorInfo to '%s'.", State.pszOutput);
801 RTMsgError("Error opening '%s' for writing: %Rrcs", State.pszOutput, rc);