all messages for Emacs-related lists mirrored at yhetil.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: Sat, 16 Jul 2011 11:27:30 +0100	[thread overview]
Message-ID: <87zkkefrl9.fsf@gmx.li> (raw)
In-Reply-To: <87ei1zpl0x.fsf@ed.ac.uk>

Lars Magne Ingebrigtsen wrote:
> Lawrence Mitchell <wence@gmx.li> writes:

>> With the recent gnutls changes I could no longer send mail with
>> STARTTLS since the smtp server I connect to only advertises a D-H
>> key with 512bits.  This is smaller than the default value gnutls
>> allows and so the connection would be aborted.  This patch adds
>> the ability to set the minimum acceptable size of key, so that I
>> can send email again!

> Thanks; I'll apply your patch.

> However, is there any way to make the gnutls library adjust the size
> downwards automatically if it's too big?

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.

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.

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






  reply	other threads:[~2011-07-16 10:27 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 [this message]
2011-07-16 16:08     ` Lars Magne Ingebrigtsen
2011-11-10 15:21       ` Lawrence Mitchell

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

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

  git send-email \
    --in-reply-to=87zkkefrl9.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.