Changeset 26149 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Feb 2, 2010 2:26:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibCredentials.cpp
r26148 r26149 92 92 * 93 93 * @returns IPRT status value 94 * @param pszUser Receives pointer of the user name string to destroy. 94 * @param pszUser Receives pointer of the user name string to destroy. 95 95 * Optional. 96 * @param pszPassword Receives pointer of the password string to destroy. 96 * @param pszPassword Receives pointer of the password string to destroy. 97 97 * Optional. 98 98 * @param pszDomain Receives pointer of allocated domain name string. … … 102 102 VBGLR3DECL(void) VbglR3CredentialsDestroy(char *pszUser, char *pszPassword, char *pszDomain, uint8_t u8NumPasses) 103 103 { 104 105 106 107 108 109 /** @todo add some for-loop with randomized content instead of 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 104 size_t l; 105 106 if (u8NumPasses == 0) /* We at least want to have one wipe pass. */ 107 u8NumPasses = 1; 108 109 /** @todo add some for-loop with randomized content instead of 110 * zero'ing out the string only one time. Use u8NumPasses for that. */ 111 if (pszUser) 112 { 113 l = strlen(pszUser); 114 RT_BZERO(pszUser, l); 115 RTStrFree(pszUser); 116 } 117 if (pszPassword) 118 { 119 l = strlen(pszPassword); 120 RT_BZERO(pszPassword, l); 121 RTStrFree(pszPassword); 122 } 123 if (pszUser) 124 { 125 l = strlen(pszDomain); 126 RT_BZERO(pszDomain, l); 127 RTStrFree(pszDomain); 128 } 129 129 }
Note:
See TracChangeset
for help on using the changeset viewer.