Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
40:5cb1eb928253 | 41:7055a79abe02 |
---|---|
214 return Valid; | 214 return Valid; |
215 } | 215 } |
216 if (ret == -1) { | 216 if (ret == -1) { |
217 /* our error */ | 217 /* our error */ |
218 retval = InvalidFormat; | 218 retval = InvalidFormat; |
219 } else if (ret == POLARSSL_ERR_RSA_VERIFY_FAILED) { | |
220 retval = InvalidSignature; | |
221 } else { | 219 } else { |
222 return UnknownError; | 220 return InvalidSignature; |
223 } | 221 } |
224 } | 222 } |
225 | 223 |
226 if (retval != Valid && *data) { | 224 if (retval != Valid && *data) { |
227 free(*data); | 225 free(*data); |