~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-security

« back to all changes in this revision

Viewing changes to checks/encrypt-dsa.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
 
#info Checking encryption
6
 
for i in $plain_files $data_files ; do
7
 
    $GPG $dsa_keyrings --always-trust -e -o x --yes -r "$dsa_usrname2" $i
8
 
    $GPG $dsa_keyrings -o y --yes x
9
 
    cmp $i y || error "$i: mismatch"
10
 
done
11
 
 
12
 
# and with cast
13
 
for i in $plain_files $data_files ; do
14
 
    $GPG $dsa_keyrings --always-trust --cipher-algo cast5 -e \
15
 
                                        -o x --yes -r "$dsa_usrname2" $i
16
 
    $GPG $dsa_keyrings -o y --yes x
17
 
    cmp $i y || error "$i: mismatch"
18
 
done
19