]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Disable compression before encryption
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 79b1194dca3c4370f81ff95cd2795fd5f7490a24..ea7b6d9bf5fd87534bf5287864526b2bae260084 100755 (executable)
@@ -88,7 +88,7 @@ ENCRYPT()
        # Symmetric encryption using the long MASTERKEY. We use AES
        # and OpenPGP's modification detection code (mdc).
        (printf "%s" "$MASTERKEY" | \
-               gpg --batch --force-mdc --cipher-algo AES \
+               gpg --batch --force-mdc --cipher-algo AES --compress-algo none \
                        --passphrase-fd 0 --output - -c /dev/fd/3) 3<&0
 }
 
@@ -127,7 +127,8 @@ make_new_repo()
        PUTREPO "$URL"
        echo_info "Generating new master key"
        MASTERKEY="$(genkey)"
-       printf "%s" "$MASTERKEY" | gpg -e $RECIPIENTS | PUT "$URL" masterkey
+       printf "%s" "$MASTERKEY" | \
+               gpg --compress-algo none -e $RECIPIENTS | PUT "$URL" masterkey
 }
 
 ensure_connected()