Checksum: Disallow ADLER32, use Adler32 #3735
authorChristian Kamm <mail@ckamm.de>
Wed, 28 Oct 2015 08:59:33 +0000 (09:59 +0100)
committerChristian Kamm <mail@ckamm.de>
Wed, 28 Oct 2015 08:59:33 +0000 (09:59 +0100)
src/libsync/owncloudpropagator.cpp
src/libsync/propagatorjobs.h

index a93e84f3eeb277a778367747121ed9a9383995e7..3b4ca37bc7a4cc93e4ae08bab95f0d7bfdb9f3a6 100644 (file)
@@ -293,14 +293,14 @@ void OwncloudPropagator::start(const SyncFileItemVector& items)
 
     /* Check and log the transmission checksum type */
     ConfigFile cfg;
-    const QString checksumType = cfg.transmissionChecksum().toUpper();
+    const QString checksumType = cfg.transmissionChecksum();
 
     /* if the checksum type is empty, it is not sent. No error */
     if( !checksumType.isEmpty() ) {
-        if( checksumType == checkSumAdlerUpperC ||
+        if( checksumType == checkSumAdlerC ||
                 checksumType == checkSumMD5C    ||
                 checksumType == checkSumSHA1C ) {
-            qDebug() << "Client sends and expects transmission checksum type" << checksumType;
+            qDebug() << "Client sends transmission checksum type" << checksumType;
         } else {
             qWarning() << "Unknown transmission checksum type from config" << checksumType;
         }
index 5dd21e68251009e196603bb90c9176fa817d0217..5ad01c7daafcb3247cd158a1bcf5eb65c12a5547 100644 (file)
@@ -32,7 +32,6 @@ static const char checkSumHeaderC[] = "OC-Checksum";
 static const char checkSumMD5C[] = "MD5";
 static const char checkSumSHA1C[] = "SHA1";
 static const char checkSumAdlerC[] = "Adler32";
-static const char checkSumAdlerUpperC[] = "ADLER32";
 
 /**
  * @brief Declaration of the other propagation jobs