projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c464b07
)
add get_cert_info() to common
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Tue, 19 Jan 2010 06:36:32 +0000
(
01:36
-0500)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Tue, 19 Jan 2010 06:36:32 +0000
(
01:36
-0500)
src/share/common
patch
|
blob
|
history
diff --git
a/src/share/common
b/src/share/common
index 0a7fe87c862585928b7cb6b066b482eb044300aa..039c06cb804a2d267768c0b846cd1e79e0a04e22 100644
(file)
--- a/
src/share/common
+++ b/
src/share/common
@@
-1207,6
+1207,18
@@
list_primary_fingerprints() {
rm -rf "$fake"
}
+# takes an OpenPGP key or set of keys on stdin, a fingerprint or other
+# key identifier as $1, and outputs the gpg-formatted information for
+# the requested keys from the material on stdin
+get_cert_info() {
+ local fake=$(msmktempdir)
+ trap "rm -rf $fake" EXIT
+ GNUPGHOME="$fake" gpg --no-tty --quiet --import
+ GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys "$1"
+ trap - EXIT
+ rm -rf "$fake"
+}
+
check_cruft_file() {
local loc="$1"