summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/headers/tomcrypt_argchk.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-20 09:54:41 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-08-20 09:54:41 +0200
commit88d38939bcf937e62b32f39d006d4e86ca89083c (patch)
treee662eb0892457730e4d0abf461f82d9c8d47419a /libtomcrypt/headers/tomcrypt_argchk.h
parent5507ea6f51bd227ce4af661d550ad4d4de80674b (diff)
downloadcryptodev-linux-88d38939bcf937e62b32f39d006d4e86ca89083c.tar.gz
cryptodev-linux-88d38939bcf937e62b32f39d006d4e86ca89083c.tar.xz
cryptodev-linux-88d38939bcf937e62b32f39d006d4e86ca89083c.zip
Increased RSA size to 8192. Return error on wrong arguments.
Diffstat (limited to 'libtomcrypt/headers/tomcrypt_argchk.h')
-rw-r--r--libtomcrypt/headers/tomcrypt_argchk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtomcrypt/headers/tomcrypt_argchk.h b/libtomcrypt/headers/tomcrypt_argchk.h
index 1b94434..1ba08c7 100644
--- a/libtomcrypt/headers/tomcrypt_argchk.h
+++ b/libtomcrypt/headers/tomcrypt_argchk.h
@@ -25,8 +25,8 @@ void crypt_argchk(char *v, char *s, int d);
#elif ARGTYPE == 4
-#define LTC_ARGCHK(x) if (!(x)) return CRYPT_INVALID_ARG;
-#define LTC_ARGCHKVD(x) if (!(x)) return;
+#define LTC_ARGCHK(x) if (!(x)) { printk( "\nwarning: ARGCHK failed at %s:%d\n", __FILE__, __LINE__); return CRYPT_INVALID_ARG; }
+#define LTC_ARGCHKVD(x) if (!(x)) { printk( "\nwarning: ARGCHK failed at %s:%d\n", __FILE__, __LINE__); return; }
#endif