aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_lib.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-04-18 12:23:12 +0200
committerKurt Roeckx <kurt@roeckx.be>2015-06-09 00:46:59 +0200
commit26c79d5641dcc85c666e0594c11663c00ec6c195 (patch)
tree1b7c783623b0607d4138947c0b6aa6f2d54f2a49 /crypto/dh/dh_lib.c
parent0fb9990480919163cc375a2b6c0df1d8d901a77b (diff)
downloadopenssl-26c79d5641dcc85c666e0594c11663c00ec6c195.tar.gz
Properly check certificate in case of export ciphers.
Reviewed-by: Matt Caswell <matt@openssl.org> MR #588
Diffstat (limited to 'crypto/dh/dh_lib.c')
-rw-r--r--crypto/dh/dh_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c
index 4a37adc9f8..cce2514bbf 100644
--- a/crypto/dh/dh_lib.c
+++ b/crypto/dh/dh_lib.c
@@ -237,6 +237,11 @@ void *DH_get_ex_data(DH *d, int idx)
return (CRYPTO_get_ex_data(&d->ex_data, idx));
}
+int DH_bits(const DH *dh)
+{
+ return BN_num_bits(dh->p);
+}
+
int DH_size(const DH *dh)
{
return (BN_num_bytes(dh->p));