comparison ui/mainwindow.cpp @ 31:37fc66967517

Implement signature verification wiht polarssl
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 13 Mar 2014 18:12:16 +0000
parents 62cd56cea09b
children c6125d73faf4
comparison
equal deleted inserted replaced
30:381558ff6f26 31:37fc66967517
71 if (!listFileName.isEmpty()) { 71 if (!listFileName.isEmpty()) {
72 const char *cFileName = listFileName.toLocal8Bit().constData(); 72 const char *cFileName = listFileName.toLocal8Bit().constData();
73 char *data = NULL; 73 char *data = NULL;
74 size_t size; 74 size_t size;
75 75
76 if (readAndVerifyList(cFileName, &data, &size) != Valid) { 76 if (read_and_verify_list(cFileName, &data, &size) != Valid) {
77 // Probably a bug when Qt fileName is encoded and cFileName 77 // Probably a bug when Qt fileName is encoded and cFileName
78 // fails because of this. This needs a unit test! 78 // fails because of this. This needs a unit test!
79 // Maybe check that the file is in our data directory 79 // Maybe check that the file is in our data directory
80 QFile::remove(listFileName); 80 QFile::remove(listFileName);
81 mSettings.remove("List/available"); 81 mSettings.remove("List/available");

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