Subject: | v5 record underflow |
Date: | Wed, 7 Nov 2007 09:02:31 -0600 |
To: | bug-palm-keyring [...] rt.cpan.org |
From: | Andy Wettstein <ajw [...] uiuc.edu> |
Hi,
I have a problem making a v5 database. Using the example1.pl as a base
( i also needed explicit label_id's):
use Palm::Keyring;
my $pdb = new Palm::Keyring(-password => '12345', -version => 5, -cipher => 1 );
my $rec = $pdb->append_Record();
$rec->{plaintext} = {
0 => { label => 'name', label_id => 0, font => 0, data => 'Test3' },
1 => { label => 'account', label_id => 1, font => 0, data => 'anothertestaccount' },
2 => { label => 'password', label_id => 2, font => 0, data => 'adifferentmypass' },
255 => { label => 'notes', label_id => 255, font => 0, data => 'now that really roxorZ!' },
};
$pdb->Encrypt($rec);
$pdb->Write("Keys-Gtkr-example.PDB");
Opening this PDB on the palm I get
Error accessing key database: record underflow (Record_Unpack)
Everything actually displays fine, though.
Software versions:
Palm::Keyring 0.96_05
Gnu Keyring 2.0 Pre 6
--
andy wettstein
unix administrator
department of physics
university of illinois at urbana-champaign