Re: Commit in Emacs trunk breaks Wanderlust

Kazuhiro Ito <[email protected]> Sun, 03 Feb 2019 11:00:41 +0900
Newsgroups gmane.mail.wanderlust.general
Message-ID <86r2cpaawm.wl--xmue__3970.08927991322$1549159332$gmane$org@d1.dion.ne.jp>
> > > the following commit in Emacs trunk breaks Wanderlust:
> > > 
> > > commit f3f9a3582ef2081e96d12fb92ac190ffe9c1c431
> > > Author: Robert Pluim
> > > Date:   Thu Jan 24 11:34:34 2019 +0100
> > > 
> > >     Check for client certificates when using GnuTLS
> > >     
> > > I can no longer connect to IMAP4 servers:
> > > 
> > > Debugger entered--Lisp error: (void-function network-stream-certificate)
> > >   signal(void-function (network-stream-certificate))
> > 
> > Not reproducible for me.  network-stream-certificate is actually
> > defined in network-stream.el.  Please check your build and
> > installation.
> 
> Yes, but network-stream.el is part of Emacs. Gnus and eww still works
> for encrypted connections (imaps, nntps, https). 

It is Emacs's bug.  Start emacs with -Q and try below code.

(progn
  (require 'gnutls)
  (open-gnutls-stream "test" "test" "imap.gmail.com" 993))

I think gnutls.el needs autoload definition for
network-stream-certificate function.

> And I've just found out that Wanderlust works if I rebuild Emacs with
> "--disable-gnutls" and use gnutls-cli instead. Maybe this is the reason
> why you couldn't reproduce the problem? 

I use built-in GnuTLS library for all ecnrypted connection from
Wanderlust and can access IMAPS without any problem.

-- 
Kazuhiro Ito