File: 0009-Omit-signedViewer-altogether-when-not-using-openssl.patch

package info (click to toggle)
sogo 5.12.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,436 kB
  • sloc: objc: 122,472; javascript: 75,271; sh: 2,352; ansic: 2,055; perl: 861; python: 777; sql: 307; makefile: 184; php: 43; xml: 27
file content (24 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Hanno Stock <hanno.stock@indurad.com>
Date: Tue, 30 Jul 2019 16:32:59 +0200
Subject: Omit signedViewer altogether when not using openssl

---
 UI/MailPartViewers/UIxMailRenderingContext.m | 4 ++++
 1 file changed, 4 insertions(+)

Index: sogo/UI/MailPartViewers/UIxMailRenderingContext.m
===================================================================
--- sogo.orig/UI/MailPartViewers/UIxMailRenderingContext.m
+++ sogo/UI/MailPartViewers/UIxMailRenderingContext.m
@@ -196,7 +196,11 @@ static BOOL showNamedTextAttachmentsInli
 	  || [st isEqualToString: @"appledouble"])
 	return [self mixedViewer];
       else if ([st isEqualToString: @"signed"])
+#ifdef HAVE_OPENSSL
 	return [self signedViewer];
+#else
+	return [self mixedViewer];
+#endif
       else if ([st isEqualToString: @"alternative"])
 	return [self alternativeViewer];