This is a revert of my previous commit to "improve" the declaration of

constant BIGNUMs. It turns out that this trips up different but equally
useful compiler warnings to -Wcast-qual, and so wasn't worth the ugliness
it created. (Thanks to Ulf for the forehead-slap.)
This commit is contained in:
Geoff Thorpe
2003-11-05 19:30:29 +00:00
parent 078dd1a0f9
commit 0ef85c7f45
3 changed files with 15 additions and 45 deletions

View File

@@ -887,11 +887,3 @@ int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b,
}
return bn_cmp_words(a,b,cl);
}
/* See the comments surrounding BIGNUM_C in bn.h */
#ifdef BN_DEBUG
const BIGNUM *BIGNUM_CONST(const BIGNUM_C *bn)
{
return (const BIGNUM *)bn;
}
#endif