Changeset 54591 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 2, 2015 7:55:29 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98730
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r54340 r54591 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 664 664 if (pThis->pIfSecKey) 665 665 rc = pThis->pIfSecKey->pfnKeyRelease(pThis->pIfSecKey, pszId); 666 else 667 rc = VERR_NOT_SUPPORTED; 668 669 return rc; 670 } 671 672 static DECLCALLBACK(int) drvvdCryptoKeyStorePasswordRetain(void *pvUser, const char *pszId, const char **ppszPassword) 673 { 674 PVBOXDISK pThis = (PVBOXDISK)pvUser; 675 int rc = VINF_SUCCESS; 676 677 AssertPtr(pThis->pIfSecKey); 678 if (pThis->pIfSecKey) 679 rc = pThis->pIfSecKey->pfnPasswordRetain(pThis->pIfSecKey, pszId, ppszPassword); 680 else 681 rc = VERR_NOT_SUPPORTED; 682 683 return rc; 684 } 685 686 static DECLCALLBACK(int) drvvdCryptoKeyStorePasswordRelease(void *pvUser, const char *pszId) 687 { 688 PVBOXDISK pThis = (PVBOXDISK)pvUser; 689 int rc = VINF_SUCCESS; 690 691 AssertPtr(pThis->pIfSecKey); 692 if (pThis->pIfSecKey) 693 rc = pThis->pIfSecKey->pfnPasswordRelease(pThis->pIfSecKey, pszId); 666 694 else 667 695 rc = VERR_NOT_SUPPORTED; … … 2910 2938 pThis->VDIfCfg.pfnQueryBytes = NULL; 2911 2939 2912 pThis->VDIfCrypto.pfnKeyRetain = drvvdCryptoKeyRetain; 2913 pThis->VDIfCrypto.pfnKeyRelease = drvvdCryptoKeyRelease; 2940 pThis->VDIfCrypto.pfnKeyRetain = drvvdCryptoKeyRetain; 2941 pThis->VDIfCrypto.pfnKeyRelease = drvvdCryptoKeyRelease; 2942 pThis->VDIfCrypto.pfnKeyStorePasswordRetain = drvvdCryptoKeyStorePasswordRetain; 2943 pThis->VDIfCrypto.pfnKeyStorePasswordRelease = drvvdCryptoKeyStorePasswordRelease; 2914 2944 } 2915 2945
Note:
See TracChangeset
for help on using the changeset viewer.