Skip to content

Commit

Permalink
(fix) enable S/MIME even when using GNU TLS (fixes #4201)
Browse files Browse the repository at this point in the history
Conflicts:
	UI/MailPartViewers/UIxMailPartSignedViewer.m
  • Loading branch information
extrafu committed Jul 4, 2017
1 parent 722c813 commit 8d1b02d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions UI/MailPartViewers/GNUmakefile.preamble
@@ -1,3 +1,13 @@
ifeq ($(HAS_LIBRARY_gnutls),yes)
ADDITIONAL_CPPFLAGS += -DHAVE_GNUTLS=1
SOGo_LIBRARIES_DEPEND_UPON += -lgnutls
else
ifeq ($(HAS_LIBRARY_ssl),yes)
ADDITIONAL_CPPFLAGS += -DHAVE_OPENSSL=1
SOGo_LIBRARIES_DEPEND_UPON += -lcrypto
endif
endif

ifeq ($(HAS_LIBRARY_ssl),yes)
ADDITIONAL_CPPFLAGS += -DHAVE_OPENSSL=1
BUNDLE_LIBS += -lcrypto
Expand Down
6 changes: 3 additions & 3 deletions UI/MailPartViewers/UIxMailPartSignedViewer.m
Expand Up @@ -21,8 +21,7 @@
* Boston, MA 02111-1307, USA.
*/

#include <stdio.h>
#ifdef HAVE_OPENSSL
#if defined(HAVE_OPENSSL) || defined(HAVE_GNUTLS)
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/pkcs7.h>
Expand All @@ -37,7 +36,8 @@

@implementation UIxMailPartSignedViewer : UIxMailPartMixedViewer

#ifdef HAVE_OPENSSL

#if defined(HAVE_OPENSSL) || defined(HAVE_GNUTLS)
- (BOOL) supportsSMIME
{
return YES;
Expand Down

0 comments on commit 8d1b02d

Please sign in to comment.