From 28229b426fe1dd8d46cf0166aedd55d0cc394faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 27 Nov 2006 11:24:33 +0000 Subject: [PATCH] Return -1 for failure. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19149 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/rsa-imath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/des/rsa-imath.c b/lib/des/rsa-imath.c index 51635e513..d4f3c3eb5 100644 --- a/lib/des/rsa-imath.c +++ b/lib/des/rsa-imath.c @@ -271,7 +271,7 @@ imath_rsa_private_decrypt(int flen, const unsigned char* from, size = RSA_size(rsa); if (flen > size) - return -2; + return -1; mp_int_init(&enc); mp_int_init(&dec); @@ -303,13 +303,13 @@ imath_rsa_private_decrypt(int flen, const unsigned char* from, /* head zero was skipped by mp_int_to_unsigned */ if (*p != 2) - return -3; + return -1; size--; p++; while (size && *p != 0) { size--; p++; } if (size == 0) - return -4; + return -1; size--; p++; memmove(to, p, size);