~ubuntu-branches/ubuntu/utopic/signing-party/utopic

« back to all changes in this revision

Viewing changes to gpgparticipants/gpgparticipants

  • Committer: Package Import Robot
  • Author(s): Guilhem Moulin, Guilhem Moulin, Thijs Kinkhorst
  • Date: 2014-03-22 20:09:26 UTC
  • mfrom: (0.1.18)
  • Revision ID: package-import@ubuntu.com-20140322200926-mc7g0901tvje6cc4
Tags: 1.1.6-1
[ Guilhem Moulin ]
* Avoid unnecessary forks and calls to the command shell.
* caff:
  + Properly MIME-Q encode e-mail headers. (Closes: #659971)
  + Convert internationalized addresses to ASCII in e-mail envelopes and
    headers. (Closes: #637222)
  + Adapt patch from Julius Seemayer to reopen STDIN as a TTY.
    (Closes: #723024)
  + Allow local and owner keyids to be specified as fingerprints.
    (Closes: #635359)
  + Don't redirect gpg's STDERR when importing the keys. (Closes: #612178)
  + Create the mail files in ~/.caff/keys when mail=no. (Closes: #652686)
  + Add an option 'mail-cant-encrypt' for special treatment of keys
    without encryption capability. (Closes: #622790)
  + Adapt patch from oli and add an option 'gpg-sign-type' for custom
    signature types. (Closes: #679951)
  + Add an option 'also-lsign-in-gnupghome' to add non-exportable signatures
    on the user's GnuPGHOME. (Closes: #680136)
  + Accept gpgparticipants formatted content on STDIN. (Closes: #622560)
  + Prefer the keyserver defined in ~/.gnupg/gpg.conf if found.
    (Closes: #720413)
  + Abort upon gpg failure.
  + Create temporary directories in $TMPDIR. (Closes: #735384)
  + Significant performance boost when importing and pruning.
  + Adapt patch from Gaudenz Steinlin and add an option 'show-photos' to
    view photos before signing. (Closes: #594252)
  + Ignore expired / invalid / revoked UIDs when pruning and exporting.
* gpgsigs:
  + Allow long keyids and key fingerprints (preferred). (Closes: #736963)
  + Wrap long UIDs (when used with --latex) and digest lines.
    (Closes: #738718)
  + Make --latex produce a {pdf,lua,Xe}LaTeX-compatible output.
    (Closes: #618781)
  + Allow any checksum algorithm supported by gpg.
  + Don't identify two UATs that have the same size (use the packet hash to
    distinguish them).
  + Mark expired or revoked signatures as such.
  + Display the correct size of UATs.
  + Don't use a helper --photo-viewer to store the UATs; instead use
    --attribute-file and split the output. (Closes: #693906)
  + Add a dependency to GnuPG::Interface to separate the status output from
    STDOUT.
* gpg-mailkeys:
  + Apply patch from Stefan Huber to check for empty FROM. (Closes: #727000)
  + Adapt patch from Stefan Huber to make sendmail's path configurable.
    (Closes: #727001)
* gpgparticipants:
  + Adapt patch from Tanguy Ortolo to output to STDOUT. (Closes: #694465)
  + Adapt patch from Tanguy Ortolo to output to accept any digest algorithm
    supported by gpg (default: SHA256,RIPEMD160). (Closes: #659990)
* gpglist:
  + Handle time-limited signatures (don't list them).
  + Don't mark a signature as revoked if another signature was created after
    the revocation certificate (cf. RFC 4880 section 5.2.1, signature type
    0x30), or if the signature was non-revokable.
  + Don't identify two UATs that have the same size (use the packet hash to
    distinguish them).
* pgpring:
  + Apply patch from Fabrizio Tarizzo to display the correct key length for
    DSA and Elgamal keys. (Closes: #602284)
  + Apply patch from Fabrizio Tarizzo to show creation date on signatures
    and, when present, expiration date on keys and signatures.  Also, add
    options -E and -e to respectively exclude expired keys and signatures
    from the listing. (Closes: #603257)
  + Upgrade aclocal.m4 to autoconf 2.69.
  + Don't checkout unsafe symlink depcomp (automatically created by
    'automake --add-missing') and other files automatically generated by
    automake or autoconf.
* gpgwrap:
  + Link with "read-only relocation" flag set.
* debian.control:
  + Add libnet-idn-encode-perl as Depends for gpgsigs.
  + Add texlive-xetex and fonts-droid as Suggests for gpgsigs.
  + Bump Standards-Version up to 3.9.5 (no changes).
  + Add autotools-dev as Build-Depends for keyanalyze.
  + Add ${python:Depends} as Depends and python as Build-Depends for
    gpgparticipants-prefill.
  + Add autoconf and automake1.11 as Build-Depends for keyanalyze.
* Don't checkout empty directories, as git-svn(1) doesn't like them.

[ Thijs Kinkhorst ]
* Remove Peter Palfrader and Christoph Berg from uploaders, as per their
  request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Prepare a printable list of keysigning participants.
3
3
# Useful for the party organiser.
4
4
#
5
 
# $Id: gpgparticipants 499 2013-10-15 19:23:04Z weasel $
 
5
# $Id: caff 588 2014-03-24 01:15:29 +0100 guilhem-guest $
6
6
#
7
7
# License: GPLv2 or later
8
8
# Copyright Philippe Teuwen <phil a teuwen o org> 2008
9
9
 
10
 
if [ $# -ne 5 ]; then
11
 
    cat <<EOF
12
 
Usage: $0 input output datestring organizer title
13
 
Or:    $0 -     output datestring organizer title
14
 
       to read from STDIN
15
 
Example:
16
 
       echo 9AD7E3DB 54C12701 |\\
17
 
       $0 - ksp-file.txt "20080222 1100" "My Name <my.name@my.mail>" "my party 08"
18
 
EOF
19
 
    exit 0
20
 
fi
 
10
usage() {
 
11
    cat <<- EOF
 
12
                Usage: $0 [-a HASHES|--algorithm HASHES] input output datestring organizer title
 
13
 
 
14
                Use a single hyphen-minus (-) in place of input to read from STDIN
 
15
                (resp. of output to write to STDOUT).
 
16
                Example:
 
17
                    echo 9AD7E3DB 54C12701 |\\
 
18
                    $0 - ksp-file.txt "20080222 1100" "My Name <my.name@my.mail>" "my party 08"
 
19
        EOF
 
20
    exit ${1:-0}
 
21
}
 
22
 
 
23
 
 
24
# Handle options and arguments
 
25
##############################
 
26
 
 
27
# Use getopt to validate and normalize options and arguments,
 
28
# then reinject them as main arguments
 
29
OPTS=$(getopt -o a:h -l algorithm:,help -n $0 -- "$@") || usage 1
 
30
eval set -- "$OPTS"
 
31
 
 
32
# Default options
 
33
algos="SHA256,RIPEMD160"
 
34
 
 
35
# Parse options
 
36
while [ "$1" != -- ]; do
 
37
    case "$1" in
 
38
        -a|--algorithm) algos="$2"; shift 2;;
 
39
        -h|--help) usage 0; shift;;
 
40
        *) usage 1;;
 
41
    esac
 
42
done
 
43
 
 
44
# Get rid of the '--' left before the arguments
 
45
shift
 
46
 
 
47
# Five arguments should remain
 
48
[ $# -eq 5 ] || usage 1
 
49
algos=$(echo "$algos" | tr '[:lower:]' '[:upper:]')
 
50
halgos="$algos"
 
51
 
 
52
algos=$(echo "$algos" | tr ',' ' ')
 
53
for algo in $algos; do
 
54
        # Ensure this is a valid algo
 
55
        gpg --print-md "$algo" /dev/null >/dev/null || exit $?
 
56
done
21
57
 
22
58
input="$1"
23
59
[ "$input" = "-" ] && input="";
26
62
org="$4"
27
63
title=$(echo "$5"|tr a-z A-Z|sed 's/\(.\)/\1 /g')
28
64
 
29
 
exec > "$output"
 
65
[ "$output" = - ] && output=/path/to/ksp-file.txt || { exec > "$output"; }
30
66
 
31
67
# Date of event
32
68
LANG=C date --date="$date" +"%A, %B %e, %Y;  %H:%M"
40
76
 
41
77
 
42
78
Here's what you have to do with this file:
43
 
(1) Print this file to paper.
44
 
(2) Compute this file's SHA256 checksum.
45
 
      gpg --print-md sha256 $output       (or use sha256sum)
 
79
 
 
80
(1) Print this UTF-8 encoded file to paper.
 
81
 
 
82
(2) Compute this file's $(echo "$halgos" | sed -re 's/,([^,]+)$/ and \1/; s/,/& /g') checksum$([ "${algos#* }" = "$algos" ] || echo s).
 
83
 
 
84
EOF
 
85
for algo in $algos; do
 
86
        printf "      gpg --print-md %s %s\n" "$algo" "$output"
 
87
done
 
88
cat <<EOF
 
89
 
46
90
(3) Fill in the hash values on the printout.
 
91
 
47
92
(4) Bring the printout, a pen, and proof of identity to the key signing party
48
93
    (and be on time!).
49
94
 
50
 
 
51
 
SHA256 Checksum: ____ ____   ____ ____   ____ ____   ____ ____           [ ]
52
 
 
53
 
                 ____ ____   ____ ____   ____ ____   ____ ____
54
 
 
55
 
 
56
95
EOF
 
96
for algo in $algos; do
 
97
        echo
 
98
        case "$algo" in
 
99
                MD5) cat <<- EOF
 
100
                        MD5 Checksum:  __ __ __ __ __ __ __ __    __ __ __ __ __ __ __ __           [ ]
 
101
                EOF
 
102
                ;;
 
103
                SHA1) cat <<- EOF
 
104
                        SHA1 Checksum: ____ ____ ____ ____ ____    ____ ____ ____ ____ ____         [ ]
 
105
                EOF
 
106
                ;;
 
107
                RIPEMD160) cat <<- EOF
 
108
                        RIPEMD160 Checksum: ____ ____ ____ ____ ____    ____ ____ ____ ____ ____    [ ]
 
109
                EOF
 
110
                ;;
 
111
                SHA256) cat <<- EOF
 
112
                        SHA256 Checksum: ________   ________   ________   ________
 
113
 
 
114
                                         ________   ________   ________   ________                  [ ]
 
115
                EOF
 
116
                ;;
 
117
                SHA384) cat <<- EOF
 
118
                        SHA384 Checksum: ________   ________   ________   ________
 
119
 
 
120
                                         ________   ________   ________   ________
 
121
 
 
122
                                         ________   ________   ________   ________                  [ ]
 
123
                EOF
 
124
                ;;
 
125
                SHA512) cat <<- EOF
 
126
                        SHA512 Checksum: ________   ________   ________   ________
 
127
 
 
128
                                         ________   ________   ________   ________
 
129
 
 
130
                                         ________   ________   ________   ________
 
131
 
 
132
                                         ________   ________   ________   ________                  [ ]
 
133
                EOF
 
134
                ;;
 
135
                SHA224) cat <<- EOF
 
136
                        SHA224 Checksum: ________   ________   ________   ________
 
137
 
 
138
                                         ________   ________   ________                             [ ]
 
139
                EOF
 
140
                ;;
 
141
        esac
 
142
done
 
143
printf '\n\n'
 
144
 
57
145
 
58
146
k=0;
59
 
for i in $(cat $input); do
 
147
options='--list-options no-show-photos,no-show-uid-validity,no-show-keyring'
 
148
cat $input | \
 
149
while read i; do
60
150
    k=$(($k+1));
61
151
    printf "\n%03d  [ ] Fingerprint OK        [ ] ID OK\n" $k;
62
 
    gpg --fingerprint $i | grep -v "^sub" | \
63
 
        grep -v '^uid.*jpeg image of size';
 
152
        LC_CTYPE=C.UTF-8 gpg $options --fingerprint --list-keys -- $i \
 
153
                | grep -ve "^sub" -e '^uid *\[jpeg image of size ';
64
154
        echo "_______________________________________________________________________________"
65
155
done
66
156