summaryrefslogtreecommitdiff
path: root/src/share/keytrans
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-06-09 13:22:41 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-06-09 13:22:41 -0400
commit867506b457402f2e4510ccd3ef50154b6e28b489 (patch)
treef2eb5dac0d18c4a9dcc535607522b2424f3a6830 /src/share/keytrans
parente52ac3afa0f25f2dfd3e7dde6e1c7c311636f5f0 (diff)
added comments to keytrans
Diffstat (limited to 'src/share/keytrans')
-rwxr-xr-xsrc/share/keytrans3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/share/keytrans b/src/share/keytrans
index 3638eae..326bfb1 100755
--- a/src/share/keytrans
+++ b/src/share/keytrans
@@ -627,6 +627,7 @@ sub openpgp2ssh {
die "This is not an OpenPGP packet\n";
}
if (0x40 & $packettag) {
+ # this is a new-format packet.
$tag = (0x3f & $packettag);
my $nextlen = 0;
read($instr, $nextlen, 1);
@@ -645,6 +646,7 @@ sub openpgp2ssh {
# packet length is undefined.
}
} else {
+ # this is an old-format packet.
my $lentype;
$lentype = 0x03 & $packettag;
$tag = ( 0x3c & $packettag ) >> 2;
@@ -776,7 +778,6 @@ for (basename($0)) {
# FIXME: fail if there is no given user ID; or should we default to
# hostname_long() from Sys::Hostname::Long ?
-
if (defined $ENV{PEM2OPENPGP_NEWKEY}) {
$rsa = Crypt::OpenSSL::RSA->generate_key($ENV{PEM2OPENPGP_NEWKEY});
} else {