libtommath: protect functions by tommath_class macros
libtommath protects the inclusion of functions by wrapping their declarations by CPP #ifdef tests and defining the matching macros within libtommath_class.h. Add missing macros: BN_MP_FIND_PRIME_C BN_MP_ISPRIME_C Change-Id: Ic577300114f8e88d7a3af3d9f717a249d57f03b1
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Love Hornquist Astrand <lha@h5l.org>
|
||||
*/
|
||||
#include <tommath.h>
|
||||
|
||||
#ifdef BN_MP_FIND_PRIME_C
|
||||
int mp_find_prime(mp_int *a)
|
||||
{
|
||||
int res;
|
||||
@@ -24,3 +24,4 @@ int mp_find_prime(mp_int *a)
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user