diff options
author | Ed Maste <emaste@FreeBSD.org> | 2023-09-19 17:06:12 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-09-22 11:07:25 +0000 |
commit | d79e0d1735e3e68aee782cc676dea99c71cdbbfb (patch) | |
tree | d74858f9e655690e0fbf023772c576ecd62a4522 /contrib/libfido2/regress/assert.c | |
parent | 3e85eb3c5ef0c08ae3a7db543d72713c365ca3a4 (diff) | |
download | src-d79e0d1735e3e68aee782cc676dea99c71cdbbfb.tar.gz src-d79e0d1735e3e68aee782cc676dea99c71cdbbfb.zip |
libfido2: update to 1.13.0
Some highlights from NEWS entries:
** Improved OpenSSL 3.0 compatibility.
** Support for hidraw(4) on FreeBSD; gh#597.
** Improved support for FIDO 2.1 authenticators.
PR: 273596
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2ccfa855b2fc331819953e3de1b1c15ce5b95a7e)
(cherry picked from commit 5bfbde817cdedbd7309c38a361cd1211bdcdd70e)
Diffstat (limited to 'contrib/libfido2/regress/assert.c')
-rw-r--r-- | contrib/libfido2/regress/assert.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/libfido2/regress/assert.c b/contrib/libfido2/regress/assert.c index 23d666a61173..98609257b8b5 100644 --- a/contrib/libfido2/regress/assert.c +++ b/contrib/libfido2/regress/assert.c @@ -2,18 +2,22 @@ * Copyright (c) 2018-2021 Yubico AB. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. + * SPDX-License-Identifier: BSD-2-Clause */ -#define _FIDO_INTERNAL +#undef NDEBUG #include <assert.h> +#include <string.h> + +#define _FIDO_INTERNAL + #include <fido.h> #include <fido/es256.h> #include <fido/rs256.h> #include <fido/eddsa.h> -#include <string.h> -#define FAKE_DEV_HANDLE ((void *)0xdeadbeef) +static int fake_dev_handle; static const unsigned char es256_pk[64] = { 0x34, 0xeb, 0x99, 0x77, 0x02, 0x9c, 0x36, 0x38, @@ -94,13 +98,13 @@ dummy_open(const char *path) { (void)path; - return (FAKE_DEV_HANDLE); + return (&fake_dev_handle); } static void dummy_close(void *handle) { - assert(handle == FAKE_DEV_HANDLE); + assert(handle == &fake_dev_handle); } static int |