add: if ( item.format & (Kleo::SMIMEFormat|Kleo::SMIMEOpaqueFormat) && std::find_if( item.keys.begin(), item.keys.end(), ValidTrustedSMIMEEncryptionKey ) != item.keys.end() ) { CASE(SMIME); CASE(SMIMEOpaque); } ++mTotal; }
context:     bool operator()( const GpgME::Key & key ) const {      return	( isOpenPGP( format ) && key.protocol() != GpgME::Context::OpenPGP ) ||	( isSMIME( format )   && key.protocol() != GpgME::Context::CMS );    }