diff options
author | Richard Levitte <levitte@openssl.org> | 2015-06-23 01:55:46 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-06-23 02:59:47 +0200 |
commit | ed45f3c24212f612a3d029760fa5fa7dc0907074 (patch) | |
tree | fc19281918beef78ebbd929322b4a82524e4af9b /crypto/bn/rsaz_exp.c | |
parent | cc3f3fc2b1c94d65824ab8d69595b6d89b17cf8d (diff) |
Rearrange rsaz
A small rearrangement so the inclusion of rsaz_exp.h would be
unconditional, but what that header defines becomes conditional.
This solves the weirdness where rsaz_exp.h gets in and out of the
dependency list for bn_exp.c, depending on the present architecture.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bn/rsaz_exp.c')
-rw-r--r-- | crypto/bn/rsaz_exp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/bn/rsaz_exp.c b/crypto/bn/rsaz_exp.c index a486b154c2..c54c6feb51 100644 --- a/crypto/bn/rsaz_exp.c +++ b/crypto/bn/rsaz_exp.c @@ -42,6 +42,8 @@ #include "rsaz_exp.h" +#ifdef RSAZ_ENABLED + /* * See crypto/bn/asm/rsaz-avx2.pl for further details. */ @@ -334,3 +336,11 @@ void RSAZ_512_mod_exp(BN_ULONG result[8], OPENSSL_cleanse(storage, sizeof(storage)); } + +#else + +# if defined(PEDANTIC) || defined(__DECC) || defined(__clang__) +static void *dummy = &dummy; +# endif + +#endif |