X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FConstants.pm;h=ba3baf3083a614e62f6f71c7fbc4da75670fac05;hb=16c035abaa2ff6c53076f4ff6ae3215130acb56f;hp=6f88b252cb35092be24d1b59d1dc744776336f34;hpb=0f9150d48f698cf468d3d814e52ee9f15572809b;p=chaz%2Fp5-File-KDBX diff --git a/lib/File/KDBX/Constants.pm b/lib/File/KDBX/Constants.pm index 6f88b25..ba3baf3 100644 --- a/lib/File/KDBX/Constants.pm +++ b/lib/File/KDBX/Constants.pm @@ -10,6 +10,7 @@ use warnings; use strict; use Exporter qw(import); +use File::KDBX::Util qw(int64); use Scalar::Util qw(dualvar); use namespace::clean -except => 'import'; @@ -126,8 +127,14 @@ BEGIN { }, history => { __prefix => 'HISTORY', + DEFAULT_MAX_AGE => 365, DEFAULT_MAX_ITEMS => 10, - DEFAULT_MAX_SIZE => 6_291_456, # 6 M + DEFAULT_MAX_SIZE => 6_291_456, # 6 MiB + }, + iteration => { + ITERATION_BFS => dualvar(1, 'bfs'), + ITERATION_DFS => dualvar(2, 'dfs'), + ITERATION_IDS => dualvar(3, 'ids'), }, icon => { __prefix => 'ICON', @@ -207,7 +214,7 @@ BEGIN { }, time => { __prefix => 'TIME', - SECONDS_AD1_TO_UNIX_EPOCH => 62_135_596_800, + SECONDS_AD1_TO_UNIX_EPOCH => int64('62135596800'), }, yubikey => { YUBICO_VID => dualvar( 0x1050, 'Yubico'), @@ -526,9 +533,19 @@ Constants related to identifying key file types: Constants for history-related default values: =for :list += C = C = C +=head2 :iteration + +Constants for searching algorithms. + +=for :list += C - Iterative deepening search += C - Breadth-first search += C - Depth-first search + =head2 :icon Constants for default icons used by KeePass password safe implementations: