summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_const.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-10-08 22:04:05 +0200
committerDr. Stephen Henson <steve@openssl.org>2017-10-12 03:40:30 +0200
commit5f2d9c4d26c923ece6ee04616a2d32a1afc124c8 (patch)
treec8904723a53c13363430c40099ff37cfebd52dd6 /crypto/bn/bn_const.c
parentDocument EVP_PKEY_set1_engine() (diff)
downloadopenssl-5f2d9c4d26c923ece6ee04616a2d32a1afc124c8.tar.xz
openssl-5f2d9c4d26c923ece6ee04616a2d32a1afc124c8.zip
Support constant BN for DH parameters
If BN_FLG_STATIC_DATA is set don't cleanse a->d as it will reside in read only memory. If BN_FLG_MALLOCED is not set don't modify the BIGNUM at all. This change applies to BN_clear_free() and BN_free(). Now the BIGNUM structure is opaque applications cannot create a BIGNUM structure without BN_FLG_MALLOCED being set so they are unaffected. Update internal DH routines so they only copy pointers for read only parameters. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4485)
Diffstat (limited to 'crypto/bn/bn_const.c')
0 files changed, 0 insertions, 0 deletions