Lines Matching defs:pszCertFile
196 * @param pszCertFile The name of the file containing the
202 static bool readCertFile(const char *pszCertFile, PCCERT_CONTEXT *ppOutCtx, HCERTSTORE *phSrcStore)
210 int rc = RTFileReadAll(pszCertFile, &pvFile, &cbFile);
221 errorToString(GetLastError()), pszCertFile);
226 RTMsgError("RTFileReadAll failed on '%s': %Rrc", pszCertFile, rc);
284 * @param pszCertFile The file containing the certificate to add.
286 static bool removeCertFromStoreByFile(DWORD dwDst, const char *pszStoreNm, const char *pszCertFile)
293 if (!readCertFile(pszCertFile, &pSrcCtx, &hSrcStore))
360 * @param pszCertFile The file containing the certificate to add.
364 static bool addCertToStore(DWORD dwDst, const char *pszStoreNm, const char *pszCertFile, DWORD dwDisposition)
371 if (!readCertFile(pszCertFile, &pSrcCtx, &hSrcStore))
384 RTMsgInfo("Adding '%s' to %#x:'%s'... (disp %d)", pszCertFile, dwDst, pszStoreNm, dwDisposition);