From 193720cfbbdf67f871ad561024407db656fe4107 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 16 Sep 2013 10:59:45 -0400 Subject: [PATCH] Fix for s/mime verification issues with some openssl versions --- UI/MailPartViewers/UIxMailPartSignedViewer.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/MailPartViewers/UIxMailPartSignedViewer.m b/UI/MailPartViewers/UIxMailPartSignedViewer.m index 34a8110a7..16692657a 100644 --- a/UI/MailPartViewers/UIxMailPartSignedViewer.m +++ b/UI/MailPartViewers/UIxMailPartSignedViewer.m @@ -52,6 +52,8 @@ success = NO; store = X509_STORE_new (); + OpenSSL_add_all_algorithms (); + if (store) { lookup = X509_STORE_add_lookup (store, X509_LOOKUP_file()); @@ -92,8 +94,7 @@ PKCS7 *p7; int err, i; - - *sslError = 0; + memset(sslError, 0, 1024); ERR_clear_error();