#!/usr/local/bin/perl # edit_key.cgi # Display the details of a key, including the exported format require './gnupg-lib.pl'; &ReadParse(); @keys = &list_keys(); if ($in{'key'}) { ($key) = grep { $_->{'key'} eq $in{'key'} } @keys; $in{'idx'} = &indexof($key, @keys); } else { $key = $keys[$in{'idx'}]; } &ui_print_header(undef, $text{'key_title'}, ""); print "$text{'key_desc'}
\n"; print "
| $text{'key_header'} | ||||||||||
| ||||||||||