Build fixes
Various build fixes, mostly uncovered by clang's unused-const-variable and unused-function errors. Reviewed-by: Kurt Roeckx <kurt@openssl.org> (cherry picked from commit 0e1c318ece3c82e96ae95a34a1badf58198d6b28)
This commit is contained in:
parent
b3147fcbe6
commit
7e9d42ce97
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
#include "ec_lcl.h"
|
#include "ec_lcl.h"
|
||||||
|
|
||||||
static const char EC_version[] = "EC" OPENSSL_VERSION_PTEXT;
|
const char EC_version[] = "EC" OPENSSL_VERSION_PTEXT;
|
||||||
|
|
||||||
|
|
||||||
/* functions for EC_GROUP objects */
|
/* functions for EC_GROUP objects */
|
||||||
|
@ -113,7 +113,6 @@ typedef u64 smallfelem[NLIMBS];
|
|||||||
|
|
||||||
/* This is the value of the prime as four 64-bit words, little-endian. */
|
/* This is the value of the prime as four 64-bit words, little-endian. */
|
||||||
static const u64 kPrime[4] = { 0xfffffffffffffffful, 0xffffffff, 0, 0xffffffff00000001ul };
|
static const u64 kPrime[4] = { 0xfffffffffffffffful, 0xffffffff, 0, 0xffffffff00000001ul };
|
||||||
static const limb bottom32bits = 0xffffffff;
|
|
||||||
static const u64 bottom63bits = 0x7ffffffffffffffful;
|
static const u64 bottom63bits = 0x7ffffffffffffffful;
|
||||||
|
|
||||||
/* bin32_to_felem takes a little-endian byte array and converts it into felem
|
/* bin32_to_felem takes a little-endian byte array and converts it into felem
|
||||||
|
@ -1366,7 +1366,7 @@ static const struct nistp_test_params nistp_tests_params[] =
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
void nistp_single_test(const struct nistp_test_params *test)
|
static void nistp_single_test(const struct nistp_test_params *test)
|
||||||
{
|
{
|
||||||
BN_CTX *ctx;
|
BN_CTX *ctx;
|
||||||
BIGNUM *p, *a, *b, *x, *y, *n, *m, *order;
|
BIGNUM *p, *a, *b, *x, *y, *n, *m, *order;
|
||||||
@ -1469,7 +1469,7 @@ void nistp_single_test(const struct nistp_test_params *test)
|
|||||||
BN_CTX_free(ctx);
|
BN_CTX_free(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nistp_tests()
|
static void nistp_tests()
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
|
@ -114,9 +114,6 @@ static const ENGINE_CMD_DEFN dynamic_cmd_defns[] = {
|
|||||||
ENGINE_CMD_FLAG_NO_INPUT},
|
ENGINE_CMD_FLAG_NO_INPUT},
|
||||||
{0, NULL, NULL, 0}
|
{0, NULL, NULL, 0}
|
||||||
};
|
};
|
||||||
static const ENGINE_CMD_DEFN dynamic_cmd_defns_empty[] = {
|
|
||||||
{0, NULL, NULL, 0}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Loading code stores state inside the ENGINE structure via the "ex_data"
|
/* Loading code stores state inside the ENGINE structure via the "ex_data"
|
||||||
* element. We load all our state into a single structure and use that as a
|
* element. We load all our state into a single structure and use that as a
|
||||||
|
@ -384,6 +384,7 @@ padlock_available(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_AES
|
#ifndef OPENSSL_NO_AES
|
||||||
|
#ifndef AES_ASM
|
||||||
/* Our own htonl()/ntohl() */
|
/* Our own htonl()/ntohl() */
|
||||||
static inline void
|
static inline void
|
||||||
padlock_bswapl(AES_KEY *ks)
|
padlock_bswapl(AES_KEY *ks)
|
||||||
@ -397,6 +398,7 @@ padlock_bswapl(AES_KEY *ks)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Force key reload from memory to the CPU microcode.
|
/* Force key reload from memory to the CPU microcode.
|
||||||
Loading EFLAGS from the stack clears EFLAGS[30]
|
Loading EFLAGS from the stack clears EFLAGS[30]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user