diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-06-20 04:16:12 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-06-20 04:16:12 +0000 |
commit | d459e39012e9912e5e827338741e7894e7b2a876 (patch) | |
tree | 8972d36383351f6d5878c0c124f1410e0a807808 /crypto/bn/bn.h | |
parent | 340f5856ec089c0a61f95795b21c1445292748d1 (diff) |
Tidy up, including;
- Remove unused and unuseful debug cruft.
- Remove unnecessary 'top' fudging from BN_copy().
- Fix a potential memory leak and simplify the expansion logic in
BN_bin2bn().
Submitted by: Nils Larsch
Reviewed by: Geoff Thorpe
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r-- | crypto/bn/bn.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index 3477a13fff..cbe3153e9e 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -726,16 +726,6 @@ BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d); BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int num); BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int num); -#ifdef BN_DEBUG -void bn_dump1(FILE *o, const char *a, const BN_ULONG *b,int n); -# define bn_print(a) {fprintf(stderr, #a "="); BN_print_fp(stderr,a); \ - fprintf(stderr,"\n");} -# define bn_dump(a,n) bn_dump1(stderr,#a,a,n); -#else -# define bn_print(a) -# define bn_dump(a,b) -#endif - int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom); /* BEGIN ERROR CODES */ |