diff common/listutil.c @ 41:7055a79abe02

Treat every polarssl error as invalid signature
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Mar 2014 09:48:02 +0000
parents 5cb1eb928253
children 3f6378647371
line wrap: on
line diff
--- a/common/listutil.c	Fri Mar 14 09:47:42 2014 +0000
+++ b/common/listutil.c	Fri Mar 14 09:48:02 2014 +0000
@@ -216,10 +216,8 @@
         if (ret == -1) {
             /* our error */
             retval = InvalidFormat;
-        } else if (ret == POLARSSL_ERR_RSA_VERIFY_FAILED) {
-            retval = InvalidSignature;
         } else {
-            return UnknownError;
+            return InvalidSignature;
         }
     }
 

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