unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lawrence Mitchell <wence@gmx.li>
To: 9036@debbugs.gnu.org
Subject: bug#9036: [PATCH] gnutls: Add option to set minimum acceptable Diffie-Hellman key size
Date: Thu, 10 Nov 2011 15:21:54 +0000	[thread overview]
Message-ID: <87ty6c6m0d.fsf@gmx.li> (raw)
In-Reply-To: <87ei1zpl0x.fsf@ed.ac.uk>

Lars Magne Ingebrigtsen wrote:
> 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!

So it turns out this wasn't a few days.

And I couldn't figure out a nice way to fix things up properly.
So no patch sorry :(.  However, I think the original bug can be
closed, because there is now an option to set the DH key size.

Lawrence
-- 
Lawrence Mitchell <wence@gmx.li>






      reply	other threads:[~2011-11-10 15:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-09 14:44 bug#9036: [PATCH] gnutls: Add option to set minimum acceptable Diffie-Hellman key size Lawrence Mitchell
2011-07-15 16:47 ` Ted Zlatanov
2011-07-15 17:34 ` Lars Magne Ingebrigtsen
2011-07-16 10:27   ` Lawrence Mitchell
2011-07-16 16:08     ` Lars Magne Ingebrigtsen
2011-11-10 15:21       ` Lawrence Mitchell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty6c6m0d.fsf@gmx.li \
    --to=wence@gmx.li \
    --cc=9036@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).