Mercurial > trustbridge
changeset 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 | 6e7ef7e95031 |
files | common/listutil.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
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; } }