Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Jun 2015 17:47:04 +0300
From: Shinnok <admin@...nnok.com>
To: "john-dev@...ts.openwall.com" <john-dev@...ts.openwall.com>
Subject: Re: [Johnny] Task 1.6.1 Multiple cracking session management



> On 09 Jun 2015, at 16:54, Mathieu Laprise <mathlaprise@...il.com> wrote:
> 
>> On Tue, Jun 9, 2015 at 8:59 AM, Shinnok <admin@...nnok.com> wrote:
>> We can force direct qsettings to an any .INI file format. Aren't we already doing that for the .johnny file? If yes then it's just a matter of switching to a single practice.
> No, we aren't using anything related to QSettings for the .johnny files at the moment. Johnny has used .johnny file to save the last session description. At the moment, it only contains the files and the format(it is used to restore the label --format=XXX in the progress bar). It reads and writes the files line by line similar to this : 
> while(!file.atdEnd()) {
> readLine();
> if(line.contains("FORMAT=") {
> //do XXX
> }
> This hasn't changed since 2012 except that before the TODOs task, it was assuming that first line is file and second line is format. I added the headers.
> When I implemented session history, I kept the same logic so each session has its own file .johnny to save its stuff.
> 
> If you want, we can changed that to read/save to .ini while using qsettings stuff. But do we want to use groups http://doc.qt.io/qt-5/qsettings.html#beginGroup, and have one file for information about all sessions or one file per session like now ?
> 

We should be using QSettings with ini format for this. Single file for now unless we foresee troubles with that.

Shinnok 
[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ