~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to checks/conventional.test

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
. $srcdir/defs.inc || exit 3
4
 
 
5
 
# temp. hack cause the format for 128 bit blocksize messages may change
6
 
GNUPG_ENABLE_TWOFISH=1
7
 
export GNUPG_ENABLE_TWOFISH
8
 
 
9
 
#info Checking conventional encryption
10
 
for i in plain-2 data-32000 ; do
11
 
    echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -c -o x --yes $i
12
 
    echo "Hier spricht HAL" | $GPG --passphrase-fd 0    -o y --yes x
13
 
    cmp $i y || error "$i: mismatch"
14
 
done
15
 
 
16
 
for a in cast5 3des twofish; do
17
 
    for i in plain-1 data-80000 ; do
18
 
      echo "Hier spricht HAL" | $GPG --passphrase-fd 0 \
19
 
                                          --cipher-algo $a -c -o x --yes $i
20
 
      echo "Hier spricht HAL" | $GPG --passphrase-fd 0 -o y --yes x
21
 
      cmp $i y || error "$i: ($a) mismatch"
22
 
    done
23
 
done
24