Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 64385 Details for
Bug 68291
rpm --import mishandles files with keys and signatures (and multi-key files)
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Verify header+payload package signature using gpg
tgpg (text/plain), 892 bytes, created by
Jeff Johnson
on 2002-07-09 14:07:37 UTC
(
hide
)
Description:
Verify header+payload package signature using gpg
Filename:
MIME Type:
Creator:
Jeff Johnson
Created:
2002-07-09 14:07:37 UTC
Size:
892 bytes
patch
obsolete
>#!/bin/sh > >for pkg in $* >do > if [ "$pkg" = "" -o ! -e "$pkg" ]; then > echo "no package supplied" 1>&2 > exit 1 > fi > > plaintext=`mktemp $0-$$.XXXXXX` > detached=`mktemp $0-$$.XXXXXX` > ># --- Extract detached signature > rpm -qp -vv --qf '%{siggpg:armor}' $pkg > $detached > ># --- Figger the offset of header+payload in the package > leadsize=96 > o=`expr $leadsize + 8` > > set `od -j $o -N 8 -t u1 $pkg` > il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` > dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` > > sigsize=`expr 8 + 16 \* $il + $dl` > o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8` > ># --- Extract header+payload > dd if=$pkg ibs=$o skip=1 2>/dev/null > $plaintext > ># --- Verify DSA signature using gpg > gpg --batch -vv --debug 0xfc02 --verify $detached $plaintext > ># --- Clean up > rm -f $detached $plaintext >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 68291
: 64385 |
64647
|
64648
|
96105