X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-File-KDBX;a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FDumper%2FV4.pm;h=c002f0bbdd1a37a1cd374464a1d39ffc315be502;hp=f2a8574e8b55413419c4b9c974340cc5e5d11549;hb=4dc2a1996dfcf2dfda3c554daa2f5f59fa763494;hpb=4919a87027c9f0501a636fbea0cbd2a6510afb38 diff --git a/lib/File/KDBX/Dumper/V4.pm b/lib/File/KDBX/Dumper/V4.pm index f2a8574..c002f0b 100644 --- a/lib/File/KDBX/Dumper/V4.pm +++ b/lib/File/KDBX/Dumper/V4.pm @@ -61,7 +61,7 @@ sub _write_header { my $type = shift; my $val = shift // ''; - $type = kdbx_header($type); + $type = to_header_constant($type); if ($type == HEADER_END) { # nothing } @@ -289,8 +289,7 @@ sub _write_inner_header { my $buf = pack('C', $type); $fh->print($buf) or throw 'Failed to write inner header type'; - $type = kdbx_inner_header($type); - + $type = to_inner_header_constant($type); if ($type == INNER_HEADER_END) { # nothing }