Mercurial > trustbridge
comparison ui/certificate.cpp @ 1162:2a1206932f53
(issue107) Comment all TODO's and FIXME's with issues as documented in issue107
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 18 Sep 2014 18:53:11 +0200 |
parents | 9bb9932bb819 |
children | 265583011f24 |
comparison
equal
deleted
inserted
replaced
1161:b67681a61e3e | 1162:2a1206932f53 |
---|---|
140 | 140 |
141 QList<Certificate> Certificate::fromFileName(const QString& file_name) { | 141 QList<Certificate> Certificate::fromFileName(const QString& file_name) { |
142 /* We read the file using Qt to avoid filename encoding problems | 142 /* We read the file using Qt to avoid filename encoding problems |
143 * on Windows */ | 143 * on Windows */ |
144 | 144 |
145 /* TODO change qDebug errors into messageboxes */ | |
146 QFile certificateFile(file_name); | 145 QFile certificateFile(file_name); |
147 QByteArray fileContent; | 146 QByteArray fileContent; |
148 QList<Certificate> retval; | 147 QList<Certificate> retval; |
149 x509_crt chain; | 148 x509_crt chain; |
150 int ret = 0; | 149 int ret = 0; |
171 return retval; | 170 return retval; |
172 } | 171 } |
173 | 172 |
174 if (ret > 0) { | 173 if (ret > 0) { |
175 qDebug() << "Some certificates could not be parsed."; | 174 qDebug() << "Some certificates could not be parsed."; |
176 /* Maybe return here? */ | |
177 } | 175 } |
178 | 176 |
179 x509_crt *iter = &chain; | 177 x509_crt *iter = &chain; |
180 | 178 |
181 while (iter) { | 179 while (iter) { |