comparison ui/sslhelp.cpp @ 452:f8b480b08532

Factor out polarssl error handling and start new sslhelp file
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 23 Apr 2014 10:33:40 +0000
parents
children 2e100d3e414a
comparison
equal deleted inserted replaced
451:94613c91a3d4 452:f8b480b08532
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=2)
5 * and comes with ABSOLUTELY NO WARRANTY!
6 * See LICENSE.txt for details.
7 */
8 #include "sslhelp.h"
9
10 QString getPolarSSLErrorMsg(int ret)
11 {
12 char errbuf[1020];
13 polarssl_strerror(ret, errbuf, 1020);
14 errbuf[1020] = '\0'; /* Just to be sure */
15 return QString::fromLatin1(errbuf);
16 }

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