diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-12-02 03:16:56 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-12-02 03:16:56 +0000 |
commit | 2ae1ea3788206c8f79bc9f4d29eac56352bf3ff6 (patch) | |
tree | d05422b3acd639ff7cb1c132ea9000e51e991d39 /crypto/bn/bn.h | |
parent | 34066d741a7d24bb73931197d72a7264827325f4 (diff) |
BN_FLG_FREE is of extremely dubious usefulness, and is only referred to
once in the source (where it is set for the benefit of no other code
whatsoever). I've deprecated the declaration in the header and likewise
made the use of the flag conditional in bn_lib.c. Note, this change also
NULLs the 'd' pointer in a BIGNUM when it is reset but not deallocated.
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r-- | crypto/bn/bn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index 5346a353ab..f58d5f55a0 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -254,7 +254,9 @@ extern "C" { #define BN_FLG_MALLOCED 0x01 #define BN_FLG_STATIC_DATA 0x02 +#ifndef OPENSSL_NO_DEPRECATED #define BN_FLG_FREE 0x8000 /* used for debuging */ +#endif #define BN_set_flags(b,n) ((b)->flags|=(n)) #define BN_get_flags(b,n) ((b)->flags&(n)) |