diff options
author | Matthias Kalle Dalheimer <[email protected]> | 2002-03-21 13:14:20 +0000 |
---|---|---|
committer | Matthias Kalle Dalheimer <[email protected]> | 2002-03-21 13:14:20 +0000 |
commit | 770116c84f69105daeedd2cbad2af18b59fcce20 (patch) | |
tree | 7c0be75b8ca446d805155b05e175c7c0e49a77d8 /gpgmeplug/gpgmeplug.c | |
parent | 2002-03-17 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-770116c84f69105daeedd2cbad2af18b59fcce20.tar.gz gpgme-770116c84f69105daeedd2cbad2af18b59fcce20.zip |
More feature selectors
Plugin says which features it supports
Diffstat (limited to 'gpgmeplug/gpgmeplug.c')
-rw-r--r-- | gpgmeplug/gpgmeplug.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 8a7772bf..474e439d 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/gpgmeplug/gpgmeplug.c @@ -228,14 +228,27 @@ void deinitialize() bool hasFeature( Feature flag ) { + // our own plugins are supposed to support everything switch ( flag ) { - case CryptPlugFeat_SignMessages: return true; - case CryptPlugFeat_VerifySignatures: return true; - case CryptPlugFeat_EncryptMessages: return true; - case CryptPlugFeat_DecryptMessages: return true; - // undefined or not yet implemented: - case CryptPlugFeat_undef: return false; - default: return false; + case Feature_SignMessages: return true; + case Feature_VerifySignatures: return true; + case Feature_EncryptMessages: return true; + case Feature_DecryptMessages: return true; + case Feature_SendCertificates: return true; + case Feature_WarnSignCertificateExpiry: return true; + case Feature_WarnSignEmailNotInCertificate: return true; + case Feature_PinEntrySettings: return true; + case Feature_StoreMessagesWithSigs: return true; + case Feature_EncryptionCRLs: return true; + case Feature_WarnEncryptCertificateExpiry: return true; + case Feature_WarnEncryptEmailNotInCertificate: return true; + case Feature_StoreMessagesEncrypted: return true; + case Feature_CheckCertificatePath: return true; + case Feature_CertificateDirectoryService: return true; + case Feature_CRLDirectoryService: return true; + // undefined or not yet implemented: + case Feature_undef: return false; + default: return false; } } |