Cache and protect MasterKey - speeds up saving a lot

Added option to save database after every change
Improved license information

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@226 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-09-28 16:33:46 +00:00
parent 5fe4a5d2c3
commit 598d204716
16 changed files with 225 additions and 59 deletions

View File

@@ -224,3 +224,13 @@ bool lockPage(void* addr, int len){
return false;
#endif
}
bool unlockPage(void* addr, int len){
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
return (munlock(addr, len)==0);
#elif defined(Q_WS_WIN)
return VirtualUnlock(addr, len);
#else
return false;
#endif
}