projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e7cb8
)
pem2openpgp now accepts a choice of User ID on stdin.
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Wed, 7 Jan 2009 19:59:40 +0000
(14:59 -0500)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Wed, 7 Jan 2009 19:59:40 +0000
(14:59 -0500)
src/keytrans/pem2openpgp
patch
|
blob
|
history
diff --git
a/src/keytrans/pem2openpgp
b/src/keytrans/pem2openpgp
index f6e2d4f33d3f79f2cbc7d59fa61dba06936a8dbb..3fdc469ac95df1c07fcd694fc4a5d3a0877e743f 100755
(executable)
--- a/
src/keytrans/pem2openpgp
+++ b/
src/keytrans/pem2openpgp
@@
-23,6
+23,10
@@
use MIME::Base64;
## make sure all length() and substr() calls use bytes only:
use bytes;
+my $uid = shift;
+
+# FIXME: fail if there is no given user ID.
+
# make an old-style packet out of the given packet type and body.
# old-style (see RFC 4880 section 4.2)
sub make_packet {
@@
-112,10
+116,6
@@
if (! $rsa->check_key()) {
die "key does not check";
}
-my $uid = 'fake key (do not use) <test@example.org>';
-
-
-
my $version = pack('C', 4);
# strong assertion of identity:
my $sigtype = pack('C', 0x13);