Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161467 Details for
Bug 198242
mail-client/mutt-1.5.18 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix GPGME S/MIME micalg generation
mutt-1.5.18-micalg.patch (text/plain), 1.71 KB, created by
Raimar Sandner
on 2008-07-27 13:03:21 UTC
(
hide
)
Description:
Fix GPGME S/MIME micalg generation
Filename:
MIME Type:
Creator:
Raimar Sandner
Created:
2008-07-27 13:03:21 UTC
Size:
1.71 KB
patch
obsolete
>diff -r f9545d5ec15f -r aaeee8f868c4 crypt-gpgme.c >--- a/crypt-gpgme.c Sat May 17 18:34:49 2008 -0700 >+++ b/crypt-gpgme.c Sat May 17 19:31:18 2008 -0700 >@@ -756,7 +756,7 @@ > which must have been allocated by the caller with size BUFLEN. > Returns 0 on success or -1 in case of an error. The return string > is truncted to BUFLEN - 1. */ >-static int get_micalg (gpgme_ctx_t ctx, char *buf, size_t buflen) >+static int get_micalg (gpgme_ctx_t ctx, int use_smime, char *buf, size_t buflen) > { > gpgme_sign_result_t result = NULL; > const char *algorithm_name = NULL; >@@ -771,9 +771,16 @@ > algorithm_name = gpgme_hash_algo_name (result->signatures->hash_algo); > if (algorithm_name) > { >- /* convert GPGME raw hash name to RFC 3156 format */ >- snprintf (buf, buflen, "pgp-%s", algorithm_name); >- ascii_strlower (buf + 4); >+ if (use_smime) >+ { >+ /* convert GPGME raw hash name to RFC 2633 format */ >+ snprintf (buf, buflen, "%s", algorithm_name); >+ ascii_strlower (buf); >+ } else { >+ /* convert GPGME raw hash name to RFC 3156 format */ >+ snprintf (buf, buflen, "pgp-%s", algorithm_name); >+ ascii_strlower (buf + 4); >+ } > } > } > >@@ -873,10 +880,10 @@ > &t->parameter); > /* Get the micalg from gpgme. Old gpgme versions don't support this > for S/MIME so we assume sha-1 in this case. */ >- if (!get_micalg (ctx, buf, sizeof buf)) >+ if (!get_micalg (ctx, use_smime, buf, sizeof buf)) > mutt_set_parameter ("micalg", buf, &t->parameter); > else if (use_smime) >- mutt_set_parameter ("micalg", "pgp-sha1", &t->parameter); >+ mutt_set_parameter ("micalg", "sha1", &t->parameter); > gpgme_release (ctx); > > t->parts = a;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198242
:
142474
|
142476
|
142478
| 161467 |
170946
|
170947