summarylogtreecommitdiffstats
path: root/sogo-bugfix_4566.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sogo-bugfix_4566.patch')
-rw-r--r--sogo-bugfix_4566.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sogo-bugfix_4566.patch b/sogo-bugfix_4566.patch
new file mode 100644
index 000000000000..4286394ca0dc
--- /dev/null
+++ b/sogo-bugfix_4566.patch
@@ -0,0 +1,24 @@
+diff -Naurp SOGo-4.0.2-orig/UI/MailPartViewers/UIxMailPartSignedViewer.m SOGo-4.0.2/UI/MailPartViewers/UIxMailPartSignedViewer.m
+--- SOGo-4.0.2-orig/UI/MailPartViewers/UIxMailPartSignedViewer.m 2018-10-10 23:32:06.753085278 -0500
++++ SOGo-4.0.2/UI/MailPartViewers/UIxMailPartSignedViewer.m 2018-10-10 23:33:04.864737333 -0500
+@@ -169,10 +169,20 @@
+
+ if (err)
+ {
++# ifdef HAVE_GNUTLS
+ ERR_load_crypto_strings();
+ SSL_load_error_strings();
+ sslError = ERR_reason_error_string(err);
+ validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError : "(no error information available)"]] retain];
++#elseif (OPENSSL_VERSION < 0x01010001f)
++ ERR_load_crypto_strings();
++ SSL_load_error_strings();
++ sslError = ERR_reason_error_string(err);
++ validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError]] retain];
++# else
++ validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError]] retain];
++#endif /* HAVE_GNUTLS */
++
+ }
+ }
+