ok, fix in the proper way: always compile the manifest, and instead #ifdef the qca2 part in it

svn path=/trunk/KDE/kdegraphics/okular/; revision=774915
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent fde51008b8
commit be5abf2c74
  1. 6
      generators/ooo/CMakeLists.txt
  2. 4
      generators/ooo/manifest.cpp

@ -18,14 +18,10 @@ set(okularGenerator_ooo_PART_SRCS
document.cpp
formatproperty.cpp
generator_ooo.cpp
manifest.cpp
styleinformation.cpp
styleparser.cpp
)
if (QCA2_FOUND)
set(okularGenerator_ooo_PART_SRCS ${okularGenerator_ooo_PART_SRCS}
manifest.cpp
)
endif (QCA2_FOUND)
kde4_add_plugin(okularGenerator_ooo ${okularGenerator_ooo_PART_SRCS})

@ -301,6 +301,7 @@ void Manifest::savePasswordToWallet()
void Manifest::checkPassword( ManifestEntry *entry, const QByteArray &fileData, QByteArray *decryptedData )
{
#ifdef QCA2
QCA::SymmetricKey key = QCA::PBKDF2( "sha1" ).makeKey( QCA::Hash( "sha1" ).hash( m_password.toLocal8Bit() ),
QCA::InitializationVector( entry->salt() ),
16, //128 bit key
@ -328,6 +329,9 @@ void Manifest::checkPassword( ManifestEntry *entry, const QByteArray &fileData,
} else {
m_haveGoodPassword = false;
}
#else
m_haveGoodPassword = false;
#endif
}
QByteArray Manifest::decryptFile( const QString &filename, const QByteArray &fileData )

Loading…
Cancel
Save