[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9036: [PATCH] gnutls: Add option to set minimum acceptable Diffie-He
From: |
Lars Magne Ingebrigtsen |
Subject: |
bug#9036: [PATCH] gnutls: Add option to set minimum acceptable Diffie-Hellman key size |
Date: |
Sat, 16 Jul 2011 18:08:36 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Lawrence Mitchell <wence@gmx.li> writes:
> The handshake returns GNUTLS_E_DH_PRIME_UNACCEPTABLE if the
> number of server prime bits is too low. I don't know how to
> query the size of the server prime. Maybe
> gnutls_dh_get_prime_bits? I'm wary to automatically adjust
> downwards.
I think adjusting it downwards automatically until you reach a
(user-definable) absolute lower limit would be fine. But I have no idea
what an acceptable default lower limit would be, or what the impact on
security this would have.
> A better error message (pointing at the existance of
> gnutls-min-prime-bits) in the case of this failure mode would
> probably be good though. I'll try and cook up a patch in the
> next few days.
Great!
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/