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
  • Loading branch information
extrafu committed Jul 4, 2017
1 parent 721428c commit 22c078e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: 4 additions & 2 deletions UI/MailPartViewers/UIxMailPartSignedViewer.m
Expand Up @@ -18,7 +18,8 @@
* Boston, MA 02111-1307, USA.
*/

#ifdef HAVE_OPENSSL
#if defined(HAVE_OPENSSL) || defined(HAVE_GNUTLS)

#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/pkcs7.h>
Expand All @@ -35,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 22c078e

Please sign in to comment.