unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: nyc4bos@aol.com
To: Glenn Morris <rgm@gnu.org>
Cc: 11205@debbugs.gnu.org
Subject: bug#11205: 24.0.95; starttls-use-gnutls no longer being honored
Date: Mon, 09 Apr 2012 23:03:08 -0400	[thread overview]
Message-ID: <847gxomgpf.fsf@aol.com> (raw)
In-Reply-To: <p2d37h1zrw.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 08 Apr 2012 21:04:35 -0400")

Glenn Morris <rgm@gnu.org> writes:

> nyc4bos@aol.com wrote:
>
>> How do I get Gnus (and presumably other Emacs networked programs) to
>> not use GnuTLS when `starttls-use-gnutls' is nil?
>
> etc/NEWS
>
>   *** SMTPmail now uses encrypted connections (via STARTTLS) by default
>   if the mail server supports them.  This uses either built-in GnuTLS
>   support, or the starttls.el library.  Customize `smtpmail-stream-type'
>   to change this.

As my test of an Emacs networked-using package like Gnus, I set my Gnus
variables to ONLY use NNTP, not SMTP (nor any other mail-related
protocols like IMAP)

My Gnus variable are:

(setq gnus-select-method '(nntp "news" 
				(nntp-address "news.gmane.org")

Here is the *Message* buffer demostrating the results:

gnutls.c: [1] (Emacs) GnuTLS library loaded: libgnutls-28.dll
gnutls.c: [1] (Emacs) allocating credentials
gnutls.c: [1] (Emacs) gnutls callbacks
gnutls.c: [1] (Emacs) gnutls_init
gnutls.c: [1] (Emacs) got non-default priority string: NORMAL
gnutls.c: [1] (Emacs) setting the priority string
news.gmane.org certificate could not be verified.
gnutls.c: [1] (Emacs) certificate signer was not found: news.gmane.org
gnutls.c: [1] (Emacs) certificate validation failed: news.gmane.org


news.gmane.org is the newserver (NNTP).

Thus the setting of `smtpmail-stream-type' doesn't apply.

It applies only when SENDING mail (SMTP) when smtpmail.el is loaded
and used.

At least, I don't believe it is loaded/used until I compose a mail or
news message and (perhaps) message.el or something else loads smtpmail.el.

I don't believe customizing `smtpmail-stream-type` helps me in this
situation (not using built-in GnuTLS) unless I'm sending mail or news.

>
>> [Presumably, I can make the GnuTLS DLLs unavailable temporarily to
>> achive this, but setting the variable `starttls-use-gnutls' to nil
>> used to accomplish this, i.e. this is a regression.]
>
> No previous release of Emacs has had built-in GnuTLS support.

That's true, but setting `starttls-use-gnutls' to nil prevented
(external) GnuTLS (gnutls-cli) from being used in released versions
of Emacs.

Therefore, I believe that this is a regression with regards to Emacs 23.x
since GnuTLS (whether built-in or external) is being used when
'starttls-use-gnutls' is nil.

I believe the value of `starttls-program' (openssl, for one exmple of
a user setting this value) should be used instead, regardless of
built-in GnuTLS being compiled in (and its required DLLs being
available), as it used to be in Emacs 23.x.

Thanks.









  reply	other threads:[~2012-04-10  3:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09  0:54 bug#11205: 24.0.95; starttls-use-gnutls no longer being honored nyc4bos
2012-04-09  1:04 ` Glenn Morris
2012-04-10  3:03   ` nyc4bos [this message]
2012-04-10 17:43     ` Glenn Morris
2012-04-10 17:54       ` Lars Magne Ingebrigtsen
2012-04-20 20:07         ` nyc4bos
2012-05-13 19:21           ` Lars Magne Ingebrigtsen
2012-06-10  1:05             ` nyc4bos

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=847gxomgpf.fsf@aol.com \
    --to=nyc4bos@aol.com \
    --cc=11205@debbugs.gnu.org \
    --cc=rgm@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).