For 1.5.9: fix smime_ask_for_key()
As pointed out in a separate thread, here is a patch which fixes the problem
of a failing openssl after interactively selecting a recipient's key.
I tested it here for some time now and it works flawlessly.
Best regards
--
Udo Schweigert, Siemens AG | Voice : +49 89 636 42170
CT IC CERT, Siemens CERT | Fax : +49 89 636 41166
D-81730 Muenchen / Germany | email : udo.schweigert@xxxxxxxxxxx
--- smime.c.orig Sat Feb 19 13:49:51 2005
+++ smime.c Sun Feb 20 08:58:35 2005
@@ -464,8 +464,8 @@
}
}
if (hash) {
- fname = safe_malloc(14); /* Hash + '.' + Suffix + \n + \0 */
- sprintf(fname, "%.8x.%i\n", Table[cur].hash, Table[cur].suffix);
+ fname = safe_malloc(13); /* Hash + '.' + Suffix + \0 */
+ sprintf(fname, "%.8x.%i", Table[cur].hash, Table[cur].suffix);
}
else fname = NULL;