~ubuntu-branches/debian/stretch/bitcoin/stretch

« back to all changes in this revision

Viewing changes to contrib/verify-commits/gpg.sh

  • Committer: Package Import Robot
  • Author(s): Anthony Towns
  • Date: 2016-10-21 17:13:13 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20161021171313-7eu2ltpbk0xag3q1
Tags: 0.13.0-0.1
* Non-maintainer upload.
* New upstream release.
* Allow compilation with gcc/g++ 6. (Closes: Bug#835963)
* Additional fixes for openssl 1.1 compatibility. (See Bug#828248)
* Check if -latomic is needed (it is on mips*).
* Remove reproducible build patch, since leveldb build system is
  no longer used in 0.13. (See Bug#791834)
* Update description since the blockchain is much more than "several GB"
  now. (Closes: Bug#835809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
INPUT=$(</dev/stdin)
 
2
INPUT=$(cat /dev/stdin)
3
3
VALID=false
4
4
REVSIG=false
5
 
IFS=$'\n'
 
5
IFS='
 
6
'
6
7
for LINE in $(echo "$INPUT" | gpg --trust-model always "$@" 2>/dev/null); do
7
8
        case "$LINE" in
8
9
        "[GNUPG:] VALIDSIG "*)
13
14
        "[GNUPG:] REVKEYSIG "*)
14
15
                [ "$BITCOIN_VERIFY_COMMITS_ALLOW_REVSIG" != 1 ] && exit 1
15
16
                while read KEY; do
16
 
                        case "$LINE" in "[GNUPG:] REVKEYSIG ${KEY:24:40} "*)
 
17
                        case "$LINE" in "[GNUPG:] REVKEYSIG ${KEY#????????????????????????} "*)
17
18
                                REVSIG=true
18
 
                                GOODREVSIG="[GNUPG:] GOODSIG ${KEY:24:40} "
19
 
                                ;;
 
19
                                GOODREVSIG="[GNUPG:] GOODSIG ${KEY#????????????????????????} "
20
20
                        esac
21
21
                done < ./contrib/verify-commits/trusted-keys
22
22
                ;;