mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 02:15:36 +00:00
Do not show any signature verification icon at all when SMIME is not supported
This commit is contained in:
@@ -38,6 +38,11 @@
|
||||
@implementation UIxMailPartSignedViewer : UIxMailPartMixedViewer
|
||||
|
||||
#ifdef HAVE_OPENSSL
|
||||
- (BOOL) supportsSMIME
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (X509_STORE *) _setupVerify
|
||||
{
|
||||
X509_STORE *store;
|
||||
@@ -189,6 +194,11 @@
|
||||
return validationMessage;
|
||||
}
|
||||
#else
|
||||
- (BOOL) supportsSMIME
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) validSignature
|
||||
{
|
||||
return NO;
|
||||
@@ -196,7 +206,7 @@
|
||||
|
||||
- (NSString *) validationMessage
|
||||
{
|
||||
return @"Signature verification is not implemented when using GnuTLS";
|
||||
return nil;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user