提交 ba8fb521 编写于 作者: R Richard Levitte

Certain flag macros were tested with #if instead if #ifdef...

上级 f6f99618
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
* o ... (for OpenSSL) * o ... (for OpenSSL)
*/ */
#if HAVE_LONG_DOUBLE #ifdef HAVE_LONG_DOUBLE
#define LDOUBLE long double #define LDOUBLE long double
#else #else
#define LDOUBLE double #define LDOUBLE double
......
...@@ -342,7 +342,7 @@ void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule) ...@@ -342,7 +342,7 @@ void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule)
register DES_LONG *k; register DES_LONG *k;
register int i; register int i;
#if OPENBSD_DEV_CRYPTO #ifdef OPENBSD_DEV_CRYPTO
memcpy(schedule->key,key,sizeof schedule->key); memcpy(schedule->key,key,sizeof schedule->key);
schedule->session=NULL; schedule->session=NULL;
#endif #endif
......
...@@ -93,7 +93,7 @@ static int ubsec_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa); ...@@ -93,7 +93,7 @@ static int ubsec_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
static int ubsec_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, static int ubsec_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_DSA #ifndef OPENSSL_NO_DSA
#if NOT_USED #ifdef NOT_USED
static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
BN_CTX *ctx, BN_MONT_CTX *in_mont); BN_CTX *ctx, BN_MONT_CTX *in_mont);
...@@ -113,7 +113,7 @@ static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh) ...@@ -113,7 +113,7 @@ static int ubsec_dh_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh)
static int ubsec_dh_generate_key(DH *dh); static int ubsec_dh_generate_key(DH *dh);
#endif #endif
#if NOT_USED #ifdef NOT_USED
static int ubsec_rand_bytes(unsigned char *buf, int num); static int ubsec_rand_bytes(unsigned char *buf, int num);
static int ubsec_rand_status(void); static int ubsec_rand_status(void);
#endif #endif
...@@ -663,7 +663,7 @@ static int ubsec_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, ...@@ -663,7 +663,7 @@ static int ubsec_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
} }
#ifndef OPENSSL_NO_DSA #ifndef OPENSSL_NO_DSA
#if NOT_USED #ifdef NOT_USED
static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, static int ubsec_dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1,
BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BIGNUM *p1, BIGNUM *a2, BIGNUM *p2, BIGNUM *m,
BN_CTX *ctx, BN_MONT_CTX *in_mont) BN_CTX *ctx, BN_MONT_CTX *in_mont)
...@@ -987,7 +987,7 @@ err: ...@@ -987,7 +987,7 @@ err:
} }
#endif #endif
#if NOT_USED #ifdef NOT_USED
static int ubsec_rand_bytes(unsigned char * buf, static int ubsec_rand_bytes(unsigned char * buf,
int num) int num)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册