Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113593 - unable to send s/mime signed emails with mutt
Summary: unable to send s/mime signed emails with mutt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 14:57 UTC by qwerty
Modified: 2005-11-26 03:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qwerty 2005-11-25 14:57:41 UTC
start mutt -> new mail -> sign with s/mime -> sign as -> chose key id -> key id
is read but last digit is truncated , example:
should be: 6499ffc7.0
is: 6499ffc7.
-> no trailng zero -> openssl cant find the key -> signing fails -> s/mime is
unusable from version 1.5.9 to latest 1.5.11 :(

fixed in latest mutt, cvs:

2005-10-05 19:20:22 Jeff Ito <jeffi@...> (brendan)

* smime.c: S/MIME key selection truncates the last character of
the selected key for no apparent reason. Removed until someone
can justify it. Closes: #2081.

http://dev.mutt.org/cgi-bin/viewcvs.cgi/mutt/smime.c?rev=3.44&view=markup

patch:

===================================================================
RCS file: /var/lib/cvsd/cvsroots/mutt/smime.c,v
retrieving revision 3.43
retrieving revision 3.44
diff -u -r3.43 -r3.44
--- mutt/smime.c	2005/09/17 20:46:11	3.43
+++ mutt/smime.c	2005/10/05 19:20:22	3.44
@@ -1989,7 +1989,6 @@
 
     if ((p = smime_ask_for_key (_("Sign as: "), NULL, 0))) 
     {
-      p[mutt_strlen (p)-1] = '\0';
       mutt_str_replace (&SmimeDefaultKey, p);
 	
       msg->security |= SIGN;

please fix, thank you.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2005-11-26 03:03:40 UTC
This is an upstream bug rather than a Gentoo bug. I'll try to patch this one in the next couple of 
hours.

Cheers,
Ferdy
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2005-11-26 03:59:01 UTC
Fixed in mutt-1.5.11-r1 (~arched)

Cheers,
Ferdy