Do not show any signature verification icon at all when SMIME is not supported

This commit is contained in:
Wolfgang Sourdeau
2012-10-23 10:52:58 -04:00
parent c844c221d3
commit 007a325164
3 changed files with 47 additions and 30 deletions
+11 -1
View File
@@ -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