Lines Matching refs:pSettings
7165 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7166 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7171 cbValue = strlen(pSettings->pszCipher) + 1;
7176 if (!pSettings->pszKeyStoreLoad)
7178 cbValue = strlen(pSettings->pszKeyStoreLoad) + 1;
7193 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7194 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7199 psz = pSettings->pszCipher;
7203 psz = pSettings->pszKeyStoreLoad;
7206 if (pSettings->fCreateKeyStore)
7225 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7229 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7235 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7237 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7243 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7244 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7247 *ppszPassword = pSettings->pszPassword;
7253 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7254 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7261 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7262 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7264 pSettings->pszKeyStore = (char *)RTMemAllocZ(cbKeyStore);
7265 if (!pSettings->pszKeyStore)
7268 memcpy(pSettings->pszKeyStore, pvKeyStore, cbKeyStore);
7275 Medium::CryptoFilterSettings *pSettings = (Medium::CryptoFilterSettings *)pvUser;
7276 AssertPtrReturn(pSettings, VERR_GENERAL_FAILURE);
7278 pSettings->pszCipherReturned = RTStrDup(pszCipher);
7279 pSettings->pbDek = pbDek;
7280 pSettings->cbDek = cbDek;
7282 return pSettings->pszCipherReturned ? VINF_SUCCESS : VERR_NO_MEMORY;
9200 void Medium::i_taskEncryptSettingsSetup(CryptoFilterSettings *pSettings, const char *pszCipher,
9204 pSettings->pszCipher = pszCipher;
9205 pSettings->pszPassword = pszPassword;
9206 pSettings->pszKeyStoreLoad = pszKeyStore;
9207 pSettings->fCreateKeyStore = fCreateKeyStore;
9208 pSettings->pbDek = NULL;
9209 pSettings->cbDek = 0;
9210 pSettings->vdFilterIfaces = NULL;
9212 pSettings->vdIfCfg.pfnAreKeysValid = i_vdCryptoConfigAreKeysValid;
9213 pSettings->vdIfCfg.pfnQuerySize = i_vdCryptoConfigQuerySize;
9214 pSettings->vdIfCfg.pfnQuery = i_vdCryptoConfigQuery;
9215 pSettings->vdIfCfg.pfnQueryBytes = NULL;
9217 pSettings->vdIfCrypto.pfnKeyRetain = i_vdCryptoKeyRetain;
9218 pSettings->vdIfCrypto.pfnKeyRelease = i_vdCryptoKeyRelease;
9219 pSettings->vdIfCrypto.pfnKeyStorePasswordRetain = i_vdCryptoKeyStorePasswordRetain;
9220 pSettings->vdIfCrypto.pfnKeyStorePasswordRelease = i_vdCryptoKeyStorePasswordRelease;
9221 pSettings->vdIfCrypto.pfnKeyStoreSave = i_vdCryptoKeyStoreSave;
9222 pSettings->vdIfCrypto.pfnKeyStoreReturnParameters = i_vdCryptoKeyStoreReturnParameters;
9224 int vrc = VDInterfaceAdd(&pSettings->vdIfCfg.Core,
9226 VDINTERFACETYPE_CONFIG, pSettings,
9227 sizeof(VDINTERFACECONFIG), &pSettings->vdFilterIfaces);
9230 vrc = VDInterfaceAdd(&pSettings->vdIfCrypto.Core,
9232 VDINTERFACETYPE_CRYPTO, pSettings,
9233 sizeof(VDINTERFACECRYPTO), &pSettings->vdFilterIfaces);