This is the least unacceptable way I've found for declaring the bignum data
authorGeoff Thorpe <geoff@openssl.org>
Tue, 4 Nov 2003 00:29:09 +0000 (00:29 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Tue, 4 Nov 2003 00:29:09 +0000 (00:29 +0000)
commitc465e7941ec785f2ce53638b351a21d6a49fe1a0
treeb55fe5ccc4a521d1d117239f944b1325840e3fb8
parent933398f1102ba99d64f901987c5e8fe340a2c331
This is the least unacceptable way I've found for declaring the bignum data
and structures as constant without having to cast away const at any point.
There is still plenty of other code that makes gcc's "-Wcast-qual" unhappy,
but crypto/bn/ is now ok. Purists are welcome to suggest alternatives.
crypto/bn/bn.h
crypto/bn/bn_lib.c
crypto/bn/bn_nist.c