comparison ui/certificatelist.cpp @ 82:1f27d6db5ee3

Polarssl based certificate handling
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 18:04:14 +0000
parents 1dd8e91972a8
children 00a93409e93e
comparison
equal deleted inserted replaced
81:112228bd7e4b 82:1f27d6db5ee3
14 size_t size = 0; 14 size_t size = 0;
15 15
16 mStatus = read_and_verify_list(fileName, &data, &size); 16 mStatus = read_and_verify_list(fileName, &data, &size);
17 17
18 if (!isValid()) { 18 if (!isValid()) {
19 qDebug() << "Invalid list! " << mStatus;
19 return mStatus; 20 return mStatus;
20 } 21 }
21 22
22 // Take the data into the Qt Universe where memory is plentiful 23 // Take the data into the Qt Universe where memory is plentiful
23 // and CPU's are fast :) 24 // and CPU's are fast :)
25 free(data); 26 free(data);
26 data = NULL; 27 data = NULL;
27 28
28 for (int i = 0; i < lines.size(); ++i) { 29 for (int i = 0; i < lines.size(); ++i) {
29 QString curLine = lines[i].trimmed(); 30 QString curLine = lines[i].trimmed();
31 qDebug() << "Reading line: " << curLine;
30 if (curLine.startsWith("F:")) { 32 if (curLine.startsWith("F:")) {
31 if (curLine.right(1) != PARSER_VERSION) { 33 if (curLine.right(1) != PARSER_VERSION) {
32 qDebug() << "Invalid Format Version"; 34 qDebug() << "Invalid Format Version";
33 mStatus = IncompatibleVersion; 35 mStatus = IncompatibleVersion;
34 return mStatus; 36 return mStatus;

http://wald.intevation.org/projects/trustbridge/