From 363f157f5017a26e09c5b660974d19b3ea7f8771 Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 23 Sep 2013 13:37:04 -0700 Subject: [PATCH] fix sniffer build w/o fastmath --- ctaocrypt/src/integer.c | 2 +- cyassl/ctaocrypt/integer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctaocrypt/src/integer.c b/ctaocrypt/src/integer.c index 2d79da593..d3cb044b8 100644 --- a/ctaocrypt/src/integer.c +++ b/ctaocrypt/src/integer.c @@ -3765,7 +3765,7 @@ int mp_sqrmod (mp_int * a, mp_int * b, mp_int * c) #endif -#if defined(HAVE_ECC) || !defined(NO_PWDBASED) +#if defined(HAVE_ECC) || !defined(NO_PWDBASED) || defined(CYASSL_SNIFFER) /* single digit addition */ int mp_add_d (mp_int* a, mp_digit b, mp_int* c) diff --git a/cyassl/ctaocrypt/integer.h b/cyassl/ctaocrypt/integer.h index 2c4d80a7f..2f7ab84fa 100644 --- a/cyassl/ctaocrypt/integer.h +++ b/cyassl/ctaocrypt/integer.h @@ -305,7 +305,7 @@ int mp_init_multi(mp_int* a, mp_int* b, mp_int* c, mp_int* d, mp_int* e, int mp_lcm (mp_int * a, mp_int * b, mp_int * c); #endif -#if defined(HAVE_ECC) || !defined(NO_PWDBASED) +#if defined(HAVE_ECC) || !defined(NO_PWDBASED) || defined(CYASSL_SNIFFER) int mp_sub_d (mp_int * a, mp_digit b, mp_int * c); #endif