From: root Date: Thu, 14 Feb 2013 00:00:00 +0000 (+0000) Subject: Disable compression before encryption X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=ad49e025b951e2a89f11eff83577dd6233396900;p=gamesguru%2Fgit-remote-gcrypt.git Disable compression before encryption --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 79b1194..ea7b6d9 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -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()