GNU bug report logs -
#20908
25.0.50; gnutls-negotiate error "Invalid format operation %u"
Previous Next
Reported by: lo2net <fangtao0901 <at> gmail.com>
Date: Sat, 27 Jun 2015 06:00:07 UTC
Severity: normal
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20908 in the body.
You can then email your comments to 20908 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20908
; Package
emacs
.
(Sat, 27 Jun 2015 06:00:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
lo2net <fangtao0901 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 27 Jun 2015 06:00:08 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
I've got a problem: when using (gnutls-negotiate :verify-error t) to initialize a SSL/TLS
connection , server has an expired certificate cause gnutls-boot signal
an error "Invalid format operation %u", apparently it's not related to
gnutls-error. So digging into the source
code, here is the error signal:
src/gnutls.c:1511
if (verify_error_all
|| !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error)))
{
emacs_gnutls_deinit (proc);
error ("Certificate validation failed %s, verification code %u",
c_hostname, peer_verification);
}
After checking elisp manual and source code, function Fformat(error call
it to format string) does not
support '%u', here should using '%d' instead.
I made a simple patch for this:
[0001-gnutls-boot-fix-error-Invalid-format-operation-u-whe.patch (text/plain, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 27 Jun 2015 08:06:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
lo2net <fangtao0901 <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 27 Jun 2015 08:06:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 20908-done <at> debbugs.gnu.org (full text, mbox):
> From: lo2net <fangtao0901 <at> gmail.com>
> Date: Sat, 27 Jun 2015 11:55:43 +0800
>
> I've got a problem: when using (gnutls-negotiate :verify-error t) to initialize a SSL/TLS
> connection , server has an expired certificate cause gnutls-boot signal
> an error "Invalid format operation %u", apparently it's not related to
> gnutls-error. So digging into the source
> code, here is the error signal:
>
> src/gnutls.c:1511
>
> if (verify_error_all
> || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error)))
> {
> emacs_gnutls_deinit (proc);
> error ("Certificate validation failed %s, verification code %u",
> c_hostname, peer_verification);
> }
>
> After checking elisp manual and source code, function Fformat(error call
> it to format string) does not
> support '%u', here should using '%d' instead.
>
> I made a simple patch for this:
Thanks. I used %x instead of %d in the change I just pushed, because
the peer_verification value is actually a bitwise OR of the various
bits, so displaying it in hex will make its interpretation easier.
With that, I'm marking this bug done.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20908
; Package
emacs
.
(Sat, 27 Jun 2015 12:40:04 GMT)
Full text and
rfc822 format available.
Message #13 received at 20908-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Okay, thanks!
On Sat, Jun 27, 2015 at 4:05 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: lo2net <fangtao0901 <at> gmail.com>
> > Date: Sat, 27 Jun 2015 11:55:43 +0800
> >
> > I've got a problem: when using (gnutls-negotiate :verify-error t) to
> initialize a SSL/TLS
> > connection , server has an expired certificate cause gnutls-boot signal
> > an error "Invalid format operation %u", apparently it's not related to
> > gnutls-error. So digging into the source
> > code, here is the error signal:
> >
> > src/gnutls.c:1511
> >
> > if (verify_error_all
> > || !NILP (Fmember (QCgnutls_bootprop_trustfiles,
> verify_error)))
> > {
> > emacs_gnutls_deinit (proc);
> > error ("Certificate validation failed %s, verification code %u",
> > c_hostname, peer_verification);
> > }
> >
> > After checking elisp manual and source code, function Fformat(error call
> > it to format string) does not
> > support '%u', here should using '%d' instead.
> >
> > I made a simple patch for this:
>
> Thanks. I used %x instead of %d in the change I just pushed, because
> the peer_verification value is actually a bitwise OR of the various
> bits, so displaying it in hex will make its interpretation easier.
>
> With that, I'm marking this bug done.
>
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 26 Jul 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.