gnupg-2.0.14-tests-s2kcount.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. We have to use fixed s2k-count number otherwise the gpg2 would
  2. want to consult gpg-agent which is not yet installed in the mock
  3. chroot.
  4. Index: gnupg-2.0.17/tests/openpgp/conventional-mdc.test
  5. ===================================================================
  6. --- gnupg-2.0.17.orig/tests/openpgp/conventional-mdc.test
  7. +++ gnupg-2.0.17/tests/openpgp/conventional-mdc.test
  8. @@ -21,9 +21,9 @@ for ciph in `all_cipher_algos`; do
  9. dd if=data-80000 of=z bs=1 count=$i 2>/dev/null
  10. fi
  11. echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
  12. - --force-mdc --cipher $ciph -c -o x --yes z
  13. + --force-mdc --cipher $ciph -c -o x --yes --s2k-count 65536 z
  14. echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
  15. - -o y --yes x
  16. + -o y --yes --s2k-count 96 x
  17. cmp z y || error "$ciph/$i: mismatch"
  18. done
  19. done
  20. Index: gnupg-2.0.17/tests/openpgp/conventional.test
  21. ===================================================================
  22. --- gnupg-2.0.17.orig/tests/openpgp/conventional.test
  23. +++ gnupg-2.0.17/tests/openpgp/conventional.test
  24. @@ -12,8 +12,8 @@
  25. #info Checking conventional encryption
  26. for i in plain-2 data-32000 ; do
  27. - echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
  28. - echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
  29. + echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes --s2k-count 65536 $i
  30. + echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes --s2k-count 65536 x
  31. cmp $i y || error "$i: mismatch"
  32. done
  33. @@ -21,8 +21,8 @@ for a in `all_cipher_algos`; do
  34. echo_n "$a "
  35. for i in plain-1 data-80000 ; do
  36. echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
  37. - --cipher-algo $a -c -o x --yes $i
  38. - echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
  39. + --cipher-algo $a -c -o x --yes --s2k-count 65536 $i
  40. + echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes --s2k-count 65536 x
  41. cmp $i y || error "$i: ($a) mismatch"
  42. done
  43. done
  44. Index: gnupg-2.0.17/tests/openpgp/genkey1024.test
  45. ===================================================================
  46. --- gnupg-2.0.17.orig/tests/openpgp/genkey1024.test
  47. +++ gnupg-2.0.17/tests/openpgp/genkey1024.test
  48. @@ -10,7 +10,7 @@
  49. . $srcdir/defs.inc || exit 3
  50. -$GPG --quiet --batch --debug-quick-random --gen-key <<EOF
  51. +$GPG --quiet --batch --debug-quick-random --s2k-count 65536 --gen-key <<EOF
  52. Key-Type: DSA
  53. Key-Length: 1024
  54. Subkey-Type: ELG
  55. @@ -24,7 +24,7 @@ Passphrase: abc
  56. EOF
  57. if have_pubkey_algo "RSA"; then
  58. -$GPG --quiet --batch --debug-quick-random --gen-key <<EOF
  59. +$GPG --quiet --batch --debug-quick-random --s2k-count 65536 --gen-key <<EOF
  60. Key-Type: RSA
  61. Key-Length: 1024
  62. Key-Usage: sign,encrypt