If DH is disabled, don't define the DH functions.
Notified by Kim Hellan <KHE@kmd.dk>
This commit is contained in:
parent
8be4e173e8
commit
6d9116f83d
@ -109,11 +109,13 @@ static int hwcrhk_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa);
|
|||||||
static int hwcrhk_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
static int hwcrhk_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_DH
|
||||||
/* DH stuff */
|
/* DH stuff */
|
||||||
/* This function is alised to mod_exp (with the DH and mont dropped). */
|
/* This function is alised to mod_exp (with the DH and mont dropped). */
|
||||||
static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
|
static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
|
||||||
const BIGNUM *a, const BIGNUM *p,
|
const BIGNUM *a, const BIGNUM *p,
|
||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* RAND stuff */
|
/* RAND stuff */
|
||||||
static int hwcrhk_rand_bytes(unsigned char *buf, int num);
|
static int hwcrhk_rand_bytes(unsigned char *buf, int num);
|
||||||
@ -1057,6 +1059,7 @@ static int hwcrhk_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
|||||||
return hwcrhk_mod_exp(r, a, p, m, ctx);
|
return hwcrhk_mod_exp(r, a, p, m, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_DH
|
||||||
/* This function is aliased to mod_exp (with the dh and mont dropped). */
|
/* This function is aliased to mod_exp (with the dh and mont dropped). */
|
||||||
static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
|
static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
|
||||||
const BIGNUM *a, const BIGNUM *p,
|
const BIGNUM *a, const BIGNUM *p,
|
||||||
@ -1064,6 +1067,7 @@ static int hwcrhk_mod_exp_dh(const DH *dh, BIGNUM *r,
|
|||||||
{
|
{
|
||||||
return hwcrhk_mod_exp(r, a, p, m, ctx);
|
return hwcrhk_mod_exp(r, a, p, m, ctx);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Random bytes are good */
|
/* Random bytes are good */
|
||||||
static int hwcrhk_rand_bytes(unsigned char *buf, int num)
|
static int hwcrhk_rand_bytes(unsigned char *buf, int num)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user