rem: for ( std::vector<GpgME::UserID>::const_iterator it = uids.begin() ; it != uids.end() ; ++it )
add: for ( std::vector<GpgME::UserID>::const_iterator it = uids.begin() ; it != uids.end() ; ++it ) {
context: static bool ValidTrustedOpenPGPEncryptionKey( const GpgME::Key & key ) {  if ( key.protocol() != GpgME::Context::OpenPGP )    return false;  if ( key.isRevoked() || key.isExpired() || key.isDisabled() || !key.canEncrypt() )    return false;  const std::vector<GpgME::UserID> uids = key.userIDs();  for ( std::vector<GpgME::UserID>::const_iterator it = uids.begin() ; it != uids.end() ; ++it )    if ( !it->isRevoked() && it->validity() >= GpgME::UserID::Marginal )      return true;  return false;}