Added pronounceable password generator
Improved RNG seeding on Windows Updated AES implementation Removed SHA1 implementation, replaced by QCryptographicHash Replaced ARC4 implementation by the one from KeePass 1.11 Some cleanup git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@216 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -20,6 +20,12 @@
|
||||
#include <QProcess>
|
||||
#include <QDesktopServices>
|
||||
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
|
||||
#include <sys/mman.h>
|
||||
#elif defined(Q_WS_WIN)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
void createBanner(QPixmap* Pixmap,const QPixmap* IconAlpha,const QString& Text,int Width){
|
||||
createBanner(Pixmap,IconAlpha,Text,Width,config->bannerColor1(),config->bannerColor2(),config->bannerTextColor());
|
||||
}
|
||||
@@ -209,4 +215,12 @@ bool createKeyFile(const QString& filename,QString* error,int length, bool Hex){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool lockPage(void* addr, int len){
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
|
||||
return (mlock(addr, len)==0);
|
||||
#elif defined(Q_WS_WIN)
|
||||
return VirtualLock(addr, len);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user