mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 02:01:36 +03:00
Add fipsCapable
to Android and bump yubikit
This commit is contained in:
parent
2ce8723714
commit
761c3f471a
@ -53,6 +53,8 @@ data class Info(
|
||||
val pinComplexity: Boolean,
|
||||
@SerialName("supported_capabilities")
|
||||
val supportedCapabilities: Capabilities,
|
||||
@SerialName("fips_capable")
|
||||
val fipsCapable: Int,
|
||||
) {
|
||||
constructor(name: String, isNfc: Boolean, usbPid: Int?, deviceInfo: DeviceInfo) : this(
|
||||
config = Config(deviceInfo.config),
|
||||
@ -69,6 +71,7 @@ data class Info(
|
||||
supportedCapabilities = Capabilities(
|
||||
nfc = deviceInfo.capabilitiesFor(Transport.NFC),
|
||||
usb = deviceInfo.capabilitiesFor(Transport.USB),
|
||||
)
|
||||
),
|
||||
fipsCapable = deviceInfo.fipsCapable
|
||||
)
|
||||
}
|
||||
|
@ -21,7 +21,8 @@ val UnknownDevice = Info(
|
||||
isNfc = false,
|
||||
usbPid = null,
|
||||
pinComplexity = false,
|
||||
supportedCapabilities = Capabilities()
|
||||
supportedCapabilities = Capabilities(),
|
||||
fipsCapable = 0
|
||||
)
|
||||
|
||||
fun unknownDeviceWithCapability(transport: Transport, bit: Int = 0) : Info {
|
||||
|
@ -75,7 +75,8 @@ class SkyHelper(private val compatUtil: CompatUtil) {
|
||||
isNfc = false,
|
||||
usbPid = pid.value,
|
||||
pinComplexity = false,
|
||||
supportedCapabilities = Capabilities(usb = 0)
|
||||
supportedCapabilities = Capabilities(usb = 0),
|
||||
fipsCapable = 0
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ allprojects {
|
||||
targetSdkVersion = 34
|
||||
compileSdkVersion = 34
|
||||
|
||||
yubiKitVersion = "2.5.0"
|
||||
yubiKitVersion = "2.6.0"
|
||||
junitVersion = "4.13.2"
|
||||
mockitoVersion = "5.11.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user