]> Dogcows Code - chaz/p5-File-KDBX/blobdiff - lib/File/KDBX/Dumper/V4.pm
Further expand support for attributes
[chaz/p5-File-KDBX] / lib / File / KDBX / Dumper / V4.pm
index f2a8574e8b55413419c4b9c974340cc5e5d11549..c002f0bbdd1a37a1cd374464a1d39ffc315be502 100644 (file)
@@ -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
     }
This page took 0.019651 seconds and 4 git commands to generate.