X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FKey%2FYubiKey.pm;h=aeb8950cf084617505d03cc234f8e741db818376;hb=b01f40aad5c23676c1e3d5e80cdf75097e32ffba;hp=0e42eb0766a68ffe1a8d99f260a4be03504bc4ce;hpb=37b09e0f2832514b33de4499a83f22d5ffe7c0a3;p=chaz%2Fp5-File-KDBX diff --git a/lib/File/KDBX/Key/YubiKey.pm b/lib/File/KDBX/Key/YubiKey.pm index 0e42eb0..aeb8950 100644 --- a/lib/File/KDBX/Key/YubiKey.pm +++ b/lib/File/KDBX/Key/YubiKey.pm @@ -7,7 +7,7 @@ use strict; use File::KDBX::Constants qw(:yubikey); use File::KDBX::Error; use File::KDBX::Util qw(:class :io pad_pkcs7); -use IPC::Cmd 0.52 qw(run_forked); +use IPC::Cmd 0.84 qw(run_forked); use Ref::Util qw(is_arrayref); use Symbol qw(gensym); use namespace::clean; @@ -95,7 +95,7 @@ sub challenge { @keys = File::KDBX::Key::YubiKey->scan(%options); Find connected, configured YubiKeys that are capable of responding to a challenge. This can take several -second. +seconds. Options: @@ -151,7 +151,7 @@ sub scan { $device = $key->device($device); Get or set the device number, which is the index number starting and incrementing from zero assigned -to the YubiKey device. If there is only one detected YubiKey device, it's number is C<0>. +to the YubiKey device. If there is only one detected YubiKey device, its number is C<0>. Defaults to C<0>. @@ -454,9 +454,9 @@ override the default programs, these environment variables can be used. This doesn't work yet on Windows, probably. The hangup is pretty silly: IPC. Theoretically it would work if C from L worked in Windows, but it probably doesn't. I spent a couple hours applying various quirks to L and L implementations but never quite got it to worked reliably -without deadlocks. Maybe I'll revisit this later. Hit me up so I know if there's demand. +without deadlocks. Maybe I'll revisit this later. Hit me up so I know if there's interest. -It would also be possible to implement this is an XS module that incorporated ykcore, using libusb-1 which +It would also be possible to implement this as an XS module that incorporated ykcore, using libusb-1 which would probably make it more portable with Windows. Perhaps if I get around to it. =cut