Accepting request 886377 from home:susnux:branches:security

Update to version 1.7.0

OBS-URL: https://build.opensuse.org/request/show/886377
OBS-URL: https://build.opensuse.org/package/show/security/libfido2?expand=0&rev=39
This commit is contained in:
Torsten Gruner 2021-04-18 10:46:52 +00:00 committed by Git OBS Bridge
parent 1bc40124d6
commit 1009717eca
7 changed files with 41 additions and 7 deletions

13
fix-cmake-linking.patch Normal file
View File

@ -0,0 +1,13 @@
diff -Nur libfido2-1.7.0/src/CMakeLists.txt new/src/CMakeLists.txt
--- libfido2-1.7.0/src/CMakeLists.txt 2021-03-29 17:28:56.000000000 +0200
+++ new/src/CMakeLists.txt 2021-04-17 04:08:16.614325721 +0200
@@ -45,6 +45,9 @@
if(USE_HIDAPI)
list(APPEND FIDO_SOURCES hid_hidapi.c)
+ if(NOT WIN32 AND NOT APPLE)
+ list(APPEND FIDO_SOURCES hid_unix.c)
+ endif()
elseif(WIN32)
list(APPEND FIDO_SOURCES hid_win.c)
elseif(APPLE)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6aed47aafd22be49c38f9281fb88ccd08c98678d9b8c39cdc87d1bb3ea2c63e4
size 413904

Binary file not shown.

3
libfido2-1.7.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:116749b2a6c95f6559439494fcebdbe803dff14037017ad239843c84c59d708e
size 517426

BIN
libfido2-1.7.0.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Sat Apr 17 01:41:49 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 1.7.0:
* hid_win: detect devices with vendor or product IDs > 0x7fff
* Support for FIDO 2.1 authenticator configuration.
* Support for FIDO 2.1 UV token permissions.
* Support for FIDO 2.1 "credBlobs" and "largeBlobs" extensions.
* New API calls
* New fido_init flag to disable fido_dev_opens U2F fallback
* Experimental NFC support on Linux.
- Enabled hidapi again, issues related to hidapi are fixed upstream
* Added fix-cmake-linking.patch to fix linking
-------------------------------------------------------------------
Wed Jan 20 09:46:41 UTC 2021 - Martin Pluskal <mpluskal@suse.com>

View File

@ -18,20 +18,25 @@
%define sover 1
Name: libfido2
Version: 1.6.0
Version: 1.7.0
Release: 0
Summary: FIDO U2F and FIDO 2.0 protocols
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://developers.yubico.com/
Source0: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz
Source1: https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz.sig
# PATCH-FIX-UPSTREAM fix-cmake-linking.patch -- Fix linking when building with hidapi, gh#323
Patch0: fix-cmake-linking.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libopenssl-1_1-devel
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: pkgconfig(hidapi-hidraw)
BuildRequires: pkgconfig(libcbor)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(zlib)
%description
Provides library functionality for communicating with a FIDO device
@ -60,6 +65,7 @@ This package contains the header file needed to develop applications that
use FIDO U2F and FIDO 2.0 protocols.
%package -n %{name}-utils
Group: Hardware/Other
Summary: Utility programs making use of libfido2, a library for FIDO U2F and FIDO 2.0
Conflicts: libfido2-0_4_0
Conflicts: libfido2-1_0_0
@ -75,14 +81,15 @@ BuildArch: noarch
This package contains the udev rules for FIDO2 compatible devices.
%prep
%autosetup
%autosetup -p1
%build
%define __builder ninja
%cmake \
-DCBOR_LIBRARY_DIRS=%{_libdir} \
-DUSE_HIDAPI=0 \
-DBUILD_EXAMPLES=OFF
-DBUILD_EXAMPLES=OFF \
-DUSE_HIDAPI=ON \
-DNFC_LINUX=ON
%cmake_build
%install